Hello,
We are working on a wireless sensor application where we read a sensor via the CC3200 SPI and then relay the reading back to our computer DAQ software via a UDP packet. We'd like to achieve an overall sample rate of the sensor of 5kS/s. We're able to achieve 80kS/s via SPI only. I modified the UDP example such that a timer is enabled for a specific sampling frequency. The timer ISR then samples the sensor via SPI and sends a UDP packet consisting of a counter and the sensor reading. The code functions correctly at low sample (timer) frequencies and low packet counts, but inconsistently hangs with increasing packet counts and timer frequencies. Anything above 1kHz hangs quickly and the code sometimes hangs with frequencies as low as 200Hz. I know the UDP packets aren't very efficient since we only have 6 bytes of data with a 48 byte header; however, our DAQ software plugin recognizes a single sample per packet, so this is the easiest for us to implement.
Questions:
1) Any help establishing the maximum UDP packet rate would be appreciated. We're seeing the application hang at moderate speeds of 200Hz.
2) Any recommendations for achieving a higher throughput are appreciated.
Application information:
CC3200MODLAUNCHXL
DeweSoft 7.1 DAQ software with ethernet receiver plugin