Hello I have a simple app that needs to use the ttyAMA0 serial port of Raspberry PI 3.
I am using ResinOS dev configuration.
I have checked some posts on the forum and what I tried to do is :
- in the device configuration I have set RESIN_HOST_CONFIG_dtoverlay topi3-miniuart-bt
- in config.txt of the root partition I have set the same variable to the same value
- tried disabling the console output to the UART as suggested in Disable console over Serial in Dev on RPi3? :
#mount -o remount,rw /
#systemctl mask email@example.com
I am still encountering problem when trying to read data from that serial port , specifically I am using libmodbus to read registers from a modbus device. the app works when I run it on the native Raspberry PI OS.
do you have any suggestions I could try ?