AnsweredAssumed Answered

imx6ul can't connect bluetooth

Question asked by 益 李 on Aug 18, 2016
Latest reply on Aug 18, 2016 by igorpadykov

hi

i want to connect my phone by bluetooth.

Linux imx6ulevk 3.14.52-1.1.0_ga+g5f6f0a5 #7 SMP PREEMPT Wed Aug 17 17:45:20 CST 2016 armv7l GNU/Linux

 

 

root@imx6ulevk:~# hciconfig hci0 up

root@imx6ulevk:~# hciconfig

hci0:   Type: BR/EDR  Bus: SDIO

        BD Address: 00:24:23:40:31:C2  ACL MTU: 1021:7  SCO MTU: 120:6

        UP RUNNING PSCAN ISCAN

        RX bytes:21573 acl:61 sco:0 events:254 errors:0

        TX bytes:2850 acl:71 sco:0 commands:80 errors:0

root@imx6ulevk:~# hciconfig hci0 piscan

root@imx6ulevk:~# sdptool add sp

root@imx6ulevk:~# hcitool scan

Scanning ...

        68:3E:34:69:8E:40       n/a

        A4:44:D1:0C:34:DD       魅蓝 metal

        0C:D2:92:B4:74:12       JIANHUACHEN

        30:52:CB:E5:B4:B4       LYH-PC

        B8:86:87:BD:82:72       ABC7686-PC

        30:52:CB:E5:E5:20       DFGGDFSH-PC

root@imx6ulevk:~# rfcomm connect 1 A4:44:D1:0C:34:DD

now my phone Popup Message that :

333181347766849052.jpg

but i don't know what's the PIN num.

i have tried 0000 and 1234 ,all fail.

after i input the error PIN:

root@imx6ulevk:~# rfcomm connect 1 A4:44:D1:0C:34:DD

Can't connect RFCOMM socket: Operation now in progress

 

how to set the PIN num and connect my phone?

thanks!!

Outcomes