|
-
Apr 2nd, 2003, 10:56 AM
#1
Thread Starter
Hyperactive Member
RS232 AND MSCOMM question...
Hey all.
Is there a way I can connect an RS232 com cable between 2 laptops, and send an ascii string from one to the other.
The receiving laptop will be running my VB program, which will "listen" to the COM port, using the MSCOMM activex.
Not sure how to send the ascii string to the laptop, Can I use hyperterminal? If so how would I do this? Is there something else I can use?
Many thanks for help with this.
I need to test this, to see if it works.
"The Dude abides...."
-
Apr 2nd, 2003, 10:59 AM
#2
Frenzied Member
Hyperteminal will work just fine, or you could use procomm or any number of other choices, but hyperterminal will be just fine.
As for sending the data, you need to make sure that you have a null modem cable. Since you are doing a direct connection the tx and rx lines need ot be crossed.
Once you have that it is just a matter of sending the data..
Good luck,
Rudy
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Apr 3rd, 2003, 03:04 AM
#3
Thread Starter
Hyperactive Member
it appears my laptops dont have rs232 connections..... what can i do? help
"The Dude abides...."
-
Apr 3rd, 2003, 03:35 AM
#4
Addicted Member
Could you use the network connections? I'm no expert but I guess you could have one talking and one listening using Winsock. As in the case of rs-232 you would need a crossover cable.
Or configure the sender as lpr and the listener as an lpd and print from one to the other?
Or maybe if your printer ports are bi-directional you could use them?
-
Apr 3rd, 2003, 04:17 AM
#5
Thread Starter
Hyperactive Member
Found out a way to do it, using a null modem cable and 2 USB to serial cables....
The reason I wanted to test MSCOMM is because the final program will be a desktop pc connected to a set of electronic weighing scales, which will transmit the weight to the pc, and log it in a database.
At the moment, I dont have any sclaes in the office, so I wanted to simulate this using another laptop.
Thanks for the help.
"The Dude abides...."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|