Qt serial port baud rate

broken image
broken image
broken image

Println('Received command word : '+ inString)

broken image

Text('received: ' + displayString, 10,50) Int val // Data received from the serial port Here’s the new protocoll based test code for Arduino: String cmd Īnd for the processing side: import rial.* As soon as I use the 38400 Baud speed, the data seems to get lost… I just changed my two sketches to wait for eachother to complete a command. MyPort = new Serial(this, portName, BAUDRATE) String inString // Input string from serial port: Serial myPort // Create object from Serial class The processing side sends an command string to the arduino and there it is returned with a _OK added.Īs soon as I use a speed above 19200 (28800 even crashes) the processing side always claims to receive “null”Ĭould someone please try those two sketches at a high Baud rate?Īnd this one goes into Processing: import rial.* I have a sketch for arduino and one for processing with the exact wrong behavior. I managed to strip down my Problem to a simple example that does not need Qt.