Closed davesto closed 5 years ago
@davesto The MACHUART_RX_BUFFER_LEN
is set to 512 in the development firmware starting from v1.20.0.rc0
and you are using v1.20.0.rc8
so I believe the UART Rx buffer is filled at 512 , however as of v1.20.0.rc12, we made the rx buffer size configurable via Micropython see 81167ed.
so please try testing with
uart = machine.UART(
1, baudrate=9600, bits=8, parity=None, stop=1, pins=('P9', 'P10'), rx_buffer_size=<buff_size>)
on v1.20.0.rc12.1 and see if that fixes the problem.
Thanks
(sysname='FiPy', nodename='FiPy', release='1.20.0.rc8', version='v1.9.4-7b83c6d on 2019-03-06', machine='FiPy with ESP32', lorawan='1.0.2', sigfox='1.0.1')
The UART receive buffer seems to fill after ~600 bytes of data have been received In machuart.c, MACHUART_RX_BUFFER_LEN is defined as 4096 but the buffer seems to run out of steam well before that.
Test configuration is an Expansion board with pin 9 wired to pin 10. Test code transmits N bytes, reads N bytes and bails when receive data is inconsistent.
Test code:
Test output: