p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > C# and C > C# 2005 > C# 2005
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# 2005 For discussion of Visual C# 2005.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 26th, 2007, 10:29 PM
Authorized User
 
Join Date: Jul 2007
Location: , , .
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Serial to tcp/ip

Hello,
  I have to read data from serail port(com) and then send that data to other computer through tcp/ip communication.
  wht i m thinking is to read the data in serial port store it in some file and then send it through some other pc through tcp/ip.Is there any way to avoid storing the data. Or is there any other method.
 thanks in advance.

watashi

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 28th, 2007, 02:48 AM
Registered User
 
Join Date: Aug 2007
Location: Almere, , Netherlands.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by watashi
 Hello,
  I have to read data from serail port(com) and then send that data to other computer through tcp/ip communication.
  wht i m thinking is to read the data in serial port store it in some file and then send it through some other pc through tcp/ip.Is there any way to avoid storing the data. Or is there any other method.
 thanks in advance.

watashi
I assume that the other computers are connected in a LAN.
If the other computers have defined a "shared" folder you can simply store a file there.
Otherwise you will have to build a program (windows service) that runs on the other computers and listens to a tcp-port (see the chapters about .NET Remoting and Windows Services in "Professional Visual C# 2005"). You can also build a web-service (if you have IIS available on the other computers). Of course you will have to define one or a few classes (message-classes) for sending/receiving the data and an appropriate version of .NET Framework must be installed on every computer.
If you use remoting or a web-service you don't have to store the data first. You can directly send it to the other computers, but as I mentioned before, the other computers must have some program running for communication.

Nico

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ZModem over TCP/IP geogomez Pro VB 6 4 December 27th, 2007 03:59 AM
another tcp/ip related query watashi C# 2005 0 August 30th, 2007 08:31 PM
tcp\ip communication in asp.net 1.1 Pramods BOOK: Beginning ASP.NET 1.0 0 July 16th, 2007 04:51 AM
TCP/IP HELP jpsultana VB.NET 2002/2003 Basics 0 September 29th, 2005 02:37 PM
TCP/IP Data is Being Concatenated owain Pro VB 6 2 December 9th, 2003 08:12 PM



All times are GMT -4. The time now is 11:30 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc