Serial port comm speed?
RicardoP
Posts: 13
Another begginer question from me
So I setup a little C# app on my PC that talks to the a properller. But if I don't put pauses in between the bytes being sent (about 20ms) I seem to "lose" some of them. Why is this? I'm using the FullDuplexObject which seems to run on its own cog so it should be going fast. Is there any way around this? I need to send this data very fast. If it makes any difference, this is a 1-way communication in that the PC sends data to the propeller but never the other way around. (altho doing some tests just for fun revealed the same problem, the PC was not getting all packets unless I put delays)
I'm having a ton of fun with the propeller btw!
Thanks.
So I setup a little C# app on my PC that talks to the a properller. But if I don't put pauses in between the bytes being sent (about 20ms) I seem to "lose" some of them. Why is this? I'm using the FullDuplexObject which seems to run on its own cog so it should be going fast. Is there any way around this? I need to send this data very fast. If it makes any difference, this is a 1-way communication in that the PC sends data to the propeller but never the other way around. (altho doing some tests just for fun revealed the same problem, the PC was not getting all packets unless I put delays)
I'm having a ton of fun with the propeller btw!
Thanks.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Parallax Forums - If you're ready to learn, we're ready to help.
But 20ms is a lot... When you use SPIN to process the bytes you seem to have more than 2.000 SPIN instructions for each byte
can handle over 1Mbps, in one direction.
If you start reading and writing at that speed, the ping-pong
multitasking starts dropping bits.