busterkvm.blogg.se

Serial protocol stx etx
Serial protocol stx etx





serial protocol stx etx

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.1 Project name Version Responsible Last revision Editor Harald Lenz C. StringBuilder tramabuild = new StringBuilder() My code Queue Port1Tail= Port1.lista // a queue of byte arrays received Received chain byte array, converted to string.

serial protocol stx etx

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

serial protocol stx etx

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. I'm trying to receive a chain from a serial port, and writing it to another serial port







Serial protocol stx etx