[back to menu]

Server software

Introduction

This software has been written for LINUX operating system and runs in background as a "daemon".

All the Client Cards are connected to only one RS232 port of the LINUX PC and use a specific communication protocole.

Software

The software is written in PERL. It has a main program named "domo.pl" and several PERL modules to be installed in a sub-directory named "modules".

Command line option

-D : do not start as daemon (stay in foreground)
-h : list the command line options
-v : verbose debug to standard output
-l : log to "/var/log/domo"
-p serial_port: change serial port (default: "/dev/ttyS0")
-t time_format: change time format (default: "%d-%b-%y %T")

Modules

TX.pm : Decodes the lacrosse TX sensors frames. The values are stored and the mean values are computed each 5 minutes
The values are labelled "tempe" and "hydro"
  
WS.pm : Decodes the lacrosse WS sensors frames. The values are stored and the mean values are computed each 5 minutes
The values are specific to sensors:
  • WS7000-15 : "speed" and "direc"
  • WS7000-16 : "pluvi"
  • WS2500-19 : "expos" and "sunsh"
  • WS7000-20 : "thermo", "hygro" and "barom"

Output file: domo.dat

This file is updated each 5 minutes and holds the received measures:

TX 4a hygro  59.4 62
TX 4a tempe  11.0 62
TX b6 hygro  56.0 50
TX b6 tempe  10.3 28
TX 46 hygro  56.8 57
TX 46 tempe  10.7 59
TX 6c hygro  49.0 57
TX 6c tempe  10.3 61
TX c8 hygro  56.0 56
TX c8 tempe  10.9 29
TX d8 hygro  58.0 59
TX d8 tempe  10.9 60
TX 0a hygro  57.0 62
TX 0a tempe  11.3 55
TX 8c hygro  56.0 57
TX 8c tempe  10.5 54
TX 64 hygro  54.0 48
TX 64 tempe  11.4 55
WS 37 speed  42.5 16
WS 37 direc   270 16
    Columns:
  1. type of sensor
  2. address of the sensor
  3. type of the measure
  4. measure given by the sensor
  5. number of measures received during the last hour

Output file: domo.stat

This file is updated each 5 minutes and holds the RS232 frames statistics:

1220304591 01-Sep-08 23:29:51
Sent     characters:86362
Received characters:2931515
Spurious characters:0
Checksum errors    :0
Unknown frames     :1190
Lost pings         :0

Download server software for Linux



[back to menu]