Start: 9:30
- Increased my echo test to do 1000 passes to see if it would continue to run consistently. The RTS state still seems to be sending too many times on pass back from the PC. I was kinda in a rush when I finally got this working on friday, its possible I only fixed this on the arduino side. When this was happening on the arduino, the buffer was becoming completely corrupted because it was overflowing.
- This problem seems to have resolved itself. I think the PC library was never rebuilt after I solved the problem.
- Changed the has data test condition so that data starting with 0 would still work.
- Strangely, if you try to receive a packet of 128 bytes on the arduino, the serial.available() method never returns true, so nothing is read. However, if you send a 127 byte packet and then send a 1 byte messages and have separate calls to the read method for each, it doesn’t have a problem with this. This might be a bug in the serial class but I want it to work this way so its no big deal.
- Flushing the arduinos send buffer after each send causes some issues when the PC was running without delay.
- Added the capability to send data buffers larger then 127. Since the arduino will not let me send 128 bytes at a time, the max buffer size is 508 instead of 512.
- Moved the Data Dictionary into the Communication library since it is necessary for sending of data easily.
- Refreshed my memory on how the import and sending remote data should work.
- Changed these methods to work with the updated comutil methods.
End: 5:30
