June-6th-2019, 11:33 AM
Hello Lukas,
the Raspberry's "mini UART (UART1)" the RS485 module is connected to supports the function "AUTO_RTS". So in best case it should work like it is stated here: https://www.kksystems.com/rtscontrol. This means in turn the RTS signal should be asserted automatically when the "mini UART" is sending. It is de-asserted when the UART is finished sending. This would be exactly the function you need.
I am testing right now to start my local NPIX-RS485 module with BCM17 configured to no longer to work as SW controllable GPIO signal but as RTS signal instead and then to initialized the /dev/ttyS0 configured with parameter AUTO_RTS. If everything is fine then there is no need any longer to control RTS manually by software.
I keep you informed
the Raspberry's "mini UART (UART1)" the RS485 module is connected to supports the function "AUTO_RTS". So in best case it should work like it is stated here: https://www.kksystems.com/rtscontrol. This means in turn the RTS signal should be asserted automatically when the "mini UART" is sending. It is de-asserted when the UART is finished sending. This would be exactly the function you need.
I am testing right now to start my local NPIX-RS485 module with BCM17 configured to no longer to work as SW controllable GPIO signal but as RTS signal instead and then to initialized the /dev/ttyS0 configured with parameter AUTO_RTS. If everything is fine then there is no need any longer to control RTS manually by software.
I keep you informed
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)