Re: [Eu 3.1]How to send many files to Arduino via USB?

new topic     » goto parent     » topic index » view thread      » older message » newer message
ryanj said...

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, smile . 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu