serial-port

PyQt readyRead: set text from serial to multiple labels

PyQt readyRead: set text from serial to multiple labels Question: In PyQt5, I want to read my serial port after writing (requesting a value) to it. I’ve got it working using readyRead.connect(self.readingReady), but then I’m limited to outputting to only one text field. The code for requesting parameters sends a string to the serial port. …

Total answers: 2

Using serial ports over bluetooth with micro bit

Using serial ports over bluetooth with micro bit Question: I have correctly got a microbit working with serial communication via COM port USB. My aim is to use COM over bluetooth to do the same. Steps I have taken: (on windows 10) bluetooth settings -> more bluetooth settings -> COM ports -> add -> incoming …

Total answers: 1

Python – Class from Serial

Python – Class from Serial Question: how do I create a class that Inheritates from serial using the python serial module? I need to create a module so another user can import to his code and create an object by just passing the COM. This is my module, called py232 from serial import Serial class …

Total answers: 1

Two threads reading/writing on the same serial port at the same time

Two threads reading/writing on the same serial port at the same time Question: Imagine we have a thread reading a temperature sensor 10 times per second via USB serial port. And, when a user presses a button, we can change the sensor mode, also via USB serial. Problem: the change_sensor_mode() serial write operation can happen …

Total answers: 1

Serial Communication – Why isn't this C program behaving like this Python program?

Serial Communication – Why isn't this C program behaving like this Python program? Question: I have two programs that communicate through a serial USB interface with a CNC machine running grbl. The first program, written in Python using the pyserial library, produces intelligible output: b’okrn’ b’okrn’ The second program, written in C using the libserialport …

Total answers: 1

Python Shell: writing one byte and reading decimal data from a serial port

Python Shell: writing one byte and reading decimal data from a serial port Question: Problem Description: I am trying to retrieve all data stored on a device using rs232. How?: For this specific device, I need to: Step 1: send one byte (0x80) – uInt8 (8-bit unsigned integer) through a serial port (COM5) and expect …

Total answers: 1

Serial communication between python, arduino and hairless MIDI

Serial communication between python, arduino and hairless MIDI Question: I want to send a message from python via serial to arduino uno and then from arduino to hairless MIDI to control LMMS software. The problem is that the communication in both cases goes through port COM4. Is it somehow possible to get data from python …

Total answers: 1

Send Data to POS from PC through rs232

Send Data to POS from PC through rs232 Question: I have a point of sale and I try send to POS the amount to be collected with the card through rs232. But don’t work and i not understand the documentation. I tried to send exactly from documentation example , but POS stay in PROCESSING and …

Total answers: 1

In the python serial port program, What should I do with 'b'?

In the python serial port program, What should I do with 'b'? Question: The serial port program attempted to print the data from the Python Let me show you the code I used. import serial import time ser =serial.Serial(port=”COM1″, baudrate=926100, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE, timeout=20) ser.isOpen() ## open port print (“Sensortag’s connected Succesfully!.”) while 1: res1 =ser.readline() …

Total answers: 1