Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to develop a Windows Form GUI for my project.
However I am finding it hard to serially communicate my GUI with the microcontroller.
I have tried serial communications with Hyperterminal as of now.
Please help with some samples/examples.
Posted
Comments
SoMad 8-Apr-13 1:12am    
What do you mean by "serially communicate my GUI with the microcontroller"?

Soren Madsen
Nayanmoni Baishya 8-Apr-13 1:15am    
serial communication of the Windows Form with the microcontroller.

1 solution

Im not sure I understand where/what your problem is

If you can communicate successfully to the micro-controller with Hyperterm, then, in your GUI app, surely all you need to do is

a) open up a serial connection - see here
http://msdn.microsoft.com/en-au/library/system.io.ports.serialport(v=vs.110).aspx[^]

b) set the serial connection to various speed, bit, check parameters

c) for a 'setting' on the gui, transmit that using the serial connection
d) read the result back from the serial port

Part (a) depends more or less on how your serial connection is plugged in - you may be talking through a USB-serial bridge for example

Using Hyperterm is a good option - that with the documentation for the microcontroller should give you the parameters for (b), and your manual testing and (again) the microcontroller docco will give you the data you need to write at point (c)

I wouldnt even start with a GUI if it was me - I'd go from Hyperterm to a console mode prototype then to a GUI

'g'
 
Share this answer
 
v2
Comments
Nayanmoni Baishya 8-Apr-13 1:29am    
I did serial communication through Hyperterm.
I just wanted to go to the next step i.e., through GUI.
Is there some kind of problem in controlling a microcontroller through a GUI ?
Garth J Lancaster 8-Apr-13 1:41am    
Ive also updated my response to include a reference to the Serial port class - which (or a derivative) is likely what you'll use from your GUI ..
Garth J Lancaster 8-Apr-13 1:35am    
there's no problem as all - Ive given you the steps a-d
Nayanmoni Baishya 8-Apr-13 2:04am    
Okay,I'll try it.
Thank you.

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