Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have one laboratoric device, which it is connected with computer by
rs-232c serial interface.
I know taht this device is using ASTM protocol.
I need to connect to this deviceand send him some commands.
How to do this and give me the example link .
Posted
Updated 26-May-15 19:45pm
v2

You need the ASTM protocol specification to talk in the right "language" with your device. I saw, that you can buy the specs at astm.org or Google might help you.

Then you need the SerialPort Class[^] to communicate with the device via RS232.


BTW: Why did you tag your question wit ASP.NET?
 
Share this answer
 
Comments
anilsarapati 19-Apr-12 2:09am    
thanq for your information andy. i want to get the data from that device and display it in my asp.net page so i tagged asp.net also
Andy411 19-Apr-12 2:28am    
OK, I guessed something like that.
I'm not sure if you have the right to access the serial port from your code behind, because you are running with the user credentisl of the ISS. I haven't done that before. You might teke care of that.
You should find the manual for your device to see the commands.

To send via serial see this link : Serial Communication using C# and Whidbey[^]
 
Share this answer
 

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