Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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:
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 ?
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.