Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wrong data reading on uart
#3
I would suggest first trying to communicate with your FPGA
using a terminal emulator like Putty.

The only purpose of doing this is to assure that the device is working correctly prior to attempting communications with python.

asyncio is not the way to go with a simple serial connection, it's designed for concurrent processing with many devices.

if all is well with putty (or other terminal emulator), find an example code like that found in http://www.varesano.net/blog/fabio/seria...s%20python

FYI:
In the future, when you have a lot of text, space it out a bit more. Many don't like reading everything compressed into one clump, and it might be cause for slow response.
Reply


Messages In This Thread
wrong data reading on uart - by fahri - Sep-16-2020, 12:11 PM
RE: wrong data reading on uart - by fahri - Sep-17-2020, 02:18 PM
RE: wrong data reading on uart - by Larz60+ - Sep-17-2020, 02:52 PM
RE: wrong data reading on uart - by fahri - Sep-29-2020, 06:03 AM
RE: wrong data reading on uart - by Larz60+ - Sep-29-2020, 07:25 AM
RE: wrong data reading on uart - by fahri - Sep-29-2020, 08:41 AM
RE: wrong data reading on uart - by Larz60+ - Sep-29-2020, 03:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UART write binary code trix 3 384 Apr-28-2024, 04:57 PM
Last Post: deanhystad
  UART & I2C slow down a loop trix 4 705 Dec-28-2023, 05:14 PM
Last Post: trix
  Reading All The RAW Data Inside a PDF NBAComputerMan 4 1,435 Nov-30-2022, 10:54 PM
Last Post: Larz60+
  Am I wrong or is Udemy wrong? String Slicing! Mavoz 3 2,711 Nov-05-2022, 11:33 AM
Last Post: Mavoz
  Reading Data from JSON tpolim008 2 1,148 Sep-27-2022, 06:34 PM
Last Post: Larz60+
  How to clean UART string Joni_Engr 4 2,574 Dec-03-2021, 05:58 PM
Last Post: deanhystad
  Help reading data from serial RS485 korenron 8 14,340 Nov-14-2021, 06:49 AM
Last Post: korenron
  Help with WebSocket reading data from anoter function korenron 0 1,366 Sep-19-2021, 11:08 AM
Last Post: korenron
  Fastest Way of Writing/Reading Data JamesA 1 2,243 Jul-27-2021, 03:52 PM
Last Post: Larz60+
  UART Serial Read & Write to MP3 Player Doesn't Work bill_z 15 5,976 Jul-17-2021, 04:19 PM
Last Post: bill_z

Forum Jump:

User Panel Messages

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