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.

Which signal (uart or spi) to communicate with a CC1310EMK evaluation module

Other Parts Discussed in Thread: CC1310, Z-STACK, CC2650

Hi, 

I want to connect a CC1310EMK evaluation module to a custom platform.

Over which signals (UART or SPI) should I communicate with it over? It is not clear (at least to me in the documentation).

Thanks

  

  • Hi John,
    What is the firmware that you are running on the device?
    From my knowledge, the default firmware does not provide any interface besides the buttons and the LCD display on the SmartRF06EB.
    Regards,
    Michel
  • Hi Michel,

    I have another intel based MCU which I use to aquire and process data. I then want to pass this data to the cc1310 for transmission.

    I thought that I could connect to the cc1310 and communicate with it via an api for example send_message() ?

    The idea was to use the CC1310EMK evaluation modules fist before I build my own platform with the intel mcu and the cc1310 on the same platform.

    Thanks

  • Hi John,

    The TI-15.4 stack (www.ti.com/.../TI-15.4-STACK) contains a CoProcessor example that can be used to communicate with the CC1310 through a UART interface.

    If you downloaded the latest stack, the prebuilt hex files are in the following folder:
    C:\ti\simplelink\ti-15.4-stack-sdk_2_00_00_25\examples\hexfiles

    The documentation can be located in the docs folder where the stack was installed
    C:\ti\simplelink\ti-15.4-stack-sdk_2_00_00_25\docs

    I haven't looked at the Z-stack which might also contain some examples that you can use through a UART interface (you would have to verify yourself).

    Regards,
    Michel
  • Hi Michel,

    Thank you - this is exactly what I was looking for.

    One further question - are the UART pins exposed on the 20 pin connectors of the CC1310EMK modules?

    In the schematics, on connector 1, the pins are just labeled DIO_0 to DIO_6?

    Regards
    John
  • Hi John,

    It depends on the actual device that you have on the EMK module (I see that there are 3 varieties: 4x4, 5x5 and 7x7).

    If you look at the TI-15.4-STACK-CoP Interface Guide (in the docs folder), there is a table in section 1.2 (Pin configuration) that tells you which pins are mapped to the UART. You could modify the pinout to something else if you want, but you would need to recompile the code given in the example. These are the pins assigned in the prebuilt hex files:

    7x7:  TX DIO_3  RX: DIO_2
    5x5: TX: DIO_0 RX: DIO_1
    4x4: TX DIO_2 RX: DIO_1

    There are also different schematics for each design as well, so make sure you look at the correct one.

    Also, if you have the SmartRF06EB board, the UART pins are directly exposed on the board. Alternatively, you can use the FTDI integrated with the XDS USB connector on the SmartRF board.

    Regards,

    Michel

  • Hi Michel,

    Many thanks for your help with this. I found the documentation.

    Regards
    John

  • Hi Michel, 

    Could I ask you a further question related to this please?

    I have read through the Co-processor interface guide and looked at the co-processor example that runs on the 1310.

    Is there an example application that runs on the host linux machine or microcontroller that demonstrates communication over the Network Protocol Interface (NPI).

    At present I have connected the SmartRF06EB board to a serial line to a ubuntu machine that I will use to write the application/npi interface. An example would be helpful. My application will just sense/process data and pass this to the 1310 to transmit. 

    Kind regards

    John

  • Hi John,

    I haven't worked with the CC1310, but on the CC1310 page there is a link to a Linux Developer's Guide. I think this is what you would be looking for.

    I looked quickly in the TI-15.4 folders and found a Linux folder (didn't really check what it contains).


    EDIT: there is Linux documentation and Linux Gateway documentation. Check in the documentation link above which one applies to your situation. There are some images and explanations.

    Those are probably good starting points.

    If you need more information, you might want to ask the deeper questions in a new forum post. You'll probably get more answers there since the title will be revelant to the question and people will see the new question as unanswered.

    Regards,

    Michel

  • Hi Michel,

    One further question please?

    On page 2-3 of the Network Processor Interface User's Guide (attached below). Its says that the 1310 does not support hardware flow control, CTS and RTS.

    I currently have an FTDI cable (USB to Serial cable) connected from my Ubuntu machine to P412 (UART pins) on bottom right of the SmartRF06 board. 

    However, on page 4 of the NPI guide, its says that "the host must initiate the handshake by asserting MRDY" when sending an asynchronous message.

    The MRDY and SRDY pins are located on P403 on the SmartRF06 board. Therefore should I connect CTS and RTS from the FTDI cable to the MRDY and SRDY pins (by removing the jumpers) ? and the leave the tx and rx pins of the FDTI cable connected to P412.

    John

    swrr143.pdf

    NPI User's Guide.pdf

  • Hi John,

    I haven't used the CC1310, but I know that the CC2650 (similar chip but for 2.4GHz 802.15.4 communication) doesn't need the MRDY and SRDY. The firmware should be very similar in terms of Serial communication.

    So start without the RTS and CTS lines and it should work.

    Otherwise, the RTS and CTS lines are close to the USB connector on the SmartRF06 board. You would have to route those to the RTS and CTS pins on the board with some jumper cables.

    Regards,

    Michel