![]() Tramabuild.Append(((Int16)b).ToString("x")) Īs you could notice, I already try to send the received chain exactly as i received it, and even try to convert it to string, and then back to byte array with the exactly same result. StringBuilder tramabuild = new StringBuilder() My code Queue Port1Tail= Port1.lista // a queue of byte arrays received Received chain byte array, converted to string. ![]() When converting the byte array to string, the 02 and 03, values of STX and ETX still there, but when i send the byte array to the other port, it only sends Notice that the sender script (sendersim.py) is just sending one byte at a time. Introduction In the weve seen how to send and receive data on the serial port with Python and plot it live using a pretty GUI. Receiving the data is no problem, but when i try to write exactly the same byte array to the other port, STX and ETX dissapear, and I really can't figure why. Arduino Serial Stx Etx Posted on by admin. I'm trying to receive a chain from a serial port, and writing it to another serial port ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |