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.

Linux/WL1837MOD: can not see response on sepctrum analyzer when using the HCI commands to put the device in the Continuous TX mode

Part Number: WL1837MOD


Tool/software: Linux

I am trying to put the wl1837mod into continue tx mode for fcc test, using the following command

hcitool -i hci0 cmd 0x3f 0x10c 0x00 0x00 0xff 0xff 0xff 0xff 0xff 0x64

hcitool -i hci0 cmd 0x03 0x001a 0x03

hcitool -i hci0 cmd 0x3f 0x01fb 0x01 0xff 0x00 0x00 0x00 0x00 0x01

hcitool -i hci0 cmd 0x03 0x01ca 0x62 0x09 0x01 0x00 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

but on the spectrum analyzer, there is no obvious response on the selected frequency.

if the above command list is right?

the following are process of running above commands line by line

hcitool -i hci0 cmd 0x3f 0x10c 0x00 0x00 0xff 0xff 0xff 0xff 0xff 0x64
< HCI Command: ogf 0x3f, ocf 0x010c, plen 8
  00 00 FF FF FF FF FF 64
> HCI Event: 0x0e plen 4
  01 0C FD 00
root@colibri-imx6:/usr/bin/gryphon_test# hcitool -i hci0 cmd 0x03 0x001a 0x03
< HCI Command: ogf 0x03, ocf 0x001a, plen 1
  03
> HCI Event: 0x0e plen 4
  01 1A 0C 00
root@colibri-imx6:/usr/bin/gryphon_test# hcitool -i hci0 cmd 0x3f 0x01fb 0x01 0xff 0x00 0x00 0x00 0x00 0x01
< HCI Command: ogf 0x3f, ocf 0x01fb, plen 7
  01 FF 00 00 00 00 01
> HCI Event: 0x0e plen 4
  01 FB FD 00
root@colibri-imx6:/usr/bin/gryphon_test# hcitool -i hci0 cmd 0x03 0x01ca 0x62 0x09 0x01 0x00 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: ogf 0x03, ocf 0x01ca, plen 13
  62 09 01 00 07 00 00 00 00 00 00 00 00
> HCI Event: 0x0e plen 4
  01 CA 0D 01

  • Lei,

    Have you made sure to disable page and inquiry scans before putting the device into Continuous TX mode?
  • I think I did not disable page and inquiry scan before sending these command line for continue TX mode. these command lines come from the below link   

    processors.wiki.ti.com/index.php/WL18xx_Bluetopia_PM_Bluetooth_RF_Testing#Continuous_TX 

    I have not found commands about how to disable page and inquiry scan.

    could you please send me the commands needed before start continue TX, or let me know where to get a formal guide of setting wl1837mod's bluetooth into continue TX mode.

    My task is to prepare FCC test for device using wl1837mod.

  • Lei,

    The list of commands that you are sending does not match the commands listed on the wiki page. Please use these commands.

    The command formats for SS1Tool and hcitool are identical. So you can use the hcitool cmd instead of SS1Tool cmd.

    FYI, the SS1Tool cmd 0x03 0x001a 0x00 disables the Page and Inquiry scans.

    Best regards,

    Vihang

  • the command lines I used really included the " cmd 0x03 0x001a 0x00 disables the Page and Inquiry scans." on the 2nd line as below, I did not know its exact meaning is "disables the Page and Inquiry scans." before your answer.

    hcitool -i hci0 cmd 0x3f 0x10c 0x00 0x00 0xff 0xff 0xff 0xff 0xff 0x64
    hcitool -i hci0 cmd 0x03 0x001a 0x03
    hcitool -i hci0 cmd 0x3f 0x01fb 0x01 0xff 0x00 0x00 0x00 0x00 0x01
    hcitool -i hci0 cmd 0x03 0x01ca 0x62 0x09 0x01 0x00 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

    the 1st line is come from the same web page at title "First start by disabling the sleep protocol"
  • Lei,

    Your second line: 

    lei dong said:

    hcitool -i hci0 cmd 0x03 0x001a 0x03

    is enabling both Page and Inquiry Scans:

    The command in the wiki is 

    0x03 0x001a 0x00


    where the 0x00 is to disable the scans.

    Please try it again with the correct command, and see if it helps.

  • I have modified the command line to "hcitool -i hci0 cmd 0x03 0x001a 0x00" and the test script, but the there is still no expected effect observed on the spectrum analyzer.
  • hi, Dale

    at the link the there is a step 1 "run init script.",

    is there the init script for running on linux command line. before running the other hcitool lines

  • hi, Dale

    yesterday, i tried with the command lines in the link e2e.ti.com/.../589299, and can get the expected peak at the assigned frequency on the spectrum analyzer, but the peak is unstable. and may not come every time sending the command lines. I used "0x03 0x001a 0x00" in the command lines

  • Hi, Dale
    today the test has passed, the last reason caused the problem is setting of our spectrum analyzer on filters. thanks very much.