Ekkehard Pofahl | 27 Jul 19:33 2015
Picon

owfs-3.1p0 stucks on Raspberry Pi

Hello,

I used 2015-05-05-raspbian-wheezy.img for a fresh start. Nothing on
the Raspberry other than that image.

I describe what I did here :

https://sites.google.com/site/raspihs1/software/owfs/owfs

Version owfs-3.1p0 stucks :

.deps/ow_dnssd.Tpo -c -o ow_dnssd.o ow_dnssd.c
In file included from ow_dnssd.c:17:0:
../../../owlib/src/include/ow.h:302:20: fatal error:
libusb.h: No such file or directory
compilation terminated.

I could not find out, what screwed up. libusb.h ? What goes wrong ?

I went back one version : Version owfs-3.0p2 "makes" perfect. So I use
this version for the time being. I am quite sure I will not miss
anything.

Note : for me it was important to use USB. I had to do a little
research to find out how to get it (back).

Also I noted, that on http://owfs.org/ the search for "raspberry" does
not give back any result. However, Raspberry pages are definetely on
the web site, ;-) .

(Continue reading)

Eric Baumann | 15 Jul 23:02 2015
Picon

libusb header file

Dear Roland

Thanks for your reply. 

Sure, I would like to try these patches ! 

But excuse me for asking: What do I have to do with them?
Where do I have to put these lines? 

Here is what is interesting about this missing header file:

IT HAPPENS ON ALL MY MACHINES
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Eric Baumann | 9 Jul 10:57 2015
Picon

libusb header files

Hi 

I run into the problem when building (sudo make) the owfs. 

In file included from getopt.c:32:0:
../../../owlib/src/include/ow.h:302:20: fatal error: libusb.h: No such file or directory
 #include <libusb.h>
                    ^
compilation terminated.
In file included from ow_dnssd.c:17:0:
../../../owlib/src/include/ow.h:302:20: fatal error: libusb.h: No such file or directory
 #include <libusb.h>


I has this issue already : 


I thought I had solved it:


But this is somehow not the case. 

I run into this exact same problem on both Ubuntu 14.04 and Raspbian. 


Meaning before running ./configure, 
I install: sudo apt-get update
sudo apt-get install automake autoconf autotools-dev gcc-4.7 libavahi-client-dev libtool libusb-dev libusb-1.0-0-dev libfuse-dev swig python2.7-dev tcl8.5-dev php5-dev i2c-tools
Any help would be greatly appreciated. 

Best regards,

Eric


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Gregg Levine | 5 Jul 01:54 2015
Picon

Supported devices

Hello!
Can someone confirm or refute this statement?

OWFS supports all devices from the vendor (MAXIM once Dallas
Semiconductor) no matter how old, and even if they were discontinued
by them.

In this case I'm looking to support a (seemingly) 9V battery box via a
DS2436, the Windows (!!) software running inside a VM confirms that
the device sees the battery and of course all of ancillary details
associated with the device. This includes the voltage of the battery,
and the temperature of the associated setup, in degrees C as it
happens.

There's also graphing indicating a study on time versus voltage and
one for the same versus temperature. Plus user defined registers.
That's the original Windows (!!) software at work.

The setup would also include a bundle of DS2406s at work as well.

Paul, FYI, that is why the notes on the page with my name on it
include those four.

The final controller would be a Raspberry Pi with the current release
in its repository installed, but now its a pair of VMs running the
original software.
-----
Gregg C Levine gregg.drwho8 <at> gmail.com
"This signature fought the Time Wars, time and again."

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
Johan Ström | 3 Jul 18:40 2015
Picon

DS9097U (DS2480B) re-configuration issues

Hi,

every now and then I've noticed how my DS2480B-based adapter on my lab 
network seems to stop responding. Restarting OWFS has always solved the 
issue for the moment.
TLDR: Shouldn't DS2480_big_configuration be called on comm failure?

Longer version:
---
The reset & Presence command works fine, but when it tries to send data 
to the network it fails:

   DEBUG: ow_select.c:(70) Selecting a path (and device) path=/uncached 
SN=00 00 00 00 00 00 00 00 last path=00 00 00 00 00 00 00 00
   DEBUG: ow_select.c:(84) Continuing root branch
TRAFFIC OUT <write> bus=0 (/dev/cua-labdesk)
--000: E3 C5
TRAFFIC IN  <NETREAD> bus=0 (/dev/cua-labdesk)
--000: E5
TRAFFIC OUT <write> bus=0 (/dev/cua-labdesk)
--000: E1 F0
TRAFFIC IN  <NETREAD> bus=0 (/dev/cua-labdesk)
--000: E5
   DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
   DEBUG: ow_bus_data.c:(38) Response doesn't match data sent

After some digging I've realized that it for some reason looses its 
configuration. Exiting OWFS and manually reading out the config 
registers gives me:

Written => Received
E3 => (nothing) ( go data mode)
C5 => CD (device present)
03 => 00 (read PDSRC; 15V/μs)
05 => 08 ( read PPD, 512μs)
07 => 08 ( read SPUD; 524mS)
09 => 00 ( read W1LT, 8μs)
0B => 00 (Read DSO/W0RT: 3μs)
0F => 00 (read RBR, 9.6kbps)
0D => 08 (read LOAD?, 3.0mA)

This is identical to the power-up configuration, and apparently does not 
work on my lab network. Most likely due to the 3μs DSO, which OWFS 
configures to 8μs on startup. Since my lab net is currently loaded with 
~300m of cable to the farthest slave, this is probably just too little 
delay.

The actual config-param-reset can be reproduced by just removing the 
power from the device. Why it actually reset I don't really know, if it 
is due to bad power, or something else..
---

The issue I'd like to address here is that OWFS does not seem to call 
DS2480_big_configuration to try to re-initialize the device, when it has 
repeatedly failed to communicate using it.
Where would this fit in?

Regards
Johan

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Alex Shepherd | 24 Jun 13:33 2015
Picon

emulating a sensor in owfs

Hi Guys,

I’m in the process of upgrading my heating control system system that controls a Wood-Fired boiler that
provides hot water for in-floor (concrete) heating. I’m now using a standalone Autonics TZN4M-BC4 PID
controller that has a RTD temperature sensor and 4-20mA output driving a Johnson Controls 0..90 deg
positioner that controls the air inlet damper. I’m hoping this will provide a higher degree of control
and better fail-safe capability as I did have a bit of a disaster last year… 

The PID controller also has a RS485 comms port that talks a limited subset of the the Modbus protocol, but
enough to read the PV and read/write the SV. I’m not sure if I can get anything else as that is all the
example .Net code shows.

Previously I had a DS18B20 sensing the temperature at the boiler and was recording that value using
temploggerd. Now that I no longer has the DS18B20, I’m wondering if there is a way to re-inject the
temperature from the PID controller (if I can get it via the RS485 link using python say) and then somehow
writing it into the previous (or a new) device node so it keeps being logged by temploggerd?

Any suggestions?

Regards

Alex Shepherd
Hamilton, New Zealand
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Eric Baumann | 23 Jun 11:52 2015
Picon

Hobby Boards Barometer

Hi 

What about something like: echo 5 > /mnt/1wire/EF.2D6520150000/barometer instead of using nano? Cheers, Eloy Paris.-
Thanks, I tried that:pi <at> raspberrypi /mnt/1wire $ echo 2 > ./EF.2D6520150000/barometer/polling_frequency pi <at> raspberrypi /mnt/1wire $ cat ./EF.2D6520150000/barometer/polling_frequency 9
It still returns 9 !
I am using 5 other 1Wire devices successfully on that bus!Wired with Cat 6 patch cables. All the other devices from hobby boards work perfectly.
To Jan:I get exactly the same behavior in the uncached directory.
I am using owfs version 3.1p0
Thanks for any ideas!
Best regards,
Eric
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Eric Baumann | 22 Jun 14:04 2015
Picon

Hobby Hoards Barometer

Hallo 

I have trouble reading from the Hobby Boards Barometer board. 
It seems to be stuck at these values:
pi <at> raspberrypi /mnt/1wire/EF.2D6520150000/barometer $ cat pressure
67920
pi <at> raspberrypi /mnt/1wire/EF.2D6520150000/barometer $ cat temperature 
36.9

Even
- when unplugging and plugging the board back in
- when rebooting raspberrypi and OWFS
- when reading from the uncached directory 
the values do not change. 

It seems to have recognized the dive correctly though:

pi <at> raspberrypi /mnt/1wire/EF.2D6520150000 $ cat type
HobbyBoards_EF

pi <at> raspberrypi /mnt/1wire/EF.2D6520150000 $ cat type_number 
6

pi <at> raspberrypi /mnt/1wire/EF.2D6520150000 $ cat version 
1.0


Thanks for any suggestions on how to proceed for troubleshooting...

Eric
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Jim Russell | 16 Jun 11:45 2015

Unable to retrieve "temperature" reading

Hi,

 

I have a OWFS 3.1p0 compiled on a Windows Server 2012 x64 using Cygwin.  OWSERVER is running and with OWHTTPD running and connected.  I am able to browse my devices using OWHTTPD and see settings and temperature readings as normal.  I am also able to do this remotely (over a VPN).  So the server part appears to be operating normally.

 

However, I am trying to develop a small application using Visual Studio and the OWNET C# library provided by Viktor Vorobjov (https://github.com/straga/owfs.ownet).  So far my application connects fine, and I can read all of the directories:

 

OUTPUT:

81.14D52D000000

1F.746205000000

1F.826205000000

1F.1A6305000000

1F.1D6305000000

1F.0F6305000000

1F.6F6205000000

bus.0

uncached

settings

system

statistics

structure

 

As well, I’m able to read many variables from different devices with no problems.  However, when I try to read a temperature, the return value is NULL:

 

READ:

Path="/1F.0F6305000000/aux/28.CBEDC8010000/temperature"

 

DEBUG:

1:05:37 PM Thursday, June 11, 2015  :* OWNET DEBUG [sendPacket] :

version:0, payload:49, function/ret:2, flags:263, datalen:4096, offset/owtap flags:0

-------------------------------

1:05:40 PM Thursday, June 11, 2015  :* OWNET DEBUG [getPacket (Server Persistance support: False)] :

version:0, payload:-1, function/ret:0, flags:0, datalen:0, offset/owtap flags:0

 

I’ve tried modifying various parameters (DataLen, Persistance, Timeout) and using “uncached” with no success.

 

I know that C# is not part of this project but I seem to remember having the same issue when messing around with the OWNET.py code.

 

Any ideas?

 

Thanks.

 

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Tomasz Torcz | 14 Jun 15:45 2015
Picon

LIBUSB_CFLAGS not passed to compiler?

Hi,

  I digged through automake stuff but I did not find the way to fix.

Basically, error boils down to

make[1]: Entering directory '/tmp/owfs-3.1p0/module/owshell/src/c'  
gcc -DHAVE_CONFIG_H -I. -I../../../../src/include    -I../include -I../../../owlib/src/include
-fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
-Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=600
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2 -m64 -D_XOPEN_SOURCE=600
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ow_dnssd.o -MD -MP -MF
.deps/ow_dnssd.Tpo -c -o ow_dnssd.o ow_dnssd.c
In file included from ../../../owlib/src/include/ow.h:90:0,  
                 from ow_dnssd.c:17:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
_DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^  
In file included from ow_dnssd.c:17:0:
../../../owlib/src/include/ow.h:302:20: fatal error: libusb.h: No such file or directory  

  It fails, because libusb.h is located in /usr/include/libusb-1.0/libusb.h, but
gcc invocation lacks "-I/usr/include/libusb-1.0".  It is correctly determined
by configure, but not put in gcc line:

$ grep LIBUSB_CFLAGS config.log 
LIBUSB_CFLAGS='-I/usr/include/libusb-1.0 '

 Which Makefile.am to patch and how?

--

-- 
Tomasz Torcz       ,,(...) today's high-end is tomorrow's embedded processor.''
xmpp: zdzichubg <at> chrome.pl                      -- Mitchell Blank on LKML

------------------------------------------------------------------------------
Henry | 14 Jun 12:43 2015
Picon

owdir data stability

Hello dear friends.

Please, check me, correct and help if you known.
I've a lab: Raspberry PI B+, Pidora (newest Raspberian don't work with owfs
3.1.p0, it has some pause,
check my messages at
http://owfs-developers.1086194.n5.nabble.com/some-problem-with-owserver-td11288.html
),
my own good compiled owfs 3.1.p0 from sources, two 20-family devices and six
28-family temp. sensors on a 1-wire bus. It's a PCB board with good
electrical contacts. 

I've wrote a simple bash script "qqq.sh":
----- cut here ----
#!/bin/bash

owdir /uncached

echo =================================

for i in {1..100}; do
  how_many_sensors=`owdir /uncached | fgrep /2 | wc -l`;
  # echo $how_many_sensors;
  if [ $how_many_sensors -lt 8 ];
  then
       echo $how_many_sensors;
  fi
done
----- cut here ----

And I've got a result:

 root <at> RASPBERRY-3:~> ./qqq.sh
/uncached/20.FA5F0E000000
/uncached/20.95670E000000
/uncached/28.FF78011B0400
/uncached/28.FF2401630400
/uncached/28.FF26C3121400
/uncached/28.FF4E061A0400
/uncached/28.FFB19F121400
/uncached/28.FF55CC121400
/uncached/bus.1
/uncached/bus.0
/uncached/settings
/uncached/system
/uncached/statistics
/uncached/structure
/uncached/simultaneous
/uncached/alarm
=================================
5
7
4
5
6
6
4

Also for test, I've added "sleep 2;" command to the loop and got the same
bad result.
By another words, errors of bus scan is 10% about, sometimes it loses some
sensors on 
the bus while scan.

Why it's posible?  

My project includes a web interface for configure some formules for mesuared
data
calculation. Firstly I need to get simple list of devices to configure
senors of devices.
Sometimes my Raspberry PI loses one or more devices by owserver. The web
information is broken and I'm very sad...

All the best.
Henry.

--
View this message in context: http://owfs-developers.1086194.n5.nabble.com/owdir-data-stability-tp11428.html
Sent from the OWFS Developers mailing list archive at Nabble.com.

------------------------------------------------------------------------------

Gmane