Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Dec 10, 2019 8:58 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: modem communications
PostPosted: Mon Sep 26, 2011 12:05 pm 
Offline

Joined: Wed Apr 09, 2008 7:50 am
Posts: 22
Does anyone know where I can get an example of RB code which will get me talking with a modem?

I want to have computer A call up computer B and transfer some data (usually a file). I am OK with the code required to send and receive the data but am hung up with actually getting the modem to connect, send and/or receive. I have seen many small snippets of code relating to serial comm, but all are targetted to one phase of the process and not the full process of getting the modem up and running.

Can anyone point me in the right direction? (I already have Aaron's piece on serial comm but he targets the Crystalfont and not normal modem communications).

Old Bud


Top
 Profile  
Reply with quote  
 Post subject: Re: modem communications
PostPosted: Mon Sep 26, 2011 3:31 pm 
Offline
User avatar

Joined: Fri Jan 12, 2007 10:59 am
Posts: 136
Location: Victoriaville, QC, Canada
I have dealt with this in the past. Basically, you issue the commands (write to serial port) and read the response (data available).

Before you start, make sure the modem is programmed with/without command echo, reply with codes or words, connect speed, etc. So you should start with some modem initialization depending on the model, make, chipset of the modem. Them issue the ATDT command to dial, then wait for CONNECT/BUSY/NO DIALTONE/... (there are several responses). The "CONNECT" word is usually the signal that you are now in data mode with the other end.

When you want to hangup, you usually write 3 break (I don't recall the ascii number) followed by a one second wait. That switches from data communication with the other end to sending commands to the local modem. Then issue ATH.

Always look for the "NO CARRIER" as it can be issued anytime and that tells you you've lost your connection.

The best way is to actually do it manually in a terminal. Whatever you type, your software must write to the serial port. Whatever is shown, your software must read, recognize and act upon.

That's off the top of my head. Hope it gets you started!

_________________
Bruno Fr├ęchette
PJJ Productions inc.
RealStudio Web & Desktop on OSX


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group