Answer the question
In order to leave comments, you need to log in
IRP_MJ_DEVICE_CONTROL - how to work?
Programming for a serial port, in the process of catching bugs, I faced the need to go down to the channel protocol layer.
This is where my problems started.
IOCTL_SERIAL_SET_BAUD_RATE 80 25 00 00 - this means baud rate 9600. But 00 c2 01 00 - it turns out to be 115200. Then I guessed at random.
But IOCTL_SERIAL_SET_TIMEOUTS 32 00 00 00 05 00 00 00 00 00 00 00 60 09 00 00 00 00 00 00 is how much? And what is the range of acceptable values? Read MSDN - Setting Read and Write Timeouts for a Serial Device. They write anything, but there is not a single number !!! And in general, how to work with all this correctly?
Answer the question
In order to leave comments, you need to log in
Structure. You can understand by the number of bytes.
https://docs.microsoft.com/en-us/windows-hardware/...
Necro, but perhaps someone will shorten the search time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question