Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 1675
Number of posts: 4764

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Modem commands Posted by Leahcim on 5 Nov 1998 at 2:57 PM
I would like information on how to control a modem, i.e. pick-up, check for dial tone, dial, hang-up, etc. Also, how would I go about sending information across such a connection? I ran across a bit of code for swapping memory addresses for com1-2 and com3-4 so that you can use com3-4, but lost it later on. Does anyone know how to do this?


Edit Report
Re: Modem commands Posted by Black Satin on 6 Nov 1998 at 12:02 PM
I'll tell you a few commands and give you an example program,<p>
ATZ Reset Modem<br>
ATA(#) Answer Phone after # rings ie ATA4<br>
ATDT555-5555 Replace 555-5555 with number to dial<br>
ATH Hangup Modem<br>
ATL(1-5) +maybe someone can clarify on these <br>
ATM(1-5) +I'm sure they change modem spkr vol.<p>
There are some common modem calls, but there are hundreds more,<p>
Let's use this as an example<br>
open "COM2:19200,n,8,1" FOR RANDOM AS #1, 2048;Buffer<br>
PRINT #1, "ATZ"<br>
PRINT #1, "ATDT555-5555"<br>
;Insert a loop to check the modem and keyboard either way and send to opposite ie<br>
modem - monitor<br>
keyboard - monitor - modem<p>
hope this helps you can also check out<br>
<A HREF="www.geocities.com/SiliconValley/Vista/2804/">Neozones Productions</a><br>
Look under Qcity/modem


Edit Report
Re: Modem commands Posted by Leahcim on 7 Nov 1998 at 6:05 PM
Thanks a lot!





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.