LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 07-29-2013, 04:57 PM   #1
CVAlkan
LQ Newbie
 
Registered: Nov 2012
Distribution: Ubuntu 12.04 LTS
Posts: 19

Rep: Reputation: Disabled
PL-2305 USB-to-Printer Cable/Adaptor in Ubuntu 12.04


Hi:

I have a very old impact (Daisy Wheel) printer that I would like to use with Ubuntu 12.04 LTS; it may or may not be important that it is uni-directional. I do have a parallel card, but gave up on ever getting that to work with Ubuntu, so I got a PL-2305 USB-to-Printer cable, but can't get the printer to work with that either.

When I plug the cable into a spare USB port and type lsusb, I get:
Bus 004 Device 003: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port

So it knows the thing is there. When I type dmesg, I get these additional lines:
[ 100.114972] usb 4-2: USB disconnect, device number 3
[ 629.920112] usb 4-2: new full-speed USB device number 4 using ohci_hcd
[ 635.089376] usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x067B pid 0x2305

Changing to the /dev directory and typing ls usblp* returns nothing, by the way.

Although the printer works from Windows, and I can at least echo something to it when using the actual parallel port in Ubuntu (although I've never been able to get it to work as a printer), I can't even do that with this cable/adaptor.

THe PL-2305 data sheet claims it works with Linux, and to have native support for kernels above 2.1, although the little CD they supply comes only with drivers for Windows and Mac.

Any suggestions? Has anyone successfully used one of these?
 
Old 07-30-2013, 11:20 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD
Posts: 1,102

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Those prolific RS232 adapters tend to work as an actual RS232 port (usually /dev/ttyS0 if it's the only port) and not in the same way as a USB to Parallel adapter, so as with any serial port you wil need to configure the device with the correct bit rate, data length, stop bit, parity and flow control type, etc.

Install setserial have a read of the manpage.

Also check
Code:
$ dmesg | grep -i ttys
//edit: duh, yes it's not a PL2303 - ignore...

Last edited by cynwulf; 07-31-2013 at 09:05 AM.
 
Old 07-30-2013, 01:46 PM   #3
CVAlkan
LQ Newbie
 
Registered: Nov 2012
Distribution: Ubuntu 12.04 LTS
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks for the response, but I am at a complete loss at to what it has to do with my question, since the adaptor reports itself as a parallel port. If I'm missing something (and that's certainly possible), could you elaborate a bit?
 
Old 07-30-2013, 01:58 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,531

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
Actually PL2303 is the serial port, PL2305 is the parallel chipset respectfully.

I am confused by your statements that you can not find usblp0 but can echo when using the actual parallel port. By actual do you mean a real parallel port i.e. lp0?
 
1 members found this post helpful.
Old 07-30-2013, 04:39 PM   #5
CVAlkan
LQ Newbie
 
Registered: Nov 2012
Distribution: Ubuntu 12.04 LTS
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks for the response.

I do in fact have a parallel port board in the chassis, and it is recognized by Windows and so forth and works just fine there with my old printer. When I installed Ubuntu (about a year ago now I think), I still switched to Windows periodically when I needed to use the software that required that particular printer, since I could never do anything but copy to it (using that parallel port card) from the command line in Ubuntu - which was annoying. Gradually, I've gotten replacements for most software that I use and have pretty much weaned myself off of Windows to the point where I seldom boot to it at all.

So - after poking around and coming across the particular USB-to-Parallel adaptor that I referred to above, which uses a PL-2305 chip, and seems to be recognized as "[ 635.089376] usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x067B pid 0x2305," I thought I might have discovered a solution of sorts so I could finally erase Windows. When I hooked up the USB adaptor, I obviously disconnected the parallel cable, but didn't remove the card itself as it seemed to me that it shouldn't interfere with something using a USB port, but if you suspect that might be an issue, I'll give it a shot.

So, my statement meant that I could copy to the printer when it was connected via the parallel cable to the parallel port card (but that's all I could ever do). And I can't even do that with the new USB-to-Parallel adaptor.

All I would really like to do is pull up the Printers utility in Ubuntu, and "add" the printer there so I can access it from any software just like I do with my inkjet printers. When I tried that, it seemed like it added it (I chose a dumb generic driver, as it's a really old daisywheel device from the late 70s), and it even shows up when I pull up a text editor and choose print, but nothing happens but an error message. I was even trying to recall if I might need to jumper any pins on the Centronics port to simulate a return signal, but can't believe I would need to do that in 2013. At any rate, I seem to recall that such convolutions were only needed with tempermental RS-232-like serial connections.

So, if you have any thoughts or suggestions, I'd love to hear them.
 
Old 07-30-2013, 06:23 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,531

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
You should be able to get the real parallel port and your printer to work via cups. I suspect that a module may not be loading.

The following might help:
https://wiki.ubuntu.com/DebuggingPrintingProblems
 
Old 07-30-2013, 09:55 PM   #7
CVAlkan
LQ Newbie
 
Registered: Nov 2012
Distribution: Ubuntu 12.04 LTS
Posts: 19

Original Poster
Rep: Reputation: Disabled
Hi Michael:

Thanks again - here are the outputs of the commands listed in the URL you mentioned:

foberle@ubu-Desktop:~$ dmesg | grep par
[ 26.097393] parport 0xce00 (WARNING): CTR: wrote 0x0c, read 0x05
[ 26.097399] parport 0xce00 (WARNING): DATA: wrote 0xaa, read 0x00
[ 26.097401] parport 0xce00: You gave this address, but there is probably no parallel port there!
[ 26.097414] parport0: PC-style at 0xce00 [PCSPP,TRISTATE,EPP]
[ 26.808189] lp0: using parport0 (polling).
[ 26.871791] ppdev: user-space parallel port driver

foberle@ubu-Desktop:~$ ls -l /dev/lp* /dev/parport*
crw-rw---- 1 root lp 6, 0 Jul 29 15:39 /dev/lp0
crw-rw---- 1 root lp 99, 0 Jul 29 15:39 /dev/parport0

foberle@ubu-Desktop:~$ ls -l /proc/sys/dev/parport/parport*/autoprobe*
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe0
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe1
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe2
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe3

foberle@ubu-Desktop:~$ ls -l /proc/sys/dev/parport/parport*/autoprobe*
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe0
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe1
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe2
-r--r--r-- 1 root root 0 Jul 30 21:37 /proc/sys/dev/parport/parport0/autoprobe3
foberle@ubu-Desktop:~$ sudo cat /proc/sys/dev/parport/parport*/autoprobe*
[sudo] password for foberle:
foberle@ubu-Desktop:~$

foberle@ubu-Desktop:~$ lpinfo -v
network beh
network http
network lpd
network ipps
network ipp
network ipp14
network https
direct parallel:/dev/lp0
network socket
file cups-pdf:/
network smb
direct usb://HP/Officejet%20Pro%20K5400?serial=MY6CQ1806V
direct hp:/usb/Officejet_Pro_K5400?serial=MY6CQ1806V
direct hpfax

foberle@ubu-Desktop:~$ /usr/lib/cups/backend/parallel
direct parallel:/dev/lp0 "unknown" "LPT #1" "" ""

foberle@ubu-Desktop:~$ sudo /usr/lib/cups/backend/parallel
direct parallel:/dev/lp0 "unknown" "LPT #1" "" ""

=================
Several things look strange to me such as "You gave this address." I suppose I may have done something screwy last year while attempting to get the thing to work, but wouldn't have done that if it worked in the first place, so don't know if that means anything. I also didn't think Linux used designators like "LPT #1."

Hopefully you can tell me where to go from here.

Thanks again...
 
Old 07-31-2013, 09:12 AM   #8
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD
Posts: 1,102

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Apologies for the confusion.

The parallel devices don't usually function as a physical parallel port but as a virtual USB printer - in other words the device itself is seen as a printer, data is sent to the device and the data is then dumped into the parallel port of the printer it's connected to.
 
Old 07-31-2013, 09:23 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,531

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
I'm a little slow and so this is a continuation of your other thread:
http://www.linuxquestions.org/questi...-a-4175439583/

So the parallel port worked, you could print via the echo command and the problem was we could not find a decent driver. Your still going to have the same problem with the USB parallel port adapter I am afraid.

For the USB parallel port adapter check to see of the usplp module is blacklisted.
https://bbs.archlinux.org/viewtopic.php?pid=1058874
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] USB Bluetooth Adaptor - Printer Not Connecting braille193 Linux - Newbie 2 06-16-2013 06:46 PM
[SOLVED] Can't get Linksys USB wirelss adaptor to work with Ubuntu 12.04 rdewar Linux - Newbie 7 10-10-2012 04:33 AM
[SOLVED] Which Wireless USB Network Adaptor do i need for my Ubuntu Linux 2.6.31-20? Princessleia Linux - Newbie 2 10-22-2010 12:24 AM
Change USB cable and printer no longer work pinghuino Linux - Hardware 1 03-21-2007 03:30 PM
usb 802.11g adaptor on ubuntu breezy ppc c-- Linux - Hardware 0 09-16-2005 12:07 AM


All times are GMT -5. The time now is 11:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration