Answer the question
In order to leave comments, you need to log in
How to get data from serial port?
Guys tell me how to get the data
here is the code
import serial
ser=serial.Serial(port='COM1', baudrate=9600)
while True :
line = ser.readline()
print (line)
Answer the question
In order to leave comments, you need to log in
no paluchitz :) com-port one and two connections to it can not be.
connection from the "back side" of the com port, what you are trying to do is to write your own driver, which will register a virtual com port into the system and work as you need.
do not rosin brains and put https://sourceforge.net/projects/com0com/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question