|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Serial Communications
Quote:
Maybe a better question would be if you are going to run this on Windows why are you using Qt? If the goal is to make this cross platform you might want to look at mono and glade, but each platform will still have different serial code. Last edited by fowlerm : 28-06-2006 at 18:38. |
|
#2
|
||||
|
||||
|
Re: Serial Communications
Quote:
No, I don't need a cross platform program but Qt is the only program that I have found to date that has a simple, straight-forward interface. Do you have any better suggestions for creating windows GUI? Edit: I am currently downloading Visual C++ Express with .NET 2 Framework. Is this what you had in mind? Last edited by 6600gt : 28-06-2006 at 22:08. |
|
#3
|
|||
|
|||
|
Re: Serial Communications
I was writing a replacement for IFI Loader awhile back.
http://www.chiefdelphi.com/forums/sh...ad.php?t=38853 It's written in Qt (Qt3, however) and should compile for both windows and linux. I used some compiler directives to detect the platform and use the appropriate pieces of code. Look for the files called serialio.cpp and serialio.h in the "loader" folder. It's a class with functions to send and recieve data via the serial port. You should be able to use it as a starting point. I have to warn you though that I have yet to figure out why it doesn't work on Windows XP. As far as I can tell, my code is correct. When I compile it, I don't get any errors. Interestingly the same binary will run correctly on Windows 2000 and WINE, but it will freeze on Windows XP. |
|
#4
|
||||
|
||||
|
Re: Serial Communications
Quote:
|
|
#5
|
||||
|
||||
|
Re: Serial Communications
You can use VC++, but I use C#. You need to look at the System.IO.Ports namespace on MSDN. You are going to want to use the SerialPort class. A couple of examples (in C#) can be found here.
As for the UI, the windows System.Windows.Forms library is very easy to work with and has lots of controls. You can use the Trackbar control (which is the slider) to get input values and then send them to the RC with the serial port. |
|
#6
|
||||
|
||||
|
Re: Serial Communications
First I would like to say thanks to everyone that helped. I just downloaded C# and it seems quite promising for me (a beginner). I am currently playing with it and we will see how far I can before I have questions again.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How technology has impacted communications in your life =) | Nhiem | Chit-Chat | 4 | 20-05-2005 22:36 |
| Spotty Radio Communications! | Mr. Lim | Control System | 12 | 22-02-2005 20:47 |
| Timer 0/Serial Communications? | steven114 | Programming | 2 | 13-02-2005 20:50 |
| Communications via the Programming Port | Larry Barello | Technical Discussion | 9 | 10-06-2003 23:33 |
| Radio Communications... | Dan 550 | General Forum | 9 | 29-12-2001 17:00 |