Bug 212577

Summary: USB-Serial dongle not detected
Product: [Fedora] Fedora Reporter: Harish Pillay <hpillay>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6CC: victor.lz
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://cups.org/str.php?L2061
Whiteboard:
Fixed In Version: 1.2.7-1.3.fc6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-05 12:47:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 207681, 212580    

Description Harish Pillay 2006-10-27 15:43:16 UTC
Description of problem:


Version-Release number of selected component (if applicable):

FC6 Gold, Cups

How reproducible:

Steps to Reproduce:
1. Plug into USB port a USB<->Serial dongle
2. It appears as /dev/ttyUSB0 (if it was the 1st one)
3. Plug in a Serial printer to dongle
  
Actual results:
Trying to set up the printer via Printers menu item does
not show up USB port nor USB/Serial.  

Expected results:

Printers should have given the option to add a printer on
a port /dev/ttyUSB0 manually.  That would have solved the
problem.

What remains is how to set the speed of the serial link
via a USB port.

Additional info:

Comment 1 Tim Waugh 2006-10-27 15:54:43 UTC
For reference: cups-1.2.4-9

Upstream bug report with patch:
  http://cups.org/str.php?L2061


Comment 2 Fedora Update System 2006-11-07 22:25:09 UTC
Fixed in update: cups-1.2.5-2.fc6.8

Comment 3 Harish Pillay 2006-11-20 16:36:44 UTC
Just tested and this time the USB-Serial dongle was detected correctly as
/dev/ttyUSB0.  I was able to set up the printer.

The printer is a Zebra Cameo 3 label printer and it expects the serial port to
be 19200, 8N1 with Xon/Xoff/Hardware and DSR=0.  I tried all the options in the
system-config-printer GUI.  When the printer options are changed around, and the
check box "Enabled" under the Settings tab is checed ON, then the lpq says that
the printer is ready.  The GUI says that it is idle.  Sending out a test page -
nothing happens.  lpq shows it in the queue.  When the test page was sent, the
lpq status showed that it was ready and printing and then goes into a "zebra is
not ready" state.

Removing the queue entry with lprm queue#, the lpq still returns the state the
the "zebra is not ready".

Now restarting the GUI, I notice that the printer (under Settings tab) show the
"Enabled" check box unchecked.  Not sure why that happens for I had checked it
before exiting the GUI.

I tried with minicom and connected to /dev/ttyUSB0 directly (with 192008N1) and
I was able to echo characters on the printer.

What else can I try?


Comment 4 Tim Waugh 2006-11-20 18:35:00 UTC
Does /var/log/cups/error_log show why the job failed?

Comment 5 Harish Pillay 2006-11-21 12:16:45 UTC
Yes, it does.  Apologies for not checking that.  It said that there was no
permission to write to /dev/ttyUSB0.

The default ownership and rw status when the dongle is plugged in is: 
crw-rw---- 1 root uucp 188, 0 Nov 21 20:00 /dev/ttyUSB0

I had to change the rw to:
crw-rw-rw- 1 root uucp 188, 0 Nov 21 20:00 /dev/ttyUSB0

before the printing was successful. 

Not sure where I need to set up the right permissions to kick in when the USB
dongle is plugged in.

Thanks for the tip.

Comment 6 Tim Waugh 2006-11-21 14:16:31 UTC
cups-1.2.7-1.2.fc6 from updates-testing should fix it.  It makes the serial
backend run as root.  It doesn't seem to have been pushed yet, but will be in
the next couple of days I expect.