Closed mjs513 closed 7 years ago
Here is a quick update. I set the debug level to 4 and reran the sketch. What appears to be happening is that after I send a second command, it will print to the serial port the command and continues in the loop to send data, but nothing comes across the connection to the pc, I am using Packet sender to test, here is a piece of the serial output before and after the second command is received:
SEND OK
Data packet 3 1 Received packet of size 1 From 192.168.1.5, port 2108 Contents: v FreeIMU library by Fabio Varesano - varesano.net, FREQ:16 MHz, LIB_VERSION: DEV, IMU: Microduino IMU
sendDataUdp: 3 181 sendDataUdp: 192.168.1.5 2108
OK
Recv 181 bytes
SEND OK
sendDataUdp: 3 181 sendDataUdp: 192.168.1.5 2108
OK
Recv 181 bytes
Don't know what is happening. THanks Mike
Ok. Got it solved. I used a second port to send data on while the first port reads the commands. I also used a test for whether the second remote port is available.
Just as background I am using a microduino wifi module stacked on a microduino core+. I flashed the firmware to version 1.3.2 and am using your library to stream IMU data (186 bytes) from a 10dof IMU on the stack. I have used similar code for a LinkNode D1 and a ESP32 dev board so I know it should work.
Everything connects up fine no issue I can send commands from the PC to WiFi module and it sees it no issue. Now for the problem. After the wifi receives the first packet it starts streaming the data from the IMU with no issue. Now, if I issue another command from the pc to the wifi (e.g. command sent to zero gryros) the data stops and doesn't start again but the it can still receive additional commands from the pc. I am stumped since it does continue with the other libraries.
Listed below is the sketch that I am using.
Thanks for your help.