Posted inRaspberry Pi

Raspberry Qt – Part 10

You need a communications protocol But isn’t RS-232 our communications protocol? Well, it is the communications transport layer. If you read through the code you will see I set the baud rate to 9600 using a data/character protocol of 8 data bits No parity bits and 1 stop bits commonly labeled as 8-N-1. So isn’t our protocol 8-N-1? No. That is the data transmission protocol for the transport layer it is not a communications protocol. … Raspberry Qt – Part 10Read more

Posted inRaspberry Pi

Raspberry Qt – Part 9

Making the serial port actually work By default your Pi has a getty/mgetty process enabled. There are many out of date instructions about disabling it. Please pay attention to the date of the post when looking for advice. The Pi world is fast changing. While those instructions were good at one time they are invalid now just as these instructions may well be invalidated in the future. Open a terminal window and type sudo raspi-config … Raspberry Qt – Part 9Read more

Posted inRaspberry Pi

Raspberry Qt – Part 8

Installing Qt on the Raspberry Pi Once again I will rant about the piecemeal convoluted expert friendly process of installing Qt 5.x. That becomes painfully obvious when you attempt to install on a Pi. Rather than give you a bunch of convoluted instructions I’m simply going to show you the boxes I had checked in Synaptic package manager. If you haven’t already done so on your Pi, you need to install the Synaptic Package Manager. … Raspberry Qt – Part 8Read more

Posted inRaspberry Pi

Raspberry Qt – Part 7

Finding the serial port There is one chunk of the code we really do need to discuss and that is the snippet of how the application chooses its serial port beginning around line 48 in serialthread.cpp. I even put a comment in the code to explain why it looks the way it does.     // One cannot be certain about order if more than one serial port is on the system.     // My HP … Raspberry Qt – Part 7Read more

Posted inRaspberry Pi

Raspberry Qt – Part 6

Logging information in Linux In the zip file you will notice logikallogger.cpp and its header file. This is a class I have written over and over through the years, even before I got into Qt. Any time you are developing for an OS which has a central log system as Linux does you should have a class like this in your application. Yes, I know many in the C++ world decry the use of a … Raspberry Qt – Part 6Read more