Using a GSM modem for sending SMS
Should work with PuTTY, HyperTerminal or any modem software under Linux/BSD/etc as well.
Modem type: Wavecom WMOD2 (P/N WM12219) Dual Band Modem 900-1800MHz
The AC adapter was set to 9V AC, but this modem can operate at different voltages as well.
Connect the modem to the serial port of the PC (or a USB - serial adapter)
Start PuTTY or HyperTerminal
Set the appropriate serial port (usually COM1)
Baud rate (speed) = 9600
Data bits = 8
Stop bits = 1
Parity = N
Testing online status
Entering the 'AT' command ( +Enter) displays 'OK'
Test message
Lowercase is also OK. Closing the message line with Ctrl z.
ATOKAT+CMGS="+36202233000"> szevasz<Ctrl-z>+CMGS: 60OKShield Pin 14 while the device is powered on.
The pins are numbered. If you hold the Wavecom modem upwards, pin 14 is the second in the bottom row.
The red LED goes off for a while.
Fizikai portok es device-ok
Here is the default layout of an IBM pSeries 610 (7028-6C1). Device names and locations may change (see below - rmdev, etc)!
TTY Serial device Numbering on the chassis
tty0 sa0 1
tty1 sa1 2
tty2 sa2 3
To determine which tty belongs to each physical port:
# lsdev -Sa | egrep "^sa[0-9]|^tty"sa0 Available 01-S1 Standard I/O Serial Portsa1 Available 01-S2 Standard I/O Serial Portsa2 Available 01-S3 Standard I/O Serial Porttty0 Available 01-S1-00-00 Asynchronous Terminaltty1 Available 01-S3-00-00 Asynchronous Terminaltty2 Available 01-S2-00-00 Asynchronous TerminalNotice that in the above example, tty2 and sa1 are on the same physical location.
The file /dev/uucp/Devices should include a line for each port to be used:
Direct tty2 - 9600 directDirect tty1 - 9600 directIf the tty devices were removed, you can recreate them as follows:
# mkdev -c tty -t 'tty' -s 'rs232' -p 'sa1' -w '0' -a speed='9600'# mkdev -c tty -t 'tty' -s 'rs232' -p 'sa2' -w '0' -a speed='9600'Port ready/Modem online
# cu -ml /dev/tty2ConnectedModem ready
atOKGSM network available
at+creg?+CREG: 0,1OKSignal strength (max = 32)
at+csq+CSQ: 6,6OKSetting message format to SMS (optional)
at+cmgf=1OKSetting sender phone number (optional)
at+csca="+36202300000"OKSending message (terminate message with Ctrl-z)
at+cmgs="+36202233999"> hello+CMGS: 62OKClose connection (~.)
The PS1 prompt appears between the characters.
~[hostname].The connection is ended. #TODO
Normally, you don't have to change these parameters.
# lsattr -El tty2 -Fattribute=valueautoconfig=availablebpc=8csmap=sbcsdiscard=^odsusp=^yeof=^deol=^@eol2=^?erase=^hflow_disp=xonimap=noneintr=^ckill=^ulnext=^vlogger=login=disablelogmodes=hupcl,cread,echoe,cs8modules=ldtermomap=noneopen_disp=dtropenowner=parity=noneprotection=quit=^\reboot_enable=noreboot_string=#@reb@#reprint=^rrtrig=3runmodes=hupcl,cread,brkint,icrnl,opost,tab3,onlcr,isig,icanon,echo,echoe,echok,echoctl,echoke,imaxbel,iextenspeed=9600start=^qstop=^sstops=1susp=^ztbc16=16term=dumbtimeout=0werase=^w