Click here to Skip to main content
13,047,567 members (59,284 online)
Rate this:
Please Sign up or sign in to 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 18-Apr-12 19:55pm
Updated 26-May-15 19:45pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You need the ASTM protocol specification to talk in the right "language" with your device. I saw, that you can buy the specs at 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?
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 page so i tagged 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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 27 May 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100