home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_01
/
COMA_270.LZH
/
MANUAL
/
ENGLISH
/
COM_LINE.TXT
next >
Wrap
Text File
|
1994-12-19
|
3KB
|
90 lines
CoMa could be controlled by Commandline or ARGV
(ARGV is not supported by MagiC)
x.IMG (path of IMG-file)
x.F0? (path of FAX-file)
x.TXT (path of ASCII-file)
x.DOC (path of 1stWord-file)
x.ZX1 (path of ZyXEL CELP-file)
x.ZX2 (path of ZyXEL ADPCM2-file)
x.ZX3 (path of ZyXEL ADPCM3-file)
-n1 name (set name1)
-n2 name (set name2)
-fn faxnummer (set faxno.)
-ri x (set number of rings)
-ar x (automatic receive, 0 = off, 1 = on)
-hi nr (header IMG #, 0 = no header)
-fi nr (footer IMG #, 0 = no footer)
-op path (set outgoing-path)
-nd (no dialing)
-sd (send fax)
-do (dial only)
-to (takeover an existing call)
-faa (if data-call, terminate with return-code 1)
-rv (receive fax/datacall)
-po (poll fax - only with class 2.0)
-fcon (takeover detected fax-connect '+FCON' -
ID & FDCC-parameter have to be set already)
-voice (take off, start voice-play)
Example: Send 3 pages to Fax-no 1234567
coma x.img y.txt z.f02 -fn 1234567 -sd
Example: Send Coversheet and Folder
coma -n1 "Harry Hurtig" -fn 1234/5678 -op F:\fax\example\ -sd
Example: takeover a voice-call (if fax- or Data-callingtone is detected in
voice-mode. 'FCON' may not be present already)
coma -to -rv
Example: receipt fax- or Data-call
coma -rv
Example: receipt call and quit with return-code 1 if data- or fax-call
coma -faa -rv
Beispiel: Poll
coma -fn 12345678 -po
The commandline could be transfered by VA_START protocoll (0x4711)
So CoMa could be controlled by parallel working applications
message[0] = 0x4711;
message[1] = coma_id;
message[2] = master_id;
message[3] + [4] = Pointer of commandline;
If threre are spaces in arguments, it can be enclosed in quotes.
z.B -n1 "Harry Hurtig" -fn 12345678 -sd
The returncode is tranfered by a system-message
message[0] = 0xA082
message[1] = master_id;
message[2] = coma_id;
message[3] = return_code;
Return-Codes:
#define DATA_CONNECT 1 /* datacall detect */
#define FAX_RECEIVED 0 /* Fax received succesfully */
#define KEY_BREAK -1 /* Key-break */
#define NO_ANSWER -2 /* no answer from modem */
#define BUSY -3 /* busy after x dial-tries */
#define NO_CARRIER -4 /* no carrier */
#define NO_DIALTONE -5 /* no dialtone */
#define ERROR -6 /* modem reports error
#define HANGUP -7 /* modem hang up to early */
#define NO_MEMORY -8 /* not enough RAM */
#define NO_NUMBER -9 /* missing fax-no */
#define COMMAND_ERR -10 /* wrong parameter in commandline */
#define UNKNOWN_ERR -11 /* error in CoMa */
#define FILE_NOT_FOUND -12 /* file not found */
#define NO_PORT -14 /* serial port not available */
#define NO_VOICE -15 /* Modem has no voice-mode */
#define DISK_FULL -16 /* Disk full */