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.

how to talk and listen to cc2531 slip radio

Other Parts Discussed in Thread: CC2531, CC2650

Hi,

I would like to use CC2531 slip radio as described here http://processors.wiki.ti.com/index.php/Cc26xx_sw_examples with a firmware linked from at the same website in my own nodejs application. When I connected the CC2531 USB dongle to PC terminal software I have no response at all trying a variety of command, which I'm simply trying to guess, like: '!C', '!R', '25', etc. I use 115200.8.N.1 settings

Does anyone know how to talk and listen to it on serial port?

Jan

  • Do you setup 6lbr to communicate with CC2531 Slip Radio?
  • Hi Yikai,

    Yes, 6lbr can communicate with CC2531 Slip Radio OK, but I need to use my own software, not 6lbr.

    Jan

  • I am also looking for related document or information too. However, I don't find any. I am thinking to trace into source code to know it but I don't have a time slot to do it now.
  • Hi,

     

    I am sure the port settings are OK.

    As the dongle works with 6lbr running on Raspberry Pi I did have a look at their code looking for ways how to initialize

    CC2531 USB dongle slip radio. Unfortunately neither TI nor 6lbr responded to my questions.

    The file 6lbr.log contains lines related to SLIP

    2015-08-23 11:18:30.939697: INFO: BR-RDC: Reset SLIP Radio

    2015-08-23 11:18:30.971941: INFO: SLIP: cc2531: Reboot requested

    2015-08-23 11:18:31.943219: INFO: SLIP: cc2531: Setting RF channel 0x19

     

    I was able to find how to reset the radio

    void

    slip_reboot(void)

    {

    LOG6LBR_INFO("Reset SLIP Radio\n");

    write_to_slip((uint8_t *) "!R", 2);

    }

    But not how to set the channel

    The search on entire 6lbr sources for the string “Setting RF channel” didn’t bring any results (???)

     

    Anyhow I might drop that hardware and use another SLIP radio (CC2650 sensotag), but the possibility of software changing RF channel was attractive.

     

    Jan

  • Hi,

    Thanks to Laurent Deru from Cetic, I have the resolution:

    Quoting Laurent:

    "The slip-radio protocol requires that all the commands are formatted using pseudo SLIP protocol, i.e. messages must be ended by SLIP_END symbol, also all occurences of SLIP_END in the message must be escaped using SLIP_ESC (which in turn must also be escaped, see slip.c for the actual symbol value).
    So, when you want to send a command, like set channel 25, you must actually send :

    0x21 0x43 0x19 0xC0"

    Jan