CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284

    Heave network programming stuff

    I have written a program that makes it possible to use the comport of the server to control a micro-controller interface.

    This works fine when I run it the first time and connect to the server. One command runs very well, but when I send the next command the server receives the message, but doesn't send it to the comport. The client/server part is in C# and the comport wrapper in VB.NET. Does this make any difference for my program ?

    When I wait about 30-40 minutes the program works again for one time :S (I keep the server and the client connected and the comport opened). Is this some buffer or object that isn't correctly handled ?

    If you need some code, please reply. I won't post it if not asked, since it's too big to post without a reason
    WM.

    What about weapons of mass construction?

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    try checking the status of Opening/closing the ports. open/close several times. does your comport support speedy operations , I mean how much is the baudrate etc.

    another stuff I would like to know is ,
    are you using COM dlls inside, which type of server you have developed.

    Paresh
    - Software Architect

  3. #3
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284
    My comport settings are:

    Baudrate: 9600
    Parity: none
    Stopbits: 1
    Databits: 8
    Flow-control: Xon-Xoff / Hardware

    So, this is kinda slow.
    I use windows API calls for the comport wrapper. Maybe that might be the problem some buffer or setting not properly used ?
    WM.

    What about weapons of mass construction?

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

Featured