I need to automatically configure a MC7455 M2M modem that will be installed on Windows 10 computers around the US and Canada. Depending on where the computer will be located, the carrier that the computer will use will be based on the signal strength of the carrier in that area.
I need to perform the following via an automated process;
- Detect which carrier’s SIM card that is installed on the modem
- Apply the appropriate APN based on the detected carrier.
- Once the APN is applied, automatically connect to the cellular network with that APN and only use the custom APN.
I can accomplish part 1 by using the at+iccid command and looking for the issuer identifier in the iccid.
Once i have the carrier confirmed, I can use the at+cgdcont command to configure the custom APN for that carrier.
The trouble I am running into now is that it does not automatically connect once the APN is applied, unless I restart the modem with at!reset.
I’ve also noticed that that it will intermittently connect with a different APN such as “broadband” or “lwaactivate”.
Is there a command I can issue to connect to the applied APN without having to restart the modem?
Also this must be accomplished via an automated process. Since I’m using windows, I’ve been successful with using powershell to access the modem and send the appropriate AT commands. Once I’ve determined that the Windows computer has an internet connection, i disable the configuration script so doesn’t occur every time the computer starts.