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

UARTReplacement doesn't work on Linux (Mono) #3

Open
brett-smith opened this issue Nov 7, 2024 · 0 comments · May be fixed by #4
Open

UARTReplacement doesn't work on Linux (Mono) #3

brett-smith opened this issue Nov 7, 2024 · 0 comments · May be fixed by #4

Comments

@brett-smith
Copy link

I cannot seem to get this plugin working on Linux with Mono as the C# runtime. It is configured to use the ESP only (/dev/ttyUSB0), with Pi disabled.

  • I have some z88dk C code that I know works fine on a Next N-GO.
  • It also works with the default emulated CSpect UART support (up to a point)
  • I know my USB ESP device is working (using cu command to test)

C# is not really my thing, but I did some digging and it appears that this might be a known problem with Mono not supporting the DataReceived (or any) serial events.

This plugin is exactly what I was looking for, so thanks for that. I just couldn't figure out why my binary data was getting messed up when using CSpect and this project gave me the answer. It might take a while, but if I can figure out building C# I'll get a PR together.

brett-smith added a commit to brett-smith/CSpectPlugins that referenced this issue Nov 7, 2024
…ved` events. Instead a thread must be used to constantly read from the serial port. Fortunately, only `SerialPort.cs` needed changing, as it appears entirely safe to pass a null event.
@brett-smith brett-smith linked a pull request Nov 7, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant