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
_______________________________________________
(Continue reading)

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.

------------------------------------------------------------------------------
Paul Alfille | 13 Jun 17:08 2015
Picon

Re: Issues with owfs reading humidity

Hi,

I wonder if the rate of reading is overwhelming the capacitor charging in the circuit. The DS2438 humidity sensor design creates Vdd from the data line, if I remember correctly.

Do the problems resolve if you delay readings by, say, 60 seconds intervals? I doubt your humidity really changes that fast.

Paul

On Fri, Jun 12, 2015 at 6:28 AM, Michele Marcon <M.Marcon <at> riello-ups.com> wrote:
Hello Mr. Alfille,
I'm using owfs for monitoring the DS2438 device over 1-wire with I2C bus.

I've noticed some errors in reading the humidity value; here is an extract of my log:

Fri Jun 12 11:15:39 CEST 2015: hum 41  1.92 4.66  t_ist 311.562 t_avg 311 t_max 312 312
Fri Jun 12 11:15:41 CEST 2015: hum 41  1.92 4.66  t_ist 311.562 t_avg 311 t_max 312 312
Fri Jun 12 11:15:43 CEST 2015: hum 41  1.92 4.66  t_ist 311.562 t_avg 311 t_max 312 312
Fri Jun 12 11:15:45 CEST 2015: hum 41  1.92 4.66  t_ist 311.562 t_avg 311 t_max 312 312
Fri Jun 12 11:15:48 CEST 2015: hum 41  1.92 1.92  t_ist 312.812 t_avg 311 t_max 312 312
Fri Jun 12 11:15:50 CEST 2015: hum -119  1.92 1.92  t_ist 312.812 t_avg 311 t_max 312 312
Fri Jun 12 11:15:52 CEST 2015: hum -119  1.92 1.92  t_ist 312.812 t_avg 312 t_max 312 312
Fri Jun 12 11:15:54 CEST 2015: hum -119  1.92 1.92  t_ist 312.812 t_avg 312 t_max 312 312
Fri Jun 12 11:15:56 CEST 2015: hum -119  1.92 1.92  t_ist 312.812 t_avg 312 t_max 312 312
Fri Jun 12 11:15:59 CEST 2015: hum -119  1.92 1.91  t_ist 311.562 t_avg 312 t_max 312 312
Fri Jun 12 11:16:01 CEST 2015: hum -118  1.92 1.91  t_ist 311.562 t_avg 312 t_max 312 312
Fri Jun 12 11:16:03 CEST 2015: hum -118  1.92 1.91  t_ist 311.562 t_avg 311 t_max 312 312
Fri Jun 12 11:16:05 CEST 2015: hum -118  1.92 1.91  t_ist 311.562 t_avg 311 t_max 312 312
Fri Jun 12 11:16:07 CEST 2015: hum -118  1.92 1.91  t_ist 311.562 t_avg 311 t_max 312 312
Fri Jun 12 11:16:40 CEST 2015: hum 40  1.91 4.66  t_ist 310.938 t_avg 311 t_max 312 312
Fri Jun 12 11:16:42 CEST 2015: hum 40  1.91 4.66  t_ist 310.938 t_avg 311 t_max 312 312
Fri Jun 12 11:16:44 CEST 2015: hum 40  1.91 4.66  t_ist 310.938 t_avg 311 t_max 312 312
Fri Jun 12 11:16:46 CEST 2015: hum 40  1.91 4.66  t_ist 310.938 t_avg 311 t_max 312 312
Fri Jun 12 11:16:48 CEST 2015: hum 40  1.91 4.66  t_ist 310.938 t_avg 311 t_max 312 312
Fri Jun 12 11:16:51 CEST 2015: hum 41  1.92 4.66  t_ist 312.188 t_avg 311 t_max 312 312


In particular, I'd like to show you that the reading of VDD sometimes return "1.92" or similar values when it should be around "4.66". Do you have any explanation?

Thanks for your help,


Michele Marcon

Centro Ricerche
RPS SpA
Viale Europa, 7
37045 Legnago VR
Tel. +39 0442 635811 Fax. +39 0442 635934
Skype Id:  - Voip:
E-mail: M.Marcon <at> riello-ups.com
Web: www.riello-ups.com
--------------------------------------------------------------------------
Per favore non stampare questo messaggio se proprio non è
necessario
Please consider the environment before printing this e-mail
--------------------------------------------------------------------------





------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Howell, Larry (Contractor | 11 Jun 17:09 2015

possible bus search modification

Hi list,

 

Our project is developing an embedded system running Linux 2.6.35 on an i.MX53.  The system utilizes data from DS2505s through DS2482-800 bus master.  We’re using owfs-2.8p15 and the initialization parameters are ‘i2c=/dev/i2c-2:0 –m mnt/1wire --allow_other’.   

 

Physically disconnecting the DS2505 from the system requires 0.5-2 seconds.  OWFS has generally performed well with the application code reading uncached data.  However, system noise is causing bus search errors when the read Serial Number (SN) on a bus doesn't match the first time read and stored SN, which results in a logical disconnection of DS2505.  The system noise doesn’t seem to corrupt the presence pulse due to its pulse width.

 

A suggested fix is to only do a bus presence check to maintain the DS2505 is connected after the first read.  If bus presence is not detected, then next time bus presence and reading of SN to be implemented to restart the process.  Suggested fix is shown as a sequence below:

First time -> Read bus presence and 64-bit SN -> Result success -> Read memory -> check integrity -> Result success

Second time -> Read bus presence  -> Result success

                |                                              |

Nth time -> Read bus presence  -> Result failure

N+1th time -> Read bus presence and 64-bit SN … (Repeat as if it is first time)

 

I'm requesting suggestions about the best way to implement the suggested fix.  Any pointers or suggestions on handling the noise problem would be greatly appreciated.

 

Thanks,

 

Larry Howell

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Lyle Giese | 11 Jun 18:16 2015
Picon

hobby-board 4 port master hub

I have a 'new' Hobby-Board 4 port master hub.  It appears to be a 
working unit.  I connected it via USB to a OpenSuSE box and using 
minicom, I can talk to the unit and it responds.  However I am unable to 
get owfs to talk to it.

The HB master hub is on /dev/ttyACM0  and I have used this command line 
to try to get this running:

owfs -d /dev/ttyACM0 --baud=9600 --6bit -m /mnt/1wire

I think the above is the proper syntax to get owfs to talk to this 
master hub.  Or is it?

Since minicom talks to the board just fine, I am thinking it's an owfs 
command startup issue.  When I issue the above, it just hangs and does 
not return to the command prompt until I hit Ctrl-C. Nothing gets 
registered in /mnt/1wire.  But if I use a DS9490R (USB to 1wire adaptor) 
with one of HB's older hubs, it works fine.  But then it takes a 
different command line syntax for that setup.

Or is it an access issue accessing ttyACM0?  Although minicom has no 
problem with it.

Any pointers?

Lyle

------------------------------------------------------------------------------
Jerry Scharf | 10 Jun 04:20 2015

first build on beaglebone black debian

Hi,

I just pulled a3.1p0 from sourceforge and am building it on a beaglebone 
black w/ debian 7.8. I ran into some things I don't understand while 
running configure.

When I try to enable fuse for owfs, I pass it the include path. The test 
program blows up during compile with an undefined size_t in the stdio.h. 
Has anyone found a way around this?

I have also run into some configure problems around usb as well. It is 
looking for the file libusb-1.0.pc, which is not on the system despite 
libusb-dev being installed.

Also, I can probably work through the documents, but if someone has the 
commands to have owserver look at I2C#2 for the converter chips, that 
would be a big help. The I2C scan tool sees the three chips.

thanks in advance,
jerry

------------------------------------------------------------------------------
Reid | 5 Jun 12:13 2015
Picon

Re: deleting /mnt/1wire folders and files.

I have used i buttons and 1wire viewer on a windows machine for many years but want to move onto system monitoring on a Raspberry Pi.

 

After many struggles I found “Notes on the Raspberry Pi” at http://www.noveldevices.co.uk/rp-1-wire This worked with only one hitch at Step 3 the download appeared in the folder as “download” and had to be renamed “owfs-2.8p15” for the unzip to work. The programme then ran - - once. On running a second time it reported that /mnt/1wire was already present. So I had to create 1wire.1 then 1wire.2 etc. However I can’t delete remove or change these files. I have tried sudo and tried deleting from the root. When I use –v (verbose) the deletion appears to proceed as normal but does not remove the files a folders. This is all pretty heady stuff for a newby.  It appears that large set of files and folders which owfs creates in /mnt/1wire  have a range of ‘permissions’ including ‘nobody’. I have tried chmod and chown with little effect.

Can anyone advise how these files and folders can be deleted / removed.

 

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Gmane