gigacontr.8



gigacontr(8)                       Linux System Administration                       gigacontr(8)




NAME

       gigacontr - access to the Gigaset devices and drivers


SYNOPSIS

       gigacontr command [parameters] ...


DESCRIPTION

       gigacontr  sends  commands  to  the Gigaset device driver or the Gigaset device and prints
       information it receives from the driver or from the device.

       The commands are executed in the order in which they appear on the command line.


OPTIONS

       The following commands may be given to gigacontr.

   GENERAL COMMANDS (NO COMMUNICATION WITH THE DRIVER)
       --dev file
              Use device file file to communicate with the driver. Default is /dev/ttyG (COM5).

       -h, --help
              Print a summary of the command-line usage of gigacontr and exit.   All  other  com-
              mands are ignored.

       -q, --quiet
              Supress error messages.

       --show-errors
              Reset log level to default.

       --sleep seconds
              Pause for seconds seconds.

       -v, --verbose
              Print device IO to stderr.

       -vv, --debug
              Print debug messages to stderr.

   COMMANDS FOR M10X
       These commands require a M101 (ser_gigaset) or M105 (usb_gigaset) driver compiled with the
       --with-undoc configuration option (support for undocumented USB requests).  Many of  these
       commands need an argument adapter which is either 0 (local adapter) or 1 (remote adapter).
       The adapter types `fixed part' (base) and `portable part'  are  abbreviated  as  `FP'  and
       `PP'.

       --mdevid adapter
              Print the device id.

       --mfwver adapter
              Print the firmware version.

       --mhwver adapter
              Print the hardware version.

       --mvendor adapter
              Print the vendor name.

       --mgetname adapter
              Print name of the adapter.

       --mlistnames adapter
              Print list of registered partners of adapter.

       --mlistconn adapter
              Print list of connection states of registered partners of adapter.

       --mgetpartner
              Print index of the current partner in the adapter list.

       --msetpartner index
              Set the current partner in the adapter list to index.

       --mconnstate
              Print the connection state. (0: no contact, 1: contact)

       --moccupy
              Occupy the cordless connection channel if available.

       --mrelease
              Release the cordless connection channel.

       --mgetautorel adapter
              Print the auto release timer values for all partner adapters of the adapter.

       --msetautorel seconds
              Set the auto release timer to seconds.

       --mfield
              Print the signal strength (0-100).

       --mquality
              Print the signal quality (0-100).

              Note:  Signal  strength and quality readings aren't available until some time after
              switching the adapter to configuration mode.  Precede  with  another  M10x  command
              followed by --sleep 1 for best results, e.g.:

              gigacontr --mfwver 0 --sleep 1 --mfield --mquality

       --mgetflow
              Print flow control setting.

       --msetflow index
              Set flow control.

              index   flow control setting
              0       none
              1       XON/XOFF
              2       RTS/CTS
              3       DTR/DSR
              4       XON/XOFF (transmit only)
              5       XON/XOFF (receive only)
              6       XON/XOFF and RTS/CTS combined

              With  setting  4,  the M10x generates XON/XOFF characters for outbound flow control
              but does not process them for inbound flow control.
              With setting 5, the M10x processes XON/XOFF characters for inbound flow control but
              does not generate them for outbound flow control.

       --mgetformat
              Print data format.

       --msetformat index
              Set data format:

              index   data format
              0       7E1
              1       7O1
              2       8N1

              3       8E1
              4       8O1
              5       8M1
              6       8S1
              7       7E2
              8       7O2
              9       8N2
              10      last command

       --mgethshake
              Print local handshake setting (0: off, 1: on).

       --msethshake value
              Set local handshake (0: off, 1: on).

       --mgetmode
              Print operation mode.

       --msetmode index
              Set operation mode:

              index   operation mode
              0       direct connection
              1       AT (PC)
              2       AT (modem)
              3       AVM (PC)
              4       AVM (modem)
              5       controlled by remote

              Note: Mode 5 cannot be entered or left by the --msetmode command.

       --mgetrate
              Print baud rate.

       --msetrate index
              Set baud rate:

              index   baud rate
              0       300
              1       600
              2       1200
              3       2400
              4       4800
              5       9600
              6       14400
              7       19200
              8       38400
              9       57600
              10      115200

       --mgettype
              Get adapter type (0: FP, 1: PP).

       --msettype type
              Set adapter type to FP (type=0) or PP (type=1).

       --mlisten
              Switch to registration mode, allowing a PP to register.  Only valid if adapter type
              is FP.  Registration mode is automatically terminated after a  few  minutes  if  no
              registration occurs.

       --mregister PIN index
              Register  to  a  FP,  using entry index in the adapter list.  Only valid if adapter
              type is PP.

       --mreset
              Reset to factory settings (PIN=`0000', adapter type=`FP').

   LOG COMMANDS
       These commands access the journal log buffer in the base.  Log entries are identified  and
       can be retrieved by consecutive numeric IDs.  The base automatically overwrites the oldest
       entries when the buffer is full, so only the last  couple  of  hundreds  of  messages  are
       available.  Currently, these commands only work if the firmware is not too old.

       --logstatus
              Retrieve  the  ID of the most recent log entry and the number of entries available.
              The set of available entries consists of those with IDs between (<lastID>  -  <num-
              ber> + 1) and <lastID>, inclusive.

       --logdump list
              Retrieve  the journal log entries corresponding to the comma-separated list of IDs.
              Ranges may be specified with two numbers separated by a hyphen.  If the first  num-
              ber of the first range or the last number of the last range is omitted (list starts
              and/or ends with a hyphen) the  oldest  or  most  recent  available  log  entry  is
              assumed,  respectively.   In  particular, just specifying a hyphen dumps the entire
              journal log.
              A dot (.)  may be used to specify the most recent log entry by its own.

       --logdel
              Flush the journal log buffer in the base.  This deletes all log entries.

   SMS COMMANDS
       The encoding used for these commands is utf-8. These commands only work if the firmware is
       not too old.  These commands are very likely to change in future versions.

       --smscreate flags unknown dcs vp chain_id number file creation_flags
              Create  a  message to number (empty string: don't set the number yet) from the con-
              tents of file (`-': read from stdin) and set the message flags given in  the  comma
              separated  list  creation_flags  (valid  flags:  `send',  `store';  empty string is
              allowed). The message is selected as current message.

              If chain_id is not -1, the message will be split into several SMs with id  chain_id
              (8 bit value), if it is too large.  The firmware we used to test this seems to cre-
              ate too different message headers for the parts, which causes  them  to  appear  as
              single messages to the phone we used.

              flags,  unknown,  dcs,  and  vp  seem to be equivalent to the first octet of the SM
              header, another header byte (TP-PID?), TP-DCS, and TP-VP (integer  representation).
              See GSM 03.40 for details or use the values from section `EXAMPLES'.

       --smsdel
              Set `delete' bit of the current message(s).

       --smsdump
              Dump  all messages (hex dump and decoded), including header information as date and
              time.

       --smsdumpext
              Dump all messages (decoded), including  header  information.   Messages  which  are
              split into several SMs are concatenated.

       --smsget
              Dump selected message(s).

       --smshandle id
              Select  message  id  as  current  message.  This `low level version' of --smsselect
              avoids reading the SM list and SMs.

       --smslevel
              Print memory usage.

       --smslist
              List the message handles and flags of all messages.

       --smsnumber number
              Set number of the current message(s) to number.

       --smsold
              Set `old' bit of the current message(s).

       --smsreset
              Delete all messages.

       --smsselect id
              Select message id as current message.

       --smsselectmsg id
              Select message id and the messages which belong to the same concatenated message as
              current message(s).

       --smssend
              Set `send' bit of the current message(s).

       --smsstore
              Set `store' bit of the current message(s).

   ANSWERING MACHINE
       Please  consider  the  answering machine commands as experimental and subject to change in
       future releases. There is no support for replacing the canned phrases yet, although it  is
       theoretically possible.

       --amlist
              List info such as date and id of all recorded messages and greetings.

       --amdel id
              Delete message id in phone memory.

       --amdelall typemask
              Delete  all  messages  of currently selected answering machine with a type matching
              typemask.  It has to be specified as the sum of one or more of the  following  val-
              ues:

              typemask   message type
              1          Deleted or unknown
              2          New incoming message (not yet heard)
              4          Old incoming message
              8          New local info (not yet heard)
              16         Old incoming message
              32         Greeting 1
              64         Greeting 2
              128        Info message
              256        Final message

       --amselect amindex
              Select another answering machine.  amindex may be 0 (default), 1, 2 or 3.

       --amget id file
              Retrieve message id from phone and store it (as is) in file.

              Note:  The  structure and encoding of the audio data is yet unknown.  Conversion to
              and from common audio file formats and playback of messages without the phone isn't
              possible. If you think you know something about the encoding, please contribute!

       --amput file
              Read file and transfer it (as is) as an audio message to the phone.

   PHONEBOOK TRANSFER
       The encoding used for these commands is currently latin1.  This might be changed to utf-8.

       --pbdump number mode
              Receive phonebook entries from handset id.
              If mode is 1 ("old" mode), the command waits for phonebook entries to be  sent  via
              the handset menu.
              If  mode  is  2  ("new"  mode, only works with 4000 Comfort and later handsets) the
              entire phonebook is retrieved without user interaction.
              With mode 0, the command uses "new mode" for handsets which support  it,  and  "old
              mode" for all others.  (Not implemented yet.)

       --pbent name number id
              Send phonebook entry to handset id.

       --pbfile file id
              Send phonebook entries from file (`-' means standard input) to handset id.

              File format: name tab number newline ...

   CONFIGURATION
       Warning: Using wrong parameter ids and data types can cause serious problems.

       --cfgread pid id type
              Print  value  of  the  configuration entry with parameter id pid for unit id (0 for
              general settings), which has the given type (`dec8': 8 bit integer, `str': string).

       --cfgwrite pid id type value
              Set configuration entry with parameter id pid for unit id (0 for general settings),
              which has the given type (`dec8': 8 bit integer, `str': string), to value.

   MISC. COMMANDS (BASE)
       --device
              Print device name.

       --dial type number id
              Initiate a call of the given type (0: internal, 1: external, ...) from phone id  to
              number.

       --fwver
              Print firmware version.

       --msnget index
              Print the index-th MSN.

       --msnset index number
              Set the index-th MSN to number.

       --product
              Print product name.

       --vendor
              Print vendor name.


EXAMPLES

       To make the `voice message' symbol appear on cell phone 01234, try

              # echo test | gigacontr --smscreate 1 0 0xd8 0 -1 01234 - send

       To send the contents of the (UTF-8 encoded) file FILE to 01234, try

              # gigacontr --smscreate 1 0 0xf1 0 -1 01234 FILE send

       To do this with a validity period of 24 hours, try

              # gigacontr --smscreate 0x11 0 0xf1 167 -1 01234 FILE send

       To remove the `voice message' symbol you created before, try

              # echo test | gigacontr --smscreate 1 0 0xd0 0 -1 01234 - send

       To register the M101 to the base (PIN 0000), execute

              # gigacontr --dev /dev/ttyGS0 --msettype 1 --mregister 0000 0


BUGS

       This  program  is  incomplete and experimental.  Many commands do not check the parameters
       but pass them directly to the device.  Many errors are reported as numbers which can  only
       be interpreted by consulting the source.

       When  the command --smscreate splits a long SMS message into several chained messages, the
       receiving device sometimes doesn't recognize the parts as belonging to the same message.

       The commands --moccupy, --mrelease and --msetautorel  are  implemented  according  to  the
       Siemens documentation but don't seem to work; the M10x always answers FAILURE.


SEE ALSO

       gigaconf(8)



gigaset-frontend-0.5.3                      2006-07-23                               gigacontr(8)

Man(1) output converted with man2html