Improvements for RS232 serial component
Posted: Thu Apr 15, 2021 2:41 pm
To check if there is any data RS232 serial buffer it must be read, returning 0xFF when there is no data.
This 0xFF impact on USART console data, making it impossible to use. To improve the usage of the UART component, I would like to propose an approach similar to Arduino, where a FIFO (size defined on property) is defined to receive data, allowing the reading on main loop. It will simplifies the implementation.
The RXINT interrupt handling will implemented only on more complex firmware, and it should be set on property.
Another issue is a specific console (to receive and transmit) for communication components, showing TX e RX data with different colors. Injectors are not practical since we need to switch screens and there is no direct relation between what you sent and what you get.
Best regards,
Fernando
This 0xFF impact on USART console data, making it impossible to use. To improve the usage of the UART component, I would like to propose an approach similar to Arduino, where a FIFO (size defined on property) is defined to receive data, allowing the reading on main loop. It will simplifies the implementation.
The RXINT interrupt handling will implemented only on more complex firmware, and it should be set on property.
Another issue is a specific console (to receive and transmit) for communication components, showing TX e RX data with different colors. Injectors are not practical since we need to switch screens and there is no direct relation between what you sent and what you get.
Best regards,
Fernando