LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-01-2009, 05:54 AM   #1
hwoarang
Member
 
Registered: Aug 2008
Posts: 31

Rep: Reputation: 15
Stopping a PPP connexion


Hi all,

I am currently using a PPP connexion on an embedded ARM board. On this board, there is a RS232 connector where we have Tx, Rx, CTS and RTS. All other signals are not there.

I can establish the PPP connexion but when it is established and I reboot the board, the modem does not detect the end of connexion and when the board boots again, I cannot launch a new PPP connexion. I have to unplug the modem to make it work again.

I believe that the problem comes from the modem not detecting the board's reboot. Since there, the modem does not respond to at commands. Is there some way to handle it, configuring PPP or sending some trame to the modem ?

Thanks

PS : The modem is a Wavecom fastrack supreme.
 
Old 10-01-2009, 06:37 AM   #2
Anarion
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
Hi, I don't know if this is what you need to do, but I use this command for connecting:
Code:
poff dsl-provider
Note: "dsl-provider" is the name of connection, or you can just use "poff" without the name of connection if there's just one active. I also use this one for connecting:
Code:
pon dsl-provider
Hope this helped you.
 
Old 10-01-2009, 10:57 AM   #3
hwoarang
Member
 
Registered: Aug 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for your answer. pon and poff are used to establish a PPP connexion. That works. But my problem is that when I am connected and I reboot my board, the modems seems to be still connected and I can no longer connect it again.

Any idea on how to force the modem to reset ? Or maybe there is some configuration to make it reset when there is no PPP trafic during some time ?
 
Old 10-01-2009, 01:50 PM   #4
Anarion
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
You could add the poff script a way that it will be run at reboot/shutdown... Which will be like this:
1. First, create a script file. let's call it mypoffcmd
Code:
#!/bin/bash
echo "Disconnecting from internet..."
poff dsl-provider
2. make it executable and then add it for halt and reboot:
Code:
sudo cp mypoffcmd /etc/init.d
sudo ln -s /etc/init.d/mypoffcmd /etc/rc0.d/K10mypoffcmd
sudo ln -s /etc/init.d/mypoffcmd /etc/rc6.d/K10mypoffcmd
I haven't tested it yet, the info on how to add a command for halt/reboot time came from http://ubuntuforums.org/showthread.php?t=185261

Just let me know if it works.
 
Old 10-02-2009, 04:47 AM   #5
hwoarang
Member
 
Registered: Aug 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Yes, that should work in case of software reboot. But the problem is that I want that to work even if the board is unplugged while the modem is still connected. After some search, It seems that the modem can be disconnected and returned to the command mode by sending the command "+++". So I made an executable that sends this command to make sure that the modem is ready when I call pppd, no matter about its previous state. Then I send "at+cfun=1" to reset the modem and it works.

Thanks for the help Anarion.
 
Old 10-03-2009, 03:11 AM   #6
Anarion
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
Welcome! but Would you please write what you did to send that command ? I guess I need that too
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The way to internet connexion newsbot Slackware 2 11-21-2007 02:51 AM
slow connexion stephadou Linux - Networking 6 12-02-2004 03:52 AM
internet connexion with GNOME PPP through PCMCIA modem xinelo Linux - Networking 1 10-27-2004 05:16 PM
connexion method dfowensby General 0 09-18-2004 09:47 PM
Connexion problem exalik Linux - Networking 2 04-04-2003 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration