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
top
highest level directory 10.67C6697351FF
10.67C6697351FF directory bus.0
bus.0 directory uncached
uncached directory settings
settings directory system
system directory statistics
statistics directory structure
structure directory simultaneous
simultaneous directory alarm
alarm 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