User Profile
Collapse
-
Great that makes more sense now, Thanks for the clever code! -
C# serial port programming help
Hello I am writing a program for my final year project at uni attempting to communicate with a CTG machine via an RS232 interface. I have the documentation of the machine and have set the correct properties of the port in the code and also in the properties of the port through my computer.
There is no handshaking.
I am trying to send a block in the form of
The data code for G-mode (auto send mode) is:
... -
C# help padding Byte with zeros
Hello I am quiet new at C# programming so would appreciate any help. I am writing a program to communicate via RS232 with a machine and need to send it a packet in the form:
Code:{ <DLE> , <STX> , "G" , <DLE> , <ETX> , <CRC> , <CRC> } byte[] byteToSend = new byte[] { 0x10, 0x02, 0x47, 0x10, 0x03, CRC , CRC };
No activity results to display
Show More
Leave a comment: