Orange PI 2G IoT - Bluetooth 2.1 HOWTO, Como usarlo


Para poder usar la función de bluetooth 2.1 en nuestra opi iot 2g

1.Debemos instalar las utilidades para bluetooth :
     apt-get install bluez-tools
2.Debemos compilar el siguiente programa:
                  git clone https://github.com/RDA8810/RDA5991_BT_patchram
                  gcc bt_init.c -o bt_init
                      ./bt_init
                      Ahora Iniciamos el controlador:
                         hciattach -s 921600 /dev/ttyS1 any 921600 flow

         
3.para Emparejar dispositivos (todavía probando):
                                     $bluetoothctl
                                       [bluetooth]# power on
                                      Changing power on succeeded
                                     [bluetooth]# discoverable on
                                     Changing discoverable on succeeded
                                     [bluetooth]# pairable on
                                    Changing pairable on succeeded
                                     [bluetooth]# agent NoInputNoOutput
                                     Agent registered
                                    [bluetooth]# default-agent 
                                     Default agent request successful
                 

             
                  

Comentarios

GE-PRO ha dicho que…
Este comentario ha sido eliminado por el autor.
GE-PRO ha dicho que…
Este comentario ha sido eliminado por el autor.
GE-PRO ha dicho que…
Hi, what is the trick?
Юрий ha dicho que…
Download image
Http://surfero.blogspot.de/2017/06/distribucion-gnulinux-para-orange-pi-2g.html

I try to run, gives the error:

root@OrangePi:~# sudo menuconfig
Found version 4
Device setup complete
[NEW] Controller E9:58:0C:8D:3D:6E BlueZ 5.37 [default]
[CHG] Controller E9:58:0C:8D:3D:6E Name: OrangePi
[CHG] Controller E9:58:0C:8D:3D:6E Alias: OrangePi
[bluetooth]# power on
Failed to set power on: org.bluez.Error.Blocked
[bluetooth]# discoverable on
Failed to set discoverable on: org.bluez.Error.Failed
[bluetooth]#
Unknown ha dicho que…
sudo rfkill unblock bluetooth

Then, execute bluetoothctl again, it works on mi OrangePi 2G-IoT

Entradas populares de este blog

Orange Pi IoT 2G Flashear memoria NAND

Usar datos gratis para proyectos IoT FreedomPop y Orange Pi 2G IoT (también Simyo).

Configurar modem GSM en la Orange Pi 2G IoT (Orange España)