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.

HCI_LE_Rand - no response from CC2540

Other Parts Discussed in Thread: CC2540

Hello all,

I'm trying to get Android's Bluedroid working with the CC2540, which is running the 1.4.0 TI stack in "Network Processor" configuration.

I'm seeing that Bluedroid sends HCI_LE_Rand (0x2018) to the CC2540, and the CC2540 fails to respond.  All other commands up to that point get immediate responses, even those which the CC2540 doesn't support (i.e. non-BLE commands)!

Does anyone know what might be wrong?

Regards,

Richard.

  • HCI_LE_Rand is standard HCI command intended to be used with a BLE device that is acting as a controller-only. Our software on the CC2540 USB Dongle is the HostTestApp application, which implements both the controller and host layers of the stack. You do not need to use standard HCI commands, but rather should use our vendor specific commands, similar to what BTool uses.

    More information can be found in the SW Developer's Guide document.
  • My problem is that I may not *need* to use HCI_LE_Rand, but Bluedroid is sending it out - I can try to prevent this by hacking Bluedroid, but it still seems strange to me that the CC2540 won't respond to a *standard* BLE command, especially as I know it does respond to non-BLE commands that it doesn't support?

    Surely the CC2540 should respond to all standard BLE commands, and if not, why does it not simply respond with bad status, rather than just ignoring the command?
  • <bump> Anyone got any thoughts on this? I'm *hoping* that someone out there might be able to answer me?!
  • <bump> Anyone?  Would really appreciate an answer on this!