Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyserial char by char io
#5
(May-15-2018, 08:54 AM)fcagney Wrote: read(1) also blocks waiting for \n.
read(1) blocks until one byte is in the buffer. It doesn't matter which char.

I use pyserial to read data from a radar transceiver. If there is a bug in pyserial,
I won't get usable data. Pyserial works fine with ftdi.

Maybe it's a hardware issue? Have you tried another serial port?
Maybe you try out a usb2tty from ftdi. They have also a python module,
which has a better performance and gives you the ability for bit banging.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
pyserial char by char io - by fcagney - May-14-2018, 04:37 PM
RE: pyserial char by char io - by micseydel - May-14-2018, 07:20 PM
RE: pyserial char by char io - by fcagney - May-15-2018, 08:54 AM
RE: pyserial char by char io - by micseydel - May-15-2018, 07:14 PM
RE: pyserial char by char io - by DeaD_EyE - May-15-2018, 10:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad How to split a String from Text Input into 40 char chunks? lastyle 7 1,166 Aug-01-2023, 09:36 AM
Last Post: Pedroski55
  How to replace on char with another in a string? korenron 3 2,376 Dec-03-2020, 07:37 AM
Last Post: korenron
  How to remove char from string?? ridgerunnersjw 2 2,576 Sep-30-2020, 03:49 PM
Last Post: ridgerunnersjw
  Sum char word dictionary RavCOder 3 2,369 Nov-08-2019, 01:32 PM
Last Post: perfringo
  The use of escape char \ hishamzero1 2 2,390 Aug-12-2019, 10:20 PM
Last Post: hishamzero1
  First non-repeating char and some errors. blackknite 1 2,284 Jan-06-2019, 02:19 PM
Last Post: stullis
  json.dumps save some unicode chars as code, not char buran 1 2,928 Aug-02-2018, 04:02 PM
Last Post: buran
  how to give your data column names based on char position whyme 7 4,425 Oct-27-2017, 06:45 PM
Last Post: heiner55
  Regex: Remove all match plus one char before all Alfalfa 34 22,503 Mar-27-2017, 03:41 AM
Last Post: nilamo
  Probelm in displaying char. indexwise ShailendraRaghunathPhadke 5 4,593 Feb-09-2017, 09:00 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020