Hello again.
This time there is a problem that I expose:
I am using the second port of an ESP32, it seems to work correctly, I can send and receive data as normal.
When analyzing the times of the ESP32, I observe that this block of instructions take between 4 and 5 ms in each program cycle of the ESP32, which is not normal.
This piece of code is executed once at the start of the program.
Since I run this code, the program stops for about 4ms every time I activate port forwarding.
The electronic schematic is very simple.
Pin 17.TX
Pin 16.RX
Pin 18. Enable transmission
Interestingly every time I activate the transmit pin the ESP32 stops doing things for about 4ms
I am attaching the parser plot. It is as if it were waiting for characters to enter through the serial port.
Just by commenting on this instruction, the ESP32 times return to normal, but of course I do not receive the communications from the port.
attached image
It's like the serial port is started by software not hardware.
I clarify that the upper signals are oscillating once per cycle of the program
As always any help is welcome.
Thank you so much
This time there is a problem that I expose:
I am using the second port of an ESP32, it seems to work correctly, I can send and receive data as normal.
When analyzing the times of the ESP32, I observe that this block of instructions take between 4 and 5 ms in each program cycle of the ESP32, which is not normal.
TX2.Initialize(17,TX2.MODE_OUTPUT) ' Pin de TX
RX2.Initialize(16,RX2.MODE_INPUT_PULLUP) ' Pin de RX
RunNative("SerialNative2", Null) ' Puerto Serie del VF
PS2.Initialize(SerialNative2, "VF_Newdata","VF_Error") ' Inicializa Puerto Serie 2
#if C
void SerialNative2(B4R::Object* unused)
{
::Serial2.begin(115200);
b4r_main::_serialnative2->wrappedStream = &::Serial2;
}
#End If
This piece of code is executed once at the start of the program.
Since I run this code, the program stops for about 4ms every time I activate port forwarding.
The electronic schematic is very simple.
Pin 17.TX
Pin 16.RX
Pin 18. Enable transmission
Interestingly every time I activate the transmit pin the ESP32 stops doing things for about 4ms
I am attaching the parser plot. It is as if it were waiting for characters to enter through the serial port.
Just by commenting on this instruction, the ESP32 times return to normal, but of course I do not receive the communications from the port.
attached image
TX2.Initialize(17,TX2.MODE_OUTPUT) ' Pin de TX
RX2.Initialize(16,RX2.MODE_INPUT_PULLUP) ' Pin de RX
RunNative("SerialNative2", Null) ' Puerto Serie del VF
'PS2.Initialize(SerialNative2, "VF_Newdata","VF_Error") ' Inicializa Puerto Serie 2
It's like the serial port is started by software not hardware.
I clarify that the upper signals are oscillating once per cycle of the program
As always any help is welcome.
Thank you so much