Testing without hardware
It's hard sometimes separating out problems with hardware, wiring, operating system, and software. Here are solutions:- Try with the Fake adapter
/opt/owfs/bin/owhttpd --fake=10 -p 4444
tophighest level directory 10.67C6697351FF10.67C6697351FF directory bus.0bus.0 directory uncacheduncached directory settingssettings directory systemsystem directory statisticsstatistics directory structurestructure directory simultaneoussimultaneous directory alarmalarm directory - This is a trio of "simulated" bus masters. No actual hardware is required, but the software will report (simulated) data.
- This is a great way to start software development of testing before the hardware is installed.
- The Fake adapter doesn't require special operating system permission to access physical ports.
- For testing the Tester and Mock adapter are variants of the Fake adapter with more predictable simulation.
-
- Brian Lane's digitemp is an alternative 1-wire program with more limited scope, but simpler setup.
- It supports the USB, passive and DS9097U adapters.
- If digitemp also fails to work, there is a strong indication that the problem is hardware rather than software.
- Turn on debugging
- --foreground to see simple errors
> /opt/owfs/bin/owhttpd -u -p 4444 --foreground
Could not open the USB adapter. Is there a problem with permissions?
DEFAULT: ow_ds9490.c:DS9490_detect(306) Could not open the USB adapter. Is there a problem with permissions?
DEFAULT: owlib.c:SetupInboundConnections(167) Cannot open USB adapter - --error_level=0 to 9 for increasing detail.
- --foreground to see simple errors
Previous page: Postgres and Python by Jerry Scharf
Next page: Aliases for slave IDs