vamzi Posted December 25, 2022 Share Posted December 25, 2022 i am using arduino ide, my plan is to keep the eps32 connected to rock3a, and access the debug logs from the browser, this is the code i have used to see if the esp32 is able to read data form rock 3a, #define RXD2 16 #define TXD2 17 void setup() { // Note the format for setting a serial port is as follows: Serial2.begin(baud-rate, protocol, RX pin, TX pin); Serial.begin(115200); //Serial1.begin(9600, SERIAL_8N1, RXD2, TXD2); Serial2.begin(15000000, SERIAL_8N1, RXD2, TXD2); Serial.println("Serial Txd is on pin: "+String(TX)); Serial.println("Serial Rxd is on pin: "+String(RX)); } void loop() { //Choose Serial1 or Serial2 as required while (Serial2.available()) { Serial.print(char(Serial2.read())); } } on serial monitor i am getting the data but only able to see boxes you can see the same in the image attached can esp32 read the serial debug uart messages? what am i doing wrong? my rock 3b keeps hanging after a while and i am unable to pinpoint the exact reason it hangs, so only trying to this 0 Quote Link to comment Share on other sites More sharing options...
ScottP Posted January 23, 2023 Share Posted January 23, 2023 You have too many zeros on the speed its 1500000 ie 1.5Mbps 0 Quote Link to comment Share on other sites More sharing options...
Alexei Shcherbakov Posted January 27, 2023 Share Posted January 27, 2023 Max theoretical esp32 chip UART speed is 5Mbps, but nobody can reach this speed - max "config speed" is 921600 and even on 460800 you can get garbage and data loss 😞 For RockPi you need 1.5Mbps. I don't know why Radxa need such speed, may be they think "fast is better" I use BeagleBone single board computer for connecting to my RockPi3A (because HDMI not working in modern kernels), and it is working perfectly. BeagleBone has fastest UARTs avaliable in pocket size 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.