This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

1-wire DS2423
#1
Hi,
is the 'DS2423 4kbit 1-Wire RAM with Counter, device supported.

Regards Johan
Reply
#2
It is supported, but you will have to use scripts to read/write data from/to it.
Reply
#3
Thanks,
do you have an example to get me started.

Regards Johan
Reply
#4
First you need to find the unique ID of the 1-Wire device. It is shown in the UI or you can use a script to log all connected devices:
Code:
require('ow')
list = ow.list()
log(list)

Read counter values (change id value to your device ID):
Code:
require('ow')
id = 'ABCDEF123456'
c1, err1 = ow.readfile(id, 'counters.A', true)
c2, err2 = ow.readfile(id, 'counters.B', true)
log(c1, c2, err1, err2)
Reply


Forum Jump: