This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to configure WL1831 Bluetooth device with hci commands to scan the other WL1831 Bluetooth device

Other Parts Discussed in Thread: WL1831

I want to use one WL1831 BT device  to scan the other WL1831 BT device.

The hci0 device can be enabled by typing "hciconfig hci0 up" but there is nothing found after typing "hcitool scan" command.

I turned on BT function of android phone, and run it again. The BT device of android phone can be found. 

Could anyone provide some suggestions? How can I configure the other  WL1831 Bluetooth device to make it discovered.

Thanks.

Brian

  • Hi Brian,

    It depends on the BT Stack that you're using.
    With the BlueZ stack (which I believe is what you're using), you can type "hciconfig hci0 piscan" to enable page & inquiry scans.

    You can also check on some external BlueZ forums for a better response.

    Regards,
    Gigi Joseph.
  • Hi Joseph,

    Thanks for your reply.
    I use ti-processor-sdk-linux-am335x-evm-01.00.00.03-Linux-x86-Install.bin SDK to run the test.
    I type the "hciconfig hci0 piscan" command but it still not work for me.

    You may refer to my hci0 information list.

    # hciconfig hci0 -a
    hci0: Type: BR/EDR Bus: UART
    BD Address: 7C:EC:79:FE:F1:92 ACL MTU: 1021:6 SCO MTU: 180:4
    UP RUNNING PSCAN ISCAN
    RX bytes:1122 acl:0 sco:0 events:57 errors:0
    TX bytes:771 acl:0 sco:0 commands:57 errors:0
    Features: 0xff 0xfe 0x2d 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
    Link policy: RSWITCH HOLD SNIFF
    Link mode: SLAVE ACCEPT
    Name: ''
    Class: 0x001f00
    Service Classes: Unspecified
    Device Class: Invalid Device Class!
    HCI Version: (0x7) Revision: 0x0
    LMP Version: (0x7) Subversion: 0xac7c
    Manufacturer: Texas Instruments Inc. (13)

    Regards,
    Brian
  • Hi Brian,

    Can you confirm if the firmware has been successfully downloaded?
    Please use the latest BTS from: www.ti.com/.../wl18xx-bt-sp

    Regards,
    Gigi Joseph.
  • Hi Joseph,

    It should be my test environment issue.
    After changed a RF antenna, "hcitool scan" can show the other WL1831 BT device.
    Thanks for your help.

    Regards,
    Brian