Page 1 of 1
Serial modem
Posted: Mon Aug 20, 2007 12:11 pm
by salil_bhagurkar
Hello guys... I have a dialup modem connected on my serial port.. I wanted to do some network programming on my os.. So could you please guide me on how to program the modem...
Posted: Mon Aug 20, 2007 12:21 pm
by Brynet-Inc
Most Serial or ISA modems respond to AT commands..
So just Google: "AT modem commands"
You may also want to read up the protocols used for dial-up networking,
PPP is common.
Have fun...
![Cool 8)](./images/smilies/icon_cool.gif)
Posted: Mon Aug 20, 2007 12:29 pm
by salil_bhagurkar
So do i send these commands directly to the serial port or do i have some other protocols to use? (apart from modem ack and all..)
Also please tell me about how to go about networking after i am able to program the modem (the basics please..)
Posted: Mon Aug 20, 2007 12:45 pm
by Brynet-Inc
I think the following Wikipedia article will clear a few more things up...
Hope it helps, apologies for not being able to explain it myself in more detail..
http://en.wikipedia.org/wiki/Hayes_command_set
http://www.modem.com/general/extendat.html
Most of the "Standard" commands should be accepted by most modems, Your modem may have extensions.. and I think there is a way of "asking" your modem to display them.
Posted: Mon Aug 20, 2007 12:57 pm
by salil_bhagurkar
Sorry if i am bothering u too much.. But i have understood the modem... I need some basics on networking at core level... (IP implementation)...
Posted: Mon Aug 20, 2007 1:01 pm
by Brynet-Inc
Posted: Mon Aug 20, 2007 3:25 pm
by pcmattman
salil_bhagurkar wrote:Sorry if i am bothering u too much.. But i have understood the modem... I need some basics on networking at core level... (IP implementation)...
I'd implement an ethernet card driver first, then you can build the layers of functionality over the top of that (just work within your LAN for the time being, it's much easier to debug).
The network layers should be written in such a way that they send/recv packets via an interface, so that they work for any device that sends or receives packets (that way you could have eth0, eth1, mod0 all using the same higher-level code).