View previous topic :: View next topic |
Author |
Message |
Rooney Apprentice


Joined: 07 Aug 2003 Posts: 193 Location: Sheffield, UK
|
Posted: Fri Mar 17, 2006 6:11 pm Post subject: dial in on serial modem /dev/ttyS0 |
|
|
i have a serial modem attached to /dev/ttyS0 and i would like to dial in to my gentoo server in case of broadband outage etc,
can any one point me in the right direction as i have looked in to this in the past and had no joy. |
|
Back to top |
|
 |
suidzero n00b


Joined: 05 Feb 2003 Posts: 8
|
Posted: Fri Mar 17, 2006 7:22 pm Post subject: A couple pointers |
|
|
You'll have to take care of two things. First, you need to set up your /etc/inittab file to allow the connection. Something close to this, probably:
s0:2345:respawn:/sbin/agetty 9600 ttyS0
Then you need to attach your modem and program the modem to answer incoming calls. This list of AT commands seems to do the trick:
atf0
at&k0
ats0=1
at&d0
ate0
atq1
at&w
at&w0
at&w1
at&w2
at&v
I'm a little sketchy on what all of these do, but basically they tell the modem to answer on the first ring and save the settings to survive a power cycle.
This works for me, but may not for you, use at your own risk, etc...
Hope this helps! |
|
Back to top |
|
 |
Rooney Apprentice


Joined: 07 Aug 2003 Posts: 193 Location: Sheffield, UK
|
Posted: Sun Mar 19, 2006 8:04 pm Post subject: |
|
|
thanks for this it is helping although im a little unfamiliar with the AT commands but the modem doesent accept the * ones.
* atf0
* at&k0
ats0=1
* at&d0
ate0
atq1
at&w
at&w0
at&w1
at&w2
at&v
do you know if they are important or not. |
|
Back to top |
|
 |
|