D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => ShareCenter® Add-on Applications => Topic started by: virtualhere on April 10, 2015, 06:14:34 AM

Title: Share USB Devices over the Network from the NAS
Post by: virtualhere on April 10, 2015, 06:14:34 AM
I wrote a USB Sharing system that runs on the D-Link ShareCenter NAS's that turns the NAS into a USB Device Server. You plug the USB device you want to share, (e.g security dongle, scanner, sd-card reader, printer, etc) into the USB port on your NAS then you install client software on the remote machines and use it as if it was directly connected , even though its connected to your NAS.

See here for more information http://www.virtualhere.com/nas_faq (http://www.virtualhere.com/nas_faq)

its not free but you can try it for 10 days, if you find it useful the price is $US39

The downloads are (scroll to bottom) https://www.virtualhere.com/nas (https://www.virtualhere.com/nas)
Title: Re: Share USB Devices over the Network from the NAS
Post by: vtverdohleb on April 14, 2015, 07:01:57 AM
1. In the "Applications" section there are no icons (in the package of the addon should be 3 pictures - virtualhere_off.png, virtualhere_on.png & virtualhere_display.png)

(http://dlink.vtverdohleb.org.ua/Add-On/images/forum.dlink.com/virtualhere_p1.png)

2. Not work USB webcam "Logitech C170". In "dmesg" I see the error. It seems there are missing some modules for kernel

Code: [Select]
[...]
xhci_hcd 0000:00:01.0: WARN: Stalled endpoint
xhci_hcd 0000:00:01.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
xhci_hcd 0000:00:01.0: ERROR Transfer event TRB DMA ptr not part of current TD
xhci_hcd 0000:00:01.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
xhci_hcd 0000:00:01.0: ERROR Transfer event TRB DMA ptr not part of current TD
xhci_hcd 0000:00:01.0: WARN Event TRB for slot 1 ep 4 with no TDs queued?
xhci_hcd 0000:00:01.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
xhci_hcd 0000:00:01.0: ERROR Transfer event TRB DMA ptr not part of current TD
xhci_hcd 0000:00:01.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
xhci_hcd 0000:00:01.0: ERROR Transfer event TRB DMA ptr not part of current TD
xhci_hcd 0000:00:01.0: WARN Event TRB for slot 1 ep 4 with no TDs queued?
xhci_hcd 0000:00:01.0: ERROR no room on ep ring
xhci_hcd 0000:00:01.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
xhci_hcd 0000:00:01.0: ERROR Transfer event TRB DMA ptr not part of current TD
xhci_hcd 0000:00:01.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
xhci_hcd 0000:00:01.0: ERROR Transfer event TRB DMA ptr not part of current TD
usb 3-1: usbfs: usb_submit_urb returned -12
xhci_hcd 0000:00:01.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
xhci_hcd 0000:00:01.0: ERROR Transfer event TRB DMA ptr not part of current TD
xhci_hcd 0000:00:01.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
xhci_hcd 0000:00:01.0: ERROR Transfer event TRB DMA ptr not part of current TD
[...]

NASDNS-327L
unameLinux dlink-E62F85 3.2.34 #1 Fri Feb 1 16:30:17 CST 2013 armv7l GNU/Linux
lsmodxfrm6_mode_tunnel       1342  0
xfrm6_mode_transport      952  0
xfrm6_mode_beet         1420  0
sit                     8287  0
tunnel4                 1947  1 sit
ipv6                  220024  24 xfrm6_mode_tunnel,xfrm6_mode_beet,sit
cryptodev              30299  2
reg                     1161  0
cpupinfoProcessor   : Marvell PJ4Bv7 Processor rev 1 (v7l)
BogoMIPS   : 1196.85
Features   : swp half thumb fastmult vfp edsp vfpv3 vfpv3d16 tls
CPU implementer   : 0x56
CPU architecture: 7
CPU variant   : 0x1
CPU part   : 0x581
CPU revision   : 1
Hardware   : Marvell Armada-370
Title: Re: Share USB Devices over the Network from the NAS
Post by: virtualhere on April 15, 2015, 06:25:44 PM
THanks for the feedback.

I tried putting the virtualhere_on.png (_off & _display) in the root directory of the install as well as under web/images and it still wont load the images. I took a look at an existing package and it seems to be under web/images however my package wont load the icons from there. Is there a config file that specifies where the icons are? (I tried apkg.rc and xml but there seems no entry there)

VirtualHere doesnt require kernel modules. The issue you are getting is because the Linux kernel itself has bugs in the xhci module in 3.2. Is 3.10 or later going in the next firmware update for the dlink that supports apps? That would likely fix the problem.

Also there is bug in the mkpkg_v2.1 program because it includes itself in the package it builds.

Also can you add an option to specify the output filename of the package, at the moment im using "rename" with a regex to change the name to something more friendly.

Thanks,

Michael
Title: Re: Share USB Devices over the Network from the NAS
Post by: vtverdohleb on April 22, 2015, 06:48:48 AM
Put the files "virtualhere_*.png" in the directory "web". Add the file "init.sh" the creation of symlink for pictures
Code: [Select]
ln -s $path/web/*.png $WEBPATHhttps://app.box.com/s/emi9dkm8hhebd6gyq77v4ur25adzxqga (https://app.box.com/s/emi9dkm8hhebd6gyq77v4ur25adzxqga)
https://app.box.com/s/5434ojp1buocyh4r5xzxlisjm7ocompn (https://app.box.com/s/5434ojp1buocyh4r5xzxlisjm7ocompn)
https://app.box.com/s/oqa6s44f99lk3qn2gplf7ixwchuxs7f8 (https://app.box.com/s/oqa6s44f99lk3qn2gplf7ixwchuxs7f8)

Source:
virtualhere_v2.2.2_22-04-2015.tgz (https://app.box.com/s/uw6i4tbf48xpefblklus2kh8rn2kffh3)
Title: Re: Share USB Devices over the Network from the NAS
Post by: virtualhere on April 22, 2015, 11:22:52 PM
Thanks that fixed it, i can build the package now and see the icons correctly