Java parallel port control
|
Original Message
|
Name: tansands
Date: January 29, 2005 at 16:22:26 Pacific
Subject: Java parallel port controlOS: Windows xpCPU/Ram: 350 |
Comment: I am trying to control my parallel port through a web browser on my website. I host my own webpage with Windows XP. All I am trying to do is connect two wires to different pins and I want to use java to connect these two wires together sort of like a switch; for lights and such. Does anyone have any ideas or know if this will even work. Thanks in advance.
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: elric
Date: January 30, 2005 at 04:41:33 Pacific
|
Reply: (edit)G'day, From a hardware point of view, this is not a major problem. A simple relay circuit will suffice. I'm not sure exactly what sort of switching you want to do, but the data register of the printer port will work ok. You just have to assign which bit ( or bits) you want to use to trigger the relay. A buffer circuit will be the best way to go, because printer ports tend to vary in their voltage and current outputs. As far as the software goes; you will probably know more than I, but I know from reading many posts here, that Windows does not like to relinquish ports that can access the real world. In C and VB* you can use DLLs and/ or API calls to acomplish this, but I have no experience with Java. Post back with your hardware requirements and maybe some of the learned software engineers here will point you in the right direction. Good luck, Elric
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: bamakhrama
Date: January 30, 2005 at 07:05:59 Pacific
|
Reply: (edit)Hi, Yes, you can do that easily in Java using Java Comm API. search in java.sun.com for more info about "Java Comm. API" -- mohameda@ieee.org
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: tansands
Date: January 30, 2005 at 14:33:38 Pacific
|
Reply: (edit)Great ideas, Thanks for pointing me in the right direction. I want to be able to control an RC car over my website. I have already converted the controller into wires that just have to be touched together to make it work so if I can program switches from my parallel port this should work perfectly. Do you think that Java comm API is still the best way to go? Thanks again!!
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: bamakhrama
Date: February 1, 2005 at 01:55:30 Pacific
|
Reply: (edit)Hi, I have seen some programs which control the parallel port without the mentioned API. But I also have seen some other programs using the API. it is much easier using the API since there are ready and well-tested methods to use. It really depends if you have time to write programs from scratch or use ready things. -- mohameda@ieee.org
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: