We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

hippy
Posts: 19831
Joined: Fri Sep 09, 2011 10:34 pm

Re: Uart.flush() not enough for reliable transmission of last byte

Fri Nov 07, 2025 7:45 am

As suggested use 'time.sleep_us(1000)' and then reduce that to discover what delay is actually needed to achieve non-corrupt reception.

What value the received checksum has, and what it should have been, may give some insight into what sort of corruption is occurring, and perhaps help explain why.

jimseng
Posts: 167
Joined: Mon Jul 02, 2012 11:33 am

Re: Uart.flush() not enough for reliable transmission of last byte

Fri Nov 07, 2025 11:12 am

So I'm really sorry but I just put the latest firmware on my PcioW and it is working fine. I thought I had already done that on this one. Obviously not. Sorry to have wasted your time.

hippy
Posts: 19831
Joined: Fri Sep 09, 2011 10:34 pm

Re: Uart.flush() not enough for reliable transmission of last byte

Fri Nov 07, 2025 11:25 am

jimseng wrote:
Fri Nov 07, 2025 11:12 am
Sorry to have wasted your time.
No need to apologise to me. Problems, real or not, usually lead me on an adventure where I learn about aspects of MicroPython that I have never looked at before.

Glad to hear it's all working.


Return to "MicroPython"

AltStyle によって変換されたページ (->オリジナル) /