DSM-G600, DNS-323 and TS-I300 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-07-22 17:57:46

briansailing
Member
Registered: 2008-01-15
Posts: 5

DNS 343 UPS suport can we add this to the 323

From the Dlinks website
DNS 343 UPS support

USB PORT FUNCTIONALITY
The USB port can act as a print server port, allowing a USB printer to be added to your network without the need for a dedicated computer. The USB port can also support a Universal Power Supply (UPS) monitor that supports ‘smart’ signaling over a USB connection. If a power outage were to occur, the compatible UPS monitor would allow the UPS unit to safely shut down the DNS-343. When power is restored, the UPS monitor would then automatically power up the DNS-343.

For flexible usage, the DNS-343 includes features such as a built-in FTP server2 to access files over the Internet and a UPnP™ Media server to stream digital content to compatible media players. With RAID 5 technology, an OLED that displays vital storage information, a management program that allows you to easily set rules and schedules, and a variety of built-in servers, the 4-Bay Network Storage Enclosure (DNS-343) is a secure expandable and reliable storage solution for the home and business.

Offline

 

#2 2008-07-22 21:27:54

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

Re: DNS 343 UPS suport can we add this to the 323

What do you need? There was at least one earlier discussion on UPS support:
http://forum.dsmg600.info/p8825-2007-12 … html#p8825

Is a NUT package for ffp-0.5 sufficient? It tried and it seems to compile fine.

Offline

 

#3 2008-07-22 23:50:22

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 80
Website

Re: DNS 343 UPS suport can we add this to the 323

fonz wrote:

What do you need? There was at least one earlier discussion on UPS support:
http://forum.dsmg600.info/p8825-2007-12 … html#p8825

Is a NUT package for ffp-0.5 sufficient? It tried and it seems to compile fine.

I've been following the mentioned thread along with a few others related to UPS support. I'd be willing to give NUT a try if it could be posted to the ffp 0.5 packages area.

Bob Blackwell

Last edited by rcblackwell (2008-07-22 23:51:20)


Bob Blackwell
Pickering, ON

Offline

 

#4 2008-07-23 00:22:25

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

Re: DNS 343 UPS suport can we add this to the 323

rcblackwell wrote:

I've been following the mentioned thread along with a few others related to UPS support. I'd be willing to give NUT a try if it could be posted to the ffp 0.5 packages area.

Here you are: http://www.inreto.de/dns323/fun-plug/0. … .2.2-1.tgz
Good luck.

PS: nut requires libusb and neon packages.

Offline

 

#5 2008-07-23 02:10:05

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 358

Re: DNS 343 UPS suport can we add this to the 323

From the D-Link (USA) GPL site: ftp://ftp.dlink.com/GPL/DNS-343/
Looks like DNS-343 uses nut-2.2.0 and libusb-0.1.12 for UPS functionality


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#6 2008-07-23 03:55:24

Dlink
Member
Registered: 2007-11-21
Posts: 38

Re: DNS 343 UPS suport can we add this to the 323

Wait a bit longer and you wont have to do any work =P.

Offline

 

#7 2008-07-23 04:19:54

luusac
Member
Registered: 2008-04-29
Posts: 84

Re: DNS 343 UPS suport can we add this to the 323

Dlink wrote:

Wait a bit longer and you wont have to do any work =P.

I don't suppose you want to give any more hints on what else you are looking to include in the next f/w ?
lu

Offline

 

#8 2008-07-24 23:16:12

rtg20
Member
Registered: 2007-12-23
Posts: 17

Re: DNS 343 UPS suport can we add this to the 323

Dlink wrote:

Wait a bit longer and you wont have to do any work =P.

Can you suggest what UPS I should buy now - something that will support automatic shutdowns etc. with this suggested new firmware...?

thanks.

Offline

 

#9 2008-07-25 17:40:56

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

Re: DNS 343 UPS suport can we add this to the 323

rcblackwell wrote:

I'd be willing to give NUT a try if it could be posted to the ffp 0.5 packages area.

I found small bugs in the package, and uploaded revision -2. (removed, cgi-bin and html directories, added missing ffp/var/state/ups/ directory).

Update with 'funpkg -u ...' as usual.

Offline

 

#10 2008-07-25 19:21:01

Dlink
Member
Registered: 2007-11-21
Posts: 38

Re: DNS 343 UPS suport can we add this to the 323

rtg20 wrote:

Dlink wrote:

Wait a bit longer and you wont have to do any work =P.

Can you suggest what UPS I should buy now - something that will support automatic shutdowns etc. with this suggested new firmware...?

thanks.

Not officially. But I can tell you that I do have an APC 500VA sitting next to me that has been tested.

I will have to verify which usb modules will be built in before I can give you a detailed list.

Offline

 

#11 2008-07-25 22:47:33

fordem
Member
Registered: 2007-01-26
Posts: 1124

Re: DNS 343 UPS suport can we add this to the 323

Would that be a BackUPS 500VA or a SmartUPS 500VA - the communication protocols and cables have significant differences.


RAID1 is for disk redundancy, not data backup, don't confuse the two ...

Offline

 

#12 2008-07-25 23:34:41

Dlink
Member
Registered: 2007-11-21
Posts: 38

Re: DNS 343 UPS suport can we add this to the 323

fordem wrote:

Would that be a BackUPS 500VA or a SmartUPS 500VA - the communication protocols and cables have significant differences.

That would be a USB BackUPS 500VA to be specific.

Offline

 

#13 2008-07-27 17:26:05

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

Re: DNS 343 UPS suport can we add this to the 323

Dlink wrote:

Wait a bit longer and you wont have to do any work =P.

Will you also fix the TWSI problem( http://forum.dsmg600.info/t2567-Tempera … em%21.html )? Or is it already fixed and I just didn't notice?

Offline

 

#14 2008-07-31 04:00:56

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 80
Website

Re: DNS 343 UPS suport can we add this to the 323

fonz wrote:

rcblackwell wrote:

I'd be willing to give NUT a try if it could be posted to the ffp 0.5 packages area.

I found small bugs in the package, and uploaded revision -2. (removed, cgi-bin and html directories, added missing ffp/var/state/ups/ directory).

Update with 'funpkg -u ...' as usual.

It's been a little over a week since I started documenting installation of NUT thus I thought I would report in on my progress.

With of exception of errors reported by DMESG, I'm pleased to say so far so good!

What is causing this and should I be concerned?

usb 1-1.3: usbfs: process 7696 (usbhid-ups) did not claim interface 0 before use
usb 1-1.3: usbfs: process 7696 (usbhid-ups) did not claim interface 0 before use
usb 1-1.3: usbfs: process 7762 (usbhid-ups) did not claim interface 0 before use

< For clarity several similar entries were removed>

usb 1-1.3: usbfs: process 7762 (usbhid-ups) did not claim interface 0 before use
usb 1-1.3: usbfs: process 7762 (usbhid-ups) did not claim interface 0 before use

Once I've sorted out a few issues I'll post my documentation on the Wiki.

Last edited by rcblackwell (2008-08-04 19:35:50)


Bob Blackwell
Pickering, ON

Offline

 

#15 2008-08-04 19:25:48

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 80
Website

Re: DNS 343 UPS suport can we add this to the 323

fonz wrote:

rcblackwell wrote:

I'd be willing to give NUT a try if it could be posted to the ffp 0.5 packages area.

I found small bugs in the package, and uploaded revision -2. (removed, cgi-bin and html directories, added missing ffp/var/state/ups/ directory).

Update with 'funpkg -u ...' as usual.

Installed the update without a problem and although I'm able to start NUT as root (upsdrvctl start), I'm unable to start the NUT driver as a user (upsdrvctl -u ups start). I've read through the instruction at  Network UPS Tools and have been using the online manual for assistance however I've not been able to resolve what I believe to be a rights issue.

Following is the error message that's received when starting upsdrvctl with the -u switch;

root@DNS323_NAS:/mnt/USB/ffp/etc# upsdrvctl -u ups start
Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)

No matching HID UPS found
Driver failed to start (exit status=1)


Following are the steps I took when starting out;

I've added a group and assigned a user using the following steps;

groupadd nut

adduser -s /bin/false -G nut -H ups

Once a user password was set this information was written to flash using store-passwd.sh and survives a reboot of the DNS



The NUT configuration files were modified to include;

To ups.conf I added;

[APC_UPS]
    driver = usbhid-ups
    port = auto
    desc = "APC UPS"

To upsd.users I added;

[ups]
    password = Fi8H7m11lb
    allowfrom = localhost DNS323_NAS
    actions = SET
    instcmds = ALL


Based on instruction at Network UPS Tools the following was changed;

Changed ownership of upsd.conf and upsd.users files.
    cd /ffp/etc
    chown root:nut upsd.conf upsd.users
    chmod 0640 upsd.conf upsd.users

Changed ownership of /ffp/var/state/ups directory
     chmod 0770 /ffp/var/state/ups
     chown root:nut /ffp/var/state/ups



Here's what I've tried so far;

Changed the /ffp/etc/hotplug/usb/libhidups file to read;

    if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
      chown root:nut "$DEVICE"
      chmod 0660 "$DEVICE"
    fi

rather than;

    if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
      chown root:root  "$DEVICE"
      chmod 0664  "$DEVICE"
    fi


Unplugged the UPS from the DNS323, rebooted the DNS323 then reconnected the UPS. I thought changing the group ownership of the device would cause the device to be recognized with that group. A peak at files in the /proc/bus/usb/001 directory reveals all devices belong to root and are in the root group.

Changed ownership of the NUT driver file that's associated with my UPS;

chown root:nut /ffp/bin/usbhid-ups


I've exhausted my list of skills and now find it necessary to turn to this group for help!

With appreciation

Last edited by rcblackwell (2008-08-04 19:34:44)


Bob Blackwell
Pickering, ON

Offline

 

#16 2008-08-04 19:32:25

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 80
Website

Re: DNS 343 UPS suport can we add this to the 323

rcblackwell wrote:

What is causing this and should I be concerned?

usb 1-1.3: usbfs: process 7696 (usbhid-ups) did not claim interface 0 before use
usb 1-1.3: usbfs: process 7696 (usbhid-ups) did not claim interface 0 before use....

Setting appropriate rights on the /ffp/var/state/ups directory and rebooting the DNS323 seems to have solved this issue.


Bob Blackwell
Pickering, ON

Offline

 

#17 2008-08-07 01:07:27

rtg20
Member
Registered: 2007-12-23
Posts: 17

Re: DNS 343 UPS suport can we add this to the 323

Dlink wrote:

rtg20 wrote:

Dlink wrote:

Wait a bit longer and you wont have to do any work =P.

Can you suggest what UPS I should buy now - something that will support automatic shutdowns etc. with this suggested new firmware...?

thanks.

Not officially. But I can tell you that I do have an APC 500VA sitting next to me that has been tested.

I will have to verify which usb modules will be built in before I can give you a detailed list.

it would be great if you could do this - thanks!

Offline

 

#18 2008-08-07 01:17:31

rtg20
Member
Registered: 2007-12-23
Posts: 17

Re: DNS 343 UPS suport can we add this to the 323

...by the way, would firmware UPS support work on a fun plugged DNS323...? I had to fun_plug mine to allow secure file transfers...a real shame this aren't supported in the web interface.

Offline

 

#19 2008-08-07 02:04:11

fordem
Member
Registered: 2007-01-26
Posts: 1124

Re: DNS 343 UPS suport can we add this to the 323

I see no reason why it shouldn't - when it eventually becomes available - as far as I know fun_plug adds functionality not removes it.


RAID1 is for disk redundancy, not data backup, don't confuse the two ...

Offline

 

#20 2008-08-07 02:21:17

rtg20
Member
Registered: 2007-12-23
Posts: 17

Re: DNS 343 UPS suport can we add this to the 323

I had trouble with the control panel-empowered ftp thing after i got the fun_plug to work. would be a shame if the same thing happened to UPS support!

we will have to find out...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson