Results 1 to 3 of 3

Thread: TCP/IP communications.

  1. #1

    Thread Starter
    Fanatic Member Andy_P's Avatar
    Join Date
    May 2005
    Location
    Dunstable, England
    Posts
    669

    TCP/IP communications.

    I have a VB.NET project that uses serial comms to communicate with some equipment made by my company. It is a simple point-to-point link using RS-232, not RS-485 or anything like that. It means that the PC connected to the equipment is no more than a few feet away.

    I would like to upgrade this so I can use a different communication method that allows a remote PC to be attached. Does TCP/IP sound like a good candidate? Unfortunately, I have no clue where to start as I have no experience with this. From what I have read, TCP Clients and TCP Listeners seem to fit the bill.
    My intention is to use VB2005 or C#2005.

    In my serial comms app, I send a command of a few bytes to the equipment, and it responds with anything up to 800 bytes or so. I need to respond to the comm events and build up a byte array, and then present the array to the rest of the app when it is complete.

    A few questions:
    How does TCP work - will I receive data in one go, or will it arrive chunk by chunk, as per serial comms?
    Is there a fixed packet size?
    If a transmission error occurs, and retransmission is required, does TCP handle this itself?

    I'm sure I will have more questions in the future.


    All comments and advice welcome.

    Thanks!
    Using Windows XP Home sp3
    Mucking around with C# 2008 Express
    while ( this.deadHorse ) { flog( ); }


  2. #2
    Lively Member
    Join Date
    Jul 2007
    Location
    Mechelen
    Posts
    119

    Re: TCP/IP communications.

    http://www.vbforums.com/showthread.php?t=478000

    read it, try it

    you ll learn it

  3. #3
    Fanatic Member
    Join Date
    Jul 2006
    Location
    Anchorage, Alaska
    Posts
    545

    Re: TCP/IP communications.

    Here is information on my newest versions, and errors.

    So if you wanna play with the code, its there. THe part thats not working is to do with the file sending. Messages work.

    http://www.vbforums.com/showthread.php?t=481315
    Please RATE posts, click the RATE button to the left under the Users Name.

    Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.


    "As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood

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