Paul Alfille | 4 May 2012 01:06
Picon

Ubuntu quickstart

Now that the newest version of Ubuntu (12/04) has owfs in the repository, I've written a little description for getting it running.

http://owfs.org/index.php?page=quickstart-guide

I'd appreciate any feedback and corrections.

Paul Alfille

------------------------------------------------------------------------------
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
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
William Brown | 4 May 2012 11:01
Picon
Favicon

Re: Ubuntu quickstart

Is it only in Ubuntu? Any chance it will get into Debian? I use Linux 
Mint now which seems to be moving away from Ubuntu to focus on plain Debian.

You might want to clarify

# Serial port: DS9097
#server: device = /dev/ttyS1

to include

#server: device = /dev/ttyUSB0 for usb to serial adapters.

On 05/03/2012 01:06 PM, Paul Alfille wrote:
> Now that the newest version of Ubuntu (12/04) has owfs in the 
> repository, I've written a little description for getting it running.
>
> http://owfs.org/index.php?page=quickstart-guide
>
> I'd appreciate any feedback and corrections.
>
> Paul Alfille
>
>
> ------------------------------------------------------------------------------
> 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
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
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/
Michael Markstaller | 4 May 2012 12:42
Picon
Favicon

Re: Ubuntu quickstart


Am 04.05.2012 11:01, schrieb William Brown:
> Is it only in Ubuntu? Any chance it will get into Debian? I use
> Linux Mint now which seems to be moving away from Ubuntu to focus
> on plain Debian.

It is, just not in stable:
http://packages.debian.org/search?keywords=owfs&searchon=names&suite=unstable&section=all

Michaeel
Guy COLIN | 6 May 2012 01:29
Picon

Hobby board LCD driver cannot write to lcd and simultaneously read the PIO

Hello everybody,

2 years now I'm using owfs for monitoring home temperature and driving my
heating system. Everything is perfect. Big thanks to developers.
I have recently added to my network a Hobby board LCD driver. Following owfs man
pages I have no problem to write anything to the LCD, or to read the state of
the 3 input switches (the 3 first PIO's as per Hobby board design).
However my problem is that I cannot do this 2 things together:
To read the input switches state I read sensed.BYTE as per owfs man pages I must
first write 0 to PIO. And this is the problem as soon as I write something to
the PIO (0, 1, 8 or 255) the next write to the /LCD_H/message will fail to write
anything on LCD screen. I have try several things but cannot succeed. Obviously
I miss a re-init, printf "\x0C" >  /LCD_H/message doesn't help.
If anybody can help I would be happy!

Here is my script
The 2 functions are working, but not together.
To have the LCD correctly working I must comment this line
#echo 0 > $MYLCD/PIO.BYTE
if not 1 message on 2 isn't displayed.

#!/bin/bash

HeureDernierAffichage=0
COMPTEUR_AFFICHAGE=0
MYLCD=/tmp/1wire/29.1C9E09000000
LCD1="$MYLCD/LCD_H/screen"
LCD2="$MYLCD/LCD_H/message"
MESSAGE[1]="Bonjour Pirouette!                      Temp. Cave="
MESSAGE[2]="Bonjour Pirouette!                      Temp. Chaud="
MESSAGE[3]="Bonjour Pirouette!                      Temp. Entree="
MESSAGE[4]="Bonjour Pirouette!                      Temp. Ext="
MESSAGE[5]="Bonjour Pirouette!                      Temp. Server="

function DerouleAffichage   # scroll message 1 to 5
{
let TEMP_PASSE=`date +%s`-$HeureDernierAffichage  # message on LCD will change
every 5 seconds
echo -n "TEMP_PASSE=$TEMP_PASSE    "
if [ $TEMP_PASSE -gt 5 ]; then
  let COMPTEUR_AFFICHAGE=$COMPTEUR_AFFICHAGE+1
  if [ $COMPTEUR_AFFICHAGE -gt 5 ]; then let COMPTEUR_AFFICHAGE=1; fi # after
message 5 loop to message 1
  let HeureDernierAffichage=`date +%s`  
  printf "%s" "${MESSAGE[$COMPTEUR_AFFICHAGE]}$COMPTEUR_AFFICHAGE" > $LCD2
  echo 0 > $MYLCD/PIO.BYTE
fi
}

function TestAppuiBouton
{
  let REGISTRE=`cat $MYLCD/sensed.BYTE | sed -e "s/ //g"` 
  let "REGISTRE &= 7"  # Mask with AND keep 3 first bits
}

   # Initialise the display
  printf "\x0C" > $LCD1
  printf "1" > $MYLCD/LCD_H/clear
  printf "1" > $MYLCD/LCD_H/home

while [ 1 ]
do
  DerouleAffichage
  echo "COMPTEUR_AFFICHAGE=$COMPTEUR_AFFICHAGE   REGISTRE=$REGISTRE"
  sleep 0.5 
  TestAppuiBouton
done

Thanks 
--
Guy

------------------------------------------------------------------------------
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/
Doug Warner | 9 May 2012 01:52
Gravatar

check_ow.py complaining about missing field

I'm trying to get check_ow.py updated a little bit to accept a range of
acceptable values, but my first hurdle is getting the current version to work:

$ /usr/lib64/nagios/plugins/check_ow.py 192.168.0.1 4304
/1F.DD5105000000/main/28.9A46CE030000 -vv1
92.168.0.1:4304/1F.DD5105000000/main/28.9A46CE030000 - DS18B20
entryList: ['address', 'alias', 'crc8', 'errata', 'family', 'fasttemp', 'id',
'locator', 'power', 'r_address', 'r_id', 'r_locator', 'temperature',
'temperature10', 'temperature11', 'temperature12', 'temperature9', 'temphigh',
'templow', 'type']
sensorList: []
OW UNKNOWN - unknown field: temperature

My guess is my python (2.7.2) might not be using __getattr__ properly from the
ownet module.  Any ideas?

-Doug

------------------------------------------------------------------------------
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
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Ivan Lisenkov | 9 May 2012 10:06

Re: Ubuntu quickstart

Dear Paul,

Thank you for a nice guide. Is owfs in 11.10 respos also, or only for
12.04? Is it some way to install it via command line, I don't have any
gui on my special 1-wire box.

Also, does repos have armel builds, or it only for x86?

Thank you for your answers!

Best Regards,

Ivan, PhD

On Fri, May 4, 2012 at 3:06 AM, Paul Alfille <paul.alfille <at> gmail.com> wrote:
> Now that the newest version of Ubuntu (12/04) has owfs in the repository,
> I've written a little description for getting it running.
>
> http://owfs.org/index.php?page=quickstart-guide
>
> I'd appreciate any feedback and corrections.
>
> Paul Alfille
>
> ------------------------------------------------------------------------------
> 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
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>

------------------------------------------------------------------------------
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/
Paul Alfille | 9 May 2012 19:12
Picon

Re: Ubuntu quickstart

Hi Ivan,
 
I think I listed some of the "PPA" sources for owfs binaries. Perhaps others can give specific ARM binaries.
 
A guide to package manage3ment via the command line is:
 
Paul Alfille

On Wed, May 9, 2012 at 4:06 AM, Ivan Lisenkov <ivan <at> ivlis.com> wrote:
Dear Paul,

Thank you for a nice guide. Is owfs in 11.10 respos also, or only for
12.04? Is it some way to install it via command line, I don't have any
gui on my special 1-wire box.

Also, does repos have armel builds, or it only for x86?

Thank you for your answers!


Best Regards,

Ivan, PhD



On Fri, May 4, 2012 at 3:06 AM, Paul Alfille <paul.alfille <at> gmail.com> wrote:
> Now that the newest version of Ubuntu (12/04) has owfs in the repository,
> I've written a little description for getting it running.
>
> http://owfs.org/index.php?page=quickstart-guide
>
> I'd appreciate any feedback and corrections.
>
> Paul Alfille
>
> ------------------------------------------------------------------------------
> 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
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>

------------------------------------------------------------------------------
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
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
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
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Roberto Spadim | 9 May 2012 19:22
Picon

Re: Ubuntu quickstart

hum maybe you need to compile it or crosscompile it

i never got a binary version of owfs, just via linux distros, but in owfs team never founded one compiled

2012/5/9 Ivan Lisenkov <ivan <at> ivlis.com>
Dear Paul,

Thank you for a nice guide. Is owfs in 11.10 respos also, or only for
12.04? Is it some way to install it via command line, I don't have any
gui on my special 1-wire box.

Also, does repos have armel builds, or it only for x86?

Thank you for your answers!


Best Regards,

Ivan, PhD



On Fri, May 4, 2012 at 3:06 AM, Paul Alfille <paul.alfille <at> gmail.com> wrote:
> Now that the newest version of Ubuntu (12/04) has owfs in the repository,
> I've written a little description for getting it running.
>
> http://owfs.org/index.php?page=quickstart-guide
>
> I'd appreciate any feedback and corrections.
>
> Paul Alfille
>
> ------------------------------------------------------------------------------
> 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
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>

------------------------------------------------------------------------------
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
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers




--
Roberto Spadim
Spadim Technology / SPAEmpresarial
------------------------------------------------------------------------------
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
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Colin Law | 9 May 2012 21:33

Re: Ubuntu quickstart

On 9 May 2012 18:12, Paul Alfille <paul.alfille <at> gmail.com> wrote:
> Hi Ivan,
>
> I think I listed some of the "PPA" sources for owfs binaries. Perhaps others
> can give specific ARM binaries.

The davromaniak repository certainly has some ARM versions,  try that
if it is not in the standard repo.
http://owfs.davromaniak.eu/

Colin

------------------------------------------------------------------------------
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/
Ivan Lisenkov | 9 May 2012 22:21

Re: usb-i2c-1wire tutorial

Hello everybody,

I have reimplemented Patryk schematics with some minor changes. Photo
on breadboard is here: http://i.imgur.com/gUcFq.jpg . I can say that
it works :) I have lost about two days to figure out why the MC
doesn't get recognized by my laptop. The problem was in Zener diodes,
my were too powerful, one should use 0.5W and I had 1W. So I dropped
voltage from USB to 3.6V (two transistors on breadboard) and powered
MC and DS2482-800 by 3.6V. And I changed i2c pullup resistors to 2.2k,
as it suggested by DS2482-800 datasheet.

To conclusions. On 3.6 voltage 1-wire is very slow, reading
temperature from powered DS18B20 in high resolution takes about 3-3.5
sec. I tried to attach i2c pullup resistors and DS2482-800 to 5V bus,
but this makes system unstable. (Even hang my PC several times)

Also there some weird owfs(?) bugs there. If I mount owfs on my
laptop, everything is ok, I see 8 empty buses, but if I start owserver
and connect owhttpd to it, owhttpd shows only bus.0 and all other
buses are inside it. Second, and the most unpleasant thing, that my
adapter doesn't work on an arm system. If I connect it to my arm box I
see only one bus.0 and _some_ devices on 1-wire bus.  I tried both
2.8p13 and 2.8p14. This is not power issue, I have placed external 5V
from power supply and this doesn't change the picture.

This week I will buy "right" Zener diodes and try my prototype with
them. Also I will try to attach some DS2482-100.

And some random thoughts, also:

1) I was told on some forum (it is in Russian, so links are useless
here), that DS2482-800 doesn't proceed 1-wire lines in parallel. If
so, I guess multiple (we can have up to 4) DS2482-100 will be much
better

2) If one can combine existing 1-wire master code for AVR (STM?) MCs
with existing usb code, we can obtain a "dream device",  a native usb
1-wire master in one cheap IC!

Best Regards,

Ivan, PhD

On Fri, Apr 27, 2012 at 1:20 AM, Patryk <p4trykx <at> o2.pl> wrote:
> just want to share some progress
>
> I added two more 1-wire masters DS2482-100 and DS2483 with RJ-12
> connectors. The purpose is to compare the performance It's
> not finished yet but the placing is more or less final. I will have to
> straighten the paths but I think the board can be one sided with few wires
> on the top layer. I dont't know wich transistor to choose for DS2482-100.
> I don't know if it's some standard but I used a Z-80 case 83mm x 113 mm.
> It's a bit larger than Eagle freeware version allows but the wiring fits
> on 100x80.
> I was also wondering which standard of wiring RJ45 to use. I decided that
> I will use the same as RJ12 so the same flat 6/4 wire telephone cable can
> be put int rj45 plug and be compatible with RJ12.
>
> I was also wondering about DS9503 protection diodes. Will they do their
> job if the other lines(I mean +5V and GND are not protected).
>
> Here's Eagle project.
> http://ubuntuone.com/2sUJLP2JhCS63IC3YEdHJ8
>
> I also made a lib with the new DS2483 but it's my first lib so it's not
> finished but the package outline is right and that what's matter for now.
>
> http://ubuntuone.com/2xVbCWfotiP8bLSvruE3PD
>
> I welcome any suggestions. Bear in mind that I'm not an electronic
> engineer and may mad some obvious mistakes.
>
> --
> p4trykx
>
> ------------------------------------------------------------------------------
> 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
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
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/

Gmane