kinisi / kinisi-agent-nodejs

Kinisi Agent written in NodeJS
MIT License
1 stars 0 forks source link

USB GSM Huawei E173 does not reconnect to network after disconnect #7

Open aeratek opened 9 years ago

aeratek commented 9 years ago

Huawei E173 dongle is able to successfully connect to T-Mobile network using current configuration/code. When in a low-coverage area and it disconnects, it does not reconnect to the T-Mobile network, until the device is restarted.

transistorize commented 9 years ago

I was reading this FAQ in the GPSD documentation, and it might explain why this Huawei dongle behaves this way, for the same reasons: http://www.catb.org/gpsd/faq.html#sleep

aeratek commented 9 years ago

Ok. I think you're saying that this paragraph is the relevant one that gives us next actions in trying to resolve both the GPS and GSM dongle reconnection issues:

There is a solution to this problem: create a stable gps-usb device that is actually a symlink which gets modified by hotplug events, and give gpsd that device when you invoke it. You'll need these replacement udev rules http://www.catb.org/gpsd/70-persistent-usb-gps.rules [1], and the experience required to patch them so the vendor ID in the last one matches your GPS hardware (look in your lsusb output).

[1] http://www.catb.org/gpsd/70-persistent-usb-gps.rules

On Mon, Jul 21, 2014 at 2:14 PM, Bryan Valentini notifications@github.com wrote:

I was reading this FAQ in the GPSD documentation, and it might explain why this Huawei dongle behaves this way, for the same reasons: http://www.catb.org/gpsd/faq.html#sleep

— Reply to this email directly or view it on GitHub https://github.com/kinisi/kinisi-agent-nodejs/issues/7#issuecomment-49643514 .

trevorcarlson commented 9 years ago

Guys,

From my experiments, the modem automatically gets assigned to the /dev/gsmmodem device when it is configured properly. Can you double-check that that link is being set up? We then just have to update the scripts to point to there (See the kinisiinternet script that I recently updated [1]) and we'll be set to go (with an auto restart function added as well).

[1] https://github.com/kinisi/kinisi-agent-nodejs/blob/master/scripts/kinisiinternet

aeratek commented 9 years ago

I started up a Raspberry Pi B+ with the USB dongle in the top-most USB port (same physical location as the Raspberry Pi model B, but the B+ has two additional USB ports next to it in the corner now). I went to /dev/ and didn't see a /gsmmodem link set up.