Skip to content
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

Problem with Baud selected in UARTReplacement (again Mono on Linux) #5

Open
brett-smith opened this issue Nov 7, 2024 · 0 comments

Comments

@brett-smith
Copy link

After fixing the problem with the DataReceived event not working, I was presented with a new problem. It appears that the baud rate selection code is not working correctly with my setup.

My zx88dk code is selecting the ESP and setting the baud rate of 115200. I see the log output from CSpect saying that 115384 is actually being selected.

However, while I am getting data back, it is garbage.

I found that if I change everywhere in Serial.cs that sets port.baudrate to just ignore the calculated value, and hard code it as 115200, everything starts working. I suspect that it may be a combination of the hardware I am using on the PC side, and maybe I am using this in a different way to intended.

I am using an EPS8266 with a USB adapter, specifically this one. https://www.amazon.co.uk/dp/B08QMMGZLB?ref=ppx_yo2ov_dt_b_fed_asin_title&th=1 on Linux Mint 22.

As stated in the Wiki for this project, the AT+UART+CUR? command will actually report 115384, but I can only get it to work if it set the USB serial port device to exactly 115200.

The cu command also complains if I attempt to use 115384, it will only accept 115200.

For my use case, really I don't care what speed it is actually using between the emulator and the real ESP hardware. So my hack is fine for that. I wonder if this plugin may benefit from an option to just use a fixed baud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant