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.

sensor interfacing with CC2540 dongle using UART

Other Parts Discussed in Thread: CC2540

hi.

I have a sensor  which has UART interface. I want to connect this sensor with CC2540 UART. How can be done this?

I have different sample applications of BLE taken form TI software download. Which sample application i can use for this.

  • Hi Rahul,

    You can find details on the UART interface (pins etc.) in the CC2540 User Guide which you can download from the CC2540 product page.

    SimpleBLEPeripheral is a good project to start with. You can also look at HostTestApp for the UART part.

    If you have not done it already, check out all the information on the BLE wiki page: http://processors.wiki.ti.com/index.php/Category:BluetoothLE

    Cheers,

    Fredrik

  • hi fredrik,

    i use the simpleBLE peripheral project for uart communication on CC2540.

    I take serialapp2 project form ti-wiki. merge it with simpleBLEPEripheral application. and download hex file into CC2540. As I download it , it stop communication means as I plug CC2540 into PC it will not able to detected in PC.

    i also takeout  rx,tx pin from test pin and vcc,ground form USB then make RS232 DB female connector with voltage converter. then opening minicom with /dev/ttyS0 and  desired baud rate.

    I use HalUARTWrite() API in function simpleBLEPeripheralInit() function at begining to write on uart. But not getting any data on  test pin or on minicom.

    I also tried above procedure with HostTestApp project. but as execution goes to HciExtAppInit(), detected com port is removed automatically.

    My questions are:

    1.)  can you tell me what can I do to get data using uart, I want to write some constant data on it.

    2)  Is there any configuration or intialization problem? if yes then tell me where i can initialize or congigure it. I see the code flow, as I understamd it will initialize usrt in HalDriverInit().

    3)  in HostTestRelease project if I want to write directly USB buffer where i can find it? if is possible to get data on serial port by writing directly on USB buffer.

    please update as soon as possible because i am stuck in this since 15 days