Scanning images via network using SANE and a USB scannerby John Crispin
To quickly test the Sane support for your FoxLX416 or classic "red" Fox with MCM chip download one of these file:
192.168.0.90 axis 127.0.0.1 localhostAfter you have done this, you need to set which IPs are allowed to connect to the sane daemon program running on your Fox. To do this you need to edit the file /etc/saned.conf. The following will show lines that are valid choices:
# allow access to the PC with the IP 192.168.0.1 192.168.0.1 # allow access to PCs with the IPs between 192.168.0.1 and 192.168.0.255 192.168.0.1/8Finally, you need to copy the backend provider file to the fox, that matches your scanner device. The file needs to be placed in the folder /mnt/flash/sane-libs/. To find out, which backend provider you need, check this list. I have a Canon N670U. According to the list i need to use the plustek backend. The backend files have the format libsane-
# scp libsane-plustek.so.1 firstname.lastname@example.org:/mnt/flash/sane-libsOnce you have done all this, you can test if the setup is working. There are two commands you can run. The first one checks for any scanner attached to the USB ports of the FOX.
# sane-find-scanner found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan], chip=LM9832/3) at libusb:001:002The second command checks if your backend works with the scanner
# scanimage -L device `plustek:libusb:001:002' is a Canon N670U/N676U/LiDE20 USB flatbed scannerAll done, we can now configure our PC to use the scanner via the network.
# apt-get install sane libsane sane-utilsThe next step to take is to tell sane where the scanner is located. To do this you need to edit the net.conf file. On my debian PC it is located under /usr/local/etc/sane.d. Simply add the IP of your FOX to this file. My file looks like this
# This is the net config file. Each line names a host to attach to. # If you list "localhost" then your backends can be accessed either # directly or through the net backend. Going through the net backend # may be necessary to access devices that need special privileges. # localhost 192.168.0.90Finally you need to have an application that can use sane. I tested with xsane. To install it on debian and then run it, I did the following:
# apt-get install xsane # xsaneXsane will startup and then try to detect the FOX, so be patient, it seems like nothing happens for about 15 seconds. Now you can start scanning :-) It is also possible to use a gnome plugin, but i have not yet tried it.
This is requiring the new SDK release 101 or newer installed on your Linux workstation: Install the SDK on Linux
Run the following command and choose the SANE configuration option
This configuration options has been prepared for a Fox LX416. If you have a MCM one or another kind of Fox like LX832 you have to change board type in the first option after launching make menuconfig.
# ./configure # make # make flash
Acme Systems srl
Via Aldo Moro 53 - 00055 Ladispoli (RM) - Italy
Partita IVA / Codice Fiscale 08114831004 - Tel +39.06.99.12.187 - Fax +39.06.622.765.31 - email: email@example.com pec: firstname.lastname@example.org
Iscritta al Registro delle Imprese di Roma al n. 08114831004 - REA: RM-1074631