LPT port control via a servlet

I'm not to sure if I am on the right track, but so far I have a device wired into my lpt port (running winXP) and want to basically be able to send power to specific pins (I belive it is capable of 5V). I have looked online and through manuals and have found little information (most deals with reading and writing bits, or getting printer status, etc). I was wondering if anyone could point me in the right direction, I have very little experience writing software that interacts with hardware, I don't even know if windows will let java control the ports at that level or not. Any help would be appreciated. Thanks.

You can't do it directly from java.
If you were really desperate to do it you would probably have to look at using JNI and writing some C code.

Similar Messages

  • Send 102 bit data through the LPT port??I have to send 102 bit to my interface board using the LPT port, through one of the data line and be able to read data from the input line, I don't know how to realize such a task.Thanks

    Let me describe you the program I have to write:
    I have to send 102 bit serialy using one of the data line of the LPT port to a device and be able to read back data sent from a device register throug one one of the input port pin for instance pin 10 of a DB25, and synchronize the transmission by the PC clock(for write and read). If fact I am using 5 output control(D0...D4) signal from the LPT port, RST, TXD, CLK, CE,TEST, one input data RXD (pin10)
    So the program should work in normal mode (write data, read data), and test mode (use the write p
    rocedure). Since I am quite new in Labview I am little lost and I need some support or exemple that use a way to send more than 32 bit via one data line(in my case 102bit= 8 bit COMMAD(MSB)+88 bit SPI DATA+6 bits CRC(LSB)) and be able to read them back, place them in the register and be able either to monitor or modify them.
    I know that there are plenty of exemple but if I can gain time by being helped it would be great.
    Can you please advise?

    Hi Beni,
    find attached a SPI.vi - minor changed from one of
    my typical SPI's (LabVIEW 7.1). With some simple changes it will fit to your application.
    The only thing you need to do - prepare
    the bits for the input-array.
    If you need some more comments - find one of my email
    adresses in documentation of this vi.
    Regards
    Werner
    Attachments:
    102bit_SPI.zip ‏90 KB

  • LPT port access

    I am in a project in which i try to send signal via LPT port and through which control the speed of a dc motor
    I want know...if it is possible to do with java..& how?????
    plz..reply. : )

    Take a look at
    https://msdn.microsoft.com/en-us/library/windows/hardware/ff543926(v=vs.85).aspx  Basically you are going to need a simple device driver to take control of the port from the system supplied driver. 
    Think carefully about your design, parallel ports are going away, I did a driver like the one above as part of a package for a client, the other half of the package was support for a USB parallel port, so they could support their device even if the legacy
    port was not present.
    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

  • Extended ACL TCP port control

    Hi all,
    I have configured an acl to control traffic going in/out of an interface via tcp ports. However, after applying the acl to the interface, i find that eventhough ports are allowed, traffic is blocked by the acl.
    I suspected that it could be the initial tcp handshake (SYN, SYNACK, ACK etc) is not being allowed (due to the implicit deny). When i included that in the acl, it worked. Is this a necessary step in an acl that controls by tcp port?
    Reason is, some of the acl configured with tcp port control has not been configured to allow SYN, ACK etc but it works when some of these ACLs are applied to other interface.

    Hi,
    Thanks for the response. As far as the config of the ACL, it's quite straight forward with the thing i'm trying to achieve. 1.1.1.190 & 1.1.1.192 are Mail servers. The objective is to control both .190 & .192. The config is as below:
    interface Vlan2
    description For Mail
    ip address 1.1.1.129 255.255.255.0
    ip access-group 2002 in
    end
    C6500#sh access-li 2002
    Extended IP access list 2002
    10 permit icmp any any (272 matches)
    20 permit tcp host 1.1.1.0 any syn (10467 matches)
    30 permit tcp host 1.1.1.0 any ack (781 matches)
    40 permit tcp host 1.1.1.190 eq smtp any
    50 permit tcp host 1.1.1.190 eq pop3 any
    60 permit tcp host 1.1.1.192 eq smtp any
    70 permit tcp host 1.1.1.192 eq pop3 any (4 matches)
    80 permit ip host 1.1.1.183 2.2.0.0 0.0.255.255 (19 matches)
    When I first created this ACL, without the SYN & ACK configured, users failed to connect to the servers. I personally believe users could connect, but it's the return packets from the servers that might have gotten blocked by the ACL. However, after I added in the SYN & ACK, all went well. I could see counters incrementing for the SYN & ACK as well.
    Whereas, some other applications that use some custom ports, ie. 10000, 10001, didn't seem to need the explicit configuration of the SYN/ACKs & the ACL worked well.

  • Windows 7 redirecting LPT ports to Terminal Services is broken compaired to Vista and XP

    Hello forum
    We have encountered an issue with mapping LPT1 ports from any terminal server be it 2003 or 2008, the problem is the same.
    Our XP clients and Vista clients works fine. Seems this issue is only present on Windows 7.
    We have a program that requires printing to be done on the LPT1 port. The Printer connected to the client is driver less, it uses the raw output from the LPT port. So try not to think of it as a normal printer. We do not require drivers to be installed on
    the server or client.
    Our XP and Vista clients works perfectly by using: net use LPT1:
    \\tsclient\lpt1:
    And then printing to the LPT1 port.
    When using Windows 7 clients to print, only 512 bytes are forwarded to the printer and the rest of the job is missing. If we print directly to
    \\tsclient\lpt1: the print job is working and all is forwarded. But our program cannot print to UNC paths.
    So what has changed in between Vista/XP and Windows 7 on the LPT port forwarding subject?
    Our printer is a STAR TSP if you would like to know. The Win 7 Clients prints fine to the printer locally to the LPT port when not connected to the Terminal session.
    Thanks for your time.

    Hello Mobay,
    Here are the conclusion about this situation:
    Symptom:
    The Win7 client could not re-direct LPT port to a local printer when connecting through a terminal server/remote desktop session.
    Cause:
    This is an known product issue of Win7, no QFE available yet.
    Resolution:
    Possible workaround with Windows XP SP3, RDP 6.1 (and Hotfix 972828).
    Win7/Win2k8r2
    Vista/Win2k8
    WinXP/Win2k3
    RDC 5.2
    Succeed to redirect
    RDC 6.1
    Fail to redirect
    Succeed to redirect
    RDC 7.0
    Fail to redirect
    Fail to redirect
    Succeed to redirect
    So it's by design that you can't use LPT port through RDP on Win 7 client machine.
    Best Regards
    Darith Iv
    Core System Analyst
    Microsoft Product Services and Support

  • Function returning control via CType. Is this risk-free?

    I want an easy way to get a TabPage's child (user)control without writing CType() functions everywhere.
    For this I created a function that returns the control via CType:
    Private Function ChildIRCControl() As IRCControl
    Return CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl)
    End Function
    Now, is this risk-free to do or are there any chances that it will bug or don't work in some cases?
    Thanks
    //Visual Vincent
    EDIT:
    Now to rephrase and explain my badly written question:
    The user is able to create new tabs, and for each new tab a IRCControl (which is a UserControl) is added to the tab's controlcollection.
    Now there's no problem doing the above. BUT since the tabs are created programmatically, I cannot get the control inside the tabpage without some kind of cast function.
    Example of creating a new tab:
    Private Sub CreateNewTab()
    Dim IRCc As New IRCControl 'This is a normal UserControl.
    Me.TabControl1.TabPages.Add("New Tab")
    Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls.Add(<a control that has nothing to do with this question>)
    Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls.Add(IRCc)
    End Sub
    Now to access the UserControl in the currently selected tab I need some kind of Cast function. I use CType for this:
    CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl)
    But typing this long CType function in every If statement needed and every Loop used takes time, and is horrible to read.
    Now, will it work just like the normal CType if I access it like this instead?
    Private Function ChildIRCControl() As IRCControl 'The UserControl
    Return CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl)
    End Function
    Private Sub ModifyTextBox() 'Example
    ChildIRCControl().TextBox1.Text = "Hello World!"
    End Sub
    Hope this explanation is better for you guys, and sorry for not bringing all this up before.
    I hope your day has been better than yesterday, but that it's worse than tomorrow...
    Please mark as answer if I solved your problem. :)

    Now, is this risk-free to do or are there any chances that it will bug or don't work in some cases?
    To make it safe you would subclass the Tab and TabPage controls and make this method a function of the new Tab.  Then, that class would include code to ensure that only your custom tab pages were added, and that for each added tab page the first
    control was the correct type - presumably creating it automatically or from a value passed to it in the constructor.  That control is then a property of the tab page, and there is no need to use the Controls collection or do any type conversion.
    The problem is that you actually have no control over the order of items added into the Controls array if you are using the designer.   Even if you are sure that each tab page has one of the controls, it might not be at index 1.  
    You could scan the tab page Controls collection, but if there are several of that control type then you also need a way to know which one you really want.  That's what your code should be checking.   If you correctly identify the control in
    the collection there is no need for CType - it's already the correct type.   You can check the type without trying to do the conversion by using TypeOf.  See
    https://msdn.microsoft.com/en-us/library/0ec5kw18.aspx
    Thanks for the answer.
    I guess I could have added this to my initial question too: I'm creating the TabPages and UserControls programmatically and that's why I need to use some kind of Cast function. There are two controls in each tabpage, and they're added in this order:
    Private Sub <Some kind of sub>()
    Dim IRCc As New IRCControl 'The UserControl
    <The new TabPage>.Controls.Add(<The other control>)
    <The new TabPage>.Controls.Add(IRCc)
    End Sub
    So the only thing I wanted to know was if I could do this:
    If ChildIRCControl().TextBox1.Text = "blahablaha"
    ChildIRCControl().RichTextBox1.Text = "blabla"
    End If
    Instead of writing the long CType, or any other cast function all the time,
    If CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl).TextBox1.Text = "blahablaha" Then
    CType(Me.TabControl1.TabPages(Me.TabControl1.SelectedIndex).Controls(1), IRCControl).RichTextBox1.Text = " "blabla"
    End If
    as it's both a readability and writability nightmare.
    And at last I apologize for the badly explaining question that I wrote.
    I hope your day has been better than yesterday, but that it's worse than tomorrow...
    Please mark as answer if I solved your problem. :)

  • How to create user credit control via customization

    Hi !
    I have to create user credit control via Transaction :
    SPRO.
    path:
    Sales and Distribution->Basic Functions->Credit Management/Risk Management->Credit Management->Define Automatic Credit Control.
    I want to check the user checkbox, and create my logic
    of credit control.
    In the help of credit control screen, it says that i have
    to use user exits LVKMPTZZ and LVKMPFZ1.
    However when i looked for that user exits at SMOD
    that user exit don't exist !!!
    How do i use those user exits ? Why can't i find those user exit ?
    Can you give me please  a code example of how to use
    the user checkbox to change the logic of credit control ? or any material about the issue.
    thanks
    moshe

    Hi,
      You dont find the programs LVKMPTZZ and LVKMPFZ1 in SMOD transaction, check in SE38 by typing the program names, there you have the provision to write your custom code,
      As user exits are specific to the business, it would be difficult to send the sample code to cater the functionality expected by your business,
    Hope this helps,
    Rgds,

  • 802.1x Port Authentication via RADIUS

    I am investigating implementing 802.1x port authentication on our network.
    I have a test LAN with a Catalyst 2950 switch and 2 Win XP workstations, (I know its pretty basic, but should be enough for testing purposes). One of these XP PCs is running a Win32 RADIUS server and the other has been configured for 802.1x authentication with MD5-Challenge. Both switch ports are configured for the default vlan and can ping each other.
    I have configured the switch with the following commands
    aaa new-model
    aaa authentication dot1x default group radius
    dot1x system-auth-control
    radius-server host x.x.x.x key test
    and the port to be authorised has been configured with
    dot1x port-control auto
    As far as I can tell this is all I need to configure on the switch, please correct me if I am wrong.
    When I plug the PC into the port I get the request to enter login details, which I do, the RADIUS server sees the request but rejects it, because 'the password wasn’t available'. Here is the output from the request, but there isnt any password field and I know there should be as the RADIUS server comes with a test utility and the output from that is similar to below, but the password field is included. I have removed IP/MAC addresses.
    Client address [x.x.x.x]
    NAS address [x.x.x.x]
    UniqueID=3
    Realm = def
    User = Administrator
    Code = Access request
    ID = 26
    Length = 169
    Authenticator = 0xCCD65F510764D2B2635563104D0C2601
    NAS-IP-Address = x.x.x.x
    NAS-Port = 50024
    NAS-Port-Type = Ethernet
    User-Name = Administrator
    Called-Station-Id = 00-11-00-11-00-11
    Calling-Station-Id = 11-00-11-00-11-00
    Service-Type = Framed
    Framed-MTU = 1500
    State = 0x3170020000FCB47C00
    EAP-Message = 0x0201002304106424F60D765905F614983F30504A87BA41646D696E6973747261746F72
    Message-Authenticator = 0xA119F2FD6E7384F093A5EE1BF4F761EC
    Client address [x.x.x.x]
    NAS address [x.x.x.x]
    UniqueID=4
    Realm = def
    User = Administrator
    Code = Access reject
    ID = 26
    Length = 0
    Authenticator = 0xCCD65F510764D2B2635563104D0C2601
    EAP-Message = 0x04010004
    Message-Authenticator = 0x00000000000000000000000000000000
    On the 2950 I have turned on debugging with 'debug dot1x all' and part of the output is below:
    *Mar 2 01:58:38: dot1x-ev:Username is Administrator
    *Mar 2 01:58:38: dot1x-ev:MAC Address is 0011.0011.0011
    *Mar 2 01:58:38: dot1x-ev:RemAddr is 00-11-00-11-00-11/00-11-00-11-00-11
    *Mar 2 01:58:38: dot1x-ev:going to send to backend on SP, length = 26
    *Mar 2 01:58:38: dot1x-ev:Received VLAN is No Vlan
    *Mar 2 01:58:38: dot1x-ev:Enqueued the response to BackEnd
    *Mar 2 01:58:38: dot1x-ev:Sent to Bend
    *Mar 2 01:58:38: dot1x-ev:Received QUEUE EVENT in response to AAA Request
    *Mar 2 01:58:38: dot1x-ev:Dot1x matching request-response found
    *Mar 2 01:58:38: dot1x-ev:Length of recv eap packet from radius = 26
    *Mar 2 01:58:38: dot1x-ev:Received VLAN Id -1
    Again there doesn’t appear to be a password, shouldn't I see one?
    Ultimately we will be using a Unix RADIUS server but for testing purposes I have just configured an eval version of Clearbox's RADIUS server. I've tried others as I thought the problem maybe the software, but I get similar problems regardless. If anyone can recommend better Win32 software, please do so.
    I'm struggling to figure out where the problem is, the XP machine, the switch or the RADIUS server. Any advice would be appreciated as it's getting quite frustrating.

    These are dot1x event debugs, so you wouldn't see this with that debug. The closest thing to seeing it would be to debug radius on the switch, and the password would be contained in RADIUS Attribute[79]. The switch uses this attribute to replay the EAP message (unmodified) to a RADIUS server. You might see it, but it's encrytped, so it might not buy you much. I'm sure you can imagine from a security point of view why the switch won't/shouldn't have this much visibility into this ;-).
    I would recommend either:
    a) Double-checking your RADIUS setup and logs to find out why the user failed. (double-check the RADIUS key configured on the switch too .. it must match).
    b) Downloading a third-party supplicant from Meetinghouse or Funk to use as a control.
    Eval copies are available on their websites.
    Hope this helps,

  • Can Wireless Home Audio products be controlled via IP with any other devices?

    I'm interested in knowing if the Wireless Home Audio Director, Conductor or Player can be controlled via IP with alternative controllers?  Specifically, I'm interested in integrating the products into a universal remote control or home control system and still have 2 way communications with feedback.  IP and RS232 are the most commons ways of accomplishing this.

    Hi,
    Maybe for basic functions like (play, stop, next) using the IR remote, a third party IR based universal remote may work but that's a big gamble to take, anyway what would be the purpose then of the Linksys DMRW1000 (IP based remote control) remote that Linksys is selling if its compatible with third party remotes.
    Wireless Home Audio remote
    Well that's my thoughts on this, I hope you'll find the device your looking for.

  • Error 1082 when setting Strings[] property of a menu ring control via property node.

    I've attached a VI in which I attempt to set the Strings[] property of a menu ring control via a property node.  Can anybody figure out what I'm doing wrong here?  I'm using LabView version 7.1.
    Thanks,
    Mark Moss
    Attachments:
    Bug Test.llb ‏69 KB

    Open up your Stations Parameters Control.ctl file and change it from a Strict Type Def. to just an ordinary Type Def. (the pull down menu is located next to the font selector).

  • Hot to install HP DeskJet 710C (LPT Port) on Solaris 10?

    Hi.
    I'm trying to install HP DeskJet 710C printer on LPT port.
    There is no such model in the list of Printer Administrator.
    I tryed few models on /dev/lp1 and /dev/ecpp0 but with all I get message "out of service".
    Printer is fully functional.
    Is there solution to make this printer working on Solaris 10?

    Hello Everyone,
    I know this is an old post, but this might be of some interest to folks trying to set up a local printer under Solaris 10 and the Developer edition. There is a bug that prevents the ecpp driver_alias from being created under /etc/driver_alias. The workaround to get the driver_alias created is as follows. As root (su -) in terminal
    update_drv -a -i "lp" ecpp
    reboot the machine and you'll have the driver alias for ecpp present in /etc/driver_alias along with an entry in the print manger under Printer Port for /dev/printers/0
    Here's a link describing the bug:
    http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6374608
    Message was edited by:
    mrmdls as I forgot the " along with adding the link

  • Dot1x port-control auto protocol down (ACS5.3)

    Hello everyone! 
    I urgently need your help please. 
    I would like to configure the ports of a switch for 802.1x. 
    when I type the command: Dot1x harbor auto-control on the interface, the protocol is down and users are disconnected wiring. 
    Can someone help me please? it is really urgent.
    thank you in advance

    hello
    thank you for your answer.
    bellow is the configuration  that i've configured on the switchs:
    configure terminal
      aaa new-model
      aaa authentication dot1x default group radius
      interface fastethernet0/1
      dot1x port-control auto
      end
     radius-server host x.x.x.x auth-port 1612 key xxxx
    but the command : dot1x port-control auto , cause protocol dows but the port status is UP.
    I did not understand the function of this command:"Dot1x harbor auto-control" 
    could you tell me a little more?
    thank you in advance.

  • Mac Mini with no monitor controlled via VNC - video output corrupt

    Hi,
    I have a Mini running with no monitor, mouse or keyboard connected (it's used as a Server for my music library) that I control via VNC on my Mac Book.
    Everything works fine until I ever have to reboot the Mini. After the reboot, logging into the machine via VNC shows all the video corrupt (jagged horizontal lines through the whole display making it totally undreadable).
    This happens both with ARD and Chicken of the VNC (tried both in case it was an issue with the VNC software).
    To fix it I have to connect a monitor to the Mini. Then I can just unplug the monitor again and the video output via VNC is fixed.
    Anyone have any ideas? It's driving me nuts
    Thanks,
    Neil

    After some more searching I stumbled across this thread on another forum;
    http://www.macusenet.com/archive/index-t-75211.html
    It seems that the problem can be avoided by connecting the DVI-S-Video adapter that ships with the Mini.

  • LPT Port read

    Hi,
    I am using  the "in port.vi" in labview to check if a printer is hooked to any of  my lpt ports before I send a print command to them. it is working but it freezes every now and then. my lpt port addresses are 0378 (local on mother board), AC00, and B400 ( located on a pci card). I noticed that the data type on the base address inoput of the vi  is u16 wich i need u32 for the base addresses for the lpts on the pci board. does any one know a fix for this.??
    thank you
    windows XP
    labview 8.0

    " is there a way i can activate an application every 15ms or so without slowing the whole loop??"
    To specifically answer this question, I've attached an image of something
    you can try. It's not the best solution, but it's quick and dirty, and
    might help 'solve' the problem in the short run.
    Message Edited by Novatron on 06-06-2006 03:00 PM
    Attachments:
    15ms.jpg ‏11 KB

  • Accessing printer port control lines

    Is it there a way to set and read the printer port control lines with Labview?
    The oparating system will be Windows2000 or XP.
    I would like to select the channel and readout an ADC with MUX (LTC2408).
    Peter Nyffeler mailto:[email protected]
    Tel P 01 363 62 42, Tel G 01 632 43 60, Fax G 01 632 10 21

    Hello Werner,
    Thank you for your answer in the newsgroup.
    Do you know, does accesshw work with XP and all Labview versions?
    Would you mind to send me your DAC's and AD's vi's? That would be great.
    regards
    Peter
    In article <[email protected]>,
    "wha@atmel" wrote:
    >Hello Peter,
    >
    >there is no need for separate Control of ADC + MUX;
    >they might be tight together - shown in Datasheet.
    >
    >But of course you can use the Control-lines of paraport. For W2k you
    >will need accesshw on you machine:
    >http://zone.ni.com/devzone/explprog.nsf/webmain/49664743ded6f1da862564bc004e3a7
    >f?OpenDocument
    >
    >I have made some vi's for DAC's and ADC's @ paraport - e.g. MAX168 or
    >DAC714.
    >If you need some inspiration - let
    me know..........
    >
    >Regards & gruezi
    >Werner
    Peter Nyffeler mailto:[email protected]
    Tel P 01 363 62 42, Tel G 01 632 43 60, Fax G 01 632 10 21

Maybe you are looking for

  • Iphone shuffle Not Working Correctly

    Since doing a full restore of my iphone which reloaded all of my songs, my shuffle doesn't work correctly any more.  I'm on 5.1.1.  I start a shuffle and 2 or max 3 songs play and then it quits.  The screen shows the next song but no sound, either wi

  • Ipod skips songs

    Hello, Lately my Ipod , 5thG 60 Gb, is skipping songs when played on my Ipod. It skips songs, some after a few seconds others after a few minutes. When i play the same songs in my itunes library they play fine. I have about 6300 songs on my ipod and

  • GPF in SQL*PLUS Copy Command?

    Hello, I'm getting a GPF and crash of SQL*Plus when I use the copy command. Seems like I used to be able to make it work if I tried logging on to the source database before the copy, but now even that won't work. I issue the command, it looks out ove

  • When i try and open mail on aol it opens and disappears( the email it self) only on mozilla, new problem any help? love firefox..

    when i open my firefox , aol is my home page. open mail and see mail box and related. click on a mail to view, it opens breifly (1 sec) and disappears???? this is only on firefox checked explorer and chrome

  • Service error when installing OO4O

    I get an error telling me to shut down the service OracleOra9i_HOMEAgent when trying to install OO4O in XP. I can't see anything relating to this in my processes. Does anyone know how to shut this down? thanks very much... Brian....