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.

cc2540 serial communication

Other Parts Discussed in Thread: CC2540

Hello..

I am using cc2540 usb dongle. It works via the usb port.

But if I need to send the commands via the serial port, can this be done with the dongle??

If so, do I need to make any modifications in the s/w code of the dongle?? We have been provided with only the hex code of USB dongle.

If I want to make my own board to act as the master, can I flash Simple BLE Central code?? Will this work??

Please look into this and reply

Thanks

  • Hi,

    Gautham Kannan said:
    But if I need to send the commands via the serial port, can this be done with the dongle??

    Yes, it's called Virtual UART over USB and it's implemented in the HostTestRelease firmware.

    Gautham Kannan said:
    If so, do I need to make any modifications in the s/w code of the dongle??

    Yes, if you want to support your own proprietary commands.

    Gautham Kannan said:
    We have been provided with only the hex code of USB dongle.

    No, project is available at stack default install directory \BLE-CC254x-1.3\Projects\ble\HostTestApp.

    Gautham Kannan said:
    If I want to make my own board to act as the master, can I flash Simple BLE Central code?? Will this work??

    If you mean Board as in USB Dongle, then no... it will need to be modified. I have no straightforward way to describe the method other than suggest you compare to the HostTestRelease code.

    If you mean you own designed board, then probably... but you'd need to re-direct the HAL to proper peripheral functionality (LEDs, buttons etc.)

    Best Regards