Project:HUGnet:Scripts
From HUG Wiki
(Redirected from Project:HUGnet Scripts)
Scripts are code that run in the background. They do most of the actual work in the HUGnet system.
Contents |
Documentation
The code documentation is here. It is generated with phpDocumentor.
Endpoint Scripts
These are the main scripts for endpoints in the Scripts/endpoints directory. They form the core of the HUGnet software.
- 0039-26-01-P poll.php Polls endpoints and deals with unsolicited packets.
- 0039-26-02-P updatedb.php Pushes the new records to the database
- 0039-26-03-P analysis.php Crunches numbers and analyzes database records.
- 0039-26-04-P endpoint.php This script actually talks to the endpoints. Other scripts use this one as a gateway.
- 0039-26-05-P control.php A control daemon for controlling building functions on all the buildings.
- 0039-26-06-P config.php Checks endpoint configurations and makes sure they are up to date
Test Scripts
These are useful scripts in the Scripts/test directory.
- checkInterp.php Runs the data interpretation routines on the last raw packet from an endpoint
- getConfig.php Gets the configuration of an endpoint
- loadprog.php Loads the program into the controller board. **BROKEN**
- sizetest.php ??
- getSensors.php Gets the current sensor information from an endpoint
- ping.php Sends out a ping packet to an endpoint
- sockettest.php ??
- directiotest.php Testing PHP directIO. **VERY BROKEN**
- getdata.php ??
- sendpacket.php Sends a arbitrary packet based on input given.
Misc Scripts
These are useful scripts in the Scripts/misc directory.
- monitor.php Monitors a HUGnet line. Simply prints out all of the packets going across it
- programEP.php Programs an endpoint from firmware in the database.
- savefirmware.php Saves firmware to the database.
SVN Access
The svn file path for this is:
See SVN Code Repository for more information

