TRB140 uci set network.mob1s1a1 does not persist

Hi,

We use a custom script to program a fleet of TRB140 devices with settings via ssh and uci commands.

Up until recently we were on firmware TRB1_R_00.07.02.7 but recently received a device on a newer firmware version TRB1_R_00.07.03.4. We are unable to downgrade to the older firmware version (see TRB140 Failed Firmware Downgrade and Bricked - #3 by Daumantas). So we tried the same commands on the new firmware and they all work, except for the ones shown below:

> uci show network.mob1s1a1.apn
network.mob1s1a1.apn='telstra.internet'
> uci set network.mob1s1a1.apn=telstra.corp

> uci show network.mob1s1a1.auth
network.mob1s1a1.auth='none'
> uci set network.mob1s1a1.auth=pap

> uci show network.mob1s1a1.username

> uci set network.mob1s1a1.username=xxxxxx

> uci show network.mob1s1a1.password

> uci set network.mob1s1a1.password=xxxxxx

> uci show rms_connect_mqtt.rms_connect_mqtt.enable

> uci set rms_connect_mqtt.rms_connect_mqtt.enable=0
ERROR: uci: Entry not found!

> uci commit

> reload_config

There are some other commands which did persist, so I have not included them above for brevity.

Obviously there is a ERROR for the rms_connect_mqtt.rms_connect_mqtt.enable setting.

But more of a concern is the network.mob1s1a1.* setting we use for our APN credentials for each device. It seems to set them without any errors, but after the uci commit and the reload_config the settings are back to the factory defaults.

So we were able to go in then via the Web UI and configure the above settings, they did persist and that’s fine. But we would like to update our script so he whole process can once again be automated.

Regards,
Kim

Hello,

To insert a manual APN, you first need to disable Auto APN. So the correct sequence of commands is:

#setting the APN
uci set network.mob1s1a1.auto_apn='0'
uci set network.mob1s1a1.apn='telstra.corp'
uci set network.mob1s1a1.auth='pap'
uci set network.mob1s1a1.username='xxxxxx'
uci set network.mob1s1a1.password='xxxxxx'
uci commit network

#disabling RMS
uci set rms_mqtt.rms_connect_mqtt.enable='0'
uci commit rms_mqtt

#restarting the services for changes to take effect
/etc/init.d/rms_mqtt restart
/etc/init.d/network restart

I’d recommend leaving the network service restart as the last command, as it will temporarily break the connection with all LAN and WAN devices, thus if you’re executing the commands via SSH, the rest will not be finished.
Additionally, don’t forget to use the quotes when inserting values using uci.

Best regards,

1 Like

We were were using the following commands but after the network.mob1s1a1 commands for disabling the auto APN:

        "simcard.@sim[0].auto_apn": "0",
        "simcard.@sim[0].force_apn": "-1",  # Needed to be 1 for firmware vesions < 07.00.1
        "simcard.@sim[0].service": "auto

But I will try the sequence you have provided. Will we still need the simcard.* commands also?

No, the simcard configuration no longer includes the APN as it was moved to network. Here are the remaining options in simcard:

simcard.@sim[0]=sim
simcard.@sim[0].modem='2-1'
simcard.@sim[0].position='1'
simcard.@sim[0].primary='1'
simcard.@sim[0].iccid='xxxxxxxxxxxxxx'
simcard.@sim[0].mbn='ROW_Commercial'
simcard.@sim[0].deny_roaming='0'
simcard.@sim[0].service='lte_nr5g'
simcard.@sim[0].enable_sms_limit='0'
simcard.@sim[0].signal_reset_enabled='0'
simcard.@sim[0].operlist='0'
simcard.@sim[0].band='auto'
simcard.@sim[0].volte='off'
simcard.@sim[1]=sim
simcard.@sim[1].modem='2-1'
simcard.@sim[1].position='2'
simcard.@sim[1].volte='auto'
simcard.@sim[1].primary='0'
simcard.@simman[0]=simman
simcard.@simman[0].free='5'
simcard.@simman[0].info_modem_id='2-1'
simcard.@simman[0].msg_storage='sm'

And the network config contains these options:

network.mob1s1a1=interface
network.mob1s1a1.proto='wwan'
network.mob1s1a1.modem='2-1'
network.mob1s1a1.metric='4'
network.mob1s1a1.sim='1'
network.mob1s1a1.dhcpv6='0'
network.mob1s1a1.pdptype='ip'
network.mob1s1a1.method='nat'
network.mob1s1a1.pdp='1'
network.mob1s1a1.pref_apn='479'
network.mob1s1a1.delegate='1'
network.mob1s1a1.force_link='0'
network.mob1s1a1.auto_apn='1'

Best regards,

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.