TestHost Firmware with 1-Wire Bus Support ----------------------------------------- Ref: http://wiki.villagetelco.org/1-Wire_Bus_for_MP02 1. Install the TestHost firmware on a MP02 / MS14 device. It will appear on IP address 10.130.1.1 2. Install the standard SECN firmware (eg SECN-4 GA01.2) on an MP02-Basic or MPO2-FXS device as the DUT. By default it will appear on the usual SECN IP address of 10.130.1.20 3. Install the DUT Patch on on the MP02 DUT device using the SECN Firmware Upgrade screen. 4. The two devices should mesh together. Make sure there are no other devices running on the same default mesh / channel (Ch1). 5. Connect the TestHost device to an upstream network via an Ethernet cable to its WAN port. 6. Connect your PC to the TestHost LAN port and log in to the command line with "ssh root@10.130.1.1" There is no password required. 7. Test that you can ping the DUT from the TestHost command line. 8. To perform a demo test run, use the command: # testhost.sh 10.130.1.20 5 This will run the test every minute on the DUT for a duration of 5 minutes and output the test log. You can also view the test log on a browser at the URL: http://10.130.1.1/testlog.txt A sample test output is shown below. Note that the test log is stored in RAM on the TestHost device and so will be lost on power cycle. The four individual tests that are run are as follows: - Temperature, as measured with a DS3231 I2C module fitted to the TestHost device - Signal strength received on the TestHost from the DUT - A ping test on the DUT to 8.8.8.8 - The CPU load on the DUT. 9. You can run the test on the TestHost device itself by specifying the Localhost IP address as follows: # testhost.sh 127.0.0.1 5 10. To (optionally) measure temperature, connect a DS18B20 sensor to the required W1 signal and power lines on the the 'Router' connector on the MS14/MP02 board as follows: - Gnd Pin 4 - Vcc 3.3V Pin 1 - W1 GPIO20 Pin 5 Connect a 4.7kOhm pullup resistor betweeen the W1 line and 3.3V Vcc line. Multiple DS18B20 sensors may be connected to the bus; the firmware will record the temperature readings of each device.