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.

why can the CC2540_USBdongle can be a serial virtual com port??

Other Parts Discussed in Thread: CC2540, MAX232, CC2541

I have a CC2540_USB_dongle. While i program sniffer_fw in it, it can't be a serial virtual com port.

What a strange, if i program the CC2540_USBdongle_HostTestRelease_All.hex in it . 

It can be recognised a serial virtual com port!!

There is no uart-to-usb chip in the dongle.What's more i can no find any rs232 converter chip,like max232 on the dongle.

How the CC2540_USBdongle can be a serial virtual com port???

Just only by using the usb controler, which is in CC2540 chip? 

OK, anyway, If just only be a virtual serial com port by using usb controler, I want to send data to the PC. How to program it,

is that any example?? 

I have looked through HCI_API_user_guide, but i can not find any api that i can send data to PC. So that the pc just receive 

the data from a teriminal,like Putty.

  • Janka Lon said:

    I have a CC2540_USB_dongle. While i program sniffer_fw in it, it can't be a serial virtual com port.

    Correct - it uses a different protocol over USB.

    Janka Lon said:

    What a strange, if i program the CC2540_USBdongle_HostTestRelease_All.hex in it . 

    It can be recognised a serial virtual com port!!

    There is no uart-to-usb chip in the dongle.What's more i can no find any rs232 converter chip,like max232 on the dongle.

    How the CC2540_USBdongle can be a serial virtual com port???

    Just only by using the usb controler, which is in CC2540 chip? 

    Yes, the CC2541 implements a USB CDC (communication device) that can be driven by the standard CDC driver available in most operating systems (WIndows, Linux, MAC)

    Janka Lon said:

    OK, anyway, If just only be a virtual serial com port by using usb controler, I want to send data to the PC. How to program it, is that any example?? 

    I have looked through HCI_API_user_guide, but i can not find any api that i can send data to PC. So that the pc just receive the data from a teriminal,like Putty.

    Look in the TI_BLE_Vendor_Specific_HCI_Guide.pdf document for the protocol.  If you use BTool, you'll see the actual data dumps for commands and events.

    Good luck!