WL18XX-BT-SP: WL1831, WiFi works, BT doesn't.

Part Number: WL18XX-BT-SP
Other Parts Discussed in Thread: WL1831

Tool/software:

We have a custom HW using WL1831 chip. Running custom Linux OS on imx6q SOM.
WiFi works fine. However, BT demonstrates strange problem.

root@smarc-samx6i:~# hciattach /dev/ttymxc3 any 115200 flow
Device setup complete
root@smarc-samx6i:~# hciconfig hci0 up
root@smarc-samx6i:~# hcitool -i hci0 cmd 0x3f 0x0009 0xc0 0xc6 0x2d 0x00
< HCI Command: ogf 0x3f, ocf 0x0009, plen 4
  C0 C6 2D 00
> HCI Event: 0x0e plen 4
  01 09 FC 01
root@smarc-samx6i:~# hcitool dev
Devices:
        hci0    74:A5:8C:6D:2E:51
root@smarc-samx6i:~# hciconfig scan
hci0:   Type: Primary  Bus: UART
        BD Address: 74:A5:8C:6D:2E:51  ACL MTU: 1021:6  SCO MTU: 180:4ro
        UP RUNNING
        RX bytes:1289 acl:0 sco:0 events:69 errors:0
        TX bytes:1154 acl:0 sco:0 commands:69 errors:0
root@smarc-samx6i:~# bluetoothctl
Agent registered
[CHG] Controller 74:A5:8C:6D:2E:51 Pairable: yes
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent is already registered
[bluetooth]# scan on
Discovery started
[CHG] Controller 74:A5:8C:6D:2E:51 Discovering: yes

And now I see periodic activity on the serial lines with a 5 second period. BT goes into discovery mode.

It looks like BT is working to me. 

But when I place my smartphone nearby and turn on BT scanning, I don't see any new devices.
Can you suggest what could be the problem?
Thanks!

  • Hi,

    I am confused on your question.

    In the Log it shows you started a scan with the bluetooth device.

    A Scan will find other bluetooth devices that are advertising.

    If you want your smartphone to scan your WL device, then you must advertise with the wl device first.

    Best,

    Rogelio