![cypress solutions CTM-200 Manual Download Page 49](http://html1.mh-extra.com/html/cypress-solutions/ctm-200/ctm-200_manual_2706762049.webp)
Reporting
48
© 2021 Cypress Solutions
Complete Manual: CTM-200 R2 (Revision 1.4)
Reports need to be located in the
/var/data/reports/scripts
directory on the CTM-200. The file naming
convention is reportN.sh where N is the report number, for example report9.sh would be a script that would
execute based on general report 9 being triggered.
Note: For standard GPS and Input/Output reports the corresponding file based report number for GPS report
1 is report1020 and for IO report 1 is report1040.
The format for the script file
#!/bin/sh
…………….
………………………..
…………………………………..
…………………
Shell scripts must also respect Unix line endings. If written using a windows editor CR/LF must be stripped
from the file, this can be performed after the file is copied across to the CTM-200 using the “dos2unix”
utility.
Shell scripts must have their mode changed to executable, this is accomplished by using the chmod
command, ie chmod +x “filename.sh”
11.8
File Based Reporting
In addition to providing real time reporting, reports can be stored in files. One advantage to file based
reporting is that the trigger mechanism or reporting interval can be set to a high frequency above practical
means for real time reporting. The reports can be compressed into a “zip” format for easy archival and
delivery.
11.9
Store and Forward
All reports can be enabled to utilize the “store and forward” feature of the CTM-200. Store and forward
allows the CTM-200 to store reports in non-volatile system memory when the device is out of Wireless
coverage (Cellular or Wi-Fi). The CTM-200 uses internal logic that determines when the wireless signal is at
a level where the real time delivery of data would be compromised. When it detects this condition, the