Search found 5 matches

by Aldo_Lodos
Mon Nov 02, 2020 12:39 pm
Forum: ESP32 Arduino
Topic: Issue with the XMIT process of SerialHardware (TX buffering)
Replies: 0
Views: 1679

Issue with the XMIT process of SerialHardware (TX buffering)

Hello

I have an issue with the XMIT process of SerialHardware on an ESP32 TTGO T-Display
On a 1200 bauds com I receive 10 to 15 byte messages separated by 20 to 60ms of silence
The skecth is simple : read bytes on port 1 and write them on port 2 as soon as as they arrive

Each time I receive the ...
by Aldo_Lodos
Sun Nov 01, 2020 12:27 am
Forum: ESP32 Arduino
Topic: Question on Serial port with hardware Lib (arduino IDE)
Replies: 5
Views: 6602

Re: Question on Serial port with hardware Lib (arduino IDE)

the explaination is :

The Serial() driver code uses the 128 byte hardware fifo's of the UART. There are two case that trigger the emptying of the Fifo.:

The UART hardware receives 112 or more bytes.
Or, if the UART sees the receive pin inactive for two byte periods it triggers an interrupt to ...
by Aldo_Lodos
Fri Oct 30, 2020 9:41 pm
Forum: ESP32 Arduino
Topic: Question on Serial port with hardware Lib (arduino IDE)
Replies: 5
Views: 6602

Re: Question on Serial port with hardware Lib (arduino IDE)

I tried to send 120 bytes in a row,
MySerial1.available () waits to receive the first 112 bytes before returning a value > 0 (112 in fact),
which means almost 1s delay before to be able to read the first byte !
IS there a way to change this behaviour and to read the bytes as they arrive ?

1 4 11 ...
by Aldo_Lodos
Fri Oct 30, 2020 7:01 pm
Forum: ESP32 Arduino
Topic: Question on Serial port with hardware Lib (arduino IDE)
Replies: 5
Views: 6602

Re: Question on Serial port with hardware Lib (arduino IDE)

Yes I did with this code


long m;
void loop() {

if (MySerial1.available()) {
SERIAL_PRINTDEC(millis()-m);
m = millis();
Serial.print(" ");
Serial.print(MySerial1.available());
byte x = MySerial1.read();
Serial.print(" ");
SERIAL_PRINTHEX(x);
Serial.println();
}
}


here is the ...
by Aldo_Lodos
Fri Oct 30, 2020 1:09 pm
Forum: ESP32 Arduino
Topic: Question on Serial port with hardware Lib (arduino IDE)
Replies: 5
Views: 6602

Question on Serial port with hardware Lib (arduino IDE)

Hello,
i'm trying a simple sketch to receive date on a 1200 bauds serial port using the hardware.h library
The data sent are a continous serie of 3 bytes espaced by 50 ms of silence
My receive process on the ESP32 (TTGO T-Display) is as follow :


#include <HardwareSerial.h>

#define SERIAL ...

Go to advanced search