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

HARP devices do not connect in embedded Unity workflows #7

Open
RoboDoig opened this issue Nov 25, 2022 · 2 comments
Open

HARP devices do not connect in embedded Unity workflows #7

RoboDoig opened this issue Nov 25, 2022 · 2 comments

Comments

@RoboDoig
Copy link
Contributor

This probably applies to other Serial devices as well.

In a Bonsai workflow run from unity, HARP device nodes / associated branches will not throw errors, but no data will be received from them.

  • Confirmed branch for the HARP device is alive using timeoutexception.
  • Confirmed that other non-connected parts of the workflow are working as normal.

Culprit is likely to be DataReceived callback which is raised on a secondary thread and may not be accessible to Unity runtime.

@glopesdev
Copy link
Member

Related issue in Unity discussions: https://forum.unity.com/threads/serial-communication-and-serialport-datareceived-event.139157/

If confirmed, we'd need to rethink how to workaround the integration.

@glopesdev
Copy link
Member

Another related issue in unity bug-tracker: https://issuetracker.unity3d.com/issues/serialport-bytestoread-returns-null-reference?page=2#comments

An interesting comment can be found in the comment thread "Solved after set Script Runtime Version to Experimental (.Net 4.6 Equivalent)"

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

2 participants