Since my Synology DS107 has a couple of USB ports I wondered if it’s possible to use a scanner (Medion MD9705) with it.
The answer is: “Yes, you can!”
The very first thing is to check if sane supports your scanner.
If that’s the case, or you want to try your luck: make sure you got ipkg installed. I used to following site:
I also installed IPKG web, to be able to search, install and remove packages from the Disk Station Manager:
Now you’re able to install the ipkg’s
Now let’s find our scanner:
My output is:
found USB scanner (vendor=0xffff, product=0xffff, chip=GT-6816?) at libusb:002:002
the vendor and product string aren’t right. But this turned out the be no problem. I configured
and added the following lines:
# AB: medion
usb 0xffff 0xffff
option artecFirmwareFile /opt/share/sane/artec_eplus48u/Artec48.usb
# Is the scanner an Artec E Plus Pro (or compatible)? 0 = no, 1 = yes
option ePlusPro 0
# for adjusting the default gamma values
option redGamma 1.0
option greenGamma 1.0
option blueGamma 1.0
option masterGamma 1.9
#Use this options to set the default offset and exposure time values.
option redOffset 0×28
option greenOffset 0x2f
option blueOffset 0x2f
option redExposure 0xa7
option greenExposure 0×116
option blueExposure 0xdc
option vendorString “Medion”
option modelString “MD 9705″
I had to upload the firmware file myself. This comes with the Windows driver. I’ve added a howto at the bottom of this post.
Check /opt/etc/sane.d/dll.conf to make sure your module isn’t commented with #. It wasn’t in my case, so probably isn’t by default.
Now check with
if it’s really detected. In my case:
device `artec_eplus48u:libusb:002:002′ is a Medion MD 9705 flatbed scanner
device `net:localhost:artec_eplus48u:libusb:002:002′ is a Medion MD 9705 flatbed scanner
So I’m up and running. To test and scan an image, google the man page.
Now I want to be able to use it from my Windows Vista Desktop. I decided to use Sain Twain. First we have to setup xinetd though. Install the ipkg
Check in /opt/etc/xinetd.conf if your subnet is allowed:
only_from = localhost 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
I’m on a private subnet (192.168) so no issues for me.
Now let’s configure it
Enter the following lines:
port = 6566
socket_type = stream
wait = no
user = root
group = root
server = /opt/sbin/saned
Note: I was lazy and used root. This is not the best option securitywise…
The services file is configured by the installation of sane (and the script /opt/etc/init.d/S01sane-backends does it every startup):
sane-port 6566/tcp # SANE network scanner daemon
Make sure your subnet is allowed in /opt/etc/sane.d/saned.conf. The file itself gives good directions.
Now start xinetd:
Check it it’s running:
ps | grep xinetd
Output should be something like:
2231 root 944 S /opt/sbin/xinetd
2462 root 312 S grep xinetd
If it’s not running check:
I initially made a typo and read the following in messages:
service/protocol combination not in /etc/services: sane-prot/tcp
If it’s running you’re ready to install Sane Twain. Download it from:
This works fine for me.
ToDo: allow the buttons on the scanner to be used. I’m thinking of trying http://scanbuttond.sourceforge.net.
### HOWTO: get firmware file ### – 05/05/2009
- In my case I downloaded the driver from the Medion Website.
- I extracted the “scamd9705w9xxp.exe” file (with winrar).
- In the WinXP subfolder there’s a file called Artec48.usb. This is the one you need.
- I copied the Artec48.usb file to the directory /opt/share/sane/artec_eplus48u/