Cellular auto setup - call programatically

Hi there,

We have a fleet of X3000's that we're about to push some new custom firmware to. As a part of this we are not keeping the existing config on the devices as it deviates too much from existing config.

Is it possible to run the cellular 'auto setup' (which is currently run from the button in the web admin) from the command line? If so, we'd run it from a run-once init script on the custom firmware.

Yes, you can run it from the command line. From the browser dev tools, intercept the http request when you click that button. Once intercepted you can convert it into curl command and execute it from the shell.

Look at this post where I post it similar thing:

gl_modem -B 0001:01:00.0 connect-auto 2>/dev/null

This command might help you
It is equivalent to automatic dialing of web pages

2 Likes

Thank you the gl_modem command works. What is the difference between connect-auto and new-connect-auto?

Where did you see this? I've never seen this before :grinning:

# gl_modem

Usage:<gl_modem> [-D] [-B <bus>] <command> [option]

Command possible:init|connect|connect-auto|new-connect-auto|disconnect|sim-status|sms-config|AT|signal|cells|thermal|wifi_lte_interference


1 Like

oh,thank you
this a bug,Maybe another colleague forgot to delete it

A follow up question: how can I enable SIM auto switch programmatically?

timing_enable       --Periodically check whether the sim card is the preferred slot   0==off 1==on
enable              -- Whether enables dual SIM card failover, that is, the backup card is automatically switched when the network of the main card is unavailable
failover_interval=300    --The failover interval time (Unit: Seconds), which is required when SIM failover is enabled
main_sim              --The main SIM slot, which is required when SIM failover is enabled