Start: 10:30
- Working on changes to ComUtil. Since the basic communication should work independent of all the other stuff sent over the wire, the state and size of the potential incoming packet will be transferred in the smallest way possible.
- Made the following changes to ComMgr:
- Made send and recieve as simple as possible so ComUtil does all the heavy lifting
- Took out all buffers at this level. The pointer to the buffer is passed into the methods
- Changes to ComUtil:
- After trying to figure out how to do this and writing and rewriting the same part, I decided to model this class after the typical controller.
- This class does not inherit from controller because I wanted it to be lighter weight
- This class also runs in Master and Slave mode. In the case of this program the PC will always be flagged master and the Arduino will be the slave. The master controls the uid incrementing and the slave always echos.
- A large buffer will be broken into smaller packets
- decided since the buffer was a static size, it made sense to just send the packets in a way to match that size. Its currently send 4 packets of 128 bytes regardless of if its full or not. I can change this later if there are speed issues.
- Finishing up ComMgr(Arduino)
- Designated some flags for blog entries to make finding important information easier.
#IMPROVE: ComMgr(PC) needs a non-blocking receive
#IMPROVE: Send and recieve expect the whole 512 buffer split into 4 128byte parts. This can be done more efficiently if needed.
