SULDR Forums Supported Printers Printing Questions Scanning Questions General Questions Samsung Installer

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - angelnu

Pages: [1]
Scanner Server (Scan to PC) / Re: List of working models
« on: August 27, 2013, 02:56:47 »
Having an extra post would help...

I guess this is something for bchemnet.

Glad to hear that! Please do not forget to update the list of working models :-)

The scan time is larger since the sane driver is transfering the image in RAW format. The Windows driver directly transfer it in JPEG format and therefore it is faster.

bchemnet: should I take the latest version of the script in your package and make the change there or should we updload the sources to a source repository and do the changes there?

Hi jmaris,

it looks like your scanner has a different setting than mine: 'FORMAT_PDF' Mine offers FORMAT_M_PDF (multi-page PDF) or FORMAT_S_PDF (one PDF per scanned page).

Please update the EXTENSIONS line in your config file to:


and give it a try. I would expect that you get one PDF for each scanned page. With a small fix in /usr/bin/ we can get all scanned pages in one PDF:

    #Concat PDFs and delete temp ones
--    if user_selection["format"] == "FORMAT_M_PDF" and (len(outputFiles)>1):
++  if (user_selection["format"] == "FORMAT_M_PDF" or user_selection["format"] == "FORMAT_PDF") and (len(outputFiles)>1):

Welcome back total-king :-)

Sorry for breaking your extensions: apart from syntax errors there is few I can do...

About starting the service by default: I would expect that only people wanting this feature will install the package. The default settings should work after the installation so ideally people would just need to install the package and do nothing else.

Scanner Server (Scan to PC) / List of working models
« on: June 19, 2013, 14:39:25 »
Since there seems to be different implementations of the scan to PC function, I would like to ask the community to help finding out which models works with my tool. Please share answer this thread with your experience, including at least the model, version of the scanner package and if it works or not.

MODEL                        Samsung Driver             suld-scantopc       STATUS
CLX-3300 Series         suld-driver-4.00.39       0.4.1-2                  OK - Driver 4.01 fails for multipage scan

Does your scanner support triggering the scan directly from the scanner (called "scan to PC" in the Samsung Windows driver? If it does and the links I gave you do not work, then it would suggest that samsung has different implementations.

To see if there if the protocol is similar to my model, I would need a network capture of the traffic between your scanner and a windows PC during a "scan to PC". I use wireshark ( for this (available in the Debian/Ubuntu repositories).

I will start a new thread to try to collect information about what scanner models work.

The scanerServer is for scanners connected via network only so it will not work if you connect your scanner via USB.

Supporting a USB connected scanner will require the reverse-engineering of the USB protocol. If your scanner just have a key to trigger the scan then maybe the following tool works for you: There is an (old) tutorial at


the scannerServer packages is only for those scanners that have a screen and allow to trigger the scan directly from the scanners. For theses scanners the scannerServer package connects to the web interface (therefore port 80) to find out when you press the "scan" key and what settings you selected. Afterwards it uses Sane to scan the page.

Does Sane work for you from Linux? Can you trigger scann from your Samsung scanners that end as file in your PC?

Thanks for giving this work a try and reporting your experience.

The new version is not likely going to help here. The problem here is that your scanner rejects the request to register a PC and this part was not really changed since the beginning.

Could you please attach the output from and Maybe your scanner model uses a different way to register.

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: May 20, 2013, 05:18:02 »
Ok, then I will let my setup using 4.0.39.

I think that this time I registered correctly to receive notifications for this thread so that I am informed of updates/problems of other users. If I did not not I guess that I will notice next time I have to install a new computer at home ;-)

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: May 18, 2013, 17:50:11 »
Thanks for continuing your work even if it does not benefice you directly any longer!

Should we expect new releases of the 4.0 version? I will stay on it until there is a newer release of the 4.1 version since multiscan is pretty valuable for me.

If I find some time I will see if I can reproduce the problem just with pure sane to discard Pillow problems but I am quite convinced that this time the Bug is in the Samsung driver and not in Sane/Python. With MORE time, maybe reverse-engineering the scan protocol would be the best solution: it is also bad transfering RAW images from a scanner that can transfer JPEGs directly...

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: May 18, 2013, 08:41:48 »
Thanks bchemnet,

I received the update automatically from your repository since I had already your beta version.

One small issue: the package update just start the service instead of doing a restart. So after the upgrade the old daemon keeps running.

Another problem I found is that at least with my scanner I have to use suld-driver-4.00.39. With suld-driver-4.01.17 the multi-page scan does not work: the scanner does not use the document feeder and instead just scans the page inside the scanner.

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: May 12, 2013, 17:05:40 »
Yes, the package has to (and does) run on Python 2.7 until the python3 dependencies are solved.

My circumvention only activates with Pillow 2.0.0 so there is no rush to remove it: it should dissable automatically if anything than Pillow 2.0.0 is used.

For 13.10 I will give it again a try to get it running on Python 3. The code should be prepared so hopefully just a test and we can switch.

Btw: I noticied that the service did not start automatically after a reboot. The reason is that in computer the network is actually configured after login (from the networkconfiguration applet). I will try to add a version that keeps periodically retrying when the network is down.

Update: I added retries every 30 seconds until the scanner can be contacted. I also updated the init.d script according to

Hopefully now this is the stable version :-) Waiting for your package.

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: May 11, 2013, 17:28:19 »
The problem in Ubuntu Raring came actually with the switch to Pyllow. There the PDF plugin is broken due to a new feature added to the JPEG plugin.

I opened a bug at pyllow:

Until this is fixed, the save to PDF in the scanner will be broken. I could try a circumvention or save the JPEG files and call an external tool to do the conversion if this is not fixed soon but I will give the Pyllow team a chance :-)

Update: I fixed the Pillow issue upstream so now we just have to wait for it be picked into the distros. Until this is done I included a circumvention for Pillow 2.0.0.

Bonus: the code is now Python 3 ready. I could not completly test it since some dependencies are not available for python3 yet.

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: May 10, 2013, 10:31:19 »
Thanks bchemnet! I am giving it a try now. If the replacement fixes the problem I will upload a newer version. I should also be able to make the code compatible with python3.

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: May 09, 2013, 08:39:58 »
Thanks totally-king and bchemnet! Sorry for following this thread: I assume I forgot to subscribe for updates...

I added a few fixes/functions (please see attached version 0.3.2):
# - Allow saving files outside ~
# - Check scanner connection at start
# - Small problem at program clean-up when MODIFIED_SANE is not used

I sucessfully tested the package with the samsung drivers 4.1 and 4.0.39  on Ubuntu 12.10 64 bits :-) but python gets a segmentation fault on 13.04 in the PIL library :-( It seems that other PIL users are also affected so hopefully it gets fixed soon. I tried to run the code on Python 3 (after using the 2to3 conversion tool) but Sane and PIL are not available.

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: December 30, 2012, 18:29:29 »
I found a few hours today to finish a new version of the script to be include in a package:

 - binary file in /opt/Samsung/mfp/bin/
 - config file in /etc/samsungScannerServer.conf (can be changed in
 - log file in /var/log/samsungScannerServer.log (defined in samsungScannerServer.conf)
 - use python logrotate
 - /etc/init.d/samsungScannerServer
 - support to create PDFs of multiple pages
 - DPI settings working for JPEG and PDF files
 - support for image filters in the config file (see example in samsungScannerServer.conf)

How to use:
 - extract content of the tarball to your root file system
 - modify the settings at /etc/samsungScannerServer.conf
 - reboot or run "sudo service samsungScannerServer start"

Scanner Server (Scan to PC) / Re: Scan to PC in Linux
« on: December 20, 2012, 16:06:05 »
All the configuration is at the begining of the script so it would be easy to move it to an extra file under /etc. Any preferences?

The script would also need an upstart config file and, potentially, a logrotate one as well.

At the moment what it is anoying me is that Sane is slow with the Samsung devices conpared to scanning from Windows: it takes 45 second to scan a page in "Grayscale - 256 Levels" and 300 dpis while Windows or scanning to a USB memory plugged into the scanner only takes 15. My theory based on the number and size of the packages in my network capture is that the Windows driver is able to tell the scanner to scan and transfer the image already compressed in JPEG format. In Sane I only found support for PNM and TIFF...

Scanner Server (Scan to PC) / Scan to PC in Linux (Development)
« on: December 20, 2012, 07:00:41 »

I wanted to make usage of the "scan to PC" option of my Samsung CLX 3300 in order to save documents to my local Linux server. This way I would not have to turn on the computer just to trigger the scan.

Unfortunately the Samsung Unified Linux Driver does not support this feature so I created my own implementation after doing a reverse engineering of the messages sent by the windows version. My implementation uses python and sane and allows defining several configuration setups. The code is still very primitive (I just finished getting it working) so the following things are missing:

* PDFs and TIFFs get a file/page, even if you select M_PDF or M_TIFF
* create debian package
* add image enhancements (the Python PIL include several but I did not try them yet)

Enjoy and let me know if it works for you or you have patches to improve it.

Pages: [1]
Repository Information Legal Contact Alternative Drivers