-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with serial port on Win9x hosts #610
Comments
Even easier way to reproduce: http://copy.sh/v86/?profile=windows31 |
Update: apparently, after each data receive the |
Update 2: calling ThrowInterrupt manually doesn't always fixes the problem, but commenting this line does: |
I can reproduce this issue. Unfortunately, I don't know a proper fix. The code is shared with jor1k: https://github.com/s-macke/jor1k/blob/e07dbe1/js/worker/dev/uart.js#L215 |
While the JS->Win communication works without any problem, sending things from the guest to the hosts works only on the first call.
If I set an event handler on the JS side with
emulator.add_listener("serial0-output-char", console.log);
and I try sending multiple data from the windows side (usingWriteFile(hComm, data, length, &written, NULL);
), only the data of the first WriteFile gets received. I've tried multiple combinations of stop bits, baud rate, timeouts, flow control. In QEMU, instead, it works fine.This can be further reproduced with the Windows 98 example, using HyperTerminal (http://copy.sh/v86/?profile=windows98):
The first letter wrote using HyperTerminal is received in the serial console, while all the other ones are not. Communicating from the host to the guest, though, works perfectly.
Any pointer? Thanks!
The text was updated successfully, but these errors were encountered: