View previous topic :: View next topic |
Author |
Message |
bideshm
Joined: 03 Dec 2007 Posts: 9 Location: India
|
Reading serial data transmitted from coating thickness meter |
Posted: Mon Oct 12, 2009 1:20 am |
|
|
Hi All,
Pardon me if I am asking the below question in incorrect forum.
Please find the previous topic on the same question on...
http://www.ccsinfo.com/forum/viewtopic.php?t=40208
I was trying from few days to read the data transmitted from a coating thickness meter connected to a pc on COM1 port using RS232 protocol.
There is a windows software who collects data correctly from the device mentioned above. Please look at the image...
http://www.flickr.com/photos/41767017@N04/4003447639/
I was trying to read the same data using a windows software written by me but failed. I thought the problem is of configuration settings of COM1 port of my software like baud rate, data bits, parity, stop bits. So I tried to do a prob using a dos command MODE COMm.
The steps followed mentioned below.
1) I started the windows software(supplied with the device) and collects some data while probing different test foils.
2) I run the command MODE COM1 in cmd(you can run cmd applicaiton from start->run of windows) to get the configuration the windows software(supplied with the device) is using.
3) It displayed the following strings
Status for device COM1:
_______________________
Baud: 2400
Parity: None
Data Bits: 8
Stop Bits: 1
Timeout: OFF
XON/XOFF: OFF
CTS handshaking: OFF
DSR handshaking: OFF
DSR sensitivity: OFF
DTR circuit: ON
RTS circuit: ON
Please look at the image...
http://www.flickr.com/photos/41767017@N04/4003447731/
4) So I sets the same configuration in my windows software. And tried to read data from COM1 port, but I get a > character i.e. ascii value of the character is 16. That character is displayed whatever test foil I use to probe. Please look at the image...
http://www.flickr.com/photos/41767017@N04/4003447699/
Please advice me where I am wrong. _________________ Bidesh Mukherjee
Software Engineer
Kolkata |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Oct 12, 2009 12:10 pm |
|
|
Quote: | Pardon me if I am asking the below question in incorrect forum. |
You should have added this question to your existing thread on Coating
thickness measurement, instead of starting a new thread.
Post a link to the user's manual for your meter. |
|
|
bideshm
Joined: 03 Dec 2007 Posts: 9 Location: India
|
Sorry! I would remember that. |
Posted: Mon Oct 12, 2009 11:01 pm |
|
|
Hi PCM programmer,
Thanks for the suggestion.
I would remember that in future.
Thanks and Regards, _________________ Bidesh Mukherjee
Software Engineer
Kolkata |
|
|
|