zsquareplusc

Results 44 comments of zsquareplusc

Probably, "no, not using pySerial". Android does not include the device drivers. So even if you plug in a USB-Serial converter, there won't be a `/dev/tty` device for it. Android...

the original code above sends numbers which is not really the idea for `Serial.write()` it expects bytes so depending on what you want to send it may be `port.write('4')` (the...

i think reading all (with `-1`) is no sensible default for a stream. so a difference is unavoidable. read on the serial port will also return fewer bytes when a...

inter byte timeout would ensure that you do not have large delays. but i'm not a fan of `readline`/`s` anyway. i usually have protocols that have more than just command->response...

"hide non-present internal serial ports" was important a few years back when Linux distributions did not use devfs and pre-created 30 or more /dev/ttySx entries... it would be unfortunate to...

it's filtered out by the line checking for "platform" type. however removing this check leads to 30+ non-existing ports reported on the x86 desktop. so just removing that check is...

Ah a difficult topic.. Most operating systems provide a way to report parity errors but not in a consistent way. Though many would support sending a replacement character in case...

I would not change the `__init__` functions parameter, but an additional function to enable parity error reporting would not harm. However to properly support that cross-platform, there should also be...

Callbacks may cause some bad behavior, so i'm not a big fan of such a solution. The problem is when multiple threads are involved, you run into issues (e.g. some...

can not reproduce this Python 2.7.12, on Linux ``` >>> import serial >>> serial.__version__ '3.2.1' >>> s = serial.Serial('/dev/ttyUSB0') >>> s Serial(...) >>> s.close() >>> s Serial(...) >>> q =...