Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Comments
Sergey Alexandrovich Kryukov 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 23-Apr-12 2:01am    
i'am sorry for that.
i can't explain with good sense.
lukeer 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

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
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900