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
Modem Emulation Software
Modem Emulation Software
Simon White
dCipher Computing
dCipher Computing
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Modem Emulation Software
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.
If it sounds simple, you have not grasped the complexity.
Re: Modem Emulation Software
This lib is now included in PB: see 'Serial Port'
Re: Modem Emulation Software
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)
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)
Re: Modem Emulation Software
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
dCipher Computing
Re: Modem Emulation Software
Maybe the Hayes command set is what you are looking for?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.
Re: Modem Emulation Software
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
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