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 2008-02-17 23:21:30

Gand
Member
Registered: 2008-02-17
Posts: 8

X10 on DNS-323

I just picked up a '323 and I'm really happy with it so far.  Got telnet, chroot debian, rtorrent, and external usb support all up.  I thought it would be sweet if the '323 could control my home automation through X10 (in my case, a Smarthome USB Powerlinc).  So, I thought I'd start a discussion on X10 support for the DNS-323.

The Wish dev2 drivers ( http://wish.sourceforge.net/index2.html ) work perfectly for every *nix system I've tried them on, so I have no doubt that would work with the '323.  However, the only problem is compiling them for the '323 (obviously compiling in the chroot environment won't work).  After they are compiled, /dev/x10/* would be able to accept commands from userspace.

Another option is a straight userspace tool, but I don't think one exists.

Anyone know of a method of compiling these drivers for the DNS-323?

Offline

 

#2 2008-02-25 13:59:23

potgieterdl
Member
Registered: 2008-02-21
Posts: 14

Re: X10 on DNS-323

Hi Gand,

Have you had any luck with this?

Offline

 

#3 2008-02-28 06:52:26

Gand
Member
Registered: 2008-02-17
Posts: 8

Re: X10 on DNS-323

No, unfortunately.  If I had an ARM build environment this could be done really easily, but unfortunately I don't.

If there's anyone that has debian installed (full debian, not chroot), they could do this.  Otherwise I'll see about getting an ARM emulator to get this going...

Offline

 

#4 2008-03-05 15:20:31

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: X10 on DNS-323

What do you think is necessary to do with the DNS-323 to accept the Smarthome USB Powerlinc at the USB port?

BTW, does anyone now if the device mentioned above is available with European (Swedish in particular) wallplug or if there is an equivalent?

Last edited by vedeja (2008-03-05 15:40:28)


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#5 2008-03-10 18:21:35

Gand
Member
Registered: 2008-02-17
Posts: 8

Re: X10 on DNS-323

vedeja wrote:

What do you think is necessary to do with the DNS-323 to accept the Smarthome USB Powerlinc at the USB port?

BTW, does anyone now if the device mentioned above is available with European (Swedish in particular) wallplug or if there is an equivalent?

As far as I know, all that needs to be done is the Wish dev2 drivers just need to be compiled for the ARM processor and then loaded into linux via telnet or fun_plug.  It can then be controlled by sending commands to /dev/x10/...

Offline

 

#6 2009-12-06 11:07:01

Mateles
Member
Registered: 2009-01-08
Posts: 5

Re: X10 on DNS-323

Has anyone been able to get x10 running on their 323?  I'm looking to hook up my CM15A

Offline

 

#7 2009-12-07 13:23:18

assuncap
Member
From: ByTheSea@Portugal
Registered: 2007-11-23
Posts: 26

Re: X10 on DNS-323

try to talk with fonz. maybe he can help you compile this

Offline

 

#8 2009-12-07 13:36:44

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: X10 on DNS-323

There's info on how to compile the D-Link toolchain on the wiki. For the drivers, you probably also need the firmware kernel sources. For the rest, you can use the native compiler in ffp.

Offline

 

#9 2010-06-13 21:39:14

bdub03
New member
Registered: 2010-06-13
Posts: 4

Re: X10 on DNS-323

bumping post back up to the top. 

Looking for a possible way to get the X10 communicator to work with my X10 devices in the home without the need for a PC.  Because the NAS is always on, why not right?

Any progress made with this since December?  Thx in adv smile

Offline

 

#10 2010-08-13 19:45:48

bdub03
New member
Registered: 2010-06-13
Posts: 4

Re: X10 on DNS-323

Fonz,

Can you help me understand the process of compiling a .ko driver for the DNS environment?

Here are the facts I have so far:
Driver Soure code: http://cwoodward.linux-site.net/x10/cm15a-driver.tgz

Instructions given from README:

Go to the driver/linux-2.6 directory.  To build the device driver, execute
make in the driver/linux-2.6 directory as root:

        % make

The device module, labjack.ko, should be built.  Once the device driver
is built, you can use insmod to load the device.  As root, execute:

        # insmod cm15a.ko



I was unable to find the command make so I downloaded via ipkg.  My current error:

root@MillerTime:/usr/src/cm15a-driver/driver/linux-2.6# make
make -C /lib/modules/2.6.12.6-arm1/build  SUBDIRS=/usr/src/cm15a-driver/driver/linux-2.6 modules
make: *** /lib/modules/2.6.12.6-arm1/build: No such file or directory.  Stop.
make: *** [default] Error 2


Thanks in Advance smile

Offline

 

#11 2010-08-13 19:52:26

bdub03
New member
Registered: 2010-06-13
Posts: 4

Re: X10 on DNS-323

I may have partially answered my own question.
After auditing the Makefile that came with this driver I see the following string that needs to be modified:

#KERNEL_SRC = /usr/src/linux-2.6.5-gentoo-r1

Where is the kernel source?
Thx!

Offline

 

#12 2010-08-13 22:00:52

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: X10 on DNS-323

on the dlink ftp server.

Offline

 

#13 2010-08-13 23:21:58

bdub03
New member
Registered: 2010-06-13
Posts: 4

Re: X10 on DNS-323

Fonz,

I've already downloaded dns323_GPL_v1.08_12182009.tgz, have tar'd to /opt/dns323_GPL/dns323_GPL but still can not find the correct source files.

Can you give me any further advice?  Thanks smile

Offline

 

#14 2010-08-19 02:14:59

Mateles
Member
Registered: 2009-01-08
Posts: 5

Re: X10 on DNS-323

bdub03,

Have you gotten any further with this?  I've been meaning to try it, but I'm pretty inexperienced with Linux and I think I'll be lucky to even make it as far as you've gotten.  Which X10 device are you trying to hook up?  Thanks

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB