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.

Network of CC1200 nodes

Other Parts Discussed in Thread: CC1200

Hi,

  I want to create a simple network of, let's say, 2 to 10 nodes with each node having CC1200.

  By default all nodes would be in RX mode. One of the node, then, would decide to transmit. The transmitted packet would be received by all the other nodes. Once this is done, the transmitting node would switch back to RX mode.

  Is there any sample source code for the TX and RX routines ?

  My understanding is that the LBT feature will ensure that two nodes will not TX at the same time.

  I've already looked through the sample code provided in swrc274a but my understanding is that it allows to configure a node in only TX or RX mode, not to switch automatically to RX once TX is done. I tried auto RX and auto TX on my own but it doesn't seem to work well. So I'm looking for some samples for the same.

Thanks in advance!

Ngupta

  • Naresh,

    I suggest taking a look at Contiki or even considering using it as a base for your development. It contains drivers for CC1200 and it contains CSMA routines already developed.

    github.com/.../contiki

    PS : You do not have to use the 6LowPAN features of Contiki, you could decide to just use the RIME stack, which could do basically what you are asking for.

    Regards,
    /TA

  • Hi TA,

       Thanks for the prompt response !

       I looked up the contiki code and it certainly looks interesting in the long term though it looks a bit complex.

       In the short term, I'm looking for something very simple which I can fit into my environment (There is no RTOS in my environment. I'm ok to use polling instead of interrupts though both are supported on the platform.). So I'm looking for Rx, Tx routines with which I can set the radio mostly in RX and in TX on need basis. I'm already able to do either only RX or only TX. The problems start occurring when I try to do these in an interleaved manner.

    Best Regards,

    Ngupta.