Click here to Skip to main content
11,790,613 members (62,501 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET C#4.0
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
Edited 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 at 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 at 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
0 OriginalGriff 1,154
1 Maciej Los 825
2 KrunalRohit 686
3 ppolymorphe 660
4 CPallini 621

Advertise | Privacy | Mobile
Web01 | 2.8.1509028.1 | Last Updated 27 May 2015
Copyright © CodeProject, 1999-2015
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