Man DCM 0001
Man DCM 0001
User's guide
Part No. MAN-DCM-0001
Issue F 2006-12-13
CMG-DCM Data Communications Module
Table of Contents
1 Introduction............................................................................................................... 5
1.1 Inside the DCM................................................................................................... 8
3 Usage........................................................................................................................ 24
3.1 General notes.................................................................................................... 24
3.2 The DCM as a data store................................................................................... 24
3.3 The DCM as a GCF data source........................................................................ 28
3.4 The DCM as a network data hub...................................................................... 32
3.5 Troubleshooting DCM installations................................................................. 38
3.6 CMG-AM Authentication Modules.................................................................. 43
4 Tools......................................................................................................................... 51
4.1 Summary........................................................................................................... 51
4.2 Process Overview.............................................................................................. 54
4.3 Data Viewer....................................................................................................... 55
4.4 Data/Status Summary....................................................................................... 57
4.5 Disk files........................................................................................................... 59
4.6 Flash files.......................................................................................................... 60
4.7 Disk tools.......................................................................................................... 60
4.8 Camera.............................................................................................................. 62
4.9 Recent Log Entries............................................................................................ 62
5 Data transfer............................................................................................................ 64
5.1 Scream! server.................................................................................................. 64
5.2 SeedLink........................................................................................................... 66
5.3 DSS.................................................................................................................... 68
5.4 CD1 (CD1.0) Sender.......................................................................................... 70
5.5 CD1.1................................................................................................................. 72
5.6 CNSN configuration (cnsn.cfg)......................................................................... 74
2 Issue F
Operator's guide
6 Configuration........................................................................................................... 80
6.1 General.............................................................................................................. 81
6.2 Serial ports........................................................................................................ 82
6.3 Disk................................................................................................................... 86
6.4 SEED recorder................................................................................................... 91
6.5 Ethernet port..................................................................................................... 94
6.6 Static routes...................................................................................................... 95
6.7 DNS setup......................................................................................................... 96
6.8 Incoming mail setup......................................................................................... 97
6.9 Outgoing mail setup......................................................................................... 98
6.10 Remote access................................................................................................. 99
6.11 PPP................................................................................................................ 100
6.12 mgetty configuration..................................................................................... 102
6.13 Administrators.............................................................................................. 103
December 2006 3
CMG-DCM Data Communications Module
4 Issue F
Operator's guide
1 Introduction
The CMG-DCM is a versatile Linux-based module for storing and
transmitting data captured using Güralp Systems Limited's range of
seismic measuring equipment. GCF data can be gathered from up to
three compatible digitizers or digital instruments, and stored in its on-
board Flash memory, from where it is written from time to time to a
USB hard disk or to another device on your network. Once data is on
the hard disk, you can connect to the DCM in various ways to retrieve
it.
December 2006 5
CMG-DCM Data Communications Module
6 Issue F
Operator's guide
• If the USB client option is installed, you can connect the DCM's
USB port to a computer and communicate with it as if it were on
a private network.
• If the USB host option is installed, you can connect the USB
port to an additional peripheral, such as a camera or external
hard disk.
Whichever set of options you choose, you can use any free RS232 port
to connect the DCM to a single computer for local monitoring and
configuration, or through it to a wider network using PPP/SLIP.
December 2006 7
CMG-DCM Data Communications Module
• The mgetty-r service is similar, but is more suited for serial links
including modems, in which the link is not always active. This
is the default option.
• Likewise, any serial port can be set to listen for incoming data
(e.g. from a connected digitizer or another DCM) by setting the
service to gcf_in. The DCM will automatically combine this data
with any other streams it is receiving, and send it on using all
gcf_out ports and any other transmission methods which have
been configured.
• You can log in to the Linux operating system over a modem link
by setting the service to mgetty. mgetty listens for incoming calls
from your computer and sets up a login session for you. You
may need to configure minicom or hypertrm to communicate
with your own modem before you can do this.
8 Issue F
Operator's guide
Network services
Because the DCM is a fully-fledged Linux machine, you will need to
set up networking before you can use it. Advanced networking is
beyond the scope of this manual. For a basic setup, you will need to
perform the following actions:
1. Assign the DCM an IP address. By default, the DCM will try and
use DHCP (Dynamic Host Configuration Protocol) to find its
own IP address. However, this requires a DHCP server on your
network. If you do not have a DHCP server, you will have to set
the IP address yourself.
2. Find out the IP address the DCM is using (if you have not set it
yourself).
Once you have connected the DCM to your local network or to the
Internet, you can use a wide range of methods to retrieve data from it.
December 2006 9
CMG-DCM Data Communications Module
messages.
10 Issue F
Operator's guide
2.1 Overview
The DCM is effectively a low-power Linux computer dedicated to
seismic data flow tasks. Resources permitting, the DCM can perform
any computational task you require. Because of this flexibility, the
DCM must be configured for your particular purposes before it can be
used:
1. If you only need to use the DCM as a data store, you can gain
console access over the serial port for configuration.
2. If you are going to use the DCM as part of a TCP/IP network, you
must set up its IP address and other networking parameters
before you can connect to it. Whilst the network is inoperative,
you will need to connect to the DCM console over a direct serial
connection. We recommend that you configure the DCM
correctly, to the best of your knowledge, before shipping it into
the field.
5. When all ports are configured, you can use the DCM to set up
attached Güralp digitizers and digital instruments.
You can power the DCM from whichever data port is most convenient,
whether or not it is being used for receiving or transmitting data.
However, you should always supply power to the DATA OUT plug if
December 2006 11
CMG-DCM Data Communications Module
Note that your computer must either have an RS232 (serial) port for
initial connection, or be running its own DHCP server. DHCP servers
are available for Windows, but are not supplied as standard.
If you want to connect the DCM to a local area network, follow the
instructions in Section 2.4, page 15, instead.
12 Issue F
Operator's guide
3. Configure the baud rate of the serial link. By default, the DCM
uses a baud rate of 115200, with 8 data bits, no parity bit, and
one stop bit, and without flow control.
5. You now have access to the DCM's console and all of its
functions. You should change your password, if you have not
done so already, with the command passwd
For full details on how you can configure the serial ports of the DCM,
see Section 6.2, page 82.
December 2006 13
CMG-DCM Data Communications Module
6. Check that you can connect to the DCM using its new IP address
by opening its Web site at
http://192.168.0.2/
If you are using Linux or another operating system, you should see its
own documentation for more details.
14 Issue F
Operator's guide
1. Link the DCM's USB port to any available USB socket on the
computer.
Once the “network card” is installed, the two machines form a network
segment, and each one has its own IP address on that segment. See the
next section for details on how to configure TCP/IP on the DCM. If you
wish, you can set up a network bridge between this connection and a
local area network or the Internet as described above.
When the DCM starts up, it will try to find a DHCP server on your
network to assign it an IP address.
If you use DHCP on your network, and you want to access the DCM's
Web server or console over the network, you may be able to find out
from the DHCP server which address it has given the DCM, in which
case you can access it directly. Otherwise, you will need to connect to
the DCM over a serial link to find out its IP address.
If you do not use DHCP on your network, you will have to set the DCM
to use a static IP address.
DCM login:
[root@DCM ~]#
December 2006 15
CMG-DCM Data Communications Module
to make the DCM use a static IP address instead, and set the
address with
If your network uses DHCP, you will not need to perform this
step. Instead, ensure the DCM is also using DHCP with
16 Issue F
Operator's guide
You should now be able to connect to the DCM's Web setup interface
by typing its IP address into any browser, e.g.
https://192.168.0.2/
Wi-Fi
Optionally, a DCM may be supplied with 802.11 (“Wi-Fi”) hardware in
place of Ethernet. There are two modes in which an 802.11 network
may operate:
• In ad hoc mode, data packets are sent out over the wireless
connection indiscriminately and are received by all machines
on the network. This is the simplest style of Wi-Fi network, but
consumes more power and cannot easily be extended to large
networks.
December 2006 17
CMG-DCM Data Communications Module
Once the 802.11 system is running, you will need to run a DHCP
service on your network, or manually set the IP address of the DCM as
above.
The DCM can perform more complex routeing if required. See “Static
routes”, page 80, for more details.
As supplied, the DCM module will accept requests to its on-board Web
server and logins over SSH. In addition, the DCM can be requested by
Scream! or other GCF-compatible software to send GCF streams to
your computer.
The three serial ports on a stand-alone DCM are labelled DATA OUT,
PORT A, and PORT B. In a typical setup, one or both of the latter two
18 Issue F
Operator's guide
ports are connected to Güralp DM-24 digitizers, whilst the DATA OUT
port connects the DCM to a computer or serial modem. However, the
labels are provided merely for convenience: internally all three serial
ports behave identically. Thus, if the DCM is connected to a network
over Ethernet, you could use all three ports to communicate with
digitizers. Conversely, if you have only one digitizer attached to a
stand-alone DCM, either or both of the remaining two ports could be
used to transmit data gathered by the module.
If the DCM has a USB host interface, you can connect it to any USB
peripheral supported by its Linux operating system. For example, you
may want to attach a camera to the DCM, or an additional USB mass
storage device. If there is no hard disk inside the module, it will
automatically search for suitable storage on the USB interface. The
DCM may alternatively have been supplied as a USB client; if this is
the case, the USB connection can be used to connect the module to a
single computer (see below).
Web setup
The DCM provides a Web interface which you can use to set up the
system. To access this from anywhere on the local network, open any
web browser and navigate to the IP address of the DCM. For example,
if the DCM has the address 10.82.0.1 you would enter
http://10.82.0.1/ or https://10.82.0.1/
Your browser may ask you for a username and password to access the
December 2006 19
CMG-DCM Data Communications Module
Once you have logged in, you will see a Web page similar to this:
The work area on the right displays a summary table describing the
current setup of the DCM's serial ports, and showing how many blocks
of data have been received on each one.
Under the Configure heading are two links for each serial port. Port
provide quick access to the DCM's configuration settings for the port,
and Digitizer allows you to configure a Güralp Systems digitizer
attached to the port REFERENCE???
20 Issue F
Operator's guide
• unique IDs for the hardware boards making up the DCM; and
The links in the menu on the left lead to various pages where you can
change the configuration of the DCM.
If you want to add any other named accounts, you can do this on the
same page (see “”, page .)
Next, you should configure the DCM and attached digitizers for your
own needs. Several pages of configuration options are available under
Configuration in the left-hand menu. When you make changes to any
page, make sure you click the Save changes button at the bottom of the
page before you move to a new page.
December 2006 21
CMG-DCM Data Communications Module
The DCM will then retrieve the current configuration from the DM24,
which will take a few seconds. This done, a page will appear allowing
you to alter the digitizer's settings:
You can change all of the digitizer's configuration options from this
page. If you have attached a 6-channel digitizer, the page will reflect
this:
22 Issue F
Operator's guide
When you are done, click Configure instrument to submit the changes
to the digitizer and reboot it.
See “Digitizer output control”, page 107, for full details of what you
can do.
To connect over the network, start the DCM's Scream! server (see ???
REFERNECE) and connect to the DCM using Scream!'s Network
Control window. The digitizer should appear under an entry for the
DCM in Scream!'s main window.
To connect over a serial link, set the service for the serial port to
gcf_out (see ???REFERENCE), and connect the serial port to your
computer. The digitizer should appear in Scream!'s main window. The
DCM may not appear in this case, because it does not send its own
GCF blocks.
For full details on how to use Scream!, please refer to its own
documentation or the extensive on-line help.
December 2006 23
CMG-DCM Data Communications Module
3 Usage
The DCM can be integrated with any system where seismic data needs
to be collected, or converted from one form into another. It is designed
to operate as transparently as possible, and once connected and
configured for a particular role in a system it should not require
further maintenance.
The rest of this chapter gives detailed installation and usage notes for
several common DCM installations. Between them, they highlight
many important features of the DCM. For full configuration
information, please refer to the next chapter.
For all other DCM units, you will need console or network access to
the DCM to configure it for your installation. This is especially
important if the DCM is not to be part of a TCP/IP network whilst in
use.
As supplied, the DATA OUT port runs the getty service, which you
can use to access the console of the DCM over a serial link.
Alternatively, you can temporarily connect a computer to the
NETWORK port. It is recommended that you keep a serial or modem
connection to the DCM available for maintenance and troubleshooting,
even if the link is too slow for general use.
24 Issue F
Operator's guide
gnblocks
gnblocks port-number
6. To replace the internal hard disk, unclip the cover of the DCM
and hold down the lever button to bring the disk out from its
housing.
December 2006 25
CMG-DCM Data Communications Module
Slide the disk out and replace with another Lacie U&I drive, or
any brand of IDE / USB or IEEE 1394 2.5” drive you specify (at
the time of manufacture). You can do this at any time without
losing data.
7. Plug the hard disk into any computer that supports the USB
Mass Storage standard using a standard USB cable. Newer Linux
distributions and Microsoft Windows XP have this enabled by
default.
26 Issue F
Operator's guide
8. Double click on the drive's entry to browse the files inside and
copy them to your data store.
Alternatively, you can open the files directly from the USB disk
using Scream! or other GCF-compatible software.
10.Choose the USB port attached to the disk, and click Stop.
December 2006 27
CMG-DCM Data Communications Module
11.In the next window, check that the correct hardware is shown,
and click OK to confirm.
12.You can now remove the hard disk from the computer and
reinstall it in the DCM if required.
28 Issue F
Operator's guide
With a sufficiently fast serial link, you can instruct the DCM to send
incoming data directly to a GCF-compatible client. For example,
Güralp Systems' Scream! software allows you to display and record
incoming data, as well as change the settings of attached digitizers.
You can do this in addition to recording data on a local hard disk, or
you can leave the hard disk uninstalled and operate the DCM entirely
over the network link.
4. Find out the port number of the DCM's DATA OUT port. On the
Web interface, the DATA OUT port is listed by name in the
serial port table.
If you are using the Linux console, use the command gnblocks
to display the port number.
5. On the Web interface, click the Port configuration link for the
DATA OUT port, and set the serial.x.service option to gcf_out.
Note: Beyond this point you will not be able to use the serial
link to access the Web configuration interface of the DCM. If
you do want to be able to do this, you should configure the
serial link for PPP (see “PPP”, page 100) and run a Scream!
server on the DCM. You will need to assign the DCM its own IP
address on your local network.
6. If you connected to the DCM by PPP, you will lose the network
connection at this point, because the DCM is now using the
serial link directly.
7. Open Scream!'s main window, and look under Local in the tree
on the left for the serial port which is communicating with the
December 2006 29
CMG-DCM Data Communications Module
The SAM commands you can use are described in the SAM Operator's
Manual.
You can also log in to the DCM's Linux operating system through the
terminal. Enter the command
GETTY
and press ENTER. You will be presented with the login: prompt.
If you are not using Scream!, and cannot make the unit enter SAM
compatibility mode, you can interrupt the GCF data stream and drop
straight to the login: prompt by connecting direct to the serial port
and typing
forcegetty
Sensor arrays
Another possible reason for setting the DATA OUT port's service to
gcf_out is to allow several DCM units to work together and aggregate
30 Issue F
Operator's guide
Here, DATA OUT ports with gcf_out as the service output data to the
serial inputs of another DCM or AM module, which aggregates them
all and sends them out over a network connection.
The DCM can handle multiple data sources with ease using the
gcf_out service. In practice, however, it is almost always preferable to
set up a local area network and use PPP over any serial links, so that
GCF, Web and SSH traffic can share the same connection. Setting up a
fully networked array is slightly more difficult than using gcf_in and
gcf_out services, but provides much more flexibility.
December 2006 31
CMG-DCM Data Communications Module
32 Issue F
Operator's guide
https://192.168.0.2/
By default you can use either http: or https: URLs to access the DCM's
Web site. HTTPS is a secure variant of HTTP, which we recommend
you use in preference to avoid passwords being sent over the network
in clear text. Scream! and similar software applications should also be
configured to use this IP address to communicate with the module. If
the DCM is using a static IP address, you may assign it a name on your
network (although you will still need to use the numeric IP address in
Scream!.)
The DCM also runs a SSH (secure shell) server, which you can use to
access its Linux command line over the network, just as if you had
connected to it over a direct serial link. The standard Linux program
ssh and the freeware Windows program putty are popular SSH
clients.
If you do not wish to use the DCM's Web site, you can continue using
the gcfgdbset command to set other configuration options by name.
For the option names, you should refer to Chapter 4, “Configuration
options” in the DCM manual, where each name is given in italics with
a description of its action.
You can also connect to the console of attached digitizers with the
terminal command
minicom -n port-number
December 2006 33
CMG-DCM Data Communications Module
the command
Each port will be listed, with its number (e.g. 0), name (e.g. Data out
port), and device (e.g. /dev/ttySA0).
• over the Web, by selecting Tools – Disk files from the menu, or
If you are using the Web page interface, each file appears as a link:
click its name to download the file.
Alternatively, you can physically remove the internal hard disk, and
attach it to any computer supporting either Firewire or the USB Mass
Storage Protocol. It will appear on the computer as an extra hard drive.
The DCM uses a journalling file system compatible with Windows'
FAT32, so you cannot lose or corrupt data by removing the hard disk,
even if the DCM is in the middle of writing to it.
34 Issue F
Operator's guide
1. Edit the /etc/seed.cfg file. The DCM will only write SEED
volumes for streams mentioned in this file. See “SEED
recorder”, page 91, for more details.
December 2006 35
CMG-DCM Data Communications Module
• By default, the DATA OUT port runs the getty service, which
allows you to connect to the DCM's console.
• The mgetty and mgetty_raw services are similar, but can deal
with connections made through modems.
• The gcf_in service turns the port into an extra digital data input
port. The DCM's PORT A and PORT B run the gcf_in service.
To change the service running on a port, click the Configure – Port link
in the serial port table, and set the serial.x.service option to the
required value. Alternatively, issue the command
Scream! server
In a straightforward vault installation, we recommend that you leave
the DATA OUT port running the getty service for emergency console
access, and instruct the DCM to act as a server for incoming data on
your network. This can be done from the Data transfer – Scream
server page on the Web site:
36 Issue F
Operator's guide
AutoDRM
AutoDRM (Automatic Data Request Manager) is an optional service
which allows you to request data over e-mail. In response to a request,
the AutoDRM can either send an e-mail in return, or establish an FTP
connection to you.
Not all DCMs have these packages installed. If you are unsure, or wish
December 2006 37
CMG-DCM Data Communications Module
In order for the AutoDRM system to work, the module must be able to
send and receive e-mail messages. To set the system up, you will need
to fill in the details of your network's SMTP server under
Configuration – Outgoing mail, and of your POP or IMAP server under
Configuration – Incoming mail. Remember to click Save changes after
you have filled in each screen.
To test the AutoDRM system, send the following e-mail to the DCM:
From: [email protected]
To: [email protected]
BEGIN GSE2.0
MSG_TYPE request
MSG_ID unique-identifier
HELP
EMAIL [email protected]
STOP
The DCM should send a mail back to you containing help on the
commands you can give the AutoDRM system.
If the DATA OUT port gives a login prompt, you should log in with
your username and password. If you have not been given a different
username and password, try logging in as root with the password
rootme. You should change this password as soon as you can with the
command passwd
If the DATA OUT port gives an ok prompt, the DCM is running the
38 Issue F
Operator's guide
gcf_out service on that port and has provided you with a FORTH
compatibility interface. Type
GETTY
If the DATA OUT port does not respond when you press ENTER, or
produces garbage, check that your terminal program is using the same
baud rate as the DCM. By default, the DCM uses a baud rate of 115200,
with 8 data bits, no parity bit and 1 stop bit, and no flow control.
forcegetty
If the DATA OUT port is not responding at all, check the power supply
to the DCM.
• Check that your local PC can route to the DCM's IP address. For
example, if you are using a cross-over Ethernet cable, the two
hosts must share a subnet.
December 2006 39
CMG-DCM Data Communications Module
as necessary.
• Open the DCM's Web site, and check that the option
datatransfer.scream.server is set to on, and that
datatransfer.scream.server.port is the port you expected.
The streams being received at the DCM are listed in the bottom section
of the applet. Click on a checkbox to add that stream to the main
40 Issue F
Operator's guide
viewer window.
If you do not want to use the DCM's Web site, you can find out the
number of GCF blocks the DCM has received with the command
gnblocks. Each serial port will be listed, with its name, number, key
number and device name (as for serialmap) but including the
number of blocks received on that port:
• access the DCM Web site, click on the Configure – Port link in
the serial port table, and change the settings, or
serial.5.service gcf_in
serial.5.baudrate 9600
serial.5.handshaking none
December 2006 41
CMG-DCM Data Communications Module
The DCM is receiving streams, but they do not contain any data.
If the data you see is zero:
• Check the mass position outputs to see if the masses are locked.
A properly unlocked and centred mass should show a mass
position within 1000 counts of zero; a locked mass will give a
value greater than 32,000 (or less than −32,000) counts. If your
sensor has remote mass locking, you can unlock the masses by
navigating to Actions → Digitizer setup and clicking Unlock
sensor.
• Check the connection between the sensor and digitizer and try
again.
If you cannot see the data in the stream, remove any constant offsets
by clicking on the Zero streams icon in Scream!'s Waveview
window or the DCM's Data Viewer.
The DCM receives streams, but gaps appear in the data some
minutes after boot-up.
Check that the baud rate between the digitizer and the DCM is
sufficient for all the data streams you want to transmit. If it is not, the
digitizer's output buffer will gradually fill up until no more data can be
stored. Increase the baud rate of the digitizer through the DCM (or
using Scream!), then set the baud rate of the DCM's input port to the
same value.
42 Issue F
Operator's guide
The DCM receives streams, but 2-minute gaps appear in the data
at 4-hour intervals.
After a reboot, the DCM takes around 2 minutes to begin transmitting.
The DCM runs a guardian process which monitors the health of the
system. In some circumstances guardian will need to reboot the DCM
to attempt to resolve a problem. If the reboot does not help, the DCM
will soon find itself in the same position, and guardian will reboot it
again.
You can check the time since the last reboot with the command
uptime, which will respond with a line like
• the Flash memory is full, and all connected USB disks are also
full,
• the Flash memory is being filled up faster than the DCM can
empty it. This may happen if the individual files are longer than
25% of the total Flash memory in each of the two memory banks
(e.g. 16 Mb, for DCMs with 128 Mb of storage.) If you encounter
this problem, try making the watch files shorter by changing the
value of disk.recordinterval (see Section 6.3, page 86.)
This token can be used to sign all outgoing data at source. The
signature matches the data as produced, so if anyone alters the data,
the signature will no longer be correct.
December 2006 43
CMG-DCM Data Communications Module
• using the certificate and key, begin authenticating the data using
the method specified in the protocol.
Hardware authentication
Where a Spyrus crypto-token is installed, the program spyrus should
be used to set it up.
ssh 10.82.0.129
2. Log in using the username and password you use to access the
AM's Web interface. (If you do not use a username and
password to access the AM's Web interface, you should obtain
one from your network administrator.)
spyrus zeroize
followed by
spyrus start
44 Issue F
Operator's guide
spyrus login
organizationName:your-organization
organizationalUnitName:station-name
organizationalUnitName:operator-name
localityName:HPAXX
commonName:HPA0-02
commonName:HPA0-01
(To create a text file in Linux, either use a command like cat >
filename and enter the data directly, ending with CTRL-D, or
use the text editor vi. Using vi will allow you to edit the file
should you make a mistake in entering the data. For more
information, see the Linux manual page for vi. Alternatively,
December 2006 45
CMG-DCM Data Communications Module
you can create text files on the local computer and transfer them
to the AM module using scp or a similar secure transfer
program.)
cd /etc/libcd11
10.Now load the certificate into the token using the command
The token will check that the certificate matches its own key
pair, and should respond with
46 Issue F
Operator's guide
If it reports that the key does not match the certificate, you may
have attempted to load a certificate valid for the wrong token.
Check the certificates you have received, and try again.
Otherwise, you may have to generate a new certificate request
and re-send to the Certification Authority.
Key buckets are stored in the files 0.bkt, 1.bkt, etc., within
the /etc/keybuckets directory. Each line in a key bucket file
has the format
key-id:days-since-epoch:seconds-since-day-start
key-id:0:0
December 2006 47
CMG-DCM Data Communications Module
Software authentication
Some AM units are not supplied with hardware crypto-tokens. These
units can still perform authentication using the openssl package. To
set up an AM using openssl:
cd /etc/libcd11
[req]
default_bits = key-length
distinguished_name = req_dn
[req_dn]
organizationName = Enter organization name (eg,
company)
organizationName_value = organization-name
0.organizationalUnitName = Enter organizational unit
name (eg, section)
0.organizationalUnitName_value = organizational-unit-name
1.organizationalUnitName = Enter organizational unit
name (eg, section)
1.organizationalUnitName_value = organizational-unit-name
localityName = Enter your station name
localityName_value = station-name
commonName = Enter your site name
commonName_value = site-name
48 Issue F
Operator's guide
Key buckets are stored in the files 0.bkt, 1.bkt, etc., within
the /etc/keybuckets directory. Each line in a key bucket file
December 2006 49
CMG-DCM Data Communications Module
key-id:days-since-epoch:seconds-since-day-start
key-id:0:0
9. If you are running it, restart the CD1.1 transmitter with the
command killall -HUP cd11sf. (Using the -HUP option
makes the command send a hangup signal to the CD1.1
transmitter rather than killing it outright.)
10.If you are running it, restart the CNSN transmitter with the
command killall -HUP cnsnauth
50 Issue F
Operator's guide
4 Tools
The menu bar of the DCM's Web site is divided into four sections.
• Data Transfer contains all the settings which relate to the DCM's
primary function as a seismic data module. Here you will find
servers and clients for all the seismic protocols supported by
your DCM. See Chapter 5, page 64, for details.
4.1 Summary
This link displays a page summarizing the current setup of the DCM.
When you first log in to the module over its Web interface, this is the
page you are initially presented with. It is divided into a several
sections:
Serial ports
This table shows all the serial ports connected to the DCM, with
information about each one. Each row also contains lnks to
configuration pages for the port and any digitizer connected to it.
The table is also shown when you choose Configuration – Serial ports.
For full details on the table and on serial port configuration options,
see section 6.2, page 82.
December 2006 51
CMG-DCM Data Communications Module
Uptime
This section displays the time the DCM last rebooted and calculates
how long it has been running since that time.
Disk/Flash Status
This section reports the current status of the DCM's storage media.
The DCM does not power up the USB interface specially to build this
table, so if you remove the USB disk the DCM may continue to include
it in the table until it attempts a disk operation.
Tamper lines
This section, if present, reports the status of the tamper lines relayed to
the DCM over an external State of Health interface:
52 Issue F
Operator's guide
The columns in the table give, in turn, the current state of each switch
and when it was last observed to be in each state. The above example
shows a typical reading for a set of 9 tamper switches that have not
triggered: the normally-closed switches show the current time under
“Last Closed”, and the normally-open switches under “Last Open”. All
other fields show (never), indicating that no switches have been
observed in the “wrong” state since the DCM was last booted.
Network configuration
This section displays basic information about the DCM's network
setup. It is identical to the output from the Linux ifconfig program.
A typical reading might look like this:
For further information, see the Linux manual page for ifconfig.
DNS configuration
This section reports the current status of the DCM's domain name
resolution service. This is done by presenting the contents of the
standard Linux /etc/resolv.conf file.
# eth0 begin
domain guralp.local
nameserver 192.168.0.1
nameserver 192.168.0.2
# eth0 end
For further information, see the Linux manual page for resolv.conf.
December 2006 53
CMG-DCM Data Communications Module
Unique IDs
This section contains unique identifiers for each of the hardware
boards inside the DCM.
Software Versions
The final section lists the software currently installed on the DCM's
Linux operating system, together with each program's version number.
If you need to contact Güralp Systems about any of the installed
programs, you should quote the version number in your
correspondence.
54 Issue F
Operator's guide
process and run a new one. This is useful if a process appears to have
stopped responding.
The main part of the display shows a selection of the data streams
being recorded, whilst the bars at the top and bottom allow you to
control what is displayed, and in what manner:
December 2006 55
CMG-DCM Data Communications Module
If you cannot see any data in the Data Viewer, you should check first
that
• the data has been offset correctly. You can automatically zero
the streams by clicking on the icon depicting a “0” and a sine
wave in the icon bar. Otherwise, you can zoom out until the
streams are visible.
56 Issue F
Operator's guide
To the right of the checkboxes, you are given information about each
stream, similar to that found in the main window of Scream!. The
information provided is:
• A recent FIC for the data. The FIC gives a rough idea of the
magnitude of the signal being received.
• Finally, the time the most recent data block was received,
including, in brackets, the day number within the year (1 =
January 1, etc.)
December 2006 57
CMG-DCM Data Communications Module
At the top of the page is a Stream Summary table. This table lists all
the data streams which the DCM has received in the last 10 minutes.
• The first two columns are the System ID and Stream ID for the
stream.
Below the stream table, the DCM prints out the content of the latest
block produced by each status stream. You can use this to check on the
health of your digitizer.
58 Issue F
Operator's guide
The entries in this table give the key index of each shared memory
area, its name (if it has one – this may be taken from its allocated port),
and the number of data, status and CD blocks received.
The “Bad blocks” column reports how many corrupt blocks have been
detected in this shared memory area. A “bad block” is either one which
could not be parsed, or one whose checksums do not match the data.
Bad blocks are noted, but not discarded.
The name of each file is shown, together with its size. If there are
directories on the disk, they are shown at the end of the list. The
amount of free space on the disk is also displayed.
If no suitable storage medium can be found, the module will report the
error Failed to open USB disk.
December 2006 59
CMG-DCM Data Communications Module
The two directories nand0 and nand1 denote the two regions of Flash
memory used by the DCM to store data. Click on one of them to view
the files.
60 Issue F
Operator's guide
By default, the module looks for a connected USB hard disk to use as
its primary storage medium. If no suitable storage medium can be
found, you will see the message Failed to find a USB disk
when you attempt to perform any of these actions.
To format the disk, click Partition and format disk. You will be taken
to a confirmation page.
• Click Format disk to format the disk and display progress. This
operation takes around 10 minutes. You must not close the
browser window or navigate elsewhere whilst you are doing
this. Closing the browser window will abort the operation and
leave you with a partially-formatted disk.
December 2006 61
CMG-DCM Data Communications Module
Flush flash
Clicking on this button will cause the DCM to dump the current
contents of its Flash memory to the hard disk, thus synchronizing it
with the most current data. If you want to remove or replace the DCM's
hard disk, using this tool will ensure that the outgoing disk is up-to-
date.
Flush flash does not remove data from the DCM's on-board Flash
memory. If you Flush flash and then swap hard disks, the data
remaining in memory will later be written out to the new hard disk,
causing some overlap between it and the old disk.
Whilst the DCM is copying the contents of the Flash memory to disk,
you will be shown a log of its progress. The USB interface allows data
transfer at a speed of around 100 Kb/s, so large files may take several
minutes to complete. If an error occurs at any point, it will be marked
in red.
4.8 Camera
If you have attached a compatible camera to the external USB port of
the DCM, clicking on this link will show the current view from the
installation site. A new image is retrieved every 12 seconds, or
whenever you reload the page. Güralp Systems can supply a
compatible camera with the DCM, although any STV0680-based
device can be used.
62 Issue F
Operator's guide
December 2006 63
CMG-DCM Data Communications Module
5 Data transfer
You can retrieve data from the DCM using a variety of standard
seismic network protocols and formats, including Güralp Systems' own
Scream! software. The options beneath Data transfer are used to
configure these network services.
For data transfer options which use the serial ports of the DCM (e.g.
DSS summary mode, etc.) you should use the Configuration – Serial
ports pages to set the serial.x.service option instead (see Section 6.2,
page 82.)
64 Issue F
Operator's guide
In some cases, e.g. when the DCM has a dynamic IP address, you may
want the DCM to “push” UDP data to clients. To do this, you should
add the clients to this list.
Each entry in the list is either the IP address or the hostname of the
client. The DCM will send data to port 1567 by default. If you want to
use a different port, use IP-address:port or hostname:port.
would cause the DCM to push data to port 1567 at 192.168.2.2 and
screamclient.remote.net, and to port 888 at 82.68.239.4.
If UDP “push” is active, other clients can still connect to the DCM and
“pull” data from it as normal.
Setting this option to zero will filter out all data streams but preserve
status channels, allowing you to use Scream! to monitor the status of
December 2006 65
CMG-DCM Data Communications Module
Selecting this option makes the DCM build full GCF blocks from the
data it receives (a process known as re-blocking) before transmitting
them.
You can still configure the digitizers using the Web page (Section 7,
page 105) or using command line tools like minicom and gcli (see
Section 8.2, page 117).
5.2 SeedLink
SeedLink is another member of the SEED / MiniSEED family of
formats, designed for transferring seismic data over a network. The
DCM's slserver package provides a SeedLink server.
66 Issue F
Operator's guide
Before you can start the SeedLink server, you will need to tell it which
streams to output, and what SEED codes to use for each one. This is
done on the Seed name mappings page (see Section 5.7, page 75.)
You should make sure that each stream uses the same SEED network
and station codes as you have configured for the server on this page.
When you have finished editing these options, click Save changes to
commit them.
The SeedLink server will not immediately use the new options,
because clients may still be connected. You will need to restart the
SeedLink server at a convenient time. Clients will have to reconnect to
the new instance of slserver before they can continue receiving data.
December 2006 67
CMG-DCM Data Communications Module
5.3 DSS
DSS (Data Subscription Service) is a packet format which enables data
and statistics to be requested from a seismic installation. A DSS server
is designed to handle many concurrent requests from clients with
varying levels of privilege, and may prioritize requests according to
their origin and urgency.
68 Issue F
Operator's guide
Server configuration
DSS expects streams to be named using station, channel, and network
codes according to the FSDN SEED naming convention. Before using
the SeedLink server, you will need to tell it which streams to output,
and what SEED codes to use for each one. This is done on the Seed
name mappings page (see Section 5.7, page 75.)
December 2006 69
CMG-DCM Data Communications Module
Remember to click Save changes before you browse away from the
page, if you want to keep the changes you have made.
The DSS server will not immediately use the new options, because
clients may still be connected. You will need to restart the DSS server
at a convenient time. Clients will have to reconnect to the new
instance of dssserver before they can continue receiving data.
70 Issue F
Operator's guide
December 2006 71
CMG-DCM Data Communications Module
5.5 CD1.1
For the CD1.1 sender to be able to build frames, it needs to have access
to detailed status information from the digitizer. This is provided in a
special digitizer stream ending CD. This stream is not output by
72 Issue F
Operator's guide
+MONITOR
This can be done from the DCM command line (see Section 8.2, page
117) with the command
gcli n '+monitor'
The Web interface does not check that the content of the files will be
understood. You should ensure that the file is valid before committing
any changes.
data-stream:status-stream:location:site:instrument:channel:prefix:
key-bucket
prefix : a prefix for the location to store the files in the file tree of the
DCM.
key-bucket : the key-bucket code, which tells the DCM which key to
use for that particular stream.
December 2006 73
CMG-DCM Data Communications Module
When you have finished editing the file, clicking Save changes will
write the changes to disk. The changes will not take effect, however,
until the CD1.1 service is restarted. You can restart all running CD1.1
services by clicking Restart CD1.1.
To use the CNSN system, you will need to set exactly one
serial.x.service option to cnsn_in, and one to cnsn_out (see Section 6.2,
page 82.) You will also need to edit the file /etc/cnsn.cfg, which
defines the streams.
method:key-id:high-byte:low-byte:site:channel[:location]
74 Issue F
Operator's guide
Blank lines, and any lines beginning with #, are ignored. When you
have finished, click Save changes.
The Web interface does not check that the content of the file will be
understood. You should ensure that the file is valid before committing
any changes.
December 2006 75
CMG-DCM Data Communications Module
The table on this page shows all the streams which have SEED name
mappings. If a mapping is defined for a stream, services which use
SEED names will automatically transmit that stream.
• any other attributes you have defined for the stream and
Clicking Edit brings up a page where you can edit these attributes.
76 Issue F
Operator's guide
• If you are using SEED location codes, enter a value into the
seed.loc box to set the location code for this stream. Location
codes should be used in cases where several instruments with
the same conventional SEED name are located at the same
station.
• Finally, you must enable output of this stream using each of the
protocols you are using. This is done by adding an entry to the
Other Entries section with the name protocol.enabled and
the value true.
• You can add other information about your instruments into this
file. For example, you might want to program the DCM with
response and sensitivity parameters for your instrument.
December 2006 77
CMG-DCM Data Communications Module
The SEED name mappings are used by MiniSEED, SeedLink and DSS.
SEED names are also used by the full SEED recorder, but this requires
additional data. You should supply this data in SEED's own
configuration file /etc/seed.cfg (see above.)
CD1.0 and CD1.1 protocols use channel names which are very similar
to SEED names. However, there may be instances where the CD1.0 and
CD1.1 names need to differ from the FSDN SEED name, or where you
do not want to transmit streams automatically. Because of this, the
CD1.0 and CD1.1 services do not look for mappings in this file.
5.8 AutoDRM
AutoDRM is an automated system for handling requests for seismic
data over e-mail, and for fulfilling those requests either by returning e-
mails or by establishing an FTP connnection. In order for the
AutoDRM system to work, the module must be able to send and
receive e-mail messages: this can be configured using the Incoming
and Outgoing mail setup configuration pages. See “Incoming mail
setup”, page 97, for more details.
The DCM's AutoDRM capabilities are compatible with the GSE2.0 and
2.1 message standards developed for GSE-EISMS and GSETT-3.
78 Issue F
Operator's guide
You will need to use your username and password to access this
service.
December 2006 79
CMG-DCM Data Communications Module
6 Configuration
All DCM modules feature an on-board Web server, which you can use
to set up the unit. When you first connect to the module, you will be
shown a menu tree in a panel on the left, with a summary of its current
status on the right.
Once you have changed settings on any page, click Save changes at the
bottom of the page to make the DCM apply them. If you move to a
different page without clicking Save changes, your changes will be
lost.
This chapter describes all the settings available to users of the DCM.
The name of each setting is shown on the Web page interface, and can
also be used to access the setting using the gcfgdbset command (see
Section 8.2, page 117.)
In each case, the Web interface describes the values the DCM will
accept.
Note: The DCM is a flexible unit which can be supplied with a range of
feature sets depending on your requirements. A stand-alone DCM unit
normally has most of these options available to the user. However,
some of the settings described below may not be relevant to your
installation, and thus will not be available. If you are unsure which
packages you will need, contact Güralp Systems.
80 Issue F
Operator's guide
6.1 General
This page contains settings which help you identify the DCM.
general.hostname : This is the host name the DCM will use to identify
itself on the network. It is normally the first part of the module's fully-
qualified domain name. For example, a DCM at myinst.bignet.org
would have its host name set to myinst.
December 2006 81
CMG-DCM Data Communications Module
Every serial port on the DCM's internal board is listed in this table.
Port : This column shows the DCM's name for each port. A stand-alone
DCM has three RS232 serial ports brought out on 10-pin mil-spec
connectors, labelled PORT A, PORT B and DATA OUT.
Note that the standard DCM does not expose the Console (COM1),
COM2 or COM3 ports. The external ports begin at COM4.
Device name : This column gives the Linux device name for each port.
You may need this if you want to write your own scripts.
Service : The service currently running on the port (by default, getty.)
Baud rate : The current baud rate of the port (by default, 115200.)
GCF blocks seen : The number of GCF blocks which have been
received on this port. This will only be non-zero for ports set to gcf_in.
82 Issue F
Operator's guide
Configure – Port
When you click on a Configure – Port link, the port's configuration
page is displayed.
Each serial port has its own configuration screen, with a number of
options beginning serial.x (where x is the internal number of the serial
port). The configuration options for all the ports are as follows:
serial.x.name : The name of this serial port, as shown in the serial port
table.
serial.x.service : How the DCM will use each serial port. There are five
options:
• getty : The port will listen for logins from a connected computer.
Once logged in, the user will have direct command-line access
to the DCM's Linux operating system.
• mgetty : The port will listen for logins over a connected serial
modem. Again, a logged-in user will be presented with the
DCM's Linux command line.
• mgetty-r : The port will listen for logins over a connected serial
December 2006 83
CMG-DCM Data Communications Module
Before a PPP link will function, you will need to specify the PPP
options and (if using CHAP) provide a chap-secrets file. This
can be done through the DCM configuration interface: see see
Section 6.11, page 100. Also see the Linux manual page for
pppd(8) for an explanation of how PPP is implemented.
• gcf_out : The port will send GCF data directly to the connected
device as it is received. A number of programs are available for
PCs which handle incoming GCF data streams, such as Scream!,
Antelope, and Earthworm. The DCM transparently merges all
incoming data streams, so if you are using Scream!, you can also
configure and control attached digitizers using its own interface.
• cnsn_in : The module will use this port to receive raw data
using the CNSN protocols. If you use this service, there must be
exactly one cnsn_in and one cnsn_out port.
For ports connected to digitizers, you should ensure that the baud rate
is high enough to allow all the data to be transmitted at the rates you
have chosen. As an example, for three streams transmitting at 100 Hz,
a rate of 9600 baud is usually sufficient. Modern modems can
84 Issue F
Operator's guide
The DCM's serial ports operate using frames of 8 data bits, no parity
bits, and one stop bit.
If the port is not running the ppp service, this setting will be ignored.
Any options which apply to all serial ports running the ppp service
should be placed in the /etc/ppp/options file instead (see Section
6.11, page 100.
December 2006 85
CMG-DCM Data Communications Module
This option has the same effect as the MS-GAP command on a DM24.
If the port is not running the gcf_out service, this setting will be
ignored.
Configure – Digitizer
Clicking on Configure – Digitizer opens a page allowing you to
reconfigure the digitizer attached to the port, if there is one.
When the page loads, the DCM attempts to retrieve the current
configuration of the digitizer attached to that port. This will take a few
seconds, after which the message Configuration successfully
retrieved from attached instrument should appear together
with a form detailing the available settings.
If the DCM cannot find a digitizer attached to the port, it will give the
message Unable to retrieve configuration from attached
instrument. In this case you should
• check that the baud rate of the serial port (see Section 6.2, page
82) matches the output baud rate of the digitizer; and
• check that the DCM is running the gcf_in service on the port.
For a full description of the digitizer settings you can change, see
Chapter 7, page 105.
6.3 Disk
On this page you can set how the DCM uses its hard disk, and what
data it records.
86 Issue F
Operator's guide
If you want to check that the hard disk is working, explore its contents,
or format it, you should use the Tools – Disk tools page instead.
At the top of the window are two sets of options, disk.recordas... and
disk.recordfrom....
Files are not immediately written to the disk, but into Flash memory;
the options disk.usagemode and disk.writeinterval, below, control
how often the DCM flushes new data to the disk, and what it will do if
the disk becomes full.
December 2006 87
CMG-DCM Data Communications Module
disk.recordas.seed : Set this to yes to have the DCM record full SEED
volumes on the hard disk.
This option will have no effect until you create a SEED recorder
configuration file. See Section 6.4, page 91, for information on these
options.
disk.recordas.sac : Set this to yes to have the DCM record files in SAC
format.
The ASCII files have a simple format. After a header line, each line
contains two decimal numbers separated by a tab.
The first number is the UNIX time of the sample (i.e. the number of
seconds since 00:00:00 UTC on January 1, 1970). The second is the
absolute sample value at that time. Samples are not guaranteed to be
present in time order.
disk.recordfrom.log : Set this to yes to make the DCM record its own
88 Issue F
Operator's guide
system log onto the disk. The system log is split up into time blocks in
the same way as the other data (see disk.recordinterval, below.)
Status blocks from digitizers are part of the GCF data, not part of the
log. To record these, you need to enable disk.recordas.gcf. If you also
enable disk.recordsplit (see below), each status stream will be
recorded in its own file.
Enabling this option makes the DCM build full GCF blocks from the
data it receives (a process known as re-blocking) before saving it to
disk. You should only need to enable this option if you are using the
low latency features of the DM24 digitizer. It is disabled by default.
disk.usagemode : This setting varies the way the DCM uses its hard
disk storage once it has been filled up.
• The recycle option causes the DCM to delete the oldest data files
on the hard disk to make space for incoming data. This way, the
end point of the stored data is known (it always includes the
most recent block of data), but the start point depends on the
disk capacity.
December 2006 89
CMG-DCM Data Communications Module
disk.recordinterval : The DCM writes all the data streams it has been
instructed to record into a file in its Flash memory. With the default
setting active, the system starts a new file every 3 hours, alternating
between the two Flash memory banks (see Section 8.1, page 116.) The
3-hour interval is called a watch.
For those formats which can only deal with single streams, the DCM
opens a file for each stream, starting a new set of files every watch.
• If files are larger than 25% of the Flash memory capacity, the
DCM may encounter problems, because the disk manager only
starts transferring files when the Flash memory is over 75% full.
You will only approach this limit if you are running several
recording processes on a large number of streams. If you do, you
may find that decreasing disk.recordinterval helps.
90 Issue F
Operator's guide
yyyyjjjThhmmss-wwwww-WWWWW-ssssssss.eee
where yyyy is the current year, jjj is the day of the year, hhmmss is
the start time of the watch, wwwww is the watch number, WWWWW is the
number of watches, ssssssss is an 8-digit serial number (for
uniqueness), and eee is an appropriate file extension for the format
used.
For file types which do not support multiple streams, and also for GCF
files if disk.recordsplit is enabled (see below), the Stream ID SSSSS is
also included. This produces names in the format
yyyyjjjThhmmss-wwwww-WWWWW-ssssssss-SSSSS.eee
If you enable disk.recordsplit, you should make sure the DCM does not
produce too many files: see above for details.
December 2006 91
CMG-DCM Data Communications Module
SEED format. The DCM will only write SEED volumes for streams
mentioned in this file.
The Web interface does not check that the content of the files will be
understood. You should ensure that the file is valid before committing
any changes.
HPA1Z2:::::CMG-3_120S_50HZ:CMG-DM24mk3:V9.800E-01:1.6E-07:46
HPA1N2:::::CMG-3_120S_50HZ:CMG-DM24mk3:V9.400E-1:1.6E-07:46
HPA1E2:::::CMG-3_120S_50HZ:CMG-DM24mk3:V1.050E00:1.6E-07:46
Each line represents an incoming stream from the digitizer; the fields
are separated by colons, and are in turn:
• a SEED network name for the array (or leave blank to have the
DCM generate one automatically);
• a SEED station name for the station (or leave blank to have the
DCM generate one automatically);
92 Issue F
Operator's guide
• a SEED location name for the instrument (or leave blank to have
the DCM generate one automatically);
• a SEED channel name for the stream (or leave blank to have the
DCM generate one automatically);
• a case-sensitive code for the sensor type (see Section 10.1, page
130);
Note that the unit follows directly after the sensitivity, with no
colon.
• the sensitivity of the digitizer, in volts per count (here 1.6 × 10-7
V/count = 0.16 μV/count). This is given on the digitizer's
calibration sheet.
When you have finished editing the file, clicking Save changes will
write the changes to disk. The changes will not take effect, however,
until the SEED service is restarted.
December 2006 93
CMG-DCM Data Communications Module
page and find the entry for the seedrecorder process. Click the
Restart link in this entry.
The settings described below begin net.eth.0 because they refer to the
first Ethernet interface. If there are several Ethernet interfaces on your
DCM, there will be an Ethernet Port page for each one.
net.eth.0 : If you know the IP address the DCM is going to use over this
interface, you should set this option to static and fill in the details
below. Alternatively, you can select dhcp/bootp and have the DCM
automatically request an address over the network. If you choose the
dhcp/bootp option, you should ensure that a gateway computer exists
on your network that can receive these requests, and that the DNS
(nameserver) entry for the DCM is kept current. You can then ignore
the remaining settings on this page.
94 Issue F
Operator's guide
has no effect.
If you are configuring the DCM over an SSH connection, changing any
of the remaining options will cause you to lose contact with it. You
will have to log in to the DCM again (using the same IP address) to
continue configuring.
December 2006 95
CMG-DCM Data Communications Module
in the list.
For more information on the route command, please see its Linux
manual page.
It is not essential that you set up DNS for the DCM to work, or to
update the software.
The rest of the settings on this page determine how the DCM
determines the addresses of other hosts on the network from their host
names.
96 Issue F
Operator's guide
If you do not need the DCM to be able to fetch mail, select None from
the net.mail.in.type drop-down menu and ignore the remaining
settings.
December 2006 97
CMG-DCM Data Communications Module
• For pop3 mail, this port will normally be 110, or 995 for secure
POP3 over TLS (transport-layer security).
• For imap mail, this port will normally be 143, or 993 for secure
IMAP over TLS.
If you do not need the DCM to be able to send mail, select None from
98 Issue F
Operator's guide
December 2006 99
CMG-DCM Data Communications Module
If all these methods are disabled, you may still be able to connect to
the DCM over a serial link using getty (see serial.x.service, above), or
over a direct modem connection. Your settings will come into effect as
soon as you click Save settings, so you should ensure that you have a
backup means of communication with the DCM before disabling these
methods.
6.11 PPP
These pages allow you to alter the PPP configuration files,
/etc/ppp/options and /etc/ppp/chap-secrets.
These two files are required by the Linux PPP server, and affect all ppp
services on the DCM. Separate PPP options for each port may be
specified under Serial port configuration; see above.
• the permissions (read, write, or execute) of the file for its own
user, its own group, and all others; and
100 Issue F
Operator's guide
The Web interface does not check that the content of the files will be
understood. You should ensure that the file is valid before committing
any changes, referring to the Linux manual page for pppd(8) if you
are unsure.
When you have finished editing a file, clicking Save changes will
write the changes to disk. The changes will not take effect, however,
until the PPP services are restarted. You can restart all running PPP
services by clicking Restart PPP; whilst this occurs, the network will
be briefly unavailable.
options
The file /etc/ppp/options sets the default options for the PPP
daemon. These will be applied to all PPP connections and to any of the
serial ports which are running the ppp service. The file is treated as a
list of words, each either an option or an argument to a previous
option. For a list of the available options, and a full explanation of the
format of the /etc/ppp/options file, see the Linux manual page for
pppd(8).
You can specify additional options for each serial port separately using
the serial.x.ppp configuration option, which can be found on the Serial
port configuration page for that port.
chap-secrets
The file /etc/ppp/chap-secrets contains secrets for pppd to use
The Web interface does not check that the content of the files will be
understood. You should ensure that the file is valid before committing
any changes, referring to the Linux manual page for mgetty(8) if you
are unsure.
When you have finished editing a file, clicking Save changes will write
the changes to disk. The changes will not take effect, however, until all
mgetty services are restarted. You can restart all running mgetty
services by clicking Restart mgetty; whilst this occurs, the network will
be briefly unavailable.
mgetty.config
The file /etc/mgetty+sendfax/mgetty.config is the main
configuration file for mgetty.
For full details on the format of the file and the options available, see
the explanatory comments within the file, or the Linux info
documentation for mgetty.
login.config
Normal user logins are handled by the program /bin/login. However,
you may want to run a different program to handle logins by certain
users. You can do this by editing the file
/etc/mgetty+sendfax/login.config.
For full details on the format of the file, see the explanatory comments
within the file, or the Linux info documentation for mgetty.
102 Issue F
Operator's guide
6.13 Administrators
This page allows you to add new users to the DCM, and change the
passwords of existing users.
You may want to give different users separate accounts for tracking or
other purposes, or to allow users to set their own preferences when
logging in. Alternatively, you may prefer to restrict access only to those
with administrative requirements, by removing any unprivileged user
accounts. If you want to access the DCM by any means, locally or
remotely, you must have a username and password on the list given
here.
If this is the first time you have logged in to the DCM, there will be a
single user, root, whose password is factory-set. To add a new user,
fill in their username and password in the top two boxes of the page.
Repeat the password in the next box, to ensure it is entered correctly
(since it will not be visible on screen), and click on Add user. A
username may not contain spaces or colons.
You can also change the password for any account, for example if you
believe it to have been compromised, or if you are assigning it to a new
person. To do this, choose their username from the same drop-down
box and repeat the new password in the two boxes at the bottom of the
page. Again, the password will not be visible on screen. Click Change
password to make the change.
104 Issue F
Operator's guide
7 Configuring digitizers
To configure a digitizer, open the Configuration – Serial Ports page
and find the entry for the serial port attached to the digitizer.
Alternatively, click the same link in the serial port table shown on the
front (Summary) page.
You should ensure that the baud rate is high enough to allow all the
data to be transmitted at the rates you have chosen. As an example, for
three streams transmitting at 100 Hz, a rate of 9600 baud is usually
sufficient. Modern modems can normally operate at rates up to 57600
baud (~56 kbits/s), although the telephone or transmission lines may
not support such a high rate. The same is true of radio telemetry links.
Every data or status block sent by the digitizer will contain them as the
first two 32-bit fields in the header.
On delivery of the digitizer from the factory, the System ID is set to the
Güralp Systems works order number, and the Serial number is set to
the serial number for that digitizer.
106 Issue F
Operator's guide
GPS Power Cycle : If you have selected Garmin GPS as the timing
source, above, this setting determines how often the attached
instrument will power up the GPS receiver to obtain an accurate
timing signal. Between timing fixes the instrument will run on its
internal clock, saving power at a small expense in accuracy. If your
instrument has ready access to a power source, you should select
always on.
Not all digitizers support the full range of taps and decimation factors.
For example, the Güralp DM24 allows you to select decimation factors
of 2, 4, 5, 8, and 10 only, and does not allow the decimation factor of
Tap 0 to be altered from its default setting of 10. In addition, no
combination of decimation factors may be used which produces a non-
integer data rate (in Hz). A full list of possible tap combinations for the
DM24 is given in Section 7.3, below.
Each grid also has two rows, which differentiate between constant and
triggered output. If a box in the upper row is ticked, that stream will
produce output constantly at the corresponding sample rate. If the box
below it is ticked, that stream will only produce output at that rate if a
particular set of trigger criteria are also met. If the constant-output
check box is ticked, the other will be ignored.
The table to the right shows the current setting of the digitizer.
For example:
The next section allows you to alter the criteria that the digitizer uses
when deciding whether a trigger event has occurred.
108 Issue F
Operator's guide
You can select which tap is tested for the trigger from the Trigger
source drop-down menu. The tap does not have to be selected for data
output for you to be able to use it here.
The next option, Trigger filter, allows you to apply a bandpass filter at
this stage (see below.)
Any or all of the channels available at the tap you have selected may
be used to determine a trigger. The next part of the window lists the
channels, each with Enable, STA, LTA and Ratio settings. The Enable
boxes determine which channels are considered for triggering. If any of
the checked channels passes the trigger condition, the trigger will
activate, and will not detrigger until all of the checked channels have
fallen below their respective Ratio values.
The STA and LTA columns allow you to set the intervals over which
the two averages are calculated, in seconds. Typically, the time
interval for the short term average should be about as long as the
signals you want to trigger on, while the long term average should be
taken over a much longer interval. Both the STA and LTA values are
recalculated continually, even during a trigger.
The Ratio column determines by what factor the STA and LTA must
differ for the trigger to be passed. Finding the ratio most suited to your
needs is best done by experiment. Too high a value will result in
events being missed, while too low a value will result in spurious non-
seismic noise triggering the system. Like the averages, their ratio is
continuously recalculated for all components. Note that none of the
boxes are allowed to be empty, and so you will need to enter the new
value before removing the old one. Alternatively, you can use the up
and down cursor keys to change the values.
For example, setting the STA to 1 second, the LTA to 10 seconds and
the Ratio to 4 would give rise to the following trigger behaviour:
110 Issue F
Operator's guide
Usually, the values of the STA and LTA periods, and of the Ratio, will
be the same for all checked channels. For convenience, Scream! will
automatically fill in other values to match ones you enter. If you want
to use different values for some channels, you should uncheck
Common values before altering them.
If you are using Scream!, you can use the Control window to change
the values of the STA and LTA periods, together with the Ratio,
without restarting the digitizer. See the documentation for Scream! for
more details.
As can be seen, the filter you choose defines the set of permissible
sample rates.
Since it is an optional feature, the digitizer may not use the Pressure
Mux channel to report pressure data. If this is the case, that channel
may be used for another purpose. Likewise, the three channels marked
Spare may not be used, depending on the optional features present in
the instrument.
112 Issue F
Operator's guide
• The CMG-3ESP sensor type has manual mass lock and remote
centring, so only the Centre instrument button is active.
Lock and Unlock instrument are provided so that you can secure the
seismometer's sensor mass for safe transportation. Once installed and
unlocked, you should Centre instrument to move the mass to the
correct position to start measuring data. During the execution of any of
these commands, the system will display the three components of the
mass's current position and update them once per second per
component. When the masses are correctly centered all three readings
should be less than ±1,000 counts. Locking or unlocking the sensor
mass typically takes several minutes to complete.
All the received data is stored in files in the on-board Flash memory.
There are two banks of Flash memory available, which are accessible
as /nand0 and /nand1 in the Linux file tree. Data is normally stored
as GCF (Güralp Compressed Format) files.
In automatic mode, when the Flash memory becomes more than 75%
full, the oldest data files are moved to the DCM's primary hard disk
until it is less than 50% full. If you prefer, you can configure the DCM
to write to the hard disk at set intervals.
114 Issue F
Operator's guide
You may need to enable and configure some of these methods before
you can use them: see Chapter 6, page 80, for more details.
Most installations of the DCM will not require any more complex
setting up than the Web configuration system can offer. However, in
some cases you may need to take advantage of the flexibility offered by
the underlying Linux operating system.
Once the operating system is loaded, the main Flash memory blocks
(where present) are mounted on /nand0 and /nand1. Incoming data,
which may be from several sources, is combined into a single stream
and placed in one of these blocks (whichever is less full). When in use,
you can expect each to be between 50% and 75% full, with several
da:ta files present. If the DCM is using GCF as its storage file format
(recommended; see Section 6.3, page 86) then each file will be named
after the timestamp on its first packet of data, in the following fashion:
gfat32df : Displays the size of the filesystem, and how much free
space remains, in a format similar to this:
If no suitable storage medium can be found, you will see the message
Failed to find a USB disk.
116 Issue F
Operator's guide
Whilst the DCM is copying the contents of the Flash memory to disk,
you will be shown a log of its progress. The USB interface can transfer
data at a speed around 100 Kb/s, so large files may take several
minutes to complete.
Once a file has been moved from the Flash memory to disk, any further
data received which would otherwise be appended to that file will
instead be placed in a new file in the Flash memory. Because of this, a
stream may occasionally be fragmented. The automatic options are
chosen to minimize this likelihood by only moving the oldest files, and
by keeping files in Flash memory for a reasonable period of time. If
you choose to transfer files to disk more often than this, more files will
be fragmented.
gfat32 ls : List the files present on the hard disk, with the size of
each file.
Once the connection has been set up and you have logged in, you will
then be shown a command prompt:
~ #
By default, your account uses the standard Bourne shell, sh. If you
prefer, the more advanced shells ash and bash are also available.
Many standard Unix programs are also present: ls, cat, more, sed,
etc.
The following sections describe how to operate a DCM from the Linux
command line, including descriptions of all commands unique to the
DCM. Any of these commands can be included in your own shell
script files, which can be run as services on the DCM or remotely using
a ssh connection as required. If you need to compile your own C or
FORTRAN programs to be run on the DCM, please contact Güralp
Systems for assistance.
8.3 Configuration
Configuring the DCM is automated by a suite of command line tools.
These maintain a configuration database and check that all the
relevant Linux files are kept up to date. If you alter the standard Linux
configuration files, you should bear in mind that these tools will
overwrite them without checking that they match the information in
the database. Because of this you should use the tools wherever
possible rather than editing the files directly. The DCM's Web-based
configuration system is just a front-end to these tools.
~ # gcfgdbls serial.0
serial.0.baudrate
serial.0.handshaking
serial.0.ppp
serial.0.service
118 Issue F
Operator's guide
certain options are numbers), but will not otherwise make sure that
your change makes sense.
Note that marking an option as “dirty” will not necessarily lead to any
action being taken. For example, you cannot force a service to be
restarted using these commands.
Each of the four tools can also take two command-line options:
gcli will wait for the digitizer command to finish before exiting, and
will only output any response from the digitizer afterwards. If you
need to issue a command which monitors a value, you will need to
connect to the digitizer's console directly using Scream! or minicom.
If you need an interactive session with the digitizer, you can use the
Linux terminal program minicom, which has been configured
specially to cooperate with the DCM's various serial services. You can
open a session with a digitizer by issuing the command
minicom -n port-number
If the port you specify is set to gcf_in, the DCM will automatically
interrupt the data flow from the digitizer to allow you to enter
commands.
When you have finished your session, press CTRL-a then q. minicom
120 Issue F
Operator's guide
will ask you if you want to quit without resetting the connection.
Choose yes to return the digitizer to data mode.
8.4 Monitoring
Data flow
You can check that the DCM is receiving data either by monitoring the
Summary page of the on-board Web interface (see Section 4.1, page
51), or from a command prompt using the command gnblocks:
You can query a single port by using the port number or key as
arguments to the gnblocks command:
gnblocks 2
gnblocks 0x7002
gnblocks 28674
(In the last example, 28674 is the key ID 0x7002 expressed in decimal:
hex 7002 = 7 × 163 + 2 = 28674.)
Another way to find out the index, key ID, name or device name of a
particular serial port is to issue the command serialmap. A line will
be output for each serial port, in the form
where port and baud are in decimal, and Key in hexadecimal. The
related command serialmap -k returns the key ID in decimal.
Digitizer status
The Güralp DM24mk3 digitizer outputs status information as a
separate stream. If you have a DM24mk3, you can monitor this stream
with the command
dm24mk3cds -s port-number
The information given, after the stream ID (which will always end in
CD), is as follows:
• whether the GPS has obtained a fix (0 = has not received any
data, 1 = has not obtained a fix, 2 = has obtained a 2D fix, and 3
= has obtained a 3D fix);
• the current measured offset between GPS and the internal clock,
in units of 500 ns;
122 Issue F
Operator's guide
centred;
Tamper lines
The command tamper provides information about the current state of
the DCM tamper lines. Issued with no arguments, it will output the
status of all tamper lines once every 10 seconds. Including the -w
option causes it to exit after printing the status once only:
• over a serial link to the DATA OUT port (115200 baud, 8 data
bits, no parity bit, 1 stop bit, no flow control), or
Once the files are on the hard disk, you can install it in a DCM and
transfer the packages with the command
upgrade gfat32
This facility is available with versions 2.10 and greater of the upgrade
package.
to remove the package. This will not affect the operation of the system
in any other way; however, it may prevent Güralp Systems' engineers
from being able to assist you in the event of problems.
ipkg can also be used for other package management tasks; however,
if you remove software from the DCM, or replace packages with
versions incompatible with the rest of the system, you risk leaving the
unit in an unrecoverable state. We recommend that you use only
upgrade wherever possible, to ensure that you have a fully tested set
of packages.
124 Issue F
Operator's guide
The firmware
Reinstalling the firmware from scratch is a more involved process, and
you should only need to do it if the root or boot partitions of the DCM
become corrupted. In this case, you can use the boot loader (which is
resident in hardware) to update them. You will need a second DCM or
Linux computer attached to the console port in order to do this.
Note that the firmware is not the same as the distribution. If you want
to ensure that your DCM has all the latest software, you should use the
upgrade command described above. Reinstalling the firmware will
reset any changes you have made to the system.
MkII DCM or AM
Mark II DCMs and AMs have a 256 kb bootloader, a 1 Mb kernel image
and a 64 Mb file system image. Currently all surface DCM units are the
Mark II design.
2. Obtain the flashdcm tool from the same site. This is a Linux
utility which enables you to access the DCM's firmware. If you
are using a second DCM, flashdcm will already be present on
it.
7. Wait for the new firmware to be uploaded. The DCM will reboot
automatically at the end of transmission, and the flashdcm
process will terminate. This may take several minutes.
126 Issue F
Operator's guide
9 Connector pinouts
Pin Function
A Power 0 V
B Power +10 to +35 V
C RS232 RTS
D RS232 CTS
E RS232 DTR
F RS232 DSR
G RS232 ground
H RS232 CD
J RS232 transmit
K RS232 receive
Pin Function
A Power 0 V
B Power +10 to +35 V
C RS232 CTS
D RS232 RTS
E RS232 DTR
F RS232 DSR
G RS232 ground
H RS232 CD
J RS232 receive
K RS232 transmit
USB connector
This is a standard 6-pin mil-spec socket (02E-10-06S).
Pin Function
A +5 V DC (USB Type A pin 1)
B Data –ve (USB Type A pin 2)
C Data +ve (USB Type A pin 3)
D 0 V (USB Type A pin 4)
E Shielding
F Switched power +10 to +35 V
NETWORK connector
This is a standard 6-pin mil-spec plug (02E-10-06P).
Pin Function
B Data transmit +ve (RJ45 pin 1)
C Data receive +ve (RJ45 pin 3)
E Data receive –ve (RJ45 pin 6)
F Data transmit –ve (RJ45 pin 2)
128 Issue F
Operator's guide
Pin Function
D Power +10 to +30 V
E Power 0 V
J Data transmit +ve
K Data transmit –ve
L Data receive +ve
M Data receive –ve
R AM console receive
S AM console transmit
T AM console ground
U Tamper switch 5
V GPS 1pps signal
W GPS RS232 transmit
X GPS RS232 receive
Y GPS RS232 ground
Z DM console transmit
a DM console receive
b DM console ground
c Tamper switch 0
d Tamper switch 1
e Data ground
f Tamper switch ground
g Tamper switch 2
h Tamper switch 3
j Tamper switch 4
If you are unsure about the code you should use, contact Güralp
Systems.
130 Issue F
Operator's guide
11 Revision history
2006-12-13 F Added datatransfer.scream.server.udp_push
132 Issue F