Click here to Skip to main content
15,912,665 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all,

i am trying to receive data from instrument using the serial port on this instrument and using a print server with static ip address i will convert the serial port to Ethernet my problem is this instrument sends the data so how could i using C# application receives this data when this instrument send it.

Best Regards,
Posted
Comments
Jibesh 9-Jan-13 20:32pm    
You need to more precise with question to get a right answer. we cant see your code or read your mind so you never expect a clear answer with a vague question. "Instrument sends data" to where? to your PC? If yes how? does the instrument provides any additional drivers to read the data? or any spec how to read its data?

1 solution

Use a SerialPort[^] instance to monitor the COM port - the link includes an example.
 
Share this answer
 
Comments
programmer expert 9-Jan-13 12:58pm    
there is nothing to do with serial port because the print server(serial to Ethernet converter) will do this my problem is this instrument will sends the data through it is serial port and this data will be passed through the converter then how could i receive this data.
OriginalGriff 9-Jan-13 14:07pm    
We can't answer that - we have absolutely no idea what your convert is doing with the data!
Jibesh 9-Jan-13 20:38pm    
You should try Ethernet packet reading frarmeworks. http://pcapdotnet.codeplex.com/ is good choice. however you must know the format of the data you want to read else the output is just binary values for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900