Modem Emulation Software

Everything else that doesn't fall into one of the other PB categories.
swhite
Enthusiast
Enthusiast
Posts: 783
Joined: Thu May 21, 2009 6:56 pm

Modem Emulation Software

Post by swhite »

Hi

I have to interface to a piece of equipment that is designed to communicate with a modem. So I was wondering if anyone had done any modem emulation with PureBasic. I can receive the modem configuration the equipment sends but I am not sure what response a real modem would give so I am not sure how to respond. As a result the equipment hangs up thinking that the modem is not working. So I am looking for information on modem emulation. I need to know the sequence of events so that I could write a Purebasic program that would act like a modem. I need to be able to send data to and receive data from this equipment.

Any suggestions or ideas appreciated.

Thanks,
Simon
Simon White
dCipher Computing
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Modem Emulation Software

Post by IdeasVacuum »

While waiting for someone that actually knows what they are talking about (instead of me), you might like to take a look at the MVCOM lib for PB: http://marc.vitry.pagesperso-orange.fr/purebasic
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Fred
Administrator
Administrator
Posts: 18150
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Modem Emulation Software

Post by Fred »

This lib is now included in PB: see 'Serial Port'
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Re: Modem Emulation Software

Post by dhouston »

Modems do as they are told - they have no personality of their own. The specifics of what occurs in any modem link are determined by the communications protocol which will detail the prompts/responses required to establish and maintain the link. Communications protocols will differ from one bit of equipment to another and are specific to that equipment.
http://davehouston.org
Mac Mini (Intel) 10.6.8 - iMac G4 (PPC) 10.4.11
Dell Dimension 2400 W98SE,W2K,XP,Vista,W7,Debian,Ubuntu,Kubuntu,Xubuntu,Fedora,Mandriva,Mint
(on swappable HDDs)
Vizio VTAB1008 - Android 3.1
MK808 miniAndroidPC (Android 4.1)
swhite
Enthusiast
Enthusiast
Posts: 783
Joined: Thu May 21, 2009 6:56 pm

Re: Modem Emulation Software

Post by swhite »

The equipment expects to be connected to a Hayes compatible modem at 2400 baud 7E1. I have no difficulty receiving the data it sends and the protocol of the data is documented so it seems I need to find out what the normal modem responses are to receiving initializations strings etc. so the equipment does not hang-up saying the modem is not configured.
Simon White
dCipher Computing
User avatar
Demivec
Addict
Addict
Posts: 4257
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Modem Emulation Software

Post by Demivec »

swhite wrote:The equipment expects to be connected to a Hayes compatible modem at 2400 baud 7E1. I have no difficulty receiving the data it sends and the protocol of the data is documented so it seems I need to find out what the normal modem responses are to receiving initializations strings etc. so the equipment does not hang-up saying the modem is not configured.
Maybe the Hayes command set is what you are looking for?
infratec
Always Here
Always Here
Posts: 7575
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Modem Emulation Software

Post by infratec »

It's difficult, because the answers depends on the initialization.

Normally the answer to an AT command is 'Ok'.
But after a dial command it is first 'RING' than 'ATA' and 'CONNECT'.

Than it depends on the initialization string if the modem sends echos back or not.

If the modem hangs up it sends an 'ATH'.

The easiest way is to 'listen' a real communication.

Bernd
Post Reply