serial-port

Python / PySerial / Arduino Reading serial data and later writing this exact serial data to the txt file

无人久伴 提交于 2021-02-11 16:21:20
问题 I am making a new post regarding this case because I was misunderstood in the first one... I have a code that reads the serial data from the Arduino and when some specific digits are pressed on the keyboard it writes these digits to the Arduino. This exact code works perfectly when I run it , it reads the serial data and I am able to write data to the Arduino. I use threading and PySerial library to achieve this. from pynput import keyboard import threading import serial import sys ser = None

Python / PySerial / Arduino Reading serial data and later writing this exact serial data to the txt file

老子叫甜甜 提交于 2021-02-11 16:19:52
问题 I am making a new post regarding this case because I was misunderstood in the first one... I have a code that reads the serial data from the Arduino and when some specific digits are pressed on the keyboard it writes these digits to the Arduino. This exact code works perfectly when I run it , it reads the serial data and I am able to write data to the Arduino. I use threading and PySerial library to achieve this. from pynput import keyboard import threading import serial import sys ser = None

Python Multithreaded Queue remaining “empty”

◇◆丶佛笑我妖孽 提交于 2021-02-11 10:00:12
问题 I have a python application that is being built to run some tests that involves using a Null Modem USB-to-USB (Currently using an emulator on PC) to send serial data from one USB port to another. I have written a serial listener as follows: import serial import threading from queue import Queue class SerialPort(object): def ___init__(self, timeout=None): self.ser = serial.Serial(baud=_, stopbits=_, ... timeout=timeout) self.out_q = Queue() self.in_q = Queue() self.THREAD = None def setup(self

Python Multithreaded Queue remaining “empty”

冷暖自知 提交于 2021-02-11 09:58:32
问题 I have a python application that is being built to run some tests that involves using a Null Modem USB-to-USB (Currently using an emulator on PC) to send serial data from one USB port to another. I have written a serial listener as follows: import serial import threading from queue import Queue class SerialPort(object): def ___init__(self, timeout=None): self.ser = serial.Serial(baud=_, stopbits=_, ... timeout=timeout) self.out_q = Queue() self.in_q = Queue() self.THREAD = None def setup(self

C# Serial.DataRecieved data is in pieces

此生再无相见时 提交于 2021-02-11 06:16:49
问题 I'm making a program that is searching all available COM ports for a text "ConnectAlready." Thanks to the help of people on stack overflow I was able to do a majority of it. I print the data i receive on the console, but instead of getting one string "ConnectAlready", i get something like: Conne ct alre ady Each one of those is a different string, and therefore i cannot check if the serial port is reading "ConnectAlready." private void serialPort_DataReceived(object sender,

C# Serial.DataRecieved data is in pieces

社会主义新天地 提交于 2021-02-11 06:16:39
问题 I'm making a program that is searching all available COM ports for a text "ConnectAlready." Thanks to the help of people on stack overflow I was able to do a majority of it. I print the data i receive on the console, but instead of getting one string "ConnectAlready", i get something like: Conne ct alre ady Each one of those is a different string, and therefore i cannot check if the serial port is reading "ConnectAlready." private void serialPort_DataReceived(object sender,

C# Serial.DataRecieved data is in pieces

喜欢而已 提交于 2021-02-11 06:16:00
问题 I'm making a program that is searching all available COM ports for a text "ConnectAlready." Thanks to the help of people on stack overflow I was able to do a majority of it. I print the data i receive on the console, but instead of getting one string "ConnectAlready", i get something like: Conne ct alre ady Each one of those is a different string, and therefore i cannot check if the serial port is reading "ConnectAlready." private void serialPort_DataReceived(object sender,

How can I get the phone calling number in my Java application?

[亡魂溺海] 提交于 2021-02-10 14:40:26
问题 I am developing a Java application to get the phone calling number. I'm using a USRobotics 5639 modem (caller ID capable) and I do have the caller id service from my phone company. When I use hyperterminal, I get the number, time and date of the call: https://imgur.com/wwwRHa7 But when I try to do the same in my app, I only get the following: ATZ OK AT+VCID=1 OK This is what I have at the moment: import gnu.io.CommPortIdentifier; import gnu.io.PortInUseException; import gnu.io.SerialPort;

How can I get the phone calling number in my Java application?

我的梦境 提交于 2021-02-10 14:38:39
问题 I am developing a Java application to get the phone calling number. I'm using a USRobotics 5639 modem (caller ID capable) and I do have the caller id service from my phone company. When I use hyperterminal, I get the number, time and date of the call: https://imgur.com/wwwRHa7 But when I try to do the same in my app, I only get the following: ATZ OK AT+VCID=1 OK This is what I have at the moment: import gnu.io.CommPortIdentifier; import gnu.io.PortInUseException; import gnu.io.SerialPort;

Pipe One Serial Port to Another in Linux [closed]

本小妞迷上赌 提交于 2021-02-10 09:30:10
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Improve this question I am looking for a means to pipe one serial ports data (regardless of data type) to another serial port. In my case I am trying to take in data from one serial port and output it through a radio connected to another serial port in real time. I already know what