Sponsored Content
Top Forums Shell Programming and Scripting Help with 56kbit Modem Scripting Post 302999452 by krustowski on Tuesday 20th of June 2017 01:52:53 PM
Old 06-20-2017
Help with 56kbit Modem Scripting

Hi all,


I have been working on an unique script of my own, which should be able to communicate with a classic 56kbit modem. I am quite a newbie to the scripting, but I suppose I am slowly making a progress.

At the beginning I had no idea how I was supposed to communicate with the modem. I am a Mac user (but I am using Debian as well) and I use the Terminal app mostly for everything and it works pretty fine, I'd say. For a physical connection with the modem I am using a USB-to-RS232 (serial port) adapter (AXAGO ADS-50) at /dev/cu.usbserial*.

For turning on the TR (terminal ready) signal I have already used a cat command followed by a ampersand to make it go to the background. At this point I mark a PID number to myself to kill it afterwards. (I am having some problems with a jobs implementation at the moment.)

To the modem I send AT commands using the echo command, eg. echo -n ATH^M > /dev/cu.usbserial*. (The ^M sing at the end is a combination of CTRL-V and CTRL-M characters.)

The script(s) itself works quite fine. It initialises the modem, makes it go offhook, even is able to make a genuine connection between two 56kbit modems. I can send text strings through the modems to each other and I am working on a simple script which can send (cat > device) simple text files.

And here comes the problem. Just today I have found out how to hang-up the modem, but since I process ATH0 to one modem and the other one hangs as well, the second modem also drops the cat > device process, the TR signal of this modem is still on and I cannot use it anymore untill reboot. I tried to kill that process with kill PID, but it cannot be found even in the ps ax list. If I kill the process before the dialling and making of connection, the TR signal successfully disappears.

I am stuck at this point and I have no idea, how could I make it work properly. I have realised that the second modem sends a EOF signal (^D) to the log before the cat process drops.

I would be glad for any help. Thank you and sorry for a long post and a poor level of my English.


- krustowski (krusty was not available already)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Modem on HP-UX 10.20

Hi everyone I am having some real difficulties getting a dial in modem to work on one of my HP boxes. It's a mux modem on port 7 which I have set up at 9600 baud. I can dial in, the handshakes are completed, but then it returns incoherent characters on the emulation screen. I think my dial in... (1 Reply)
Discussion started by: alwayslearningunix
1 Replies

2. UNIX for Advanced & Expert Users

Modem

I've spent enough time trying to put on work Lucent Winmodem in my armada M300 (compaq laptop) I use Mandrake 8.0 but as soon as i get connected and prompmts appears modem shutsdown. Does any one had a similar situation, solved it? cheers (2 Replies)
Discussion started by: alex blanco
2 Replies

3. UNIX for Dummies Questions & Answers

Modem problem: "Sorry, modem is busy"

Hi! I have a little prob with dialing up to the internet... When I try connect, it says "Sorry, modem is busy"... Specs: Laptop 56K modem Slackware 8.0 Kernel 2.4.5 Cheers;) (4 Replies)
Discussion started by: satan404
4 Replies

4. UNIX for Dummies Questions & Answers

Modem Volume

Specs: Dlink DFE-560EL external modem. RedHat 7.1 How do you turn off the modem volume? I am getting annoyed of it beeping everytime I use it but there is no switch on the hardware to tune down the volume. I have tried using minicom and use the following commands: ATL0 ATM0 Next, I... (2 Replies)
Discussion started by: arz
2 Replies

5. UNIX for Dummies Questions & Answers

Modem

Pleaseee... Helpppp.... !!! I am using SCO Open Server 5.05. Recently, i have upgraded the system which means transfer all apps and data to the new system. Everything work well except one thing. On my old system i have an external modem which to dial out. Now that i use the same modem on... (4 Replies)
Discussion started by: jackpotp
4 Replies

6. UNIX for Dummies Questions & Answers

modem

I have got Suse 8.0 by using a modem (US Robotics 56K Faxmodem Ext). During connection i got the error 16. I tried it under RedHat and Mandrake too.....same problem. What can i do ? Thanx...a lot... Logfile: SuSE Meta pppd (smpppd), Version 0.73 on zuhause. wwwoffle not is running ... (1 Reply)
Discussion started by: Pennywize
1 Replies

7. UNIX for Dummies Questions & Answers

Modem - Test /dev/modem

Ok. I tried following the directions from some of the other threads, but I've hit a road block. I have red hat 7.3 and I installed the hcf package: hcfpcimodem-0.99lnxtbeta03042700k2.4.18_3-1rh.i386.rpm It installed ok, no errors, but I still can't get linux to find my modem. I've tried... (2 Replies)
Discussion started by: lawadm1
2 Replies

8. Solaris

Is the cable you are using a null modem cable or a modem cable

Hi all, Is there any difference between a null modem cable or a modem cable ? i assume that a null modem cable is a normal cable that i used from cpu serial ports to a modem for dialup. please correct if i am wrong, thks (2 Replies)
Discussion started by: waterbear
2 Replies

9. SCO

Installing a MODEM on v5.0.2

Hi, my first Sco question so go easy! We have a customer who is on Sco v5.0.2. We are attempting to talk a consultant on site through how to configure the MODEM in scoadmin. Unfortunately the MODEM install instructions that we work from only work for v5.0.4 and assume that scoadmin has an option... (1 Reply)
Discussion started by: Ric.Hemsley
1 Replies

10. Solaris

Modem

hi folks, i am looking for a analog modem to use it with a solaris9 sparc mashine. as far as i know, solaris communicates with the modem using AT-commands. so do i need a special modem for solaris or just a modem? i am open for everything. PCI-modem, seriell modem, usb modem. what are you using? i... (1 Reply)
Discussion started by: pressy
1 Replies
WEDGED(8)						      System Manager's Manual							 WEDGED(8)

NAME
wedged - HylaFAX modem wedged script SYNOPSIS
/var/spool/hylafax/bin/wedged devid device DESCRIPTION
bin/wedged is the command script invoked by the facsimile server when a modem is deemed to be in an irreparable state and requires operator intervention. This decision is based on the setting of the MaxSetupAttempts configuration parameter described in hylafax-config(5). The default wedged script sends electronic mail to the FaxMaster alias. The interval at which emails are sent can be configured in the etc/FaxDispatch file by setting the WEDGED_EMAIL_INTERVAL variable to the desired number of minutes (emails will be sent no more than every WEDGED_EMAIL_INTERVAL minutes, until the wedged condition persists). If the variable WEDGED_DISABLE_FAXGETTY is set in etc/FaxDispatch then the script will attempt to disable any faxgetty processes spawned by the init(8) process for the problematic modem. In addition the faxq(8) process automatically disables use of the modem for servicing outbound jobs. The devid argument is the identifier derived from the name of the modem's device file by substituting ``_'' characters for ``/'' charac- ters; e.g. term_10 for /dev/term/10. The device argument is the name of the character special device associated with the modem. If there exists an executable file /var/spool/hylafax/etc/resetmodem then that file will be executed upon execution of the wedged script in an effort to recover the modem. FILES
/usr/lib/sendmail for delivering mail SEE ALSO
faxq(8), hylafax-config(5) October 3, 1995 WEDGED(8)
All times are GMT -4. The time now is 11:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy