QT wiringpi serial communication
i want to use wiringpi for serial communication with qt. i need to read the incoming data continuously. I have read slot and signals but i could not write any working code. Sending data is more easy but i have problem with reading data. I have tried to write first connection like this;
connect(sender, SIGNAL(destroyed()), this, SLOT(objectDestroyed()));
but it doesnt work.
Is there any reason you cannot use the Qt serial library ?
It would provide for reading incoming data continuously very easy.
The terminal program sample will read and show any incoming data.
well, beside serial comm, i will need adc and gpio driving. wiringpi provides these for my embedded platform.
The wiringpi don't use signal and slot so you cannot connect that way.
You should use it like any C/C++ library.
But you could use a Qtimer + a slot and call
int serialDataAvail (int fd) ; to check if anything to read and then call
int serialGetchar (int fd) ;
to get the input.
can the Qt serial library be used for embedded systems? Maybe there is a way to use it...
Well I know people use Qt on this board
so no reason the QSerial should not work.
Do you know if the serial controller is a normal one?
yes, there is only rx tx port on mcu.
well its easy to test if it works. Just take the Terminal example and run
it to see if will setup and open comport.