firmata owx arduino nano and 1-wire counter

Begonnen von kroonen, 29 Dezember 2014, 13:07:00

Vorheriges Thema - Nächstes Thema

kroonen

Hi,

I'm trying to connect an 1-wire counter TAI-8586 (AAG ELECTRONICS) the arduino with pin 10 connected

I tested it first with an ds18b20 and that was working

In the then is doesn't detect

2014.12.27 01:02:52 1: OWX: 1-Wire devices found on bus OW1 ()
2014.12.27 01:03:27 3: Setting Arduino baudrate to 57600
2014.12.27 01:03:27 1: /dev/ttyUSB0 reappeared (Arduino)
2014.12.27 01:03:30 3: querying Firmata Firmware Version
2014.12.27 01:03:31 3: querying Firmata Firmware Version
2014.12.27 01:03:31 3: Firmata Firmware Version: ConfigurableFirmata.ino V_2_06
2014.12.27 01:03:42 1: OWX: 1-Wire devices found on bus OW1 ()


In digitemp with an ds9097 passive interface I get readings

I used this schema for ds9097

http://martybugs.net/electronics/tempsensor/hardware.cgi

But this is not working in fhem, or should i modify something?

So I thought than adruino nano with the TAI-8586, but also not. Here my config and some logging

define Arduino FRM /dev/ttyUSB0@57600

define OW1 OWX 10
attr OW1 bus power parasitic

2014.12.27 01:02:52 1: OWX: 1-Wire devices found on bus OW1 ()
2014.12.27 01:03:27 3: Setting Arduino baudrate to 57600
2014.12.27 01:03:27 1: /dev/ttyUSB0 reappeared (Arduino)
2014.12.27 01:03:30 3: querying Firmata Firmware Version
2014.12.27 01:03:31 3: querying Firmata Firmware Version
2014.12.27 01:03:31 3: Firmata Firmware Version: ConfigurableFirmata.ino V_2_06
2014.12.27 01:03:42 1: OWX: 1-Wire devices found on bus OW1 ()

digitemp output with ds9097 and tai8586

root@wheezyvm:~# digitemp_DS9097-i -s /dev/ttyUSB0
-bash: digitemp_DS9097-i: command not found
root@wheezyvm:~# digitemp_DS9097 -i -s /dev/ttyUSB0
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU General Public License v2.0 - http://www.digitemp.com
Turning off all DS2409 Couplers
.
Searching the 1-Wire LAN
1D31020A00000081 : DS2423 4Kbit RAM + Counter
ROM #0 : 1D31020A00000081
Wrote .digitemprc

root@wheezyvm:~# digitemp_DS9097 -a
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU General Public License v2.0 - http://www.digitemp.com
Dec 27 01:14:52 Sensor 0 #0 207
Dec 27 01:14:52 Sensor 0 #1 150273

The AAG only uses ground en 1-wire port,  hasn't power option as show in this tabel (tai 8586 is almost identical to the tai8585)

Any idea, how to solve it with the arduino or the ds9097?

regards Richard

kroonen

Hi,

With the passive adapter it is working, but is very slow.

2014.12.27 02:29:00 1: OWX: 1-Wire bus OW1: interface passive DS9097 detected
2014.12.27 02:29:20 3: OWCOUNT: Device OWX_1D_31020A000000 defined.
2014.12.27 02:29:20 1: OWX: 1-Wire devices found on bus OW1 (OWX_1D_31020A000000)

So it should be better through de arduino with the firmata, any idea how to solve that one?


Prof. Dr. Peter Henning

What do you mean by "slow" ? A passive DS9097 adapter has no internal logic, the complete bus searchhas to be done by FHEM - and if you run this on a slow system, it takes a few seconds. You are of course free to use an Arduino - but if you have problems there, why don't you use a proper 1-Wire Interface with DS2480 (to mention only one option) ?

Regards

pah

kroonen

#3
Well i tried owx_async, so i can use the web interface of them while reading the devices


Owx sync, my adapter is a ds2423, but when i us owx_async than the adapter is changed from ds2423 to s2423eold without memory, same adapter, a bug?

2014.12.29 16:25:17 2: OWX: 1-Wire devices found on bus OW1 (OWX_1D_31020A000000)
2014.12.29 16:25:22 1: OWCOUNT: model attribute of OWX_1D_31020A000000 set to DS2423eold because no memory found
2014.12.29 16:25:23 1: OWCOUNT_recall: Cannot open OWCOUNT_OWX_1D_31020A000000_14.dat for reading!
2014.12.29 16:25:23 1: OWCOUNT_recall: Cannot open OWCOUNT_OWX_1D_31020A000000_15.dat for reading!

regards Richard

Prof. Dr. Peter Henning

First of all, you do not seem to be aware of the meaning of "adapter": It is the device coupling the 1-Wire bus to, say, an USB. This device is either passive (like the DS9097) or contains an active bus master chip, like the DS2480.

Secondly, the DS2423 is not an "adapter", it is a 1-Wire counter chip. Since it is no longer available in quantities, Thomas Mueller developed an emulation running on an ATTiny. The first crude versions did not have the internal memory space of the genuine DS2423 - current version have this memory.

Thirdly, I find your posts hard to believe. In both cases (OWX and OWX_async) the same frontend module OWCOUNT is used, and there is no difference in treating the DS2423 emulator ("e") of old type ("old" means "no internal memory"). In both cases the OWCOUNT module tries to circumvent the lack of memory by writing data to external files.

Regards

pah