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.

Questions about Transceiver mode (CC3100)

Other Parts Discussed in Thread: CC3100, CC3200

Hello!

I made 2 devices operating in the Transceiver mode (I used the example transceiver_mode). STM32+CC3100.

Please answer the 4 questions:

1 - Why between end function sl_Send() (first device) and the interruption (pin IRQ) in the function sl_Recv() (second device) 4,5 ms more. Can I somehow reduce?

2 - Can I replace the function sl_Recv() to read whether there is data in the receive buffer (Flag of reciption)?

3 - Why, if I put the time timeval.tv_usec = 10000, the function sl_Recv() keeps 300us? (Sometimes it is 10ms or 20ms). How do I get always been 300us or less?

4 - Can I add data encryption to this mode? What? How?

  • Hi Mikhail,

    1 - Are you using CCA?
    2 - I'm not sure what you mean by this. Are you trying to modify sl_Recv()? You should not modify the driver.
    3 - Are you using a blocking receive? You should be able to achieve the 300 us timeout by setting the tv_usec value to 300. Make sure you also initialize timeVal.tv_sec = 0;

    4 - Encryption of data would have to be added by the user application since Transceiver mode requires the user to create the protocol.

    Best Regards,
    Ben
  • Hi, Ben!

    1 - What is CCA?
    2 - I do not modify sl_Recv()! The function sl_Recv() waits for an interrupt. I do not want to wait! I want to know is there anything in the receive buffer! Is that possible?
    3 - But "SimpleLink CC3100/CC3200 Host Driver Version 1.0.1.6" says that you can only set multiple of 10000 microseconds (Socket->sl_SetSockOpt->SL_SO_RCVTIMEO). Am I wrong?
    I set timeval.tv_usec=10000 (timeval.tv_sec = 0), but he is waiting for 300 microseconds (Sometimes it is 10ms or 20ms)! Why?