Author: | Heiko Schlittermann <hs@schlittermann.de> |
---|---|
Date: | 2011-04-08 |
Manual section: | 1 |
Manual group: | tools |
cli [-d] [-p port] [command [parameter...]]
This tool allows you a simple access to the configuration EEPROM of a competino+ from Braeuniger. Probably even other varios from Braeuniger will work, but I can't verify it for now.
-d | switch on some debug output |
-p <port> | the serial port to use (default is /dev/ttyUSB1) |
Commands consist of a first word and of optional additional words. The first words (the commands) are limited to a small set:
The commands are the commands from the technical reference manual, like $PBRSNP, the $PBR prefix is optional. Most useful is probably the CONF command to get the EEPROM settings applied to the instrument without rebooting it:
cli raw MEMR,0000 cli raw CONF
If no command at all is supplied, raw SNP is send.
Get the entire EEPROM config space or, when used with a list of configuration parameter names, just some of the configuration items:
cli get cli get NAME cli get UTC_OFFSET UTC_HALF_HOUR
Set single configuration items of the instrument. (Some note: the string items are autofilled with spaces.):
cli set NAME="Hans Meier" cli set UTC_OFFSET=3 UTC_HALF_HOUR=0
Do not forget to send the raw CONF command if you want to have the instrument re-read the EEPROM:
cli raw CONF
The source of all this programs can be found in my mercurial repository on https://ssl.schlittermann.de/hg/competino+, read access is unlimited, if you need write access, please ask me: <hs@schlittermann.de>.
The code probably uses some GNU-CC features. It's not tested on platforms other than then Linux.