With modems sleep can help a lot ….

Just been at a customer trying to fix a problem with a really old wavecom modem that seem to malfunction after detaching from the gsm layer. This worked fine:

detach gprs

attach gprs

start pppd

… and this failed in a script:

detach gprs

detach gsm

attach gsm

attach gprs

start pppd

But worked when executing the commands (bash functions that wrapped the various chat scripts) one by one …. strange. Not really. Timing problems, as usual!
OK, so we added a small sleep (1 second I think) after attaching to gprs. Et voila. it worked again.

…. modems modems modems. Can’t live with or without them😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s