Hi all,
My team is working on a project for our university that includes the use of a touch screen system to control a laser light system.
I just need some suggestion on what software to use best to program a GUI and that the c167cr will also recognize when sending data to the uC on run-time. Thanks.
"the c167cr will also recognize when sending data to the uC"
What c167cr? What uC?
Will the c167cr be running the GUI? Is "the uC" a separate system? How do they communicate?
Hello,
Since you have not specified details I may assume you going to use 3d party console. Look here: http://www.qsicorp.com/ - they sell stand alone terminals capable to take your code or scripts to drive the console (LabVIEW or qlarity languages supported). This is industrial solution (rugged design, nice-looking, etc.).
Another link is from Segger: www.segger.com/emwin.html - they supply GUI library for embedded projects.
Regards, Nikolay.
Hi,
Sorry if I didn't explain my problems very well. "uC" means microcontroller, that's just my abbreviation for that word. I'm using the phytec's kitCON-C167cr evaluation board that uses keil compiler. I just need some suggestions on what kind of third party program to use to create a gui that keil will also recognize. Thanks.
It's still not clear whether you want this "GUI" to run on the C167cr itself, or on some separate platform with some interface between the two
Ok. Let's say that I'm programming a GUI for the touchscreen system using Visual Basic, Java, C, etc. Since the c167cr is programmed using keil software, which programming language would be most effective to communicate between the touchscreen and the c167cr controller on run-time? So basically to answer your question, yea I want this GUI to run on the c167cr itself. My only problem is the interface between the touchscreen and the c167cr. I don't know if this sounds any clearer to you, but I'll explain it a little better if need be. Thanks again.
"my only problem is the interface between the touchscreen and the c167cr."
Exactly - so the GUI itself is entirely irrelevant!
You have the c167cr board so you must know what interfaces are available: presumably there's an RS232 serial interface? Any others - USB, etc?
Once you've decided what physical interface to use (RS232, or whatever), then you need to devise some protocol for the communication between the PC and the microcontroller.
Will your system require "real-time" communication, or is it just a matter of setting-up a load of options in the GUI, and then just downloading them to the microcontroller?
Thank you. I'm using RS232 serial interface and my system needs to communicate in "real-time". Like for instance, whenever a user touch a button in the screen I need the microcontroller to know that a button is touched and therefore an action is performed. How would keil be programmed to do that? I'm sorry if my explanations are a little vague. I really appreciate the help.
As far as the microcontroller is concerned, this is purely an RS232 serial coms excercise - it makes no difference to the microcontroller whether the other end of the link is driven by a GUI or whatever else.
Presumably, you want a press on a button to send a 'command' to the microcontroller? Will the microcontroller also need to return 'responses' to the PC?
Again, you need to devise some sort of protocol to convey these commands and (possibly) responses between the PC and the microcontroller.
Yess. That's exactly what I want the microcontroller to do: act on a command and response back. I guess my problem is devising that protocol. Any suggestions? Thanks.
"I guess my problem is devising that protocol. Any suggestions?"
You need to start thinking!
Think about:
* What commands does the PC need to send to the microcontroller?
* What parameters/data/options will each command require?
* What responses does the microcontroller need to send to the PC?
* What parameters/data/options will each response require?
* What are the timing constraints?
* Will you encode the messages in some binary format, or use plain ASCII text?
Thanks for those suggestions. I'll definitely think about those.
I know this question has nothing to do with this thread, but is there any feature in keil that lets me know the microcontroller's control cycle time usage when I'm executing blocks of code? Thanks.