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.

WL1837MOD: Sending HCI_VS commands using Labview

Part Number: WL1837MOD

I'm trying to use Labview to automate Bluetooth factory testing. The board I'm testing does not have a processor so I can't use the SS1Tool at this level so I need to communicate directly to the module. Basically using Labview to do what HCI Tester is doing.

When I run the bts txt file using HCI Tester I can see the Outgoing Dump and Incoming Dump in the Trace window. I've tried copying the commands and sending them using Labview but am not able to get the same response as what the Incoming Dump is showing in HCI Tester.

For example, the first command in the bts file is:

Send_HCI_VS_Start_VS_Lock 0xFE37, 0x08, 0x20
Wait_HCI_Command_Complete_VS_Start_VS_Lock_Event 5000, any, 0xfe37, 0x00

The outgoing dump from HCI Tester shows that what's sent to the WL1837MOD (Outgoing Dump) is 01 37 fe 02 08 20 and the response (Incoming Dump) is 04 0e 04 01 37 fe 00.

When I send 0137fe020820 with Labview the response I get is a 1 followed by 4 squares. I'm not sure what that means. I was expecting to get the Outgoing Dump of 04 0e 04 01 37 fe 00.

Please advise on what I am doing wrong. Thanks. 

  • Hi Jonathan,

    We dont support sending hci commands over other software, but I will try my best to help.

    Are you using a custom board or one of the evaluation modules? I would check that you are using the same baud rate and uart communication (ex, flow control or not). The good news is it seems that you can communicate to the device.

    Kind Regards,

    Rogelio

  • Hi Rogelio,

    Yes I'm using a custom wireless connectivity board I developed which gets connected to the main system board of our product and that's where the processor is located. The issue is that I need to get the wireless connectivity board tested on its own in our factory. I built a fixture that connects the board to the test PC and was able to successfully use HCI tester to test the board. The issue is that to automate in the factory we are using Labview and basically need to send the HCI VS commands to the module to download the FW and then once that's done send commands to transmit to validate TX power, etc. The baud rate is setup exactly how it is in HCI Tester (115200 baud, etc.) So far, we have sent a command but the response from the module seems like garbage. I don't think we are doing it right. Please advise. 

    Thanks,

    Jon

  • Hi Jon,

    I would test reading the uart dumps both tx and rx with a logic analyzer with both using hci tester and Labview. If the traces look the same, we can conclude that the issue lies somewhere how labview is interpreting the data. If the dont look the same, we would have to see why the device is outputting squares.

    Kind Regards,

    Rogelio