Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyserial char by char io
#1
pyserial is a nifty little module. I'm using it to communicate with 2 serial ports on my ARM eveluation board. It even allows me to send DSR which is essential for me.

However I want to receive from serial port character by character, not wait until a newline char is received as per .readline()
.read() also blocks waiting for a \n

How do I get each character as they arrive?
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,213 Aug-01-2023, 09:36 AM
Last Post: Pedroski55
  How to replace on char with another in a string? korenron 3 2,393 Dec-03-2020, 07:37 AM
Last Post: korenron
  How to remove char from string?? ridgerunnersjw 2 2,596 Sep-30-2020, 03:49 PM
Last Post: ridgerunnersjw
  Sum char word dictionary RavCOder 3 2,391 Nov-08-2019, 01:32 PM
Last Post: perfringo
  The use of escape char \ hishamzero1 2 2,401 Aug-12-2019, 10:20 PM
Last Post: hishamzero1
  First non-repeating char and some errors. blackknite 1 2,304 Jan-06-2019, 02:19 PM
Last Post: stullis
  json.dumps save some unicode chars as code, not char buran 1 2,945 Aug-02-2018, 04:02 PM
Last Post: buran
  how to give your data column names based on char position whyme 7 4,470 Oct-27-2017, 06:45 PM
Last Post: heiner55
  Regex: Remove all match plus one char before all Alfalfa 34 22,696 Mar-27-2017, 03:41 AM
Last Post: nilamo
  Probelm in displaying char. indexwise ShailendraRaghunathPhadke 5 4,618 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