NanoPower P60 Dock
July 14, 2017
gs-man-nanopower-p60-dock-2.1
4. Command Interface
For testing and debugging purposes, the P60 Dock can be operated using the GomSpace Shell (GOSH) in-
terface. The console interface is available in the PJ and P2 connector. The serial connection is 8 databits, 1
stopbit, no parity at 500000 baud. On Linux, the serial connection can be opened using the minicom or tio tools
(tio was formerly known as gotty).
You can now execute commands in the GOSH command interpreter. An example command is cmp ident
which lists identification info of the current subsystem:
p60-dock # cmp ident
Hostname: p60-dock
Model: NanoPower P60 Dock
Revision: v0.1
Date: Nov 3 2015
Time: 09:53:08
A list of available commands can be shown by running the help command in GOSH. Pressing the tab key
automatically completes commands and subcommands, and shows a usage string. Commands specific to
the P60 Dock are assembled under the p60dock command group. These commands are also available in
csp-term for operating the P60 Dock via CSP:
p60-dock # p60dock
node Set node
timeout Set timeout in milliseconds
hk Get HK
gndwdt_clear Clear GND WDT
Note: All of the p60dock commands run over loopback CSP using GOSH command wrappers around the
Client API
4.1 Global Settings
The P60 Dock command line interface is written such that there are a few global variables that can be set first.
The default values of the variables are:
• The P60 Dock CSP address is set to 4.
• Timeout is set to 5000 ms.
These values can be set using the p60dock node <node> and p60dock timeout <timeout>. To show
the current setting, run each command without an argument.
© 2016 GomSpace Aps
6