UBS or Parallel Port
-
Your right, I just really need a few I/O lines, Its just like switching on and off the light. Can give any tutorial sites, sample code or tips about my problem? And other thing is that I really need to use VB6 language for this thesis. Thanks for your reply I really appreciate it.
It's a (long) while back but I think there used to be a ActiveX/OCX gadget for serial I/O. The parallel port is a pain ( I think you can only write a device driver to access it). IMHO a project like this (exotic hardware) should still be done in VC++ where you have the whole WinAPI at your fingertips (ever had to write some .net 1.1 wrappers for the serial port ?) and most 3rd party SDKs for their hardeware are still in C/C++.
-
Your right, I just really need a few I/O lines, Its just like switching on and off the light. Can give any tutorial sites, sample code or tips about my problem? And other thing is that I really need to use VB6 language for this thesis. Thanks for your reply I really appreciate it.
Hi, I don't know how to control the control lines of a serial port without the help of the .NET SerialPort class, but I am confident there are some articles on this site that could help you; otherwise Google knows it all. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Sorry for any delays in replying, I currently don't always get e-mail notifications.
-
Hi, I don't know how to control the control lines of a serial port without the help of the .NET SerialPort class, but I am confident there are some articles on this site that could help you; otherwise Google knows it all. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Sorry for any delays in replying, I currently don't always get e-mail notifications.
-
hi again. I've been thinking if you could help me to control the parallel port in VB .Net. I've already change the language that I'm going to use in my program and I used the VB .Net 2008. I'm really glad if you can help. Thanks.
meki_2118 wrote:
VB .Net
much better than VB6
meki_2118 wrote:
control the parallel port
The SERIAL port has a couple of control lines, which can easily be written/read using the SerialPort class. There is no .NET support for parallel ports, and I have no experience whatsoever with parallel port (my PC does not have one either). :)
Luc Pattyn [Forum Guidelines] [My Articles]
Happy Holidays!
-
meki_2118 wrote:
VB .Net
much better than VB6
meki_2118 wrote:
control the parallel port
The SERIAL port has a couple of control lines, which can easily be written/read using the SerialPort class. There is no .NET support for parallel ports, and I have no experience whatsoever with parallel port (my PC does not have one either). :)
Luc Pattyn [Forum Guidelines] [My Articles]
Happy Holidays!
Do I still need to download the inpout32.dll to make the Serial Port work? Because I've read that you should first to install that to make the parallel port work. Is it also the same in the serial port? I would really like to control my electronic lock within two weeks because I'm getting close to the deadline of my thesis and its only 50% finished. Can help me how to control the serial port. I will really appreciate your help. Thanks. Happy Holidays! :)
-
Do I still need to download the inpout32.dll to make the Serial Port work? Because I've read that you should first to install that to make the parallel port work. Is it also the same in the serial port? I would really like to control my electronic lock within two weeks because I'm getting close to the deadline of my thesis and its only 50% finished. Can help me how to control the serial port. I will really appreciate your help. Thanks. Happy Holidays! :)
meki_2118 wrote:
Do I still need to download the inpout32.dll to make the Serial Port work?
No. To use the .NET classes you need the .NET Framework, nothing else.
meki_2118 wrote:
my thesis and its only 50% finished
Time to move ahead then. This thread is 9 days old, what serial port experiments have you performed since? Is your hardware ready? Did you check the number of lines you need, the voltage levels, the currents? :)
Luc Pattyn [Forum Guidelines] [My Articles]
Happy Holidays!
-
meki_2118 wrote:
Do I still need to download the inpout32.dll to make the Serial Port work?
No. To use the .NET classes you need the .NET Framework, nothing else.
meki_2118 wrote:
my thesis and its only 50% finished
Time to move ahead then. This thread is 9 days old, what serial port experiments have you performed since? Is your hardware ready? Did you check the number of lines you need, the voltage levels, the currents? :)
Luc Pattyn [Forum Guidelines] [My Articles]
Happy Holidays!
Luc Pattyn wrote:
Time to move ahead then. This thread is 9 days old, what serial port experiments have you performed since? Is your hardware ready? Did you check the number of lines you need, the voltage levels, the currents?
This is the first time for me to program a hardware and it's also the first time for me to use the PC's port for programming. I'm really a newbie about this hardware programming. My hardware is still not ready because I'm planning to experiment it first with a LED light. I've heard that accessing the PC ports are dangerous and there's a risk burning your M.Board and I really don't want to happen that right now. And about the "number of line" your talking about I'm really clueless about that. I think I must first study how the serial port work. Am I right? Thanks again for your help. :)
-
Luc Pattyn wrote:
Time to move ahead then. This thread is 9 days old, what serial port experiments have you performed since? Is your hardware ready? Did you check the number of lines you need, the voltage levels, the currents?
This is the first time for me to program a hardware and it's also the first time for me to use the PC's port for programming. I'm really a newbie about this hardware programming. My hardware is still not ready because I'm planning to experiment it first with a LED light. I've heard that accessing the PC ports are dangerous and there's a risk burning your M.Board and I really don't want to happen that right now. And about the "number of line" your talking about I'm really clueless about that. I think I must first study how the serial port work. Am I right? Thanks again for your help. :)
meki_2118 wrote:
I must first study how the serial port work. Am I right?
yes. whatever it is you will be using, you must study it.
meki_2118 wrote:
the "number of line" your talking about I'm really clueless
each serial port offers a few output lines and a few input lines. you must determine how many you need for your target hardware; if the port has fewer, it won't help you.
meki_2118 wrote:
I'm planning to experiment it first with a LED light
That is good. An LED will take some 10 mA and it sure needs a series resistor (say 1K). When it works, it shows your software is probably OK. But that might be the smaller part of the job. Before you implement something, you should: 1. study the technologies you are considering; 2. make a design. In your case: check number of lines, voltage levels, current requirements. Example: if your door lock needs 1 Amp to operate, the serial or parallel port will not be capable of supplying that, hence you would then need a power supply, a relay, and probably a transistor to control the relay. (A relay probably will need more than a few volts, and being inductive, I would not connect it to a PC directly). :)
Luc Pattyn [Forum Guidelines] [My Articles]
Happy Holidays!
-
meki_2118 wrote:
I must first study how the serial port work. Am I right?
yes. whatever it is you will be using, you must study it.
meki_2118 wrote:
the "number of line" your talking about I'm really clueless
each serial port offers a few output lines and a few input lines. you must determine how many you need for your target hardware; if the port has fewer, it won't help you.
meki_2118 wrote:
I'm planning to experiment it first with a LED light
That is good. An LED will take some 10 mA and it sure needs a series resistor (say 1K). When it works, it shows your software is probably OK. But that might be the smaller part of the job. Before you implement something, you should: 1. study the technologies you are considering; 2. make a design. In your case: check number of lines, voltage levels, current requirements. Example: if your door lock needs 1 Amp to operate, the serial or parallel port will not be capable of supplying that, hence you would then need a power supply, a relay, and probably a transistor to control the relay. (A relay probably will need more than a few volts, and being inductive, I would not connect it to a PC directly). :)
Luc Pattyn [Forum Guidelines] [My Articles]
Happy Holidays!
hi. I've already studied how the serial port work and I already looked at the device I going to use. I think that I'm going to use two lines of the serial port. And my device will work like an florescent light, it is powered by a 220 volts. And the logic here is that my pc will only command the lock to turn on and off. But I don't know what pin to use and will I be still needing a transformer to change the voltage that will run through my pc? :) Happy New Year
-
hi. I've already studied how the serial port work and I already looked at the device I going to use. I think that I'm going to use two lines of the serial port. And my device will work like an florescent light, it is powered by a 220 volts. And the logic here is that my pc will only command the lock to turn on and off. But I don't know what pin to use and will I be still needing a transformer to change the voltage that will run through my pc? :) Happy New Year
Hi, IIRC the pins DTR and RTS are output pins on the PC's serial port. They are controlled by the properties SerialPort.DtrEnable and SerialPort.RtsEnable. RS232C pins carry a DC voltage, anywhere in the range (-15V,+15V). They are capable of sourcing/sinking some 10 mA and not suited for larger currents, larger voltages, or direct connection to devices that are powered by the AC mains. If your door lock is powered by 220V AC mains directly, you will need galvanic isolation (you can't connect mains to your PC!); it also will need more than 10mA so you need some switching device, either a transistor/thyristor/triac or a relay, and probably both. It somewhat depends on the specs of the lock (see documentation!), and the distance between PC and lock. [ADDED] Instead of a transistor you could use an opto-coupler, which together with a relay would be able to control almost anything; the transmitter side of the opto-coupler would very much ressemble an LED, making your initial LED experiment much more relevant.[/ADDED] :)
Luc Pattyn [Forum Guidelines] [My Articles]
Happy 2008!
modified on Friday, January 04, 2008 7:40:49 AM