Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: OneWire Temp Device

OneWire Temp Device 1 year 8 months ago #11598

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Hi all,
I was playing with some DS18B20 device at home and don't understand how to enter the identity of the one wire device. The Address attribute is mentioned in the documentation to be entered in decimal but my one wire device is additionnaly to the family code a 12 digit hex number which doesn't fit in the 10 digit decimal length of the Address attribute.
Am I missing somehting ?
I have tried entering the DataFile directly but it looks it tries anyway to initialize the pair family-Address:
E plc                  3984 22-08-20 17:57:56.75 OneWire_AiDevice Unable op open VolGreenhouse:Nodes-Greenhouse-OneWire-TmpArea1, '499602d2'
E plc                  3984 22-08-20 17:57:56.75 Failed to inititalize io, %IO-E-INITFAIL, Initialization failed
I put a fake number at the moment as the real won't fit

Thanks for your support
PS: I m working with a rpi proview package in v5.7
Snarf
The administrator has disabled public write access.

OneWire Temp Device 1 year 8 months ago #11600

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Snarf,

You can try something like this.
Check in /sys/bus/... your detected one-wire device.....

Many moons ago I used a setup with around 10 pcs. DS18B2's. with around 1 sec. sample time.
What I remember the wire length can be pretty long. (10 meter????)

Can't remember the details. Sorry.

onewire.png


/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

OneWire Temp Device 1 year 8 months ago #11601

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Thanks Marc

I thought I ve done exactly what you did but my init failed.

Hopefully comparing line per line with your setup I discovered that my DataFile name was incorrect so the mistake was me ...as usual

So thanks for your help, it forced me to tripple check my config which was wrong...
All clear now with same config as you except the one wire id of course
Bye
snarf
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.919 seconds