Results 1 to 5 of 5

Thread: RS232 AND MSCOMM question...

  1. #1

    Thread Starter
    Hyperactive Member sterankin's Avatar
    Join Date
    Jul 2001
    Location
    N.Ireland
    Posts
    336

    Question 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...."

  2. #2
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    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".

  3. #3

    Thread Starter
    Hyperactive Member sterankin's Avatar
    Join Date
    Jul 2001
    Location
    N.Ireland
    Posts
    336
    it appears my laptops dont have rs232 connections..... what can i do? help


    "The Dude abides...."

  4. #4
    Addicted Member
    Join Date
    Nov 2002
    Posts
    155
    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?

  5. #5

    Thread Starter
    Hyperactive Member sterankin's Avatar
    Join Date
    Jul 2001
    Location
    N.Ireland
    Posts
    336
    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
  •  



Click Here to Expand Forum to Full Width