Difference between revisions of "Bluetooth"

From MOD Wiki
Jump to navigation Jump to search
(Tutorial bluetooth no Linux)
m
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Nesta página você encontra instruções para conectar seu computador ao MOD.
+
In this page you find instructions to connect your computer to the MOD Duo using Bluetooth.<br/>
  
== Mac OS ==
+
Please note that the MOD Duo unit does not include a Bluetooth chip inside, you have to plug a Bluetooth USB dongle on MOD Duo for this to work.<br/>
  
1. Ligue o MOD com o adaptador bluetooth conectado
+
'''Note:''' Bluetooth version 3 or higher is required.
  
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.
+
== Bluetooth options ==
  
[[File:Mac1.jpeg|400px]]
+
The controller has a menu option dedicated to Bluetooth. To access this menu please click and hold the left knob and scroll down to the "Settings" menu
  
3. Clique no botão "Emparelhar"
+
[[File:settings-general.jpg]]
  
4. Caso seja requisitado um PIN, use 1234. Dependendo da versão do Bluetooth, o PIN não será requisitado.
+
On the right display, scroll down to the "Bluetooth" option rotating the right knob. Quick press the right knob to access the Bluetooth options:
  
5. Aguarde o processo de emparelhamento. Ao final dele, o dispositivo irá aparecer como "Não conectado", conforme figura abaixo
+
[[File:setting-bluetooth.jpg]]
  
[[File:Mac3.jpeg|400px]]
+
'''Enable discovery''' will turn on discovery mode on for 2 minutes.<br/>
 +
The MOD starts with discovery turned off by default.
  
5. Clique com o botão direito em cima do disposito e então em "Conectar à Rede", conforme figura abaixo
+
'''Status:...''' shows the current Bluetooth status<br/>
 +
The following different status are available:<br/>
 +
- Unavailable - no Bluetooth dongle is plugged in the MOD Duo<br/>
 +
- Unsupported - the Bluetooth version of the dongle in use is too old (needs >= Bluetooth 3)<br/>
 +
- Starting... - Bluetooth service is starting<br/>
 +
- Disconnected - Bluetooth active, no devices connected and not discoverable<br/>
 +
- Discoverable - Bluetooth active, discoverable (and perhaps with devices connected)<br/>
 +
- Connected - Bluetooth active, at least 1 device connected but not discoverable<br/>
  
[[File:Mac2.jpeg|400px]]
+
'''Name:...''' shows the Bluetooth device name for your specific MOD Duo.<br/>
 +
Usually, includes batch and serial number as suffix for uniqueness.<br/>
 +
You can customize this name by creating a file named '/data/bluetooth/name' inside the MOD Duo. Its contents define the name.
  
6. Pronto, abra o Google Chrome e acesse http://192.168.50.1
+
'''Address:...''' shows the MAC address of the current Bluetooth dongle in the MOD Duo.<br/>
  
== Windows 7 ==
+
== Connecting using Bluetooth ==
  
1. Ligue o MOD com o adaptador bluetooth conectado
+
The process to connect to MOD Duo via Bluetooth is pretty simple.<br/>
 +
We basically just need to enable discovery for 1st-time setups and pair it with the computer.<br/>
 +
Then connect to its network and open http://192.168.50.1/. (note the '50' instead of '51' used for USB cable connection)
  
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
+
Just in case you still have doubts, the text below explains how to do the connection in a little more detail.
  
[[File:Windows1.PNG|400px]]
+
In all cases, '''plug you Bluetooth dongle before turning the MOD on'''.
  
3.  Aguarde o seu MOD aparecer como um dos dispositivos disponíveis, conforme figura abaixo.
+
=== Windows ===
  
[[File:Windows2.PNG|400px]]
+
1. Turn on the MOD Duo and plug a Bluetooth USB dongle into it
 +
<br/>
  
4. Selecione o dispositivo MOD e clique em "Avançar"
+
2. Right-click the Windows Bluetooth icon and click on "Join a Personal Area Network"
 +
<br/>
 +
[[File:bluetooth-win-1.png]]
 +
<br/><br/>
  
5. Caso seja requisitado um PIN, use 1234. Dependendo da versão do Bluetooth, o PIN não será requisitado.
+
3. Open the MOD Duo controller menu (by holding the left knob down), go to the Bluetooth menu and enable discovery.
 +
<br/><br/>
  
6. Aguarde o processo de emparelhamento ser concluído com sucesso e então feche a janela clicando em Fechar
+
4. Click on the 'Add device' button on the new window that appeared on the computer.
 +
<br/>
 +
[[File:bluetooth-win-2.png|600px]]
 +
<br/><br/>
  
[[File:Windows3.PNG|400px]]
+
5. Select your MOD Duo from the list and click 'Next'.
 +
<br/>
 +
[[File:bluetooth-win-3.png|600px]]
 +
<br/><br/>
  
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. Wait for Windows to finish setting it up...
 +
<br/>
 +
[[File:bluetooth-win-4.png|600px]]
 +
<br/><br/>
  
[[File:Windows4.png|400px]]
+
7. Select the MOD Duo icon and click 'Connect using' then 'Access point'
 +
<br/>
 +
[[File:bluetooth-win-5.png|600px]]
 +
<br/><br/>
  
7. Pronto, abra o Google Chrome e acesse http://192.168.50.1
+
8. The connection should be successful. If not, start again from step 3.
 +
<br/>
 +
[[File:bluetooth-win-6.png|600px]]
 +
<br/><br/>
  
== Linux ==
+
9. That's it. Open your browser and go to http://192.168.50.1/
  
=== Parear devices ===
+
=== Mac OS ===
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:
 
  
* Há um applet padrão no Ubuntu para isso
+
1. Turn on the MOD Duo and plug a Bluetooth USB dongle into it
* Pode-se usar o bluez-simple-agent
+
<br/>
  
Qualquer método servirá, essa fase não é problemática
+
2. Open System Preferences, go to Bluetooth and click on 'Set Up New Device...'
 +
<br/>
  
=== Subindo a rede ===
+
3. Select the MOD Duo and click 'Continue'
 +
<br/>
 +
[[File:bluetooth-mac-1.png|600px]]
 +
<br/><br/>
  
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.  
+
4. Wait for MacOS to finish setting it up...
 +
<br/>
 +
[[File:bluetooth-mac-2.png|600px]]
 +
<br/><br/>
  
Para configurar a rede, usamos o '''pand'''.
+
5. After the setup finishes, connect to the MOD DUO Bluetooth network
 +
<br/>
 +
[[File:bluetooth-mac-3.png|600px]]
 +
<br/><br/>
  
É 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:
+
6. The connection should be successful. If not, remove the device from the list and start again from step 2.
 +
<br/>
 +
[[File:bluetooth-mac-4.png|600px]]
 +
<br/><br/>
  
* sudo apt-get install bluez-compat
+
7. That's it. Open your browser and go to http://192.168.50.1/
  
Em seguida, suba a rede ('''note que''' abaixo há um endereço de bluetooth, substitua pelo endereço descoberto na seção "Parear devices"):
+
=== Linux ===
  
* sudo pand --connect 00:15:83:3D:0A:57 -n
+
There are quite a few different Bluetooth manager applications under Linux, so we won't cover them all here.<br/>
 +
So instead we can tell the basic steps:
  
'''Caso haja um erro 71''' tente novamente o comando acima. Às vezes são necessárias algumas tentativas.
+
1. Turn on the MOD Duo and plug a Bluetooth USB dongle into it<br/>
 
+
2. Wait for it to boot<br/>
A rede está feita, falta agora pegar um IP. Use qualquer cliente dhcp de sua preferência, na interface bnep0, por exemplo:
+
3. Open the MOD Duo controller menu (by holding the left knob down), go to the Bluetooth menu and enable discovery<br/>
 
+
4. Use your Bluetooth manager application to look for Bluetooth devices<br/>
* sudo dhclient bnep0
+
5. Select the MOD Duo and connect to it<br/>
 
+
6. Join the Bluetooth network created by the MOD Duo<br/>
Pronto, pode abrir o seu navegador e acessar '''http://192.168.50.1'''
+
7. That's it. Open your browser and go to http://192.168.50.1/<br/>

Revision as of 12:40, 11 November 2019

In this page you find instructions to connect your computer to the MOD Duo using Bluetooth.

Please note that the MOD Duo unit does not include a Bluetooth chip inside, you have to plug a Bluetooth USB dongle on MOD Duo for this to work.

Note: Bluetooth version 3 or higher is required.

Bluetooth options

The controller has a menu option dedicated to Bluetooth. To access this menu please click and hold the left knob and scroll down to the "Settings" menu

Settings-general.jpg

On the right display, scroll down to the "Bluetooth" option rotating the right knob. Quick press the right knob to access the Bluetooth options:

Setting-bluetooth.jpg

Enable discovery will turn on discovery mode on for 2 minutes.
The MOD starts with discovery turned off by default.

Status:... shows the current Bluetooth status
The following different status are available:
- Unavailable - no Bluetooth dongle is plugged in the MOD Duo
- Unsupported - the Bluetooth version of the dongle in use is too old (needs >= Bluetooth 3)
- Starting... - Bluetooth service is starting
- Disconnected - Bluetooth active, no devices connected and not discoverable
- Discoverable - Bluetooth active, discoverable (and perhaps with devices connected)
- Connected - Bluetooth active, at least 1 device connected but not discoverable

Name:... shows the Bluetooth device name for your specific MOD Duo.
Usually, includes batch and serial number as suffix for uniqueness.
You can customize this name by creating a file named '/data/bluetooth/name' inside the MOD Duo. Its contents define the name.

Address:... shows the MAC address of the current Bluetooth dongle in the MOD Duo.

Connecting using Bluetooth

The process to connect to MOD Duo via Bluetooth is pretty simple.
We basically just need to enable discovery for 1st-time setups and pair it with the computer.
Then connect to its network and open http://192.168.50.1/. (note the '50' instead of '51' used for USB cable connection)

Just in case you still have doubts, the text below explains how to do the connection in a little more detail.

In all cases, plug you Bluetooth dongle before turning the MOD on.

Windows

1. Turn on the MOD Duo and plug a Bluetooth USB dongle into it

2. Right-click the Windows Bluetooth icon and click on "Join a Personal Area Network"
Bluetooth-win-1.png

3. Open the MOD Duo controller menu (by holding the left knob down), go to the Bluetooth menu and enable discovery.

4. Click on the 'Add device' button on the new window that appeared on the computer.
Bluetooth-win-2.png

5. Select your MOD Duo from the list and click 'Next'.
Bluetooth-win-3.png

6. Wait for Windows to finish setting it up...
Bluetooth-win-4.png

7. Select the MOD Duo icon and click 'Connect using' then 'Access point'
Bluetooth-win-5.png

8. The connection should be successful. If not, start again from step 3.
Bluetooth-win-6.png

9. That's it. Open your browser and go to http://192.168.50.1/

Mac OS

1. Turn on the MOD Duo and plug a Bluetooth USB dongle into it

2. Open System Preferences, go to Bluetooth and click on 'Set Up New Device...'

3. Select the MOD Duo and click 'Continue'
Bluetooth-mac-1.png

4. Wait for MacOS to finish setting it up...
Bluetooth-mac-2.png

5. After the setup finishes, connect to the MOD DUO Bluetooth network
Bluetooth-mac-3.png

6. The connection should be successful. If not, remove the device from the list and start again from step 2.
Bluetooth-mac-4.png

7. That's it. Open your browser and go to http://192.168.50.1/

Linux

There are quite a few different Bluetooth manager applications under Linux, so we won't cover them all here.
So instead we can tell the basic steps:

1. Turn on the MOD Duo and plug a Bluetooth USB dongle into it
2. Wait for it to boot
3. Open the MOD Duo controller menu (by holding the left knob down), go to the Bluetooth menu and enable discovery
4. Use your Bluetooth manager application to look for Bluetooth devices
5. Select the MOD Duo and connect to it
6. Join the Bluetooth network created by the MOD Duo
7. That's it. Open your browser and go to http://192.168.50.1/