Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
hi all,
i have some problems.
the case is, i want to transmitted some data with serial RS-232 to my project windows Form application.
i send that data using microcontroller AVR.
all data is (temperature, humidity , air pressure , and RPM speed)
( float data, int data , int data , int data )
 
on my GUI, i will receive all data, and than will show all data like control panel.
my problem is,,
1. can this case will be reality??
2. if this can, how to receive all data and show to my GUI and view like control panel. because i tested it to receive data in my GUI not a numeric data, and i cant trim all data.
 

can all help me,,,
i'am newbie here.
thanks
Posted 22-Apr-12 14:44pm
Comments
SAKryukov at 22-Apr-12 22:47pm
   
Where is you code? Do you use SerialPort class or so something or low-level? how? The questions are not clear. Reality... trim... not a numeric... what?
--SA
tetuko99 at 23-Apr-12 2:01am
   
i'am sorry for that.
i can't explain with good sense.
lukeer at 23-Apr-12 3:03am
   
Then try to explain by showing the relevant code parts. There must be
1. one part to receive the data and
2. one part to display the data.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

First of all serial communication with RS232 should have to be reliable. no exception.
 
Now splitup your problem in to three parts
1. General Protocol, what data mean what. Say you are sending temperature, humidity. both are floating point data, how would you know? you will have to identify them properly.
2. Micro-controller part. Develop micro-controller application which will transfer collect data and send it to your computer. clarify it make sure it works.
3. Desktop application part: If you have proper method to identify your data then there is lots solution you will get on internet to program RS232 Serial Port
  Permalink  
v2

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 295
1 OriginalGriff 273
2 Aajmot Sk 234
3 Marcin Kozub 205
4 Richard MacCutchan 200
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 25 Apr 2012
Copyright © CodeProject, 1999-2014
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