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

Windows - Serial Port Detection / Connection #55

Closed
dcherman opened this issue Aug 14, 2012 · 9 comments
Closed

Windows - Serial Port Detection / Connection #55

dcherman opened this issue Aug 14, 2012 · 9 comments
Labels

Comments

@dcherman
Copy link

Detection:

In recent versions of SerialPort, there's support for listing available Serial Ports via SerialPort.list(function( err, results ) {})

I don't have access to a native linux / unix box to test support on there right now ( having problems with my VM ), but as for port detection, this works perfectly on Windows.

Connection:

Attempting to connect to a valid but non-arduino Serial Port results in app looking like it's hanging. Still looking at this to get more details on what's going on - if you connect explicitly to a valid arduino port, things seem to work fine ( the basic blink app works! )

@rwaldron
Copy link
Owner

Awesome!

@randallagordon
Copy link
Contributor

I've been able to use the list method to get detection/connection working on my Windows and Ubuntu machines. I don't have an OSX machine around to ensure it is working properly there, however. Not sure if it's an acceptable change, but take a look and let me know if everything looks good:

https://github.com/randallagordon/johnny-five/tree/windows

@rwaldron
Copy link
Owner

rwaldron commented Mar 5, 2013

@randallagordon can you make a PR :D

@randallagordon
Copy link
Contributor

Will do!

@rwaldron
Copy link
Owner

rwaldron commented Mar 5, 2013

YES! Exciting :)

I don't have any way of testing windows, so we're going to have to work together on ironing this out, I hope you have you're ready to be super patient ahah

@rwaldron
Copy link
Owner

@randallagordon I had to make an executive decision between landing this or #111 first. Based on how minimal your changes are, I decided that you might not mind if I did #111 first and then you could re-apply these changes? (sorry if that's a total pain in the ass)

@rwaldron
Copy link
Owner

Ok, I just tried merging this myself and I think we're better off letting you do it. Be warned, there is a lot of whitespace and large code movement changes, but I think your patch can still be easily written in. (sorry for messing this up)

@randallagordon
Copy link
Contributor

No prob, that's the way I would have gone! However, it will be week or two before I can get around to it as I'm in the middle of moving at the moment.

I believe that #111 will allow for us Windows folks to specify a COM port and be good to go, too. Not quite as nice as auto detection, but I think it should work. Now that it has been merged, I'll give it a shot as soon as I get back to an Arduino.

@rwaldron
Copy link
Owner

No prob, that's the way I would have gone! However, it will be week or two before I can get around to it as I'm in the middle of moving at the moment.

I'm patient :)

I believe that #111 will allow for us Windows folks to specify a COM port and be good to go, too. Not quite as nice as auto detection, but I think it should work. Now that it has been merged, I'll give it a shot as soon as I get back to an Arduino.

Indeed—this is actually why I decided to land that one first, but you're right: windows needs the auto-detection! I'll keep my mits out of Board until you wrap this up :)

Thanks again for this!

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

No branches or pull requests

3 participants