Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

'UART' object has no attribute 'readall' with the latest firmware #6

Open
Wooopz opened this issue Apr 4, 2020 · 2 comments
Open

Comments

@Wooopz
Copy link

Wooopz commented Apr 4, 2020

Hello,
I just upgrade the firmware of my wipy 3 to Pycom MicroPython 1.20.2.rc6
and now i have the error : 'UART' object has no attribute 'readall'

Wipy3 with most recent firmware.
uart.readall()
returns AttributeError: 'UART' object has no attribute 'readall'

This is pretty crazy, since it is a documented function that has always been supported: https://docs.pycom.io/firmwareapi/pycom/machine/uart.html

readall is used into serial.py .
what can i do to bypass this error please ?
thanks.

@Andi-Ro
Copy link

Andi-Ro commented Apr 15, 2020

Hello,
While facing the same error, i downgraded the firmware of my WiPy to version 1.18.1 and this seems to work.
BUT...this is only a temporary solution as the problem resides in the serial library.
This workaround comes from this post : https://forum.pycom.io/topic/3127/clearing-uart-buffers/7
Using the latest stable firmware, i can confirm that using uart.read() instead of uart.readall(), does not work.
It would be very nice if someone with experience in these matters would fix this.

@CesarChavezRico
Copy link

Hi, I can confirm that using uart.read() instead of uart.readall() DOES work. Tested on FiPy version 1.20.2.r1

The workaround suggested in this post in the pycom forum

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants