Windows Serial Hex GUI
Budget: €8 – €30 EUR
Looking for a small program to send various commands (HEX) to user selected serial port and read response. part of response needs to be converted to decimal and displayed on screen. a total of 6 commands to be sents sequentially. Source code will need to be available at end of project. Programming language is at your discretion providing it can run in a window on windows 10
dropdown box to allow user to select com port
com port must be set to 2400 baud, no parity, data bits 8, 1 stop bits
once com port is confirmed, the program needs to log in over serial using the following hex string:
01 20 01 04 05 00 04 57 86
Example reply 01 20 01 01 01 24 (no action required here)
Folowing this we need to request the user code no.1 using the following hex string
01 90 62 04 00 04 57 01 53
Example reply 01 90 62 04 01 00 0A 08 0A
The last block "0A" is a checksum and can be ignored. the three block before this is what we require "00 0A 08"
This needs to be converted to decimal (eg 00 0A 08 becomes decimal 2568)
display on GUI "User code 1 = 2568"
This gets repeated for:
Read user code 2: 01 A0 62 04 00 04 57 02 64
Read User code 64: 01 80 62 04 00 04 57 40 82
Read Engineer Code: 01 F0 62 04 00 04 57 FF B1
Finaly close the serial connection
01 A0 18 01 01 BB
dropdown box to allow user to select com port
com port must be set to 2400 baud, no parity, data bits 8, 1 stop bits
once com port is confirmed, the program needs to log in over serial using the following hex string:
01 20 01 04 05 00 04 57 86
Example reply 01 20 01 01 01 24 (no action required here)
Folowing this we need to request the user code no.1 using the following hex string
01 90 62 04 00 04 57 01 53
Example reply 01 90 62 04 01 00 0A 08 0A
The last block "0A" is a checksum and can be ignored. the three block before this is what we require "00 0A 08"
This needs to be converted to decimal (eg 00 0A 08 becomes decimal 2568)
display on GUI "User code 1 = 2568"
This gets repeated for:
Read user code 2: 01 A0 62 04 00 04 57 02 64
Read User code 64: 01 80 62 04 00 04 57 40 82
Read Engineer Code: 01 F0 62 04 00 04 57 FF B1
Finaly close the serial connection
01 A0 18 01 01 BB
Related categories:
C Programming
Windows Desktop
C# Programming
Software Architecture
C++ Programming