Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I need someone to help me with a program... im new to programing and need help with a visual basic program that reads Com port 2 on my industrial computer and then writes the info out through Com Port 1.. has to be ASCII Characters 0-255..... 9600,8,n,1... any help would be greaty appreiated... :)
Posted
Comments
OriginalGriff 27-Jun-12 14:52pm    
Why the heck would you want to use an expensive industrial PC for that when you could do the job with two connectors and a few bits of wire? It would take you less time to build the connector than to write, test and debug the program!
Sergey Alexandrovich Kryukov 27-Jun-12 15:19pm    
:-)
Member 9179020 28-Jun-12 6:15am    
My two devices are already hooked up to the computer and im using them for other things, what it im doing is hooking up a 900mhz xbee radio to the computer and controling a R8x Pro relay contoller with my other computer from a base station.... would be nice if i could hook up the radio straight to the relay contoller but RS232 voltage levels wont work togehter... just figured that if i could RX over one com port and TX over the other then everything would work great... but it seems that its harder than i thought.... :(
OriginalGriff 28-Jun-12 6:27am    
Um.
RS232 includes a voltage spec (which is nominally -12V to +12V, but in practice everything should accept -25V to +25 as that is the spec limits) - if your two devices are 232, then you can connect them directly. Otherwise if you have non standard 232 voltages, you will fry the PC when you connect it (unless you have good optoisolation on the serial ports which would be unusual).
Member 9179020 28-Jun-12 6:44am    
i thought so too, i checked the output of the computer hooked directly up to the relay board with a scope and it checked out at -12 and when i sent the packets it went up to +12 +-, but when i check the out put of the radio it only goes down to -5 volts and up to +5 volts when info is sent.... i figured if i sent packets through the computer everything would work out the way i wanted it to.... not logical? it has me stumped.... :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900