On 9/28/2011 08:11, Paul Alfille wrote:
It seems like testing for valid bus masters would be an easy utility
to write with owcapi. Even Forking multiple children for parallel testing.
With a little testing I note that
OW::init("-d/dev/ttyS3 --timeout_serial=2 --timeout_usb=2
--timeout_presence=2 --timeout_network=1 --error_level=9") or exit(1);
print "Serial port present\n";
will not return when the port has no adapter. It enters a retry loop.
I thought lowering the timeouts would help. Any ideas?
Testing Serial port
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(75) Avahi support:
libavahi-client loaded successfully
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(77) Avahi library
function found: avahi_client_errno
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(78) Avahi library
function found: avahi_client_free
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(79) Avahi library
function found: avahi_client_new
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(80) Avahi library
function found: avahi_client_get_domain_name
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(81) Avahi library
function found: avahi_entry_group_add_service
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(82) Avahi library
function found: avahi_entry_group_commit
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(83) Avahi library
function found: avahi_entry_group_is_empty
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(84) Avahi library
function found: avahi_entry_group_new
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(85) Avahi library
function found: avahi_entry_group_reset
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(87) Avahi library
function found: avahi_service_resolver_free
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(88) Avahi library
function found: avahi_service_resolver_new
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(89) Avahi library
function found: avahi_service_browser_free
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(90) Avahi library
function found: avahi_service_browser_new
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(102) Avahi support:
libavahi-common loaded successfully.
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(104) Avahi library
function found: avahi_simple_poll_free
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(105) Avahi library
function found: avahi_simple_poll_get
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(106) Avahi library
function found: avahi_simple_poll_loop
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(107) Avahi library
function found: avahi_simple_poll_new
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(108) Avahi library
function found: avahi_simple_poll_quit
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(109) Avahi library
function found: avahi_strerror
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[]
DEBUG: owlib.c:SetupTemperatureLimits(79) Globals temp limits 0C 100C
(for simulated adapters)
DEBUG: ow_ds9097U.c:DS2480_initialize_repeatedly(267) Attempt #0 to
initialize the DS9097U
DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(356) Send the initial
reset to the bus master.
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_ds9097U.c:DS2480_configuration_write(418) wrong response
(3D not 44)
DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(356) Send the initial
reset to the bus master.
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 2.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
DEBUG: ow_ds9097U.c:DS2480_configuration_write(418) wrong response
(3D not 44)
DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(356) Send the initial
reset to the bus master.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers