-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embassy_serial can't transmit a package more than 128bytes #1564
Comments
Have you actually tried transmitting more than 128 bytes? |
Sorry I didn't make it clear. What I mean by this is that UART can't receive more than 128bytes of data
not work here,if i send more than 128bytes data from PC uart tool.
|
When you say this, can you be more clear about "can't receive"? Do you mean in one go? Does the data show up with more calls to Ideally a simple and small reproducible repo would help us figure out what's going on. |
i send 128 hexs It can receive,like this
show in ascii
when i send 129 hex it can' receive,like this
show in ascii
|
Could you provide a minimal reproduction repo so we can attempt to fix it? |
cargo.toml
main.rs
|
send the 130bytes data by hex |
I can reproduce your results but your example should work if you set the rx-fifo-full-threshold to 128 (or less) but you will receive data in multiple chunks. In theory the UARTs can be configured in a more flexible way regarding their usage of UART RAM: We currently don't support that but that's the reason why the thresholds are 8 bit. |
OK, I understand, thanks, I will modify my program to adapt to 128 byte slices |
I debug on embassy_serial example,and I fund a question:
The "set_rx_fifo_full_threshold" in esp32-c2 can set to 0x1FF(511),but the UART_FIFO_SIZE is 128,
I changed the UART_FIFO_SIZE to 256 in uart.rs file,but it not work
I want to transmit package more than 128bytes.
Any help ,thanks!!!
The text was updated successfully, but these errors were encountered: