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
Serial2‘s performance is inconsistent with Serial1 in high baud rate(>=2M) #187
Comments
Hello, hope this message finds you well. Congrats to your first Issue! We will review it as soon as possiable. Feel free to have a look at https://www.amebaiot.com/en/ameba-arduino-summary/ for more information |
@huangbenlsl |
for test,the length of packet maybe larger than 120 bytes。 |
for test result |
Thanks,usb2ttl module maybe causes this problem,but when connect amb23 with a STM32F405 bord,the problem still exists。 |
arduino3.1.6
AMB23
Serial2‘s performance is inconsistent with Serial1 in high baud rate(>=2M)。
void threadB(void* pvParameters) {
int recv_length;
uint8_t recv_buff[1024];
for (;;) {
recv_length = Serial2.available();
if(recv_length>0)
{
Serial2.readBytes(recv_buff,recv_length);
if(loss_link_count < 200)
{
client.write(recv_buff,recv_length);
}
Serial.print("uart: ");
Serial.print(recv_length);
Serial.print(" ");
Serial.println(recv_buff[0],HEX);
}
else
{
delay(5);
}
}
}
when packet is larger than 66 bytes,Serial1 can receive complete bytes,but Serial2(LP_UART) can't receive complete bytes。
The text was updated successfully, but these errors were encountered: