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.
Hello,
I am using the CC3100BOOST WiFi along with the TM4C1294NCPDT LaunchPad to connect to a python application running on my computer. I have configured the python application as a client, while the launchpad acts as the server, in a TCP connection.
The problem I am facing is that I need the Launchpad to read data sent by the python application immediately (interrupt-based instead of polling). While I did try looking into the documentation available, I could not find any asynchronous event triggers defined for the CC3100 module, which could notify the controller of any data received by the CC3100 chip.
Is there a way to get around this by modifying the CC3100 files to generate an interrupt on receiving data into its buffer? Any leads or suggestions on this would be appreciated.
Thanks.
Hi,
If you are using an RTOS, then calling sl_Recv() with a blocking socket is exactly what you are looking for.
The sl_Recv will return based on NWP interrupt indicating that data was received.
You can use sl_Select for monitoring multiple sockets.
If you are not using RTOS or can't use the blocking API, you will can add a hook in the Simplelink driver within the interrupt handling code (_SlDrvRxIrqHandler in driver.c) that will serve as your async event.
Br,
Kobi