The supposition was correct, on the UART the transmitted data at 19200b is close to the expected times.
I send 3 values as Byte (1,5,255) and they are read correctly.
Something is probably wrong with the UART.c module, because it doesn't change None to Even .
But.
Lua adds two values 62,32 from each other and crashes.
That is, prompt(62) and (32) comes in, ESP stops responding only unplugging, revives ESP.
As for the project, I am modifying an electrical management system at home, made a few years ago. Several components have been changed and I need to modify the software. The communication with the system was via GSM and now via ESP and with a local network with the possibility to go out to the world. Part of the network works on 485 Modbus, part in my protocol, I also want to change and standardise this. On top of that, I still have Zamel's EXTA Free integrated with ORNO.
[/code]
I did not give up, I was still looking for a solution to the problem of generating fast pulses in LUA ESP and after many attempts, I found a solution to the topic.
Well, the first fundamental issue is the Firmware. I was using the Custom version, where there are most simply errors in the C syntax. Just use, the "full" version, the Firmware of 2015.07 and the function:
works correctly.
Please note that the total time included in the table must not exceed 1,000,000
This was the cause of the whole problem, so I consider the topic closed and finally resolved.