I am having trouble getting a PCSensor USB9097 to work. According to the 
archives I believe this is a ch-341 USB->Serial converter and a DS2480B 
combined in one.

I'm using Ubuntu 12.04 with a 3.4rc kernel. I installed owfs using:

sudo apt-get install owfs

Then disabled the services with:

sudo service owhttpd stop
sudo service owftpd stop
sudo service owserver stop

Then I plugged in the USB9097 - dmesg reports the following:

usb 6-1: new full-speed USB device number 3 using uhci_hcd
ch341 6-1:1.0: ch341-uart converter detected
usb 6-1: ch341-uart converter now attached to ttyUSB0

Next I run owhttpd:

sudo /opt/owfs/bin/owhttpd --debug -d /dev/ttyUSB0 -p 4444

I get the following output:

   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(265) Attempt #0 to 
initialize the DS9097U
   DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(354) Send the initial 
reset to the bus master.
   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
   DEBUG: ow_ds9097U.c:DS2480_configuration_read(432) wrong response (25 
not 00)
   DEBUG: ow_ds9097U.c:DS2480_set_baud_control(447) Failed first attempt 
at resetting baud rate of bus master /dev/ttyUSB0
   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
   DEBUG: ow_ds9097U.c:DS2480_configuration_read(432) wrong response (95 
not 00)
   DEBUG: ow_ds9097U.c:DS2480_set_baud_control(452) Failed second 
attempt at resetting baud rate of bus master /dev/ttyUSB0
   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.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: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
   DEBUG: ow_ds9097U.c:DS2480_configuration_read(432) wrong response (25 
not 00)
   DEBUG: ow_ds9097U.c:DS2480_set_baud_control(447) Failed first attempt 
at resetting baud rate of bus master /dev/ttyUSB0
   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
   DEBUG: ow_ds9097U.c:DS2480_configuration_read(432) wrong response (95 
not 00)
   DEBUG: ow_ds9097U.c:DS2480_set_baud_control(452) Failed second 
attempt at resetting baud rate of bus master /dev/ttyUSB0
   DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.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: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
   DEBUG: ow_ds9097U.c:DS2480_configuration_write(416) wrong response 
(76 not 44)

What am I doing wrong, or is this a bug?

Simon

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to