CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Reading serial data transmitted from coating thickness meter

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bideshm



Joined: 03 Dec 2007
Posts: 9
Location: India

View user's profile Send private message Yahoo Messenger MSN Messenger

Reading serial data transmitted from coating thickness meter
PostPosted: Mon Oct 12, 2009 1:20 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Oct 12, 2009 12:10 pm     Reply with quote

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

View user's profile Send private message Yahoo Messenger MSN Messenger

Sorry! I would remember that.
PostPosted: Mon Oct 12, 2009 11:01 pm     Reply with quote

Hi PCM programmer,

Thanks for the suggestion.

I would remember that in future.

Thanks and Regards,
_________________
Bidesh Mukherjee
Software Engineer
Kolkata
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group