10:00: The first two hours today were devoted to getting paperwork in for my clearance. Lots of headaches with scanner and both gmail and fgm mail but it is hopefully done for the final time.
Start: 12:00
- I still don’t really understand how something can get there first if the receive method is called after the send method. If the receive method was on a separate thread then it could just constantly loop til it receives something, but this is not the case and I am not sure if the arduino is capable of multi-threading. So the way I decided to make it work is have both sides send their messages and then process them from the buffer into their appropriate remote message buffer. After this point the master gets the first opportunity to receive a response and the slave the first chance to send a response. Once whatever process is done the roles get reversed. This essentially works the same way as you described yesterday, but prioritizes the Ready to Send state to the master first.
- I believe both PC com and arduinos com are technically on their own thread-like thing. The issue is if too much is sent before the arduino gets to process it, it will overflow. This is not really an issue on PCs because they have much larger buffers.
- Working on revising tests for new set-up
End: 6:00
