Java - Parallel Port Printing

Hi there
i have connected a DOT- MATRIX printer to my parallel port.i opened port lpt1 as if it were a file .Printing is fine. But if the printer is offline or disconnected my program does not throw an exception.I need to find out whether the printer is connected or not..
Regards
Raghavendran

Might this be because of the windows print spooler? Or have you turned that off?

Similar Messages

  • How to Install a parallel port printer to usb port of Pavilion dv5 Notebook

    In trying to install my HP DeskJet 610C Parallel Port printer to my HP Pavilion dv5-1235dx Notebook PC with Windows Vista Home Premium 64-bit, I followed instructions given by HP Support some two years back.
    I connected up the two units through a Parallel-to-USB ports cable. The PC loaded and confirmed suitable driver. (Following advice from sites on the Internet, I have made repeated attempts to carefully install the printer, but to no avail).
    Upon my issuing the Print instruction, the printer invariably prints two copies of what appears to be 'gibberish' in two lines at the start of the sheet. Thereafter it picks up and then ejects 6-8 sheets of blank paper.
    Any help in resolving this anomalous situation will be be most welcome and much appreciated.
    I might add that the printer works normally when connected in parallel to an older, Compaq Armada 1750 Notebook (XP OS). In this instance too, the Parrallel/USB worked as in the Pavilion PC, above.  
    This question was solved.
    View Solution.

    Hi khalidem, 
    Sounds like you have a communication problem with the printer cables. Have you tried a new parallel to USB cable or adapter?
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • How should I develop Level Controller using Parallel port(Printer port)

    I need to develop a level controller using parallel port of my computer with a third party Data Acquisition Device.  Is it possible to do it with In and out port vi in labView 7.1. Please guide me how can should I configure these Vis to write control data and then receive level transmitteed data through parallel Port(Printer port). My third party DAQ has two analog input channel and one analog output channel.  

    Dennis Knuston
    I have uploded the details of that  third party daq in another thread please see that and tell wether this type of daq requires driver software
    http://forums.ni.com/t5/Multifunction-DAQ/Parallel-port-based-daq-and-drivers/m-p/1819997

  • Satellite A200: How connect a parallel port printer?

    Probably a very silly question, but would like to connect A200 series laptop to a parallel port printer that does not have a USB port... what is the best option?

    Hi
    You ask for the best way?
    Well, you have got only one way?
    You need an USB to parallel adapter. Check in the google for some offers.
    I searched in the google and found some good options.
    Maybe this could be a good choice;
    http://www.ramelectronics.net/html/usb_printer_cable.htm#UP6C
    Best regards

  • Parallel port printer connection

    I have an HP 6122 parallel port printer which I've attached to my MacBook Pro running on OSX 10.4.11 through a connecting cable to the USB port (I've tried both the left and right USB port). I've downloaded driver from HP, but computer doesn't see the printer. Suggestions?

    Hi urdog, and a warm welcome to the forums!
    In System Profiler>Hardware>USB, is anything shown for it there?
    Have you tried another PCL/hp printer in Printer Setup Utility? Have you got any hp drivers installed?
    PCL 3 is quite old, but what happens if you try setting it up with an older hp driver?

  • Connect parallel port printer to usb in windows 8.1 64 bit

    I am using Windows 8.1 w/ 64 bit - would like to know proper cable to hook up to parallel port printer HP LaserJet 4050.  Any help greatly appreciated.

    @PB1941 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • Parallel Port & Printing

    Hi,
    I am new to ArchLinux and have been using Gentoo since qutie a while. After installing nearly everything I need I am now struggling with the printer setup. I guess this is due to a problem with my parallel port, cause it does not show up in the selection box of cups. I can choose serial and usb ports, but no parallel ports. I have installed some modules like
    lp & parport
    I also have cups running of course and it connects. My question is the kernel (2.6.4) must be compiled with support for the parallel port by default, right? At least after loading these modules it should work. What am I missing?
    Thanks already!!!

    Good advice!  Haven't solved it yet, but FWIW I can read the cups documentation.  So I set the log to debug mode and here it is: 
    This log content follows
        lp fstab
    18/Mar/2004:18:13:15 +0000] AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=1
    CloseClient() 5
    AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=1
    CloseClient() 5
    AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=0
    ReadClient() 5 POST /printers/lpr HTTP/1.1
    print_job: auto-typing file...
    print_job: request file type is text/plain.
    check_quotas: requesting-user-name = 'root'
    print_job: requesting-user-name = 'root'
    Adding start banner page "none" to job 16.
    Adding end banner page "none" to job 16.
    Job 16 queued on 'lpr' by 'root'.
    Job 16 hold_until = 0
    StartJob(16, 0x8093b70)
    StartJob() id = 16, file = 0/1
    job-sheets=none,none
    banner_page = 0
    StartJob: argv = "lpr","16","root","fstab","1","","/var/spool/cups/d00016-001"
    StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
    StartJob: envp[1]="SOFTWARE=CUPS/1.1"
    StartJob: envp[2]="USER=root"
    StartJob: envp[3]="CHARSET=iso-8859-1"
    StartJob: envp[4]="LANG=en"
    StartJob: envp[5]="PPD=/etc/cups/ppd/lpr.ppd"
    StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
    StartJob: envp[7]="RIP_MAX_CACHE=8m"
    StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
    StartJob: envp[9]="CONTENT_TYPE=text/plain"
    StartJob: envp[10]="DEVICE_URI=parallel:/dev/lp0"
    StartJob: envp[11]="PRINTER=lpr"
    StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
    StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
    StartJob: envp[14]="CUPS_SERVER=localhost"
    StartJob: envp[15]="IPP_PORT=631"
    StartJob: statusfds = [ 7 8 ]
    StartJob: filterfds[1] = [ 9 -1 ]
    StartJob: filter = "/usr/lib/cups/filter/texttops"
    StartJob: filterfds[0] = [ 10 11 ]
    start_process("/usr/lib/cups/filter/texttops", 0xbffeff30, 0xbffef2a0, 9, 11, 8)
    Started filter /usr/lib/cups/filter/texttops (PID 2486) for job 16.
    StartJob: filter = "/usr/lib/cups/filter/pstops"
    StartJob: filterfds[1] = [ 9 12 ]
    start_process("/usr/lib/cups/filter/pstops", 0xbffeff30, 0xbffef2a0, 10, 12, 8)
    I [18/Mar/2004:18:13:15 +0000] Started filter /usr/lib/cups/filter/pstops (PID 2487) for job 16.
    StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
    StartJob: filterfds[0] = [ 10 11 ]
    start_process("/usr/lib/cups/filter/foomatic-rip", 0xbffeff30, 0xbffef2a0, 9, 11, 8)
    Started filter /usr/lib/cups/filter/foomatic-rip (PID 2488) for job 16.
    StartJob: backend = "/usr/lib/cups/backend/parallel"
    StartJob: filterfds[1] = [ -1 9 ]
    start_process("/usr/lib/cups/backend/parallel", 0xbffeff30, 0xbffef2a0, 10, 9, 8)
    Started backend /usr/lib/cups/backend/parallel (PID 2489) for job 16.
    ProcessIPPRequest: 5 status_code=0
    This looks like the problem?  Can't find status 22 explanation but must be the next line.
    PID 2488 stopped with status 22!
    [Job 16] /usr/lib/cups/filter/foomatic-rip: No such file or directory
    [Job 16] Page = 612x792; 0,0 to 612,792
    [Job 16] ppd->num_fonts = 35
    [snip]
    [Job 16] ppd->fonts[8] = Courier
    [Job 16] Page = 612x792; 0,0 to 612,792
    [Job 16] slowcollate=0, slowduplex=0, sloworder=0
    [Job 16] 0 %%BoundingBox: 0 0 612 792
    [Job 16] 0 %%Creator: texttops/CUPS v1.1.20
    [Job 16] 0 %%CreationDate: Thu Mar 18 18:13:15 2004
    [Job 16] 0 %%Title: fstab
    [Job 16] 0 %%For: root
    [Job 16] 0 %%Pages: (atend)
    [Job 16] 0 %%DocumentNeededResources: font Courier-Bold
    [Job 16] 0 %%+ font Courier
    [Job 16] 0 %%DocumentSuppliedResources: procset texttops 1.1 0
    [Job 16] 0 %%+ font Courier-Bold
    [Job 16] 0 %%+ font Courier
    [Job 16] 0 %%EndComments
    [Job 16] 0 %%BeginProlog
    [Job 16] 0 %%BeginResource: font Courier-Bold
    [Job 16] 0 %%CreationDate: Wed Dec 22 1999
    [Job 16] 0 %%EndResource
    [Job 16] 0 %%BeginResource: font Courier
    [Job 16] 0 %%CreationDate: Wed Dec 22 1999
    [Job 16] 0 %%EndResource
    [Job 16] 0 %%BeginResource: procset texttops 1.1 0
    D [18/Mar/2004:18:13:15 +0000] [Job 16] 0 %%EndResource
    [Job 16] 0 %%EndProlog
    [Job 16] 0 %%Page: 1 1
    [Job 16] 0 %%Page: 1 1
    [Job 16] pw = 612.0, pl = 792.0
    [Job 16] PageLeft = 0.0, PageRight = 612.0
    [Job 16] PageTop = 792.0, PageBottom = 0.0
    [Job 16] PageWidth = 612.0, PageLength = 792.0
    [Job 16] 0 %%Trailer
    [Job 16] Saw Trailer!
    [Job 16] Saw EOF!
    UpdateJob: job 16, file 0 is complete.
    CancelJob: id = 16
    StopJob: id = 16, force = 0
    StopJob: printer state is 3
    CloseClient() 5
    Bill Barnes

  • Java parallel port distance measurement

    I can't figure out how can i measure distance using parallel port with java. i want to create a program in which i will point a laser with the light dependent resistor connected to parallel port and the program will read how far the laser is pointing at... is there a way to do this? sorry if post on a wrong place

    Can you access a parrallel port in java? Yes. There is an api specification for that of which, based on posts here (not personal experience) the best seems to be rxtx at [http://www.rxtx.org/]
    As for whether the device allows you do what you want I have no idea. That would depend on the device and the interface to it.

  • Parallel port printing problem

    I was printing quite fine on LaserJet 2100 (I was even surprised how easily I've set it all up, thought it woudl be more compliacted). I even tried different drivers, all worked fine so far. Now I acquired LaserJet 2200 which has USB in addition to LPT so I can print on my desktop via USB and on laptop via LPT.
    I'll have USB cable no sooner than tomorrow so I tried to print on LPT on the 2200 as for now. But only strange line of letters came out every time and the printing job never finished, it was still printing the same crappy line of some stuff again and again. I even deleted all the 2100 printers I have set up and added only the 2200 but it was still the same.
    So I wanted to try at least the refiled toner (I bought 5 these toners and the 2200 was extra bonus) on my 2100 so I added it. But what, the same problem. When I try test pages, there comes something like lines of settings for the printer and it still wants to print infinite. I noticed there is 5012 error in HPLIPS. I tried setting the printers up in CUPS and HPLIP also, under root and normal user, still the same for both. Reinstalling HPLIP didn't help, different drivers behave the same way. What's wrong? Printers should be fine, testing page directly on them cames out good.
    Even it worked before without being in lp group, I added myself to it, but I still get the same communication error. I'll also look for another parallel cable, but that would be strange, the cable was working before - I've printed several hundred pages in past few weeks.
    ADD// tried USB printer (2200), printed under Win 7 on desktop and Arch on laptop (not flawlessly, I did not succeed in printing with EconoMode under any of the systems), however using the parallel it behaved the same crappy way. I could not print now because I disassembled the 2200 little too much during process of changing some moving (rubber) parts between the two. Now 2100 works, 2200 blinks all the time…
    Last edited by Behemot (2011-03-18 10:24:04)

    Behemot wrote:Tried under XP, same problem, so I got another LPT cable somewhere -> print good under XP. Tried under Arch, some strange stuff, changed HP driver for HPCUPS, LJ 2100 prints fine.
    Have you considered the fact that there may be something wrong with the printer and/or connection?

  • Parallel port printer modules not loading autmatically

    According to the wiki entry for CUPS, either the kernel or or a small configuration file in /etc/modules-load (not /etc/modules-load.d) is supposed to automatically load these modules on boot. When I run lsmod I'm finding none of the printer modules (lp, parport, parport_pc) are getting loaded even though the printer is attached and powered up. Any idea why these modules are not loading? They load perfectly well manually with the modprobe command.
    As the wiki specifies, I do have a configuration file in place at /etc/modules-load/printing.conf with the following contents:
    lp
    parport
    parport_pc

    Commenting out the INSTALL lines in modprobe.conf worked perfectly.
    Before that i tried the stock kernel form current and am now using the one from testing. Neither worked with sound while the INSTALL lines were ther.
    What changed?

  • Parallel port adapter in labview

    I have usb to parallel port adapter . After plug it into my laptop some drivers installed automatically and it is detected in device manager as "parallel port printing support" under "universl serial bus controller".
    I know how to write data to serial port using visa write funtion but, i dont know how to access this adapter from labview 2010
    i am using windows 7.
    Can anyone help me in this regards.
    Thank you

    Please stick to the original post. Thanks.

  • How can i us the parallel port of the printer to control a frequenz-generator?

    Hello all !
    I like to  control with LabVIEW 8 student-version, the Frequenz-generator gadget . For this challenge i like to us the parallel port of the printer. I need for data flow only 2 cable. The frequenz-generator gadget need two signal : Low and High.How  can i  us the parallel port of the printer to control a frequenz-generator gadget? I have us  the VIs-Visa  (Visa-Serial, write, Close ), but i dont no what command i have to write on the Visa-Write so that the Signal can be in the low or high position.
    Thanks

    Hi Jeanjac,
    first, look here:
    http://en.wikipedia.org/wiki/Parallel_port
    to get the port numbering. also, be sure not to leave pin unconected, sometimes you might get an error message otherwise (i remember pin11 has to be always connected or so for windows...)
    second, just run the test panel in MAX and write something to your device to check if it works.
    then in LV, you have to decide to which pin is connected your instrument. in any case you have to address all 8 output pins together! this is a parallel...
    if you prefere to use only one pin, then you can use the serial port, with just pin 2 and 3 connected. it would work easier for you, since you address only one bit.
    Gabriel
    ... And here's where I keep assorted lengths of wires...

  • HOW TO ACCESS PARALLEL PORT USING JAVA

    hello guys.. Please Solve my Problem..
    I have to access motor through pc using Parallel Port. I want to know how to program in java to access Parallel Port. So How can i code to access the any Port of Parallel Port. Please Guide me in this..

    well I cannot give a more detailed answer than "use the java comm API".
    http://java.sun.com/products/javacomm/
    http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdf
    However Java wasn't built to do these kinds of operations, so it may well be that the API does not provide the functionality you need. In that case you may need a native library to do the work for you, which can make things a lot more difficult.

  • New workstation lacking parallel port poses printing challenge

    I'm supporting a Netware 4.11 + sp9 small business network, which long ago
    had a custom DOS-like database application written to manage rental
    activities. The app allows the user to print out lists of things rented,
    etc. It has been working very well for years. There are several
    workstations, some DOS, some Windows XP, etc., and they all share the rental
    database resident in the Netware 4.11 file server.
    I have had various networked printers, starting with parallel-port lasers.
    More recently I have had a large Canon printer that connects directly via
    our Ethernet_802.2 IPX (as well as IP) intranet. In other words, this
    printer works both for Windows programs, which use IP, and for our rental
    program, which uses IPX.
    What's the problem, then?
    An important Windows 2000 Pro workstation died, and I replaced it with a new
    Windows XP Pro workstation. This new Dell computer HAS NO PRINTER PORT. I
    have YET to tinker with this, as I am hoping to get this request for help
    posted as soon as possible.
    All my workstation computers "CAPTURE" print jobs that the rental program
    "thinks" are going to LPT ports. Once these jobs get into various queues, I
    have no problem getting them into printed hard copy. The problem NOW is to
    fool the DOS-like rental program, which will be running on the new Dell
    computer, into seeing some kind of a parallel port that doesn't exist.
    I suppose I could launch a major effort into modifying the BIOS of a Dell
    computer, but I am hoping there must be a better way!
    Can "net use" be of any assistance?
    Can Unix "lpt" printing be of any assistance?
    It is not likely this rental application can be chanaged. I am not the
    author.
    I read another thread regarding an "opposite" predicament. It won't help
    me, then, to buy a USB->LPT adapter box, because what's important here is
    NOT to actually connect a printer to this workstation computer, but to
    supply something (a faux LPT port) that can be captured inside this
    workstation.
    Any ideas most welcome.
    Thank you.
    John B

    This is neat. But I think the all-important DOS-like custom application
    rigidly prints only to LPT1.
    In the absence of a real LPT1, I need to find a "faux LPT1."
    Over the weekend, I'll look at this utility..."printfil."
    Thanks very much!
    "Davide Guolo" <[email protected]> wrote in message
    news:[email protected] s.com...
    > John,
    >
    > > I wonder how long it will be before no such cards
    > > are available?
    > >
    > > So any tips on "faux LPT ports" are still of interest.
    >
    > you may want to have a look at Printfil, which can capture LPT output
    > and forward it to file or directly to a Windows printer, even if no
    > LPT ports are physically available on the Windows machine.
    >
    > You can find more info and a free trial version to download at
    > http://www.printfil.com
    >
    > Regards,
    > Davide
    > aSwIt s.r.l.
    > --------------------------------------------------------------
    > Printfil - Windows Printing System for Applications
    > http://www.printfil.com
    > Odbc4All - Connection to ODBC Data Sources for any Application
    > http://www.aswit.com/odbc4all
    > @Kill - Batch Close Windows Applications - Freeware
    > http://www.aswit.com/akill
    > --------------------------------------------------------------
    >
    >
    >

  • RXTX Parallel port communication with Pin Printer

    I have successfully installed and configured RXTX-2.0-7pre1 on Linux platform.
    2 printers, one Laser jet printer connected to the Serial port and the other Pin Printer connected to the Parallel port.
    I can print my files out successfully with RXTX on both my 2 printers. But, there is some problem with my Pin Printer performance. The print job is a little slow and the printing is word by word output.
    While the Laser printer received the whole string of my RXTX output and printed them out asap.
    RXTX read my data and write them to the Parallel/Serial port directly, so, for my laser jet printer, it buffered the RXTX output data and processed them all in one. No problem, laser printer works well. But to the Pin Printer, it got the RXTX output and printed them out with no buffer. I am not authorized to deal with the Pin Printer device driver.
    So, my question is that, is there someone knows how to resolve this problem on RXTX side? That is to say, how to modify the source code of RXTX and customize it?
    I wanna know how to create buffer in RXTX, for example, buffering a whole string line and then sending them to the Parallel port. Then, It supposed to be that the Pin Printer will receive once a whole line output and printing line by line in the paper! Not the problemly slowly word by word output!
    Thanks a lot!

    Simple metrics from google should suffice the SUN team from understand the need/huge requirement for supporting Serial and parallel port programming in windows. Platforms would always change and the team at SUN should remain commited in supporting new platforms.

Maybe you are looking for

  • WIP : Work Order Aging report

    Hello, Is there any standard program given by Oracle on WIP  as 'Work Order Aging report' ? I guess not. If its not, then is there any other program related to WIP Aging exists in Oracle? Thanks in advance.

  • Transaction and Weblogic MDB

    Hi, I am using Coherence as a cache for my weblogic application. I use a Message Driven Bean that receive a message, write something in Coherence and then write an other message in a result queue. I want all this operations to be fully transactional.

  • Spry-  pagation back to same place on reload?

    I am playing around with page that is populated by a mysql database going into a Spy master detail page. I have also added pagation to it.  I would like to be able to come back to the same pagation page, on reload.  I that possible? I am using the Sp

  • One performance view for two classes, possible?

    Hi there, My system is still running 2007 R2. I am writing a MP now which contains two classes. There are few performance collection rules targeting those two classes. I want to create one performance view to display performance data for BOTH classes

  • The Property Inspector is missing the V Space and H Space fields in DW6 - where did they go?

    I just downloaded DW6.  The Property Inspector is missing the V Space and H Space fields, therefore I am unable to add space around my images.  Suggestions?