|
发表于 2005-2-6 13:03:04
|
显示全部楼层
To compile the package, just run "make". To install it, "make install".
That is to say ,unpack it ,then,cd into the dir,type "make" then "make install"
Use it like this:
3) How do I use the command mode?
To start up an interctive session in command mode on tty1 type:
./ltmodem -c 3< /dev/tty1
You should then be placed in command mode.
Note if you are in an Xterm, kvt, Konsole etc. then you will
need to use /dev/ttyp1 or whatever. To find out do ps.
The following is a short example session to illustate the above:
---------------------------------------------------------------------
[root@loki ltmodem-0.9.7]# ps
PID TTY TIME CMD
901 ttyp1 00:00:00 bash
915 ttyp1 00:00:00 ps
[root@loki ltmodem-0.9.7]# ./ltmodem -c 3< /dev/ttyp1
ltmodem version 0.9.7
PROTOCOL 0.0
SWVERSION ltmodem 0.9.7
Initialising with ports at 6500 and 6600, assuming portbase at 6600.
# Country is set to United Kingdom
Resetting modem...
.....
Rom checksum is e851.
Chip version is 1 (Mars).
Modem init successfully complete
io_task(3, (null), 0): not implemented!
# Country is set to United Kingdom
# Initializing modem... Resetting modem...
.....
Rom checksum is e851.
Chip version is 1 (Mars).
Modem init successfully complete
# ok
HWVERSION mars V1.48 (rom checksum 0)
+ Command mode ready
exit
+ exiting
[root@loki ltmodem-0.9.7]#
---------------------------------------------------------------------
Help files:
./ltmodem -c 3< modem-dial-script
Executes the commands in the example script file supplied with
this ditribution.
The following commands are supported in 0.9.7 onwards:
help Displays command summary.
? Same as help.
quit Exit command mode back to shell.
exit Guess what! (yes the same as quit).
onhook Go onhook.
offhook Go offhook.
dial xxx Dial the number xxx.
duplex Perform duplex voice transmission.
ringin Wait for a call to come in.
reset Hang up and reset the modem.
speaker on Turn internal speaker on.
speaker off Turn internal speaker off. |
|