Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dial in on serial modem /dev/ttyS0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Fri Mar 17, 2006 6:11 pm    Post subject: dial in on serial modem /dev/ttyS0 Reply with quote

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
View user's profile Send private message
suidzero
n00b
n00b


Joined: 05 Feb 2003
Posts: 8

PostPosted: Fri Mar 17, 2006 7:22 pm    Post subject: A couple pointers Reply with quote

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
View user's profile Send private message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Sun Mar 19, 2006 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum