D
D
DD-var2020-02-02 02:42:52
C++ / C#
DD-var, 2020-02-02 02:42:52

How to send to comport?

you need to send this array of bytes to the computer port and get an answer byte[] ak = { 00, 03, 01, 00, 00,0C, RCR };
swears at 0C and RCR that these are not bytes. can you tell me how to do this??? and how then to accept the answer from MK? And how to see if the bytes reach the comport?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2020-02-02
@yarosroman

RCR is definitely not a byte, it's not even a hexadecimal number. 0C change to 0x0C. To work with a COM port, use the SerialPort class https://docs.microsoft.com/en-us/dotnet/api/system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question