Answer the question
In order to leave comments, you need to log in
How can I change the SET_CHARS and SET_HANDFLOW values when initializing a COM port in java?
Hello.
I work at an academic institute as a researcher. I work with a delphi program written a long time ago and there is no one to talk to. Its essence is to receive a signal from the weight sensor, process it and control the power of a certain power generator. To do this, the program has a certain device with a microprocessor. I know the desoldering, but I don’t know about the microprocessor. But I have the text of the program. And then I undertook to rewrite it in java.
Now I am engaged in the connection of the program with the microcontroller using the Com port. I am using jserialcomm and jssc library.
I am monitoring the byte stream through the Serial Port Monitor from an old program with a new java program.
I see that the old Delphi program sends
IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_CHARS)
00 00 00 00 00 00
IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_HANDFLOW)
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_CHARS)
00 00 00 00 11 13
IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_HANDFLOW)
01 00 00 00 40 00 00 80 00 08 00 00 00 02 00 00
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question