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

Fix for actisense-serial not starting because open() blocks #9

Merged
merged 1 commit into from Jan 12, 2014
Merged

Fix for actisense-serial not starting because open() blocks #9

merged 1 commit into from Jan 12, 2014

Conversation

tkurki
Copy link
Contributor

@tkurki tkurki commented Aug 22, 2013

First time with canboat & Actisense NGT-1 and actisense-serial would not start.

I traced it down to open(device, O_RDWR | O_NOCTTY) never returning. After a bit of Googling I tried adding O_NONBLOCK and it did start working, got data out all the way to n2kd.

I am using the Actisense FTDI drivers on OS X 10.8.4.

Is this solution universal? Don't really understandwhat causes it, I have very meager C skills and no experience with ftdi or ttys, so if there is a better way to fix the issue please let me know and I'll educate myself.

@keesverruijt keesverruijt merged commit bd658f0 into canboat:master Jan 12, 2014
@keesverruijt
Copy link
Collaborator

Teppo,

Works brilliantly for me as well. Strange that I didn't think of it before. O_NONBLOCK is what I use on Linux for some other serial devices as well, and works for the NGT-1 as well.

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 this pull request may close these issues.

None yet

2 participants