Johan Ström | 16 Aug 11:46 2014
Picon

owfs 2.9p5 now in FreeBSD ports tree

Hi,

I'd like to announce that my efforts to get OWFS into the FreeBSD ports 
tree has been successful!
With the help of commiter John Marino we now have 
http://www.freshports.org/comms/owfs, FreeBSD users should thus be able 
to install owfs using their package manager.

Regards
Johan

------------------------------------------------------------------------------
Gregg Levine | 15 Aug 01:08 2014
Picon

Using the RasPi for OWFS

Hello!
I've gone ahead and glommed the ones that the repositories have for
OWFS for the Raspberry Pi.

The problem is that I've got an FTDI based adapter plugged in which
was found at ttyUSB0, but the service isn't. It is indeed running, and
I configured the supplied one for that adapter and attempted to bring
up owhttpd. Each time I get nothing on the Chrome screen on the
laptop.

Any suggestions on where to go from there?

-----
Gregg C Levine gregg.drwho8 <at> gmail.com
"This signature fought the Time Wars, time and again."

------------------------------------------------------------------------------
Gregg Levine | 14 Aug 07:20 2014
Picon

Interesting problem in 2.9p5 for the Raspberry Pi

Hello!
I extracted the contents and then realized that I needed to install
the development things for the fuse layers. Before that I went along
and followed the usual steps. I noticed the lacking of those items
when I tried to build the owfs entry. Now with the fuse developer
layers installed this happens for building owfs:
root <at> raspberrypi:/usr/src/owfs/owfs-2.9p5/module/owfs# make
Making all in src
make[1]: Entering directory `/usr/src/owfs/owfs-2.9p5/module/owfs/src'
Making all in c
make[2]: Entering directory `/usr/src/owfs/owfs-2.9p5/module/owfs/src/c'
gcc -DHAVE_CONFIG_H -I. -I../../../../src/include    -I../include
-I../../../owlib/src/include -L../../../owlib/src/c -fexceptions -Wall
-W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
-Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L  -pthread -g -O2 -D_XOPEN_SOURCE=500
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT
owfs.o -MD -MP -MF .deps/owfs.Tpo -c -o owfs.o owfs.c
mv -f .deps/owfs.Tpo .deps/owfs.Po
gcc -DHAVE_CONFIG_H -I. -I../../../../src/include    -I../include
-I../../../owlib/src/include -L../../../owlib/src/c -fexceptions -Wall
-W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
-Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L  -pthread -g -O2 -D_XOPEN_SOURCE=500
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT
owfs_callback.o -MD -MP -MF .deps/owfs_callback.Tpo -c -o
owfs_callback.o owfs_callback.c
mv -f .deps/owfs_callback.Tpo .deps/owfs_callback.Po
(Continue reading)

Gregg Levine | 14 Aug 06:22 2014
Picon

Building 2.9p5 on Raspberry Pi

Hello!
It must be because of the way the Raspberry Pi works, but building
2.9p5 on the Raspberry Pi takes longer, then say on the X86 platform.

I bring it up because the version on the Debian for Raspberry Pi
collection is several versions older. Is anyone here responsible for
building OWFS for the Raspberry Pi and submitting it to them for the
repository?

It would be a boon to have the release updated if only to make our
activities easier. never mind the audience out there who are not list
members but who do use OWFS on the Raspberry Pi.
-----
Gregg C Levine gregg.drwho8 <at> gmail.com
"This signature fought the Time Wars, time and again."

------------------------------------------------------------------------------
Gregg Levine | 13 Aug 18:11 2014
Picon

Using a USB to Serial adapter with a RasPi and OWFS

Hello!
Normally when trying out ideas regarding OWFS on my Raspberry Pi model
B I use an adapter based on the FT232 chipset. I get the same results
as when I'm using the same adapter.

This is connected to a DS9097U9 adapter.

However instead of using that adapter I want to to try out a Keystone
branded adapter instead, its a model USA-19 as it happens.

Is anyone using this combination?
----
Paul be careful of the rain and the puddles where you are. It made a
mess of things where I am.
-----
Gregg C Levine gregg.drwho8 <at> gmail.com
"This signature fought the Time Wars, time and again."

------------------------------------------------------------------------------
Stefano Miccoli | 12 Aug 16:07 2014

unable to build owfs under debian/wheezy after commit 93c18664 (systemd)

Hi:

after commit 93c18664 owfs-code is broken on on my debian wheezy system (debian version 7.6).

Linking fails with the following message:

/home/admin/dev/owfs-code/module/owlib/src/c/.libs/libow.so: undefined reference to `mq_getattr'

I was able to solve this by adding

AC_CHECK_LIB([rt],[mq_getattr])

in configure.ac but please double check if this solution is valid, since I do not understand very well the whole systemd thing.

Other problems: I do not understand the src/scripts/systemd/Makefile.am logic: it simply mimics (in an incomplete and error prone way) the standard autoconf/automake semantics. An empty Makefile.am will do the same job provided that 

src/scripts/systemd/owfs.service
src/scripts/systemd/owftpd.service
src/scripts/systemd/owhttpd.service
src/scripts/systemd/owserver.service
src/scripts/systemd/owserver.socket

are listed among the AC_CONFIG_FILES in configure.ac.

Finally I noticed that src/include/config.h.in is included in the git source tree, but this is not correct, since this file is built by autoheader during bootstrap.

The suggested corrections are included in the attached patch file.

Stefano

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Mark Bradley | 11 Aug 18:31 2014
Picon

Unable to update clock on DS1921

Hello.

I'm new to OWFS but have compiled it and it's working (I believe) on a Raspberry Pi. I can query log data but what I simply want to do is update the clock.

My hardware is a DS1921 connected to a DS9097U. This connects to the Raspberry Pi USB port via a Tripp-Lite U209-000-R serial port adapter (device
2478:2008). Nothing else is connected.

The latest code, 2.9p5, is being used.

I start the server (as root) like this so I can see everything:

owserver -d /dev/ttyUSB0 -p 3333 --error_level=9 --foreground --write

Then I issue the following and get an error on read back:

root <at> pi:/home/pi# owwrite -s 18417 21.732801004025/clock/running 0
root <at> pi:/home/pi# owwrite -s 3333 21.732801004025/clock/date "08/11/14 12:16:00"
root <at> pi:/home/pi# owread -s 3333 21.732801004025/clock/date
ServerRead: Data error on 21.732801004025/clock/date

I can read the mission data (21.732801004025/log/date.ALL and 21.732801004025/log/temperature.ALL) just fine.

I've attached the console log info for owserver and, to me, it looks like it's written data but I'm new at this... :-)

My apologies if a text attachment is against etiquette.

Thanks,
Brad
root <at> pi:~# owserver -d /dev/ttyUSB0 -p 3333 --error_level=9 --foreground --write
  DEBUG: ow_daemon.c:(166) main thread id = 3070079504
CONNECT: ow_avahi_link.c:(68) 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:(102) path=[]
  DEBUG: owlib.c:(81) Globals temp limits 0C 100C (for simulated adapters)
  DEBUG: ow_ds9097U.c:(287) Attempt 0 of 3 to initialize the DS9097U
  DEBUG: ow_ds9097U.c:(381) Send the initial reset to the bus master.
  DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
CONNECT: ow_tcp_read.c:(110) TIMEOUT after 0 bytes
  DEBUG: ow_ds9097U.c:(476) 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_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_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_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_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_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 24 bytes Time: 10.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 24 - 0 = 24
  DEBUG: from_client.c:(66) FromClient payload=44 size=17 type=3 sg=0x10A offset=0
  DEBUG: from_client.c:(74) FromClient (no servermessage) payload=44 size=17 type=3
controlflags=0x10A offset=0
  DEBUG: ow_tcp_read.c:(64) attempt 44 bytes Time: 10.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 44 - 0 = 44
  DEBUG: handler.c:(153) START handler 21.732801004025/clock/date
   CALL: data.c:(104) DataHandler: parse path=21.732801004025/clock/date
  DEBUG: ow_parseobject.c:(164) 21.732801004025/clock/date
   CALL: ow_parsename.c:(102) path=[21.732801004025/clock/date]
  DEBUG: ow_cache.c:(913) Looking for device 21 73 28 01 00 40 25 DD
  DEBUG: ow_cache.c:(1069) Search in cache sn 21 73 28 01 00 40 25 DD pointer=0xb6fb02dc index=0 size=4
  DEBUG: ow_cache.c:(1105) Value not found in cache
 DETAIL: ow_presence.c:(81) Checking presence of /21.732801004025/clock/date
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(82) Clearing root branch
  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 2 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 2 - 0 = 2
  DEBUG: ow_transaction.c:(113) send = 0
  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_transaction.c:(131) readin = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_select.c:(248) No DS2409 microlan hub found at this level
  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 25 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 25 - 0 = 25
  DEBUG: ow_transaction.c:(222) verify = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_presence.c:(269) Presence of 21 73 28 01 00 40 25 DD FOUND on bus /dev/ttyUSB0
  DEBUG: ow_cache.c:(547) Adding device location 21 73 28 01 00 40 25 DD bus=0
  DEBUG: ow_cache.c:(636) Add to cache sn 21 73 28 01 00 40 25 DD pointer=0xb6fb02dc index=0 size=4
  DEBUG: ow_cache.c:(547) Adding device location 21 73 28 01 00 40 25 DD bus=0
  DEBUG: ow_cache.c:(636) Add to cache sn 21 73 28 01 00 40 25 DD pointer=0xb6fb02dc index=0 size=4
   CALL: data.c:(150) Write message
  DEBUG: write.c:(51) WriteHandler: hd->sm.payload=44 hd->sm.size=17 hd->sm.offset=0 OWQ_size=17 OWQ_offset=0
OWQ OneWireQuery structure of /21.732801004025/clock/date
    OneWireQuery size=17 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=17
--000: 30 38 2F 31 31 2F 31 34 20 31 32 3A 31 36 3A 30
--016: 30
   <08/11/14 12:16:00>
    Cleanup = 0002    OneWireQuery I=1407777360 U=1407777360 F=6.95534E-315 Y=1407777360 D=Mon Aug 11
13:16:00 2014

--- OneWireQuery done
  DEBUG: ow_write.c:(438) Write a non-array element /21.732801004025/clock/date
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 3 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 3 - 0 = 3
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_tcp_read.c:(64) attempt 14 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 14 - 0 = 14
  DEBUG: ow_transaction.c:(131) readin = 0
  DEBUG: ow_transaction.c:(185) CRC16 = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 10 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 10 - 0 = 10
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 3 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 3 - 0 = 3
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_tcp_read.c:(64) attempt 35 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 35 - 0 = 35
  DEBUG: ow_transaction.c:(131) readin = 0
  DEBUG: ow_transaction.c:(185) CRC16 = 0
  DEBUG: ow_transaction.c:(98) compare = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 4 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 4 - 0 = 4
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(195) Delay 1
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 3 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 3 - 0 = 3
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_tcp_read.c:(64) attempt 20 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 20 - 0 = 20
  DEBUG: ow_transaction.c:(131) readin = 0
  DEBUG: ow_transaction.c:(185) CRC16 = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 4 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 4 - 0 = 4
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 3 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 3 - 0 = 3
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_tcp_read.c:(64) attempt 21 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 21 - 0 = 21
  DEBUG: ow_transaction.c:(131) readin = 0
  DEBUG: ow_transaction.c:(185) CRC16 = 0
  DEBUG: ow_transaction.c:(98) compare = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 4 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 4 - 0 = 4
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(195) Delay 1
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_cache.c:(1361) Delete from cache sn 21 73 28 01 00 40 25 DD in=0xb6f979a0 index=0
  DEBUG: ow_write.c:(496) Write /21.732801004025/clock/date Extension 0 Gives result 0
  DEBUG: ow_write.c:(111) Successful write to /21.732801004025/clock/date
  DEBUG: ow_parsename.c:(61) /21.732801004025/clock/date
  DEBUG: data.c:(194) DataHandler: FS_ParsedName_destroy done
  DEBUG: data.c:(208) DataHandler: cm.ret=0
  DEBUG: to_client.c:(76) payload=0 size=17, ret=0, sg=0x10A offset=0 
  DEBUG: to_client.c:(85) No data
  DEBUG: data.c:(227) Finished with client request
  DEBUG: handler.c:(135) OWSERVER handler done
  DEBUG: ow_net_server.c:(238) Normal exit.

  DEBUG: ow_tcp_read.c:(64) attempt 24 bytes Time: 10.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 24 - 0 = 24
  DEBUG: from_client.c:(66) FromClient payload=27 size=65536 type=2 sg=0x10A offset=0
  DEBUG: from_client.c:(74) FromClient (no servermessage) payload=27 size=65536 type=2
controlflags=0x10A offset=0
  DEBUG: ow_tcp_read.c:(64) attempt 27 bytes Time: 10.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 27 - 0 = 27
  DEBUG: handler.c:(153) START handler 21.732801004025/clock/date
   CALL: data.c:(104) DataHandler: parse path=21.732801004025/clock/date
  DEBUG: ow_parseobject.c:(164) 21.732801004025/clock/date
   CALL: ow_parsename.c:(102) path=[21.732801004025/clock/date]
  DEBUG: ow_cache.c:(913) Looking for device 21 73 28 01 00 40 25 DD
  DEBUG: ow_cache.c:(1069) Search in cache sn 21 73 28 01 00 40 25 DD pointer=0xb6fb02dc index=0 size=4
  DEBUG: ow_cache.c:(1085) Value found in cache. Remaining life: 109 seconds.
  DEBUG: ow_presence.c:(76) Found device on bus 0
   CALL: data.c:(145) Read message
  DEBUG: read.c:(55) ReadHandler start
  DEBUG: read.c:(61) ReadHandler: From Client sm->payload=27 sm->size=65536 sm->offset=0
  DEBUG: read.c:(79) ReadHandler: call FS_read_postparse on /21.732801004025/clock/date
  DEBUG: ow_read.c:(79) /21.732801004025/clock/date
  DEBUG: ow_read.c:(199) /21.732801004025/clock/date
  DEBUG: ow_read.c:(233) About to read </21.732801004025/clock/date> extension=0 size=24 offset=0
  DEBUG: ow_read.c:(328) file_length=24 offset=0 size=24
  DEBUG: ow_cache.c:(836) 21 73 28 01 00 40 25 DD size=8 IsUncachedDir=0
  DEBUG: ow_cache.c:(1069) Search in cache sn 21 73 28 01 00 40 25 DD pointer=0xb6f979a0 index=0 size=8
  DEBUG: ow_cache.c:(1105) Value not found in cache
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 3 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 3 - 0 = 3
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_tcp_read.c:(64) attempt 34 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 34 - 0 = 34
  DEBUG: ow_transaction.c:(131) readin = 0
  DEBUG: ow_transaction.c:(185) CRC16 = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_read.c:(613) Read /21.732801004025/clock/date Extension 0 Gives result -22
  DEBUG: ow_read.c:(248) return=-22
  DEBUG: ow_read.c:(258) After read is performed (bytes or error -22)
OWQ OneWireQuery structure of /21.732801004025/clock/date
    OneWireQuery size=24 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=24
--000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
--016: 00 00 00 00 00 00 00 00
   <........................>
    Cleanup = 0006    OneWireQuery I=-1 U=4294967295 F=2.122E-314 Y=-1 D=Wed Dec 31 18:59:59 1969

--- OneWireQuery done
  DEBUG: ow_read.c:(221) /21.732801004025/clock/date returns -22
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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 25 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 25 - 0 = 25
  DEBUG: ow_transaction.c:(222) verify = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_presence.c:(269) Presence of 21 73 28 01 00 40 25 DD FOUND on bus /dev/ttyUSB0
  DEBUG: ow_cache.c:(547) Adding device location 21 73 28 01 00 40 25 DD bus=0
  DEBUG: ow_cache.c:(636) Add to cache sn 21 73 28 01 00 40 25 DD pointer=0xb6fb02dc index=0 size=4
  DEBUG: ow_read.c:(199) /21.732801004025/clock/date
  DEBUG: ow_read.c:(233) About to read </21.732801004025/clock/date> extension=0 size=24 offset=0
  DEBUG: ow_read.c:(328) file_length=24 offset=0 size=24
  DEBUG: ow_cache.c:(836) 21 73 28 01 00 40 25 DD size=8 IsUncachedDir=0
  DEBUG: ow_cache.c:(1069) Search in cache sn 21 73 28 01 00 40 25 DD pointer=0xb6f979a0 index=0 size=8
  DEBUG: ow_cache.c:(1105) Value not found in cache
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 3 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 3 - 0 = 3
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_tcp_read.c:(64) attempt 34 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 34 - 0 = 34
  DEBUG: ow_transaction.c:(131) readin = 0
  DEBUG: ow_transaction.c:(185) CRC16 = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_read.c:(613) Read /21.732801004025/clock/date Extension 0 Gives result -22
  DEBUG: ow_read.c:(248) return=-22
  DEBUG: ow_read.c:(258) After read is performed (bytes or error -22)
OWQ OneWireQuery structure of /21.732801004025/clock/date
    OneWireQuery size=24 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=24
--000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
--016: 00 00 00 00 00 00 00 00
   <........................>
    Cleanup = 0006    OneWireQuery I=-1 U=4294967295 F=2.122E-314 Y=-1 D=Wed Dec 31 18:59:59 1969

--- OneWireQuery done
  DEBUG: ow_read.c:(221) /21.732801004025/clock/date returns -22
  DEBUG: ow_read.c:(199) /21.732801004025/clock/date
  DEBUG: ow_read.c:(233) About to read </21.732801004025/clock/date> extension=0 size=24 offset=0
  DEBUG: ow_read.c:(328) file_length=24 offset=0 size=24
  DEBUG: ow_cache.c:(836) 21 73 28 01 00 40 25 DD size=8 IsUncachedDir=0
  DEBUG: ow_cache.c:(1069) Search in cache sn 21 73 28 01 00 40 25 DD pointer=0xb6f979a0 index=0 size=8
  DEBUG: ow_cache.c:(1105) Value not found in cache
  DEBUG: ow_select.c:(71) Selecting a path (and device) path=/21.732801004025/clock/date SN=21 73 28 01
00 40 25 DD last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(85) Continuing root branch
  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_select.c:(227) Selecting device 21 73 28 01 00 40 25 DD
  DEBUG: ow_tcp_read.c:(64) attempt 9 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 9 - 0 = 9
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_transaction.c:(91) select = 0
  DEBUG: ow_tcp_read.c:(64) attempt 3 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 3 - 0 = 3
  DEBUG: ow_transaction.c:(113) send = 0
  DEBUG: ow_tcp_read.c:(64) attempt 34 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:(114) read: 34 - 0 = 34
  DEBUG: ow_transaction.c:(131) readin = 0
  DEBUG: ow_transaction.c:(185) CRC16 = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_read.c:(613) Read /21.732801004025/clock/date Extension 0 Gives result -22
  DEBUG: ow_read.c:(248) return=-22
  DEBUG: ow_read.c:(258) After read is performed (bytes or error -22)
OWQ OneWireQuery structure of /21.732801004025/clock/date
    OneWireQuery size=24 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=24
--000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
--016: 00 00 00 00 00 00 00 00
   <........................>
    Cleanup = 0006    OneWireQuery I=-1 U=4294967295 F=2.122E-314 Y=-1 D=Wed Dec 31 18:59:59 1969

--- OneWireQuery done
  DEBUG: ow_read.c:(221) /21.732801004025/clock/date returns -22
  DEBUG: ow_read.c:(98) /21.732801004025/clock/date return -22
  DEBUG: read.c:(81) ReadHandler: FS_read_postparse read on /21.732801004025/clock/date return = -22
OWQ OneWireQuery structure of /21.732801004025/clock/date
    OneWireQuery size=24 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=24
--000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
--016: 00 00 00 00 00 00 00 00
   <........................>
    Cleanup = 0006    OneWireQuery I=-1 U=4294967295 F=2.122E-314 Y=-1 D=Wed Dec 31 18:59:59 1969

--- OneWireQuery done
  DEBUG: read.c:(86) ReadHandler: FS_read_postparse error -22
  DEBUG: read.c:(100) ReadHandler: To Client cm->payload=0 cm->size=0 cm->offset=0
  DEBUG: data.c:(147) Read message done value=(nil)
  DEBUG: ow_parsename.c:(61) /21.732801004025/clock/date
  DEBUG: data.c:(194) DataHandler: FS_ParsedName_destroy done
  DEBUG: data.c:(208) DataHandler: cm.ret=-22
  DEBUG: to_client.c:(76) payload=0 size=0, ret=-22, sg=0x10A offset=0 
  DEBUG: to_client.c:(85) No data
  DEBUG: data.c:(227) Finished with client request
  DEBUG: handler.c:(135) OWSERVER handler done
  DEBUG: ow_net_server.c:(238) Normal exit.

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Pedro Côrte-Real | 10 Aug 20:39 2014
Picon

Replacement for the DS9490R

Hi everyone,

I've now had 3 or 4 DS9490R adapters fail after bad weather. They seem
to be particularly susceptible. After I swap them out the whole
network is fine though. Does anyone have any ideas on how to protect
them or what good quality replacement USB 1wire masters there are?

Cheers,

Pedro

------------------------------------------------------------------------------
Akos Gabriel | 6 Aug 12:49 2014
Picon

owfs can't write?

Hi,

Is it possible that owfs (2.8p13) can't set a switch (DS-2408)?
My platform is OpenWrt Attitude Adjustment on a TP-Link 1043nd using usb.
The same setup works fine with a Linux PC.

I tried it with owfs directly and owfs over owserver too.

Is there a more recent build of owfs available for openwrt?
No problem if it is running on newer openwrt.

Thanks,
Akos

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Andrew Potter | 3 Aug 12:15 2014
Picon

OWFS and EDS0083, mAM001

Hi
I'm hoping to find anyone who has experience using OWFS with any of the
EDS0083 current input, EDS0085 voltage input and/or the CMCIEL mAM001
voltage/current input modules?
Under OWFS 2.9p5, I'm having the following issues:
- the CMCIEL mAM001 isn¹t found on the 1-wire network using OWFS.
(Verified that it works OK connected via an HA7Net and accessed via the
HA7¹s web interface, but not recognised via OWFS).

- the EDS0083 and EDS0085 seem to be having trouble with max/min and
actual readings:
Maximum recorded value either reports zero, or the maximum input allowed
as per the module specs, rather than the maximum current/voltage actually
measured since last reset
Minimum recorded value is reported in current.X (or volts.X) rather than
min_current or min_volts
The actual (real-time) value is reported in min_current.X or min_volts.X
instead of current.X or volts.X

I'd be interested to hear from anyone who has used any of these devices
successfully ­ is there something I'm missing?

Thanks in advance
Andrew

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Thomas Oeding | 26 Jul 13:05 2014
Picon

Re: Owfs-developers Digest, Vol 98, Issue 10

Avahi was the tipp in the right direction:

# /opt/owfs/bin/owserver --i2c=/dev/i2c-1 -p 4304 --error_level=9
--foreground --nozero

works. Additional the Avahi-Daemon was not running. After starting it
the command

# /opt/owfs/bin/owserver --i2c=/dev/i2c-1 -p 4304 --error_level=9 --foreground

works too, without Segmentation fault!

 /opt/owfs/bin/owserver --i2c=/dev/i2c-1 -p 4304 --error_level=9 --foreground
  DEBUG: ow_daemon.c:(166) main thread id = 3070169616
  DEBUG: ow_avahi_link.c:(71) Avahi support: libavahi-client loaded successfully
  DEBUG: ow_avahi_link.c:(73) Avahi library function found: avahi_client_errno
  DEBUG: ow_avahi_link.c:(74) Avahi library function found: avahi_client_free
  DEBUG: ow_avahi_link.c:(75) Avahi library function found: avahi_client_new
  DEBUG: ow_avahi_link.c:(76) Avahi library function found:
avahi_client_get_domain_name
  DEBUG: ow_avahi_link.c:(77) Avahi library function found:
avahi_entry_group_add_service
  DEBUG: ow_avahi_link.c:(78) Avahi library function found:
avahi_entry_group_commit
  DEBUG: ow_avahi_link.c:(79) Avahi library function found:
avahi_entry_group_is_empty
  DEBUG: ow_avahi_link.c:(80) Avahi library function found:
avahi_entry_group_new
  DEBUG: ow_avahi_link.c:(81) Avahi library function found:
avahi_entry_group_reset
  DEBUG: ow_avahi_link.c:(83) Avahi library function found:
avahi_service_resolver_free
  DEBUG: ow_avahi_link.c:(84) Avahi library function found:
avahi_service_resolver_new
  DEBUG: ow_avahi_link.c:(85) Avahi library function found:
avahi_service_browser_free
  DEBUG: ow_avahi_link.c:(86) Avahi library function found:
avahi_service_browser_new
  DEBUG: ow_avahi_link.c:(98) Avahi support: libavahi-common loaded
successfully.
  DEBUG: ow_avahi_link.c:(100) Avahi library function found:
avahi_simple_poll_free
  DEBUG: ow_avahi_link.c:(101) Avahi library function found:
avahi_simple_poll_get
  DEBUG: ow_avahi_link.c:(102) Avahi library function found:
avahi_simple_poll_loop
  DEBUG: ow_avahi_link.c:(103) Avahi library function found:
avahi_simple_poll_new
  DEBUG: ow_avahi_link.c:(104) Avahi library function found:
avahi_simple_poll_quit
  DEBUG: ow_avahi_link.c:(105) Avahi library function found: avahi_strerror
   CALL: ow_parsename.c:(102) path=[]
  DEBUG: owlib.c:(81) Globals temp limits 0C 100C (for simulated adapters)
CONNECT: ow_ds2482.c:(396) Found an i2c device at /dev/i2c-1 address 18
  DEBUG: ow_ds2482.c:(514) ok
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 18 appears
to be DS2482-x00
CONNECT: ow_ds2482.c:(701) DS2482-800 (Eight channels)

# /opt/owfs/bin/owdir
/bus.7
/bus.6
/bus.5
/bus.4
/bus.3
/bus.2
/bus.1
/bus.0
/uncached
/settings
/system
/statistics
/structure

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

Gmane