With a baud rate of 9600 the PC successfully transmits ~16 packets/second (~800 bytes/sec) which is quiet ok. The host program meassures the number of transmitted packets and display it after 1 second. The Arduino sends this once it finishes processing the actual packet. Once the bytes are sent the host waits for an acknowledgement which is a simple k character. If the validation fails the UNO starts to blink the onboard LED on PIN13. For testing the validity of the transmission i’m sending a simple byte sequence from 0 to 47 which gets validated on the Arduino side. The host sends a d character then 48 bytes of data. I was quiet surprised of that because i’ve read somewhere that the Arduino has a 128byte Serial buffer.Īnyway i’ve made up a very simple protocol which transmits data in 48 byte packets (actually 49 bytes because of the header character). I’ve started sending characters till i reached the maximum which is 63 bytes. I’ve written a very simple program which replies back the result of Serial.available() then tested it in the Arduino IDE’s Serial monitor. For my requirements i have to transfer eta. I’m testing my Arduino UNO’s serial transmission speed. I’ve asked this question on StackOverflow also: I’ve tried to search my problem but haven’t found anything related yet so hopefully i won’t get beaten for opening a new topic.
0 Comments
Leave a Reply. |