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.

WL1271 Bluetooth hciconfig hci0 inqparms pageparms

Hi,

I'm using the AM335x EVM with the ti-sdk-am335x-evm-05.07.00.00 SDK SD card, and I would like to change the inquiry and page timings.  But the commands don't appear to work.

E.g. the command "hciconfig hci0 inqparms 4096:180" should change the inquiry duty, but after executing the command, if I read back the values using "hciconfig hci0 inqparms", they have not changed to the new values.

root@am335x-evm:~# hciconfig hci0 -a
hci0: Type: BR/EDR Bus: UART
BD Address: 50:56:63:F7:AE:0C ACL MTU: 1021:4 SCO MTU: 180:4
UP RUNNING PSCAN ISCAN
RX bytes:8146 acl:134 sco:0 events:237 errors:0
TX bytes:4935 acl:152 sco:0 commands:84 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
bluetoothd[1506]: plugins/hciops.c:read_local_name_complete() hci0 status 0
bluetoothd[1506]: plugins/hciops.c:update_ext_inquiry_response() hci0
Name: 'XXXX'
Class: 0x4c0100
Service Classes: Rendering, Capturing, Telephony
Device Class: Computer, Uncategorized
HCI Version: 4.0 (0x6) Revision: 0x0
LMP Version: 4.0 (0x6) Subversion: 0x1f29
Manufacturer: Texas Instruments Inc. (13)

root@am335x-evm:~# hciconfig hci0 inqparms
hci0: Type: BR/EDR Bus: UART
BD Address: 50:56:63:F7:AE:0C ACL MTU: 1021:4 SCO MTU: 180:4
Inquiry interval: 4096 slots (2560.00 ms), window: 18 slots (11.25 ms)

root@am335x-evm:~# hciconfig hci0 pageparms
hci0: Type: BR/EDR Bus: UART
BD Address: 50:56:63:F7:AE:0C ACL MTU: 1021:4 SCO MTU: 180:4
Page interval: 2048 slots (1280.00 ms), window: 18 slots (11.25 ms)
root@am335x-evm:~#

root@am335x-evm:~# hciconfig hci0 inqparms 4096:180
root@am335x-evm:~# hciconfig hci0 inqparms
hci0: Type: BR/EDR Bus: UART
BD Address: 50:56:63:F7:AE:0C ACL MTU: 1021:4 SCO MTU: 180:4
Inquiry interval: 4096 slots (2560.00 ms), window: 18 slots (11.25 ms)
root@am335x-evm:~#

root@am335x-evm:~# bluetoothd -v
4.98

  • Hi,

    You are right if you run the below commands it does not change the intervals and also does not give an error.

    hciconfig hci0 inqparms 4096:180

    hciconfig hci0 pageparms 2048:180

    As the commands itself says window parameter first and then the interval as below:

    inqparms   [win:int]    Get/Set inquiry scan window and interval
    pageparms  [win:int]    Get/Set page scan window and interval 

    So please try the below, it worked for me.

    hciconfig hci0 inqparms 180: 4096

    hciconfig hci0 pageparms 180: 2048

     

    Thanks,

    Sundeep.