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

Scan to PC problem with samsung SCX-4623FW

Started by smika, May 22, 2013, 14:39:06

Previous topic - Next topic

smika

Hi,

Thanks for this great work. I installed version 0.3.0 on my laptop, but I have some little issues with my samsung SCX-4623FW .

05-17-13 11:58:35 stdout       INFO     ###########################
05-17-13 11:58:35 stdout       INFO     # Initiating version 0.3.0
05-17-13 11:58:35 stdout       INFO     ###########################
05-17-13 11:58:35 stdout       INFO     At program termination joining log listener process with:
05-17-13 11:58:35 stdout       INFO         <function exitListener at 0x20f3c08>
05-17-13 11:58:35 stdout       INFO     Used '/etc/samsungScannerServer.conf' as configuration file.
05-17-13 11:58:35 stdout       INFO     Below is what was configured with it.
05-17-13 11:58:35 stdout       INFO     CONFIG: ENABLED_SERVER=True
05-17-13 11:58:35 stdout       INFO     CONFIG: MODIFIED_SANE=False
05-17-13 11:58:35 stdout       INFO     CONFIG: PROXY_DEBUGLEVEL=1
05-17-13 11:58:35 stdout       INFO     CONFIG: SCANNER_SANE_NAME='smfp:SAMSUNG SCX-4623FW Series on 192.168.1.8'
05-17-13 11:58:35 stdout       INFO     CONFIG: SERVER_NAME='laptop'
05-17-13 11:58:35 stdout       INFO     CONFIG: OWNER_UID=1000
05-17-13 11:58:35 stdout       INFO     CONFIG: OUTPUT_PREFIX='${homedir}/Bureaublad/SCAN_${date}__${uid}'
05-17-13 11:58:35 stdout       INFO     CONFIG: def contrastFilter(im):
05-17-13 11:58:35 stdout       INFO     CONFIG:     return ImageOps.autocontrast(im,10)
05-17-13 11:58:35 stdout       INFO     CONFIG: OPTIONS=[
05-17-13 11:58:35 stdout       INFO     CONFIG:     {'name':'Gray-M_PDF-300' ,'color':'COLOR_GRAY','resolution':'DPI_300','format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
05-17-13 11:58:35 stdout       INFO     CONFIG:     {'name':'Color-M_PDF-300','color':'COLOR_TRUE','resolution':'DPI_300','format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
05-17-13 11:58:35 stdout       INFO     CONFIG:     {'name':'Gray-JPEG-300'  ,'color':'COLOR_GRAY','resolution':'DPI_300','format':'FORMAT_JPEG' ,'size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
05-17-13 11:58:35 stdout       INFO     CONFIG:     {'name':'Color-JPEG-300' ,'color':'COLOR_TRUE','resolution':'DPI_300','format':'FORMAT_JPEG' ,'size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
05-17-13 11:58:35 stdout       INFO     CONFIG:     {'name':'Gray-M_PDF-75'  ,'color':'COLOR_GRAY','resolution':'DPI_75' ,'format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
05-17-13 11:58:35 stdout       INFO     CONFIG:     {'name':'Gray-S_PDF-75'  ,'color':'COLOR_GRAY','resolution':'DPI_75' ,'format':'FORMAT_S_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
05-17-13 11:58:35 stdout       INFO     CONFIG: ]
05-17-13 11:58:35 stdout       INFO     CONFIG: MODES2SANE={'COLOR_MONO':'Black and White - Line Art', 'COLOR_GRAY':'Grayscale - 256 Levels','COLOR_TRUE':'Color - 16 Million Colors'}
05-17-13 11:58:35 stdout       INFO     CONFIG: SIZE2SANE={'SIZE_A4': 'A4 - 210x297 mm', 'SIZE_A5': 'A5 (Rotated) - 210x148 mm',
05-17-13 11:58:35 stdout       INFO     CONFIG:            'SIZE_B5_JIS': 'B5 (JIS) - 182x257 mm', 'SIZE_EXECUTIVE': 'Executive - 7.25"x10.5"',
05-17-13 11:58:35 stdout       INFO     CONFIG:            'SIZE_LETTER': 'Letter - 8.5"x11"'}
05-17-13 11:58:35 stdout       INFO     CONFIG: EXTENSIONS={'FORMAT_S_PDF':'pdf','FORMAT_M_PDF':'pdf','FORMAT_JPEG':'jpg','FORMAT_S_TIFF':'tiff','FORMAT_M_TIFF':'tiff'}
05-17-13 11:58:35 stdout       INFO     CONFIG: LOG_NAME="/var/log/samsungScannerServer.log"
05-17-13 11:58:35 stdout       INFO     CONFIG: LOG_MAXBYTES=100000
05-17-13 11:58:35 stdout       INFO     CONFIG: LOG_BACKUPCOUNT=1
05-17-13 11:58:35 stdout       INFO     Write PID to file: /var/run/samsungScannerServer.pid
05-17-13 11:58:35 stdout       INFO     At program termination removing PID file (if it still exists and not caught SIGQUIT) with:
05-17-13 11:58:35 stdout       INFO         <function delPIDFile at 0x20a17d0>
05-17-13 11:58:35 stdout       INFO     The following was automatically configured.
05-17-13 11:58:35 stdout       INFO     AUTOCONFIG: OWNER = 'smika'
05-17-13 11:58:35 stdout       INFO     AUTOCONFIG: HOME_DIR = '/home/smika'
05-17-13 11:58:35 stdout       INFO     AUTOCONFIG: SCANNER_IP = '192.168.1.8'
05-17-13 11:58:35 stderr       INFO     Traceback (most recent call last):
05-17-13 11:58:35 stderr       INFO       File "/opt/Samsung/mfp/bin/scannerServer.py", line 1267, in <module>
05-17-13 11:58:35 stderr       INFO         SERVER_INSTANCE_ID = registerServer()
05-17-13 11:58:35 stderr       INFO       File "/opt/Samsung/mfp/bin/scannerServer.py", line 167, in registerServer
05-17-13 11:58:35 stderr       INFO         raise NameError("Error registering server: "+result)
05-17-13 11:58:35 stderr       INFO     NameError: Error registering server: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
05-17-13 11:58:35 stderr       INFO     <HTML>
05-17-13 11:58:35 stderr       INFO     <HEAD>
05-17-13 11:58:35 stderr       INFO     <TITLE>Invalid Request</TITLE>
05-17-13 11:58:35 stderr       INFO     </HEAD>
05-17-13 11:58:35 stderr       INFO     <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
05-17-13 11:58:35 stderr       INFO     <CENTER>
05-17-13 11:58:35 stderr       INFO     <FONT SIZE="+2" COLOR="#FFFFFF" ALIGN="Center">
05-17-13 11:58:35 stderr       INFO     </FONT>
05-17-13 11:58:35 stderr       INFO     <B>Invalid Request. Some Error</B>
05-17-13 11:58:35 stderr       INFO     </BODY>
05-17-13 11:58:35 stderr       INFO     </HTML>
05-17-13 11:58:35 stdout       INFO     Removed PID file: /var/run/samsungScannerServer.pid

If i try to acces the webpage via a webbroser I see the correct webpage.

This my config file in /etc:

##
##  Config file for the samsung scanner server
##

## Change to True after adapting your settings (False otherwise)
ENABLED_SERVER=True

## t-k: change to True if you want to use the modified classes of the sane module and TCP/UDP
##      proxies which were optimized for CLX-3305W multipage scanning support (False otherwise)
MODIFIED_SANE=False
## t-k: debug level of proxies: 0 = nothing at all, 1 = very light, 2 = a bit more, 3 = every package
PROXY_DEBUGLEVEL=1

## t-k: now possible to comment out everything before OUTPUT_PREFIX for automatic configuration
##      (this takes longer for SCANNER_SANE_NAME)

##  SANE name of the scanner
##  Find with "scanimage -L" or comment out to use the first detected SAMSUNG scanner
SCANNER_SANE_NAME='smfp:SAMSUNG SCX-4623FW Series on 192.168.1.8'

## Name to display in the scanner screen, defaults to hostname of server running machine
SERVER_NAME='laptop'

## t-k: Linux username and/or userid (uid) of the future owner of scan files
OWNER_UID=1000 ## t-k: defaults to 1000 (e.g. first ubuntu user)
#OWNER='username'

## By default files are saved to ~/Scans/. If something else is wanted change in OUTPUT_PREFIX.
##     ~ is the HOME directory of the 'first' user (the one with uid 1000) (default)
##     or the one by the user given above

## Output file names. #t-k folder doesn't have to exist (is now created automatically)
OUTPUT_PREFIX='${homedir}/Bureaublad/SCAN_${date}__${uid}' ## t-k: automatic home dir, uid zero padded

##  Contrast filter used in OPTIONS
##  The filter functions receive a python image object and return a modified one
##  For more details: http://www.pythonware.com/library/pil/handbook/index.htm
def contrastFilter(im):
    ## Filter the 10% bridgest and darkest colors
    return ImageOps.autocontrast(im,10)

## Options to offer in the scanner -> check <scanner IP>/DPI/cap.xml or <scanner IP>/IDS/CAP.XML
OPTIONS=[
    {'name':'Gray-M_PDF-300' ,'color':'COLOR_GRAY','resolution':'DPI_300','format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Color-M_PDF-300','color':'COLOR_TRUE','resolution':'DPI_300','format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Gray-JPEG-300'  ,'color':'COLOR_GRAY','resolution':'DPI_300','format':'FORMAT_JPEG' ,'size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Color-JPEG-300' ,'color':'COLOR_TRUE','resolution':'DPI_300','format':'FORMAT_JPEG' ,'size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Gray-M_PDF-75'  ,'color':'COLOR_GRAY','resolution':'DPI_75' ,'format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Gray-S_PDF-75'  ,'color':'COLOR_GRAY','resolution':'DPI_75' ,'format':'FORMAT_S_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
]

## Convertion tables
## t-k: might need some device-specific tweaking (especially SIZE2SANE)
##      see scanimage --help, and look at device options
MODES2SANE={'COLOR_MONO':'Black and White - Line Art', 'COLOR_GRAY':'Grayscale - 256 Levels','COLOR_TRUE':'Color - 16 Million Colors'}
#SIZE2SANE={'SIZE_A4':'A4','SIZE_A5':'A5','SIZE_B5_JIS':'B5 (JIS)','SIZE_EXECUTIVE':'Executive','SIZE_LETTER':'Letter','SIZE_LEGAL':'Legal','SIZE_FOLIO':'Folio'}
SIZE2SANE={'SIZE_A4': 'A4 - 210x297 mm', 'SIZE_A5': 'A5 (Rotated) - 210x148 mm',
           'SIZE_B5_JIS': 'B5 (JIS) - 182x257 mm', 'SIZE_EXECUTIVE': 'Executive - 7.25"x10.5"',
           'SIZE_LETTER': 'Letter - 8.5"x11"'}
EXTENSIONS={'FORMAT_S_PDF':'pdf','FORMAT_M_PDF':'pdf','FORMAT_JPEG':'jpg','FORMAT_S_TIFF':'tiff','FORMAT_M_TIFF':'tiff'}

## logging settings
LOG_NAME="/var/log/samsungScannerServer.log" ## If commented out then the logging to a file will be dissabled
LOG_MAXBYTES=100000
LOG_BACKUPCOUNT=1


If I start my gui progam xsane, It show my scanner and can scan by hand.

Smika

bchemnet

Quote from: smika on May 22, 2013, 14:39:06
Thanks for this great work. I installed version 0.3.0 on my laptop, but I have some little issues with my samsung SCX-4623FW .

Try the latest version (0.4.1) available in the repository as suld-scantopc.  It may not solve your problem, but that's the fastest solution if it does.

angelnu

#2
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 http://192.168.1.8/IDS/ScanFaxToPC.cgi and http://192.168.1.8/IDS/ScanFaxToPC.cgi. Maybe your scanner model uses a different way to register.

bchemnet


smika

Quote from: angelnu on May 23, 2013, 07:56:23
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 http://192.168.1.8/IDS/ScanFaxToPC.cgi and http://192.168.1.8/IDS/ScanFaxToPC.cgi. Maybe your scanner model uses a different way to register.

Hi,

I tried the above URL's but get an error: Invalid Request. Some Error. Sorry for the late reply but this my sisters AIO printer. Hopefully there is something more i can check/test. When I go to only the IP I see the samsung Syncthru Web Service.

Thanks in advance,

Smika

angelnu

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 (http://www.wireshark.org/) for this (available in the Debian/Ubuntu repositories).

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

Repository Information Legal Contact Alternative Drivers