Difference between revisions of "Bluetooth"

From MOD Wiki
Jump to navigation Jump to search
(Tutorial bluetooth no Linux)
(Translate to english, that will be the main language. We'll put the old page as translation of this one.)
Line 1: Line 1:
Nesta página você encontra instruções para conectar seu computador ao MOD.
+
<languages/>
 +
 
 +
<translate>
 +
In this page you find instructions to connect your computer to MOD.
  
 
== Mac OS ==
 
== Mac OS ==
  
1. Ligue o MOD com o adaptador bluetooth conectado
+
1. Turn on the MOD with the bluetooth adaptor connected
  
2. No seu Mac, acesse a opção "Bluetooth" dentro das configurações de sistema e aguarde o seu MOD aparecer como um dos dispositivos disponíveis, conforme figura abaixo.
+
2. In your Mac, go to "Bluetooth" option at the System Preferences and wait for your MOD to appear as one of the available devices, according to the picture below.
  
 
[[File:Mac1.jpeg|400px]]
 
[[File:Mac1.jpeg|400px]]
  
3. Clique no botão "Emparelhar"
+
3. Click the "Pair" button
  
4. Caso seja requisitado um PIN, use 1234. Dependendo da versão do Bluetooth, o PIN não será requisitado.
+
4. In case a PIN is requested, use 1234. Depending on the Bluetooth version, the PIN won't be necessary.
  
5. Aguarde o processo de emparelhamento. Ao final dele, o dispositivo irá aparecer como "Não conectado", conforme figura abaixo
+
5. Wait for the pairing process to finish. When it's done, the device will appear as "Not connected", according to the picture below.
  
 
[[File:Mac3.jpeg|400px]]
 
[[File:Mac3.jpeg|400px]]
  
5. Clique com o botão direito em cima do disposito e então em "Conectar à Rede", conforme figura abaixo
+
5. Click with the right button on the device and then on "Connect to Network", according to the picture below.
  
 
[[File:Mac2.jpeg|400px]]
 
[[File:Mac2.jpeg|400px]]
  
6. Pronto, abra o Google Chrome e acesse http://192.168.50.1
+
6. That's it. Open Google Chrome and go to http://192.168.50.1
  
 
== Windows 7 ==
 
== Windows 7 ==
  
1. Ligue o MOD com o adaptador bluetooth conectado
+
1. Turn on the MOD with the bluetooth adaptor connected
  
2. A partir do Painel de Controle, acesse o item "Dispositivos e Impressoras". Nesta janela, clique no botão "Adicionar um dispositivo, localizado no topo esquerdo da janela
+
2. From the Control Panel, go to "Devices and Printers". In this window, click in "Add device" button, located at the top left window corner.
  
 
[[File:Windows1.PNG|400px]]
 
[[File:Windows1.PNG|400px]]
  
3.  Aguarde o seu MOD aparecer como um dos dispositivos disponíveis, conforme figura abaixo.
+
3.  Wait for your MOD to appear as one of the available devices, according to the picture below.
  
 
[[File:Windows2.PNG|400px]]
 
[[File:Windows2.PNG|400px]]
  
4. Selecione o dispositivo MOD e clique em "Avançar"
+
4. Select the MOD device and click in "Next"
  
5. Caso seja requisitado um PIN, use 1234. Dependendo da versão do Bluetooth, o PIN não será requisitado.
+
5. In case a PIN is requested, use 1234. Depending on the Bluetooth version, the PIN won't be necessary.
  
6. Aguarde o processo de emparelhamento ser concluído com sucesso e então feche a janela clicando em Fechar
+
6. Wait for the pairing process to finish and then close the window.
  
 
[[File:Windows3.PNG|400px]]
 
[[File:Windows3.PNG|400px]]
  
6. De volta a tela "Dispositivos e Impressoras", clique com o botão direito sobre o MOD e selecione "Conectar usando" > "Ponto de acesso", conforme figura abaixo
+
6. Back to the "Devices and printers" screen, right click on MOD and select "Connect using" > "Access point", according to the picture below.
  
 
[[File:Windows4.png|400px]]
 
[[File:Windows4.png|400px]]
  
7. Pronto, abra o Google Chrome e acesse http://192.168.50.1
+
7. That's it. Open Google Chrome and go to http://192.168.50.1
  
 
== Linux ==
 
== Linux ==
  
=== Parear devices ===
+
=== Pair devices ===
Primeiro, é necessário parear o seu computador com o MOD e descobrir o endereço do bluetooth (algo como 00:15:83:3D:0A:57). Há diversas maneiras de se fazer isso, por exemplo:
+
 
 +
First, it's necessary to pair your computer with the MOD and discover the bluetooth address (something like 00:15:83:3D:0A:57). There are several ways to do that, for example:
  
* Há um applet padrão no Ubuntu para isso
+
* There's a default applet in Ubuntu for that
* Pode-se usar o bluez-simple-agent
+
* You can use bluez-simple-agent
  
Qualquer método servirá, essa fase não é problemática
+
Any method will do, this step is not problematic.
  
=== Subindo a rede ===
+
=== Creating the network ===
  
Essa é a parte mais complexa. Apesar do MOD rodar Linux, a implementação da rede não funciona bem do lado do cliente (o seu computador). Depois de configurar tudo, você vai conseguir acessar sem grandes problemas, mas é normal ver algumas mensagens de erro e pode ser necessário tentar a conexão repetidas vezes até conseguir.  
+
This is the complex part. Although the MOD runs Linux, the network implementation at client side (your computer) does not work very well. After everything is configured you'll be able to use it without problems, but it's usual to see some error messages during the process and it might be necessary to retry the connection several times until you succeed.
  
Para configurar a rede, usamos o '''pand'''.
+
To configure the network, use '''pand'''.
  
É necessário o pacote '''bluez-compat''' (no Linux Mint e provavelmente outras distros debian-based. O importante é ter o comando "pand" na linha de comando). Se você usa alguma distribuição baseada em Debian, pode usar o comando:
+
It's necessary to have the '''bluez-compat''' package (in Linux Mint and probably in oither debian-based distributions). The important thing is to have the "pand" command at command line. If you use a Debian-based distribution, you can use the following command:
  
 
* sudo apt-get install bluez-compat
 
* sudo apt-get install bluez-compat
  
Em seguida, suba a rede ('''note que''' abaixo há um endereço de bluetooth, substitua pelo endereço descoberto na seção "Parear devices"):
+
Then, create the network ('''note that''' below there's a bluetooth address, substitute it for the address discovered at "Pair devices" section above):
  
 
* sudo pand --connect 00:15:83:3D:0A:57 -n
 
* sudo pand --connect 00:15:83:3D:0A:57 -n
  
'''Caso haja um erro 71''' tente novamente o comando acima. Às vezes são necessárias algumas tentativas.
+
'''In case there's an error 71''', try again the command above. Sometimes it's necessary to retry it several times.
  
A rede está feita, falta agora pegar um IP. Use qualquer cliente dhcp de sua preferência, na interface bnep0, por exemplo:
+
The network is done, now you need to get an IP. Use the DHCP client of your choice, at interface '''bnep0''', for example:
  
 
* sudo dhclient bnep0
 
* sudo dhclient bnep0
  
Pronto, pode abrir o seu navegador e acessar '''http://192.168.50.1'''
+
That's it, you can open your browser and go to '''http://192.168.50.1'''
 +
</translate>

Revision as of 15:33, 10 December 2013

<languages/>

<translate> In this page you find instructions to connect your computer to MOD.

Mac OS

1. Turn on the MOD with the bluetooth adaptor connected

2. In your Mac, go to "Bluetooth" option at the System Preferences and wait for your MOD to appear as one of the available devices, according to the picture below.

Mac1.jpeg

3. Click the "Pair" button

4. In case a PIN is requested, use 1234. Depending on the Bluetooth version, the PIN won't be necessary.

5. Wait for the pairing process to finish. When it's done, the device will appear as "Not connected", according to the picture below.

Mac3.jpeg

5. Click with the right button on the device and then on "Connect to Network", according to the picture below.

Mac2.jpeg

6. That's it. Open Google Chrome and go to http://192.168.50.1

Windows 7

1. Turn on the MOD with the bluetooth adaptor connected

2. From the Control Panel, go to "Devices and Printers". In this window, click in "Add device" button, located at the top left window corner.

Windows1.PNG

3. Wait for your MOD to appear as one of the available devices, according to the picture below.

Windows2.PNG

4. Select the MOD device and click in "Next"

5. In case a PIN is requested, use 1234. Depending on the Bluetooth version, the PIN won't be necessary.

6. Wait for the pairing process to finish and then close the window.

Windows3.PNG

6. Back to the "Devices and printers" screen, right click on MOD and select "Connect using" > "Access point", according to the picture below.

Windows4.png

7. That's it. Open Google Chrome and go to http://192.168.50.1

Linux

Pair devices

First, it's necessary to pair your computer with the MOD and discover the bluetooth address (something like 00:15:83:3D:0A:57). There are several ways to do that, for example:

  • There's a default applet in Ubuntu for that
  • You can use bluez-simple-agent

Any method will do, this step is not problematic.

Creating the network

This is the complex part. Although the MOD runs Linux, the network implementation at client side (your computer) does not work very well. After everything is configured you'll be able to use it without problems, but it's usual to see some error messages during the process and it might be necessary to retry the connection several times until you succeed.

To configure the network, use pand.

It's necessary to have the bluez-compat package (in Linux Mint and probably in oither debian-based distributions). The important thing is to have the "pand" command at command line. If you use a Debian-based distribution, you can use the following command:

  • sudo apt-get install bluez-compat

Then, create the network (note that below there's a bluetooth address, substitute it for the address discovered at "Pair devices" section above):

  • sudo pand --connect 00:15:83:3D:0A:57 -n

In case there's an error 71, try again the command above. Sometimes it's necessary to retry it several times.

The network is done, now you need to get an IP. Use the DHCP client of your choice, at interface bnep0, for example:

  • sudo dhclient bnep0

That's it, you can open your browser and go to http://192.168.50.1 </translate>