If you want to use a modem2modem-based system, you can open a stream to the COM port (try OpenFile("COM1:") or something like that.. I already did that with blitz once) and send data with it...
Use the standard modem commands...
When a call is received, the modem sends the string "RING" to the computer.
To answer a call, send the command "ATA"
To send a call, send the command "ATD" followed by the phone number (eg. "ATD0845184". You can put T to use tones and P to use pulse)
After ATA or ATD, if it was successful, you will be directly connected. To escape this mode, you'll have to do the escape sequence (I think it's "+++" but I'm not sure anymore). Then do "ATH0" or just "ATH" to "close" the line.
If you want to check if there is a modem, you can send the initialisation command "ATZ" and wait for the OK.
Try using HyperTerminal (connect to your serial port) to control your 56k modem and have a look at the commands.
ATI followed by a number (0 to 7 on all modems, but sometimes can go higher) to get modem firmware and other useful informations.
there are many other commands available to control a modem but I don't remember them (6 years ago I coded a TCP/IP stack and a dialer with PPP support with Blitz Basic ][ .. I still remember lots of useless things ^^)
Use the standard modem commands...
When a call is received, the modem sends the string "RING" to the computer.
To answer a call, send the command "ATA"
To send a call, send the command "ATD" followed by the phone number (eg. "ATD0845184". You can put T to use tones and P to use pulse)
After ATA or ATD, if it was successful, you will be directly connected. To escape this mode, you'll have to do the escape sequence (I think it's "+++" but I'm not sure anymore). Then do "ATH0" or just "ATH" to "close" the line.
If you want to check if there is a modem, you can send the initialisation command "ATZ" and wait for the OK.
Try using HyperTerminal (connect to your serial port) to control your 56k modem and have a look at the commands.
ATI followed by a number (0 to 7 on all modems, but sometimes can go higher) to get modem firmware and other useful informations.
there are many other commands available to control a modem but I don't remember them (6 years ago I coded a TCP/IP stack and a dialer with PPP support with Blitz Basic ][ .. I still remember lots of useless things ^^)