Project:HUGnet Troubleshooting
From HUG Wiki
This page is meant to help you troubleshoot a HUGnet system.
Contents |
Hardware
Create a hardware troubleshooting diagram
No Endpoints are Logging
Check the Network
Make sure that the network between the database computer and the core are getting IP addresses and that those IP addresses are at least semi-static. If the address of the database computer changes then the core won't be able to send data to it anymore.
Try using telnet (if no password is set on the core) or ssh (if there is a password set on the core) to get to the core from the database computer.
Endpoint Not Logging
Check Wiring
If the endpoint has never logged, check the wiring. Make sure the polarity is correct and the wires are going into the correct terminals.
Check Endpoint/Daughter Board Connection
Make sure that all of the connectors are actually mating between the circuit boards. It is actually pretty easy to 'miss' with one or more of the connectors.
Check Voltage
Check to make sure that the endpoint has voltage. The voltage across it should be at least 12 volts.
Check the voltage between pin 20 (VCC) and pin 16 (GND) on the 20 pin connector. This should be 5 or 3.3 volts depending on the endpoint. This should be done with the daughter board in place on the endpoint board.
Endpoint Not Showing Up at All
If you endpoint doesn't show up at all in the list of endpoints try some of these things.
Reset the Endpoint
Reset the endpoint a couple of times, checking if it is reporting in between each reset. The more endpoints are on a line, the more likely the powerup packet will get lost.
No Endpoints on that Controller are Showing Up
Check Controller Board LEDs
- The power LED (the single one by the 5 pin connector) should be lit up green if the board has power.
- The HUGnet power LEDs (on either side of the 4 pin connector) should also both be lit up green.
- The HUGnet data LEDs (next to the HUGnet power LEDs) should only light up intermittently. If they light up constantly, replace the controller board.
Check the Voltage to the Controller Board
Make sure the voltage is between 12 and 24 volts.
Check that the Controller Board is Logging
Any controller board that has endpoints on it should also be set up to log. If the controller is also not logging, try resetting the controller board. If that doesn't work, check the connections between the controller board and the RS485 bridge. Make sure the polarity is correct and that the wires are undamaged.
Software
No Endpoints are Logging
Check the settings
These settings are all under HUGnet->Configuration on the core itself.
- The core should be set with the IP address of the database computer
- The username and password must be valid
- The name of the database must be correct.
- The core will not create the database automatically. That must be done beforehand.
- Polling and Config should be enabled
Check to make sure everything is running
Make sure MySQL is running on the database computer
use:
ps aux|grep mysql
to check to see if the database server is running on the database computer
Make sure the 4 scripts are running
These scripts can be checked using the program 'conspy'. It is a program that shows what is happening on a console terminal. Conspy takes one argument, the number of the console. It is used like:
conspy 5
- poll.php
- The polling script runs on console 5
- config.php
- The configuration script runs on console 6
- endpoint.php
- The endpoint script runs on console 7
- updatedb.php
- The database update script runs on console 8

