Re: [Eu 3.1]How to send many files to Arduino via USB?
- Posted by DanM_anew Mar 30, 2014
- 2044 views
It's good to use the same packet format both directions, whether sending large data or something as small as an acknowledgment message. If you use the first byte of the message to identify the message type, you can create a list of message type constants and handle the incoming packets easily with switch/case or if/then statements, and even handle errors and retries easily.
Oh, ok, I see what you mean; I was trying to approach it incrementally, make both sides do a little toward what it needs to do, then a little more, etc, whereas you've taken a programming approach ( ! ), and designed the complete procedure out of whole cloth, . Not sure how much trouble I'll have, though, trying to change Eu code to Uno C plus plus sketch, but I'll work on it, thanks!
Dan