looking at running a Modbus master on the FX30S and would need to setup the interface properly.
I have found some similar topics but they are years old so doublechecking what is the correct procedure to get this going.
Setup the UART to service RS485
AT!MAPUART=14,1
(from manual)
AT!MAPUART=[,]
can be:
14—RS-485 Linux application (Note: Not available for UART 2)
can be:
1—UART 1 (Default if UART number is not specified)
2—UART 2
Does this does all the setup or I also need to control the GPIO, for some reason I can only find the hardware guide for the FX30S WP85.
How do you activate the internal termination resistor for the FX30S with the wp77?
Manual mention the wp85 GPIO which will not work on the wp77 as this GPIO is not on the sys definitions.
just for anyone else looking into this, following is the command used for activating the RS485 termination resistor for the FX30S: (FX30S user guide page 33):
rs485.py /sys/devices/platform/msm_serial_hsl.0/rs485_term 1
the rs485.py script should be included in the /usr/bin folder