Click here to Skip to main content
11,703,631 members (66,942 online)
Rate this: bad
good
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
v2
Rate this: bad
good
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 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?
  Permalink  
Comments
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 asp.net page so i tagged asp.net 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
good
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[^]
  Permalink  

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

  Print Answers RSS
0 Maciej Los 570
1 OriginalGriff 500
2 Sergey Alexandrovich Kryukov 410
3 F-ES Sitecore 165
4 Andy Lanng 159
0 OriginalGriff 8,519
1 Sergey Alexandrovich Kryukov 7,667
2 CPallini 4,987
3 Maciej Los 4,686
4 Mika Wendelius 3,566


Advertise | Privacy | Mobile
Web03 | 2.8.150819.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