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

Auto Reconnenction on Serialpost while plug/unplug device #648

Closed
vishvas-prajapati opened this issue Dec 23, 2015 · 4 comments
Closed

Auto Reconnenction on Serialpost while plug/unplug device #648

vishvas-prajapati opened this issue Dec 23, 2015 · 4 comments

Comments

@vishvas-prajapati
Copy link

vishvas-prajapati commented Dec 23, 2015

Hello,

I am using GSM modem with RPi using USB serailport. When Cable is unplugged then plugged again connection can not be established again. so, Is it possible to reconnect modem automatically?

Thank you.

@sboudouk
Copy link

Same issues here.

@reconbot
Copy link
Member

There is no auto reconnect, but we currently have an issue with not being able to close and open ports under all circumstances. See #670

@reconbot
Copy link
Member

reconbot commented Apr 6, 2016

@vishvas29 @sboudouk We fixed a ton of bugs in our latest beta specifically ones addressing this issue, I think. It will now properly open and close serialports on osx and linux. I don't know what platform you're on.

#733 Please try it out serialport@2.0.7-beta4 and report back!

PS

The close() will remove all event handlers. that's a bad design and will change in the next major serialport version and will very much make reconnecting easier. We've documented this behavior so it's a lot more clear, and we'll have it changed in serialport@3.0.0 probably soon after 2.07 lands.

@reconbot
Copy link
Member

I've added a "auto reconnect" feature to our backlog #746

I'm going to close this issue for now as I think you're in good shape for the closing and opening ports. Reopen or open a new issue if you still have issues!

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants