* Hamlib: "ppdev0: claim the port first"
@ 2005-07-27 2:30 Jonathan Lassoff
[not found] ` <200507271513.37262.w.knol@niwa.co.nz>
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Lassoff @ 2005-07-27 2:30 UTC (permalink / raw)
To: linux-hams
Howdy. I'm trying to use hamlib to control an Icom IC-746 with a
homebrew TTL to RS232 level converter. The level converter works great
on my dekstop's DB9 RS-232 serial port, but not on my laptop's DB25
RS-232 parallel port. Both run the same Debian Sarge release with very
similar sets of software packages. The problem I'm having is that when
any application tries to use the parallel port, ppdev gets angry. The
specific error in the message log is:
"ppdev0: claim the port first"
Does anyone have an idea as to what this is alluding to? Google wasn't
much help for me.
Cheers,
Jonathan Lassoff (KG6THI)
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <200507271513.37262.w.knol@niwa.co.nz>]
* Re: Hamlib: "ppdev0: claim the port first" [not found] ` <200507271513.37262.w.knol@niwa.co.nz> @ 2005-07-27 3:42 ` Jonathan Lassoff 2005-07-27 12:00 ` Rodolfo Brasnarof 0 siblings, 1 reply; 4+ messages in thread From: Jonathan Lassoff @ 2005-07-27 3:42 UTC (permalink / raw) To: w.knol, linux-hams On 26/07/05, Wilbert Knol <w.knol@niwa.co.nz> wrote: > A level converter designed to work with EIA232 ports won't work on a > parallel port. They are different beasts with different voltage > levels and pin-outs. > ... > Hope this helps. > > Wilbert, ZL2BSJ I realized about 10 minutes after sending that message that I made a mistake as to the different device architectures. Is there any crossover between the the parallel port design and the older RS-232 ports? Does the parallel port actually send the same data? The level converter uses the voltage from the DTR and RTS through a 5V regulator to power an IC that converts the TTL voltages to RS-232 levels and vice versa. Anyone have thoughts on the matter? My next plan is to get a USB to DB9 serial converter. Only problem is that I can only find reliable information that says that the one from Radio Shack works with linux, and those cost like 40 bucks USD. I found one on eBay for $5 USD, but I'm not sure if it works. It's a model GWC UC320. Does anyone have any experience with it? Cheers again, Jonathan Lassoff (KG6THI) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hamlib: "ppdev0: claim the port first" 2005-07-27 3:42 ` Jonathan Lassoff @ 2005-07-27 12:00 ` Rodolfo Brasnarof 0 siblings, 0 replies; 4+ messages in thread From: Rodolfo Brasnarof @ 2005-07-27 12:00 UTC (permalink / raw) To: Linux Hams; +Cc: Jonathan Lassoff On Tue, 26 Jul 2005 20:42:38 -0700 Jonathan Lassoff wrote: > On 26/07/05, Wilbert Knol <w.knol@niwa.co.nz> wrote: > > A level converter designed to work with EIA232 ports won't work on a > > parallel port. They are different beasts with different voltage > > levels and pin-outs. > > ... > > Hope this helps. > > > > Wilbert, ZL2BSJ > > I realized about 10 minutes after sending that message that I made a > mistake as to the different device architectures. Is there any > crossover between the the parallel port design and the older RS-232 > ports? Does the parallel port actually send the same data? Yes, but they work in a totally different way. Serial port sends it's data one bit at a time through the tx line, and parallel sends it all bits at the same time, using different lines. Many applications don't even use the serial port as a serial device (transmitting data) but as a control device (such as soundmodem ptt control). In those cases, they generally use handshaking lines, instead of data lines. In those cases, you could use a parallel port, if the application can support it. > The level converter uses the voltage from the DTR and RTS through a > 5V regulator to power an IC that converts the TTL voltages to RS-232 > levels and vice versa. Anyone have thoughts on the matter? I don't understand if you need ttl levels output or rs-232 level output. Standard serial port uses rs-232 levels. If you need ttl levels, you need a converter. Parallel port, on the other hand, uses ttl levels. So, if your application supports using a parallel port, you don't need a converter. Notice that your program must have support for it, and cabling is different. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hamlib: "ppdev0: claim the port first" @ 2005-07-27 3:14 Wilbert Knol 0 siblings, 0 replies; 4+ messages in thread From: Wilbert Knol @ 2005-07-27 3:14 UTC (permalink / raw) To: linux-hams On Wednesday 27 July 2005 14:30, Jonathan Lassoff wrote: > Howdy. I'm trying to use hamlib to control an Icom IC-746 with a > homebrew TTL to RS232 level converter. The level converter works > great on my dekstop's DB9 RS-232 serial port, but not on my > laptop's DB25 RS-232 parallel port. A level converter designed to work with EIA232 ports won't work on a parallel port. They are different beasts with different voltage levels and pin-outs. In any case: as far as I know, Hamlib does not supports rig control via a parallel port. > Both run the same Debian Sarge > release with very similar sets of software packages. The problem > I'm having is that when any application tries to use the parallel > port, ppdev gets angry. The specific error in the message log is: > "ppdev0: claim the port first" Check that the parport is enabled in the BIOS of your laptop, and that it is set to bi-directional instead of the old legacy unidirectional mode, if you plan to use it as such. Make sure the ppdev module is loaded: su -c lsmod | grep ppdev It looks like it is. Then make sure no other userland applications ( cwdaemon, line printing, zip drives etc etc) have laid claim over the parport. The Hamlib packages on Debian Sarge work well - even the Perl bindings are there. Hope this helps. Wilbert, ZL2BSJ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-27 12:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-27 2:30 Hamlib: "ppdev0: claim the port first" Jonathan Lassoff
[not found] ` <200507271513.37262.w.knol@niwa.co.nz>
2005-07-27 3:42 ` Jonathan Lassoff
2005-07-27 12:00 ` Rodolfo Brasnarof
-- strict thread matches above, loose matches on Subject: below --
2005-07-27 3:14 Wilbert Knol
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox