?
Solved

PPPD modem init

Posted on 2013-05-15
10
Medium Priority
?
486 Views
Last Modified: 2013-06-03
Hi,

I'm running  a system that connects to the internet via GPRS modem using pppd.
It seems that the cellular operator refuses to accept new connections after several days that the system is connected.

I found out that this situation can be fixed by re-register to the network (using AT+CFUN command).

Is there any "automatic" way to configure the pppd options to send a specific script (using chat) in order to initialize the modem after several connection fails?

Please note that I don't want to add it to the connect script since I don't want it to run on every connect attempt - only after several fails.

Thanks.
0
Comment
Question by:Eyall
  • 5
  • 5
10 Comments
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 39173106
If this is a USB modem with a separate AT port(*) then you can do it with a cron job.
We do that sort of thing with 3G modems - periodically poll them for signal strength and also for received SMS (every 2 seconds actually).
For the Windows Embedded systems, I wrote a little program to do the actual sending but you could probably use chat.
Since this system works outside of ppp, you might want to have an interlock so it doesn't run when ppp is connecting, but the likelihood of a clash is quite small and the consequences may not be serious.

* Separate AT port to the port actually used for data transfer (typically these modems have 3 ttyUSBs associated with them)
0
 

Accepted Solution

by:
Eyall earned 0 total points
ID: 39199155
Sorry for my late response. Unfortunately, the modem has only one serial port (no USB).
There are no other comments, so I will run the initialization script manually.

Thanks anyway.
0
 

Author Comment

by:Eyall
ID: 39199828
I've requested that this question be closed as follows:

Accepted answer: 0 points for Eyall's comment #a39199155

for the following reason:

No solution was given.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 35

Expert Comment

by:Duncan Roe
ID: 39199829
I had not realized this was a real serial modem until you posted a response this morning. It is a bit premature for you to claim that No solution was given when you had not responded to my previous post. Let me think about this.
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 39199836
This does sound like a candidate for a solution involving expect. Can you post the output from a failed session and the output from a good one please?
0
 

Author Comment

by:Eyall
ID: 39200735
From the application point-of-view - fail session means unable to establish a ppp connection.
It may happen because of several reasons so an output from fail/good session is not relevant.

My question was focused on pppd options without any additional software.
I guess that if such an option exists - I would get tons of comments about it.

I asked to close this question because it seems that the easiest way is to modify the ppp-up script after several fail retries without any additional tool.
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 39200796
I feel confident that you could automate the process with expect. But if you don't want to go that way, well that's your choice.
0
 

Author Comment

by:Eyall
ID: 39201609
I think that expect is an overkill for this problem and it might be a huge headache to compile it into my system. It's an old Embedded linux distribution that runs on a proprietary PowerPC hardware.
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 39202971
OK
0
 

Author Closing Comment

by:Eyall
ID: 39215591
No solution was given, using the pppd options as requested.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month16 days, 14 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question