DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-09-11 08:50:36

Elvenblood
Member
Registered: 2009-09-10
Posts: 5

1-wire on the DNS-323

I've managed to get it working on my DNS-323. Im using the usb-version of the controller.

Since the source is open I compiled the files and have temprature and counter working. For now i'm logging the results to a mysql db on the nas, I then plot it using gnuplot and rrdtool. It might be overkill to use both, and I didn't at first. I only used gnuplot from the ipkg. The ipkg-version is old though so I downloaded the source and installed it on the nas. The latest version supports transparency (among others) and works perfectly for me.

RRDTool is also a nice program but I didn't get the ipkg version working. So I installed a later version and now it's running like it should.

I had some problems when trying to compile the source for the 1-wire. It appears as though the syntax in the Makefile don't work on the nas. My skills in Linux is very limited so I had to compile all satelite (is this a prper name) files manually. I guess I could try to write a new Makefile that works if someone is interested.

Happy dns'ing smile

/E


Attachments:
Attachment Icon temp[5].png, Size: 7,908 bytes, Downloads: 200

Offline

 

#2 2009-09-12 08:28:35

martin w
New member
Registered: 2009-09-12
Posts: 3

Re: 1-wire on the DNS-323

Hi, I've been trying to get 1-wire working on the DNS-323 the last few days using software digitemp. The problem is that this is my first foray into using linux, so its a steep learning curve for me.

I've managed to get chroot debian installed and also upgraded to 'lenny' as per the wiki, but I can't seem to get the digitemp software to work (probably it can't see the usb port). I could see a usb drive using the usb-storage.ko file, but I suspect this is not used for the DS2490 usb 1-wire adaptor.

Any chance you can post how you got the 1-wire working, or a simple how to for a newby - i.e. type this, download that, etc .

thank you very much

Offline

 

#3 2009-09-15 14:50:00

a1ik
New member
Registered: 2009-09-15
Posts: 2

Re: 1-wire on the DNS-323

I am also very interested in moving my 1-wire weather station from Windows box to NAS.

Offline

 

#4 2009-09-15 22:48:46

a1ik
New member
Registered: 2009-09-15
Posts: 2

Re: 1-wire on the DNS-323

Elvenblood wrote:

I've managed to get it working on my DNS-323. Im using the usb-version of the controller.
...

Are you using DS9490R as 1-wire adapter?  What driver are using? Do I need to install any fun_plug extras to make the driver working?

Thank you!

--Alik

Offline

 

#5 2009-09-16 09:59:51

Elvenblood
Member
Registered: 2009-09-10
Posts: 5

Re: 1-wire on the DNS-323

I've been trying to find some time to fix a little tutorial on this... but I'll try to give you the basics;

I'm using the DS9490R (USB) 1-wire adapter. I've connected a couple of temp-readers and a counter that keeps track of my power consumption.

I run fun_plug 0.5 on fw 1.05 on a USB-stick connected via a 4-port usb-hub.  I believe that you have to install libusb at least I have it installed.

Link to 1-wire source:
http://www.maxim-ic.com/products/ibutto … irekit.cfm

Link to source code for Linux with usb:
http://files.dalsemi.com/auto_id/public … x310r2.zip

The zip contains the source and some already compiled bin's. They DON'T work with the DNS. You'll have to compile them yourself.

In folder builds\libusblinux\ there is a Makefile. I did'nt get that to work, but I used the info in it to compile all helper-files, and later the progs.

In folder apps\ you have the source to the programs. I rewrote the temp program to better suit my needs. The original prog loops out the values until you break it with ctrl+c.

Once the progs are compiled you run them with ./temp DS2490-1. where temp is the name of your bin.

The last "1" specifies which adapter to use, in case you have more than one.

I'll see if I can rewrite the makefile so that it works and provide a source that's easy to compile on the dns.

Hope this helps to get you started.

/E

Offline

 

#6 2009-09-16 22:38:01

martin w
New member
Registered: 2009-09-12
Posts: 3

Re: 1-wire on the DNS-323

thanks for the reply.. it gives me somewhere to start.. If you can make it idiot proof for us by providing an installed /  how to etc,  you'd be my hero smile

I'll see where I get over next few days....

thanks again

Offline

 

#7 2010-02-06 09:44:27

martin w
New member
Registered: 2009-09-12
Posts: 3

Re: 1-wire on the DNS-323

Can anyone give an update on an install file for this? I still cant get to gripps with the linux commands....

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB