Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Pop your questions regarding Home automation Domotica hardware here.....
Post Reply
joao_patrao
Starting Member
Starting Member
Posts: 4
Joined: Fri Feb 02, 2007 7:01 pm
Location: Portugal

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by joao_patrao »

Greetings

I bought an Eltako power meter (WSZ12E-32A) with S0 output.
I bought also Double optocoupled counter TAI-8586 and a USB1-wire adaptor DS9094R.

I already tested the Eltako power meter - it shows the kWh, and conected the S0 outputs to the TAI-8586.

I use OneWire Viewer ( Maxim/Dallas Semiconductor ) to check that i have access to the TAI-8586

How can i have acess to the counter?
Is there any simple application or code that i can use to acess it ?

Best Regards from Portugal
Joao_Patrao
Patroni
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by Digit »

Hi,

Take a look at http://www.domoticaforum.eu/topic.asp?TOPIC_ID=170.
The URL to Maxim/Dallas will give you a good starting point.
And if that does't help you, just come back and maybe i can provide you with some more resources.

Regards,
Digit.
joao_patrao
Starting Member
Starting Member
Posts: 4
Joined: Fri Feb 02, 2007 7:01 pm
Location: Portugal

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by joao_patrao »

Hi Digit

Already tried some code provided with the 1-wire SDK but with no sucess.

what i need is somekind of simple application to "check" if the counter is working - the oneWire Viewer gives me access to all memory pages, in Hexadecimal code, but that doesn't help me at the time.

There must exist a simple way to check the counters in the TAI-8586...

I dont have to much time right know to investigate this and try some different aproaches using c, or c++ or c# code...

As a beginner in 1-wire i thought that it would exist some free code/apps to read counters in the TAI-8586 ( then to insert count in database and so on...)

if you can give some more info it woukd be nice!
Best Regards


Joao_Patrao
Lisbon-Portugal
User avatar
Willem4ever
Global Moderator
Global Moderator
Posts: 805
Joined: Mon Oct 30, 2006 3:48 pm
Location: Uithoorn / Netherlands

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by Willem4ever »

Hi,

You should use command A5 to read memory + counter. Counters are located on memory pages 12 to 15, and follow immediately the memory page. External triggered counters are on pages 14 and 15. So suppose you want to read a counter at page 14 you issue the follwing command:

A5DF01FFFFFFFFFFFFFFFFFFFFFF

where A5 =( Read Memory + Counter)
DF01 (starting point on the page (in this case the last byte since the counter comes after the page))

You should receive a response similar to this:

A5DF010025DA300000000000053A
A5 DF01 00 25DA3000 00000000 053A
A5 DF01=original command
00 = The last byte of page 14
25DA3000=count data
053A=crc

The received counter data is organized with least significant byte first so 25DA3000
Should be converted to 0030DA25 Hex, then convert the Hex to decimal and you have the count (3201573.)

More information can be found the datasheet.

Hope this helps,

Willem.

PS: Where did you get the DS9094R from ?
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by Digit »

Hi,

I think you mean <b>DS9490R</b> adaptor... ;-)

I can write a little test-program if you can wait till the upcoming weekend (no time...) if you like.

If your problem is solved before i can start, let me know, will you?

Regards,
Digit.
User avatar
Willem4ever
Global Moderator
Global Moderator
Posts: 805
Joined: Mon Oct 30, 2006 3:48 pm
Location: Uithoorn / Netherlands

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by Willem4ever »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by Digit</i>
<br />
I think you mean <b>DS9490R</b> adaptor... ;-)
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

Oops wrong endian mode ....
joao_patrao
Starting Member
Starting Member
Posts: 4
Joined: Fri Feb 02, 2007 7:01 pm
Location: Portugal

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by joao_patrao »

Greetings Willem

You are right - its a DS9490R adaptor.
I got it from audon.co.uk.
(http://www.audon.co.uk/1-wire_interface.html)

If you can help me out with that test program would be great!

Best Regards
Joao



Joao_Patrao
Lisbon-Portugal
User avatar
Willem4ever
Global Moderator
Global Moderator
Posts: 805
Joined: Mon Oct 30, 2006 3:48 pm
Location: Uithoorn / Netherlands

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by Willem4ever »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">If you can help me out with that test program would be great!<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

Hi, you confuse me with Digit, he offered that you!
joao_patrao
Starting Member
Starting Member
Posts: 4
Joined: Fri Feb 02, 2007 7:01 pm
Location: Portugal

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by joao_patrao »

You are right Willem!
I am so tired this days that i am confusing a lot of stuff and almost sleeping over the keyboard...

Sorry for any inconvenience!

Digit already contacted me to try the program!

Thanks anyway!


Joao_Patrao
Lisbon-Portugal
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by Digit »

There's a topic on the Homeseer Board worth reading about this:
http://board.homeseer.com/showthread.php?t=101657
It discusses a TAI-8586 in combination with S0-outputs.

Digit.
User avatar
Willem4ever
Global Moderator
Global Moderator
Posts: 805
Joined: Mon Oct 30, 2006 3:48 pm
Location: Uithoorn / Netherlands

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by Willem4ever »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by joao_patrao</i>
<br />You are right Willem!
I am so tired this days that i am confusing a lot of stuff and almost sleeping over the keyboard...

Sorry for any inconvenience!

Digit already contacted me to try the program!

Thanks anyway!


Joao_Patrao
Lisbon-Portugal
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

No problem. BTW I ordered a DS9094R as well (from the US, I find the UK shop too expensive)

Willem.
User avatar
Willem4ever
Global Moderator
Global Moderator
Posts: 805
Joined: Mon Oct 30, 2006 3:48 pm
Location: Uithoorn / Netherlands

Power Meter Eltako + TA8586 + USB 1-Wire Adaptor

Post by Willem4ever »

Hi Joao Patrao,

I received my DS9094R earlier this week, and yesterday evening I installed owfs (1 wire file system) on my linux box. Wow, this make live really easy .... see below output :

A directory showing the devices installed

<font face="Courier New">
drwxrwxrwx 1 root root 8 Mar 3 11:23 12.CEAE20000000
drwxrwxrwx 1 root root 8 Mar 3 11:23 1D.685D04000000
drwxrwxrwx 1 root root 8 Mar 3 11:23 81.9E4B27000000
drwxr-xr-x 1 root root 8 Mar 3 11:04 alarm
drwxr-xr-x 1 root root 8 Mar 3 11:04 bus.0
drwxr-xr-x 1 root root 8 Mar 3 11:04 settings
drwxr-xr-x 1 root root 8 Mar 3 11:04 statistics
drwxr-xr-x 1 root root 30 Mar 3 11:04 structure
drwxr-xr-x 1 root root 8 Mar 3 11:04 system
drwxr-xr-x 1 root root 8 Mar 3 11:04 uncached
</font id="Courier New">

The directory starting with 1D. is the counter, now to get the output you simply do the following.

cat 1D.685D04000000/counters.A
7432

the first line is the command (cat Unix type equivalent) + parameter, and the second line the 32bit counter output.

start here to find more information.

However, there is no support for Windows, but almost any old box (with USB) can run linux.
Post Reply

Return to “Questions & Discussions Forum”