Hello,
Country code and LAC are actually different numbers, the above is incorrect and getting LAC is not quite straightforward, as it is not displayed in the WebUI. SSH access is required. One of the ways to get this information is by executing the following command in SSH:
- gsmctl -A 'AT+CREG?' | cut -d '"' -f 2
The output of AT+CREG? reads as: [Network registration result code],[Registration state],[LAC],[Cell ID],[Access technology]. The command above simply takes LAC part of the result. However, It will return hexadecimal value.
You can also try a different command:
- ubus call gsm.modem0 get_net_reg_stat | grep lac | cut -d '"' -f 4
In order for this data to be available over MODBUS, you will need to create a custom register, which stores the output value of the above commands. For instructions, please refer to the following link: https://wiki.teltonika-networks.com/view/RUT240_modbus_custom_register_block
Best regards,