Timeline for Arduino Serial.write sending more than 64 bytes
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 21, 2015 at 12:07 | vote | accept | CommunityBot | ||
Aug 21, 2015 at 11:28 | comment | added | Nick Gammon♦ |
More information: sendEncoderData() is called by an interrupt service routine. - this is absolutely crucial information, which is why I linked you to snippets-r-us.com. If you had said "In an ISR I am calling this line of code ..." I would have been able to answer you straight away.
|
|
Aug 21, 2015 at 10:46 | answer | added | Majenko | timeline score: 2 | |
Aug 21, 2015 at 10:04 | history | edited | user11933 | CC BY-SA 3.0 |
added more details to the question
|
Aug 21, 2015 at 9:44 | comment | added | Nick Gammon♦ |
I(t) would be a snippet if ... - OK, let's say you turned interrupts off. You may have, you may not have. With them off things would be different than if they were on. It may not seem important to you, but to us, it is. You are the one asking the question. It is up to you to supply as much information as you can to get a good answer.
|
|
Aug 21, 2015 at 9:37 | history | edited | Nick Gammon♦ | CC BY-SA 3.0 |
Added C++ language formatting tag, added Due tag.
|
Aug 21, 2015 at 9:36 | comment | added | Nick Gammon♦ |
This only seems to work - define "work". It hangs? Only 64 bytes are transmitted? If so, which? The first 64? The last 64?
|
|
Aug 21, 2015 at 9:30 | comment | added | user11933 | @NickGammon, I would be a snippet if Serial.write() is supposed to be capable of sending more than 64 bytes at a time. If that's the case: 1. My assumption was wrong and perhaps you could have pointed it out. 2. I will post more code and details. | |
Aug 21, 2015 at 9:23 | comment | added | Nick Gammon♦ | That's a snippet, isn't it? snippets-r-us.com | |
Aug 21, 2015 at 8:42 | review | First posts | |||
Aug 28, 2015 at 20:54 | |||||
Aug 21, 2015 at 8:37 | comment | added | Ignacio Vazquez-Abrams | Have you tried sending in 64-byte chunks? | |
Aug 21, 2015 at 8:33 | history | asked | user11933 | CC BY-SA 3.0 |