Click to See Complete Forum and Search --> : Serial port communication. At bit level..!
sathvik
Apr 13th, 2004, 08:37 AM
hello masters,
i am a software programmer in visual basic. I have not touched the hard ware programming part yet. I have devoloped an electronic circuit and trying to interface it with my software. All i need is just detect a 5volt (high signal or binary '1') on a communication port pin which would be 0 volt (low signal or binary '0') most of the time through the coding. I only know which pins is ment for which task and nothing else. Can anybody suggest me which pin to be used for the purpose and how to program ?
Any help would be greatly appreciated.
Dave Sell
Apr 30th, 2004, 04:45 PM
I believe what you want to do cannot be done, directly; you may have to cheat a little.
Learn how to use the MSComm control and check the Byte values that come in over time; you should get all '1's or all '0's and should be able to tel the difference.
Post your info on the pinouts and I can tell you more.
Dave
shoales
May 5th, 2004, 08:26 AM
The MSComm control can be used to detect control signal (CTS, CD, DSR, and or RI lines) levels on any of the serial ports. Choose any (or all) unused control signal inputs. You may then trap a level change on any or all of these control signal inputs.
PA0AUG
May 11th, 2004, 12:58 PM
Maby you can use de paralel port.
There are 5 inputs and 8 outputs already to detect 0 and 5 volt
There is a dll for it .(attach)
Dave Sell
May 11th, 2004, 01:18 PM
According to the Readme it will not work under WinNT, only Win9x.
PA0AUG
May 11th, 2004, 02:31 PM
Hai Dave
I found a OCX .. maby usefull Plaese checkit.
Goodluck
Dave Sell
May 11th, 2004, 02:38 PM
That looks cool - it supports Win9x and WinNTx. Although the readme says the demo version has some restrictions and a single-user liscense costs $50. I couldnt find the web-site to even register it.... Is this a demo version in this zip file?
Dave
PA0AUG
May 11th, 2004, 02:49 PM
Hai Dave
I am not sure dit not do any testing on it.
When jou want to use the commport jou can use a max232 to
convert 5 volt to + - 12 volt and use a control input on that port.
Mscomm can control this.
Sorry Bad Englisch !!!
Location Nederland.
PA0AUG
May 11th, 2004, 03:22 PM
Hai Dave
Here you can find intresting dll's
look for TVicPort.dll
www.windll.com/library-t_300.php
PA0AUG
May 11th, 2004, 04:18 PM
Hai Dave
Last message for today.
Here some more i/o acces files.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.