I was worried that a serial mode bug had crept into the program, so I just
tested the current owfs version with a pl2303 and serial adapter on x-64
architecture (i.e. a desktop system). It works perfectly, both for the
DS9097U and the passive adapter.
So assuming your USB/serial adpter and DS9097U are fine, the problem is
with the two different architectures. Could there be bugs in the ARM
version of the pl2303 kernel module?
I'm not exactly how to procede, except that maybe trying another program
(like digitemp) for comparison might be illuminating.
Paul
On Tue, Nov 6, 2012 at 12:21 PM, Thomas Parvais <[email protected]> wrote:
> Hello
>
> I finally succeed to compile last owfs on my SheevaPlug (Debian Squeeze)
> by following the next sequences below thanx
> http://archive.pfb.no/2010/04/01/owfs-on-debian-squeeze/#) .
>
> (as root)
>
> 1. libusb
>
> tar -xvzf libusb-0.1.12.tar.gzcd libusb-0.1.12
> libusb-0.1.12$ ./configure --without-x
>
> makemake install
>
> 2. owfs
>
> cd owfs
> ./configure --enable-debian
>
> makemake install
>
> vi /etc/udev/rules.d/56-owfs.rules
>
> Paste the code below.
>
> ##########################################################
> SUBSYSTEM!="usb_device", ACTION!="add", GOTO="owfs_rules_end"
>
> # DS2490 1-Wire adapter
> SYSFS{idVendor}=="04fa", SYSFS{idProduct}=="2490", MODE="0666",
> GROUP="owfs"
>
> LABEL="owfs_rules_end"
> ##########################################################
>
> addgroup owfs
> usermod -a -G owfs rootmkdir /mnt/1-wire
>
> voilĂ ,
>
>
> However, when I launch owserver , I have problems:
>
>
> root@sheeva:~/libusb-0.1.12# owhttpd -d /dev/ttyUSB0 --debug -p 3001
>> DEBUG MODE
>> libow version:
>> 2.8p20
>> DEBUG: ow_daemon.c:(167) main thread id = 1076887552
>> CONNECT: ow_avahi_link.c:(72) No Avahi support. Library libavahi-client
>> couldn't be loaded
>> CONNECT: ow_dnssd.c:(82) Zeroconf/Bonjour is disabled since dnssd library
>> isn't found
>> CALL: ow_parsename.c:(98) path=[]
>> DEBUG: owlib.c:(82) Globals temp limits 0C 100C (for simulated adapters)
>> DEBUG: ow_ds9097U.c:(285) Attempt 0 of 3 to initialize the DS9097U
>> DEBUG: ow_ds9097U.c:(376) Send the initial reset to the bus master.
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(454) wrong response (0F not 00)
>> *DEBUG: ow_ds9097U.c:(471) Failed first attempt at resetting baud rate
>> of bus master /dev/ttyUSB0*
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(454) wrong response (0F not 00)
>> DEBUG: ow_ds9097U.c:(476) Failed second attempt at resetting baud rate
>> of bus master /dev/ttyUSB0
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(454) wrong response (0F not 00)
>> DEBUG: ow_ds9097U.c:(471) Failed first attempt at resetting baud rate
>> of bus master /dev/ttyUSB0
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(454) wrong response (0F not 00)
>> DEBUG: ow_ds9097U.c:(476) Failed second attempt at resetting baud rate
>> of bus master /dev/ttyUSB0
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(438) wrong response (45 not 44)
>> DEBUG: ow_ds9097U.c:(376) Send the initial reset to the bus master.
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(454) wrong response (0F not 00)
>> DEBUG: ow_ds9097U.c:(471) Failed first attempt at resetting baud rate
>> of bus master /dev/ttyUSB0
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(454) wrong response (0F not 00)
>> DEBUG: ow_ds9097U.c:(476) Failed second attempt at resetting baud rate
>> of bus master /dev/ttyUSB0
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(454) wrong response (0F not 00)
>> DEBUG: ow_ds9097U.c:(471) Failed first attempt at resetting baud rate
>> of bus master /dev/ttyUSB0
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(454) wrong response (0F not 00)
>> DEBUG: ow_ds9097U.c:(476) Failed second attempt at resetting baud rate
>> of bus master /dev/ttyUSB0
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
>> DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
>> DEBUG: ow_ds9097U.c:(438) wrong response (45 not 44)
>> DEBUG: ow_ds9097U.c:(376) Send the initial reset to the bus master.
>
>
> same kind of results if I launch owserver -d /dev/ttyUSB0 etc...
>
> Very strange because it worked the first time, but now, this is not
> working anymore. I also tried to reboot the plug.
>
> Don't know really what to do. I tried googling without success till now.
> I'm litle bit disappointed as my 1-wire network is fully installed and I
> want to use sheevaplug instead of Windows from now.
>
>
>
> some more info saying (according to my very basic knowledge) things seems
> okay for the usb-adapter driver (PL2303)
>
> uname -a
>> Linux sheeva 2.6.32-5-kirkwood #1 Sun Sep 23 22:53:30 UTC 2012 armv5tel
>> GNU/Linux
>
>
> root@sheeva:~/libusb-0.1.12# lsusb
>> Bus 001 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial
>> Port
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
>
> root@sheeva:~/libusb-0.1.12# libusb-config --version
>> 0.1.12
>
>
> dmesg
>> [ 2.296697] usb 1-1: new full speed USB device using orion-ehci and
>> address 2
>> [ 2.462694] usb 1-1: New USB device found, idVendor=067b,
>> idProduct=2303
>> [ 2.469460] usb 1-1: New USB device strings: Mfr=1, Product=2,
>> SerialNumber=0
>> [ 2.476641] usb 1-1: Product: USB 2.0 To COM Device
>> [ 2.481547] usb 1-1: Manufacturer: Prolific Technology Inc.
>> [ 2.487779] usb 1-1: configuration #1 chosen from 1 choice
>> [ 2.995785] udev[151]: starting version 164
>> [ 3.539919] usbcore: registered new interface driver usbserial
>> [ 3.551690] USB Serial support registered for generic
>> [ 3.559387] usbcore: registered new interface driver usbserial_generic
>> [ 3.565963] usbserial: USB Serial Driver core
>> [ 3.583986] USB Serial support registered for pl2303
>> [ 3.589649] pl2303 1-1:1.0: pl2303 converter detected
>> [ 3.607210] usb 1-1: pl2303 converter now attached to ttyUSB0
>> [ 3.613038] usbcore: registered new interface driver pl2303
>> [ 3.618658] pl2303: Prolific PL2303 USB to serial adaptor driver
>
>
>
> Thank you
>
> Thomas
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers