home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / COMA_270.LZH / MANUAL / ENGLISH / COM_LINE.TXT next >
Text File  |  1994-12-19  |  3KB  |  90 lines

  1.  
  2. CoMa could be controlled by Commandline or ARGV 
  3. (ARGV is not supported by MagiC)
  4.  
  5.   x.IMG         (path of IMG-file)
  6.   x.F0?         (path of FAX-file)
  7.   x.TXT         (path of ASCII-file)
  8.   x.DOC         (path of 1stWord-file)
  9.   x.ZX1         (path of ZyXEL CELP-file)
  10.   x.ZX2         (path of ZyXEL ADPCM2-file)
  11.   x.ZX3         (path of ZyXEL ADPCM3-file)
  12.   -n1 name      (set name1)
  13.   -n2 name      (set name2)
  14.   -fn faxnummer (set faxno.)
  15.   -ri x         (set number of rings)
  16.   -ar x         (automatic receive, 0 = off, 1 = on)
  17.   -hi nr        (header IMG #, 0 = no header)
  18.   -fi nr        (footer IMG #, 0 = no footer)
  19.   -op path      (set outgoing-path)
  20.   -nd           (no dialing)
  21.   -sd           (send fax)
  22.   -do           (dial only)
  23.   
  24.   -to           (takeover an existing call)
  25.   -faa          (if data-call, terminate with return-code 1)
  26.   -rv           (receive fax/datacall)
  27.   -po           (poll fax - only with class 2.0)
  28.   -fcon         (takeover detected fax-connect '+FCON' - 
  29.                  ID & FDCC-parameter have to be set already)
  30.   -voice        (take off, start voice-play)               
  31.   
  32.   Example: Send 3 pages to Fax-no 1234567
  33.   coma x.img y.txt z.f02 -fn 1234567 -sd
  34.   
  35.   Example: Send Coversheet and Folder
  36.   coma -n1 "Harry Hurtig" -fn 1234/5678 -op F:\fax\example\ -sd
  37.   
  38.   Example: takeover a voice-call (if fax- or Data-callingtone is detected in 
  39.   voice-mode. 'FCON' may not be present already)
  40.   coma -to -rv 
  41.   
  42.   Example: receipt fax- or Data-call
  43.   coma -rv 
  44.   
  45.   Example: receipt call and quit with return-code 1 if data- or fax-call
  46.   coma -faa -rv 
  47.  
  48.   Beispiel: Poll
  49.   coma -fn 12345678 -po
  50.  
  51. The commandline could be transfered by VA_START protocoll (0x4711)
  52. So CoMa could be controlled by parallel working applications
  53.  
  54. message[0] = 0x4711;
  55. message[1] = coma_id;
  56. message[2] = master_id;
  57. message[3] + [4] = Pointer of commandline;
  58.  
  59. If threre are spaces in arguments, it can be enclosed in quotes.
  60.  
  61. z.B -n1 "Harry Hurtig" -fn 12345678 -sd
  62.  
  63. The returncode is tranfered by a system-message
  64.  
  65. message[0] = 0xA082
  66. message[1] = master_id;
  67. message[2] = coma_id;
  68. message[3] = return_code;
  69.  
  70. Return-Codes:
  71.  
  72. #define DATA_CONNECT 1   /* datacall detect */
  73. #define FAX_RECEIVED 0   /* Fax received succesfully */
  74. #define KEY_BREAK   -1   /* Key-break */
  75. #define NO_ANSWER   -2   /* no answer from modem */
  76. #define BUSY        -3   /* busy after x dial-tries */
  77. #define NO_CARRIER  -4   /* no carrier */
  78. #define NO_DIALTONE -5   /* no dialtone */
  79. #define ERROR       -6   /* modem reports error
  80. #define HANGUP      -7   /* modem hang up to early */
  81. #define NO_MEMORY   -8   /* not enough RAM  */
  82. #define NO_NUMBER   -9   /* missing fax-no */
  83. #define COMMAND_ERR -10  /* wrong parameter in commandline  */
  84. #define UNKNOWN_ERR -11  /* error in CoMa */
  85. #define FILE_NOT_FOUND -12 /* file not found */
  86.  
  87. #define NO_PORT     -14  /* serial port not available */
  88. #define NO_VOICE    -15  /* Modem has no voice-mode */
  89. #define DISK_FULL   -16  /* Disk full */
  90.