How Do I Find The Mobile Provider From 4G Dongle?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have two or more 4G dongles connected via USB. I have set up multiple configuration files (one for each provider), but short of a visual inspection (which for this project won't be possible in the field) I have no way of knowing which SIM in which dongle is connected to which mobile provider.
Is there a way of interrogating the dongle from the command line - perhaps using the chat command - to ask it which mobile provider it is connected to? Obviously smartphones can do this - they display it, after all. Would this be possible with a dongle?
By the way, this would be before telling the modem to connect to the provider's APN, so I can then call pppd with the provider-appropriate config file.
linux command-line usb modem pppd
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
I have two or more 4G dongles connected via USB. I have set up multiple configuration files (one for each provider), but short of a visual inspection (which for this project won't be possible in the field) I have no way of knowing which SIM in which dongle is connected to which mobile provider.
Is there a way of interrogating the dongle from the command line - perhaps using the chat command - to ask it which mobile provider it is connected to? Obviously smartphones can do this - they display it, after all. Would this be possible with a dongle?
By the way, this would be before telling the modem to connect to the provider's APN, so I can then call pppd with the provider-appropriate config file.
linux command-line usb modem pppd
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What operating system(s) are you using?
– Jeff Schaller
3 hours ago
Linux, which is why I posted it here. :)
– uvdevops
2 hours ago
We have a variety of Unices here, so it helps to narrow it down.
– Jeff Schaller
2 hours ago
And what dongle do you have? Most support AT commands (extended with a lot of custom stuff). In which case, go get its (possibly "confidential") manual. But I once had a 4G dongle that was running itself some version of linux+busybox and working as an actual router -- if presented itself as CDC device no different from an android phone in tethering mode. I could get into it by "exploiting" the php(!) scripts from its web configuration interface ;-)
– mosvy
1 hour ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have two or more 4G dongles connected via USB. I have set up multiple configuration files (one for each provider), but short of a visual inspection (which for this project won't be possible in the field) I have no way of knowing which SIM in which dongle is connected to which mobile provider.
Is there a way of interrogating the dongle from the command line - perhaps using the chat command - to ask it which mobile provider it is connected to? Obviously smartphones can do this - they display it, after all. Would this be possible with a dongle?
By the way, this would be before telling the modem to connect to the provider's APN, so I can then call pppd with the provider-appropriate config file.
linux command-line usb modem pppd
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have two or more 4G dongles connected via USB. I have set up multiple configuration files (one for each provider), but short of a visual inspection (which for this project won't be possible in the field) I have no way of knowing which SIM in which dongle is connected to which mobile provider.
Is there a way of interrogating the dongle from the command line - perhaps using the chat command - to ask it which mobile provider it is connected to? Obviously smartphones can do this - they display it, after all. Would this be possible with a dongle?
By the way, this would be before telling the modem to connect to the provider's APN, so I can then call pppd with the provider-appropriate config file.
linux command-line usb modem pppd
linux command-line usb modem pppd
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 hours ago
Jeff Schaller
35.6k952118
35.6k952118
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 4 hours ago
uvdevops
1
1
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What operating system(s) are you using?
– Jeff Schaller
3 hours ago
Linux, which is why I posted it here. :)
– uvdevops
2 hours ago
We have a variety of Unices here, so it helps to narrow it down.
– Jeff Schaller
2 hours ago
And what dongle do you have? Most support AT commands (extended with a lot of custom stuff). In which case, go get its (possibly "confidential") manual. But I once had a 4G dongle that was running itself some version of linux+busybox and working as an actual router -- if presented itself as CDC device no different from an android phone in tethering mode. I could get into it by "exploiting" the php(!) scripts from its web configuration interface ;-)
– mosvy
1 hour ago
add a comment |
What operating system(s) are you using?
– Jeff Schaller
3 hours ago
Linux, which is why I posted it here. :)
– uvdevops
2 hours ago
We have a variety of Unices here, so it helps to narrow it down.
– Jeff Schaller
2 hours ago
And what dongle do you have? Most support AT commands (extended with a lot of custom stuff). In which case, go get its (possibly "confidential") manual. But I once had a 4G dongle that was running itself some version of linux+busybox and working as an actual router -- if presented itself as CDC device no different from an android phone in tethering mode. I could get into it by "exploiting" the php(!) scripts from its web configuration interface ;-)
– mosvy
1 hour ago
What operating system(s) are you using?
– Jeff Schaller
3 hours ago
What operating system(s) are you using?
– Jeff Schaller
3 hours ago
Linux, which is why I posted it here. :)
– uvdevops
2 hours ago
Linux, which is why I posted it here. :)
– uvdevops
2 hours ago
We have a variety of Unices here, so it helps to narrow it down.
– Jeff Schaller
2 hours ago
We have a variety of Unices here, so it helps to narrow it down.
– Jeff Schaller
2 hours ago
And what dongle do you have? Most support AT commands (extended with a lot of custom stuff). In which case, go get its (possibly "confidential") manual. But I once had a 4G dongle that was running itself some version of linux+busybox and working as an actual router -- if presented itself as CDC device no different from an android phone in tethering mode. I could get into it by "exploiting" the php(!) scripts from its web configuration interface ;-)
– mosvy
1 hour ago
And what dongle do you have? Most support AT commands (extended with a lot of custom stuff). In which case, go get its (possibly "confidential") manual. But I once had a 4G dongle that was running itself some version of linux+busybox and working as an actual router -- if presented itself as CDC device no different from an android phone in tethering mode. I could get into it by "exploiting" the php(!) scripts from its web configuration interface ;-)
– mosvy
1 hour ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I found the answer here. The command to send to the modem is AT+COPS?. The response will be something like
+COPS: 0,0,”Verizon Wireless”,7
OK
I just need to write some scripting now to automate this.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I found the answer here. The command to send to the modem is AT+COPS?. The response will be something like
+COPS: 0,0,”Verizon Wireless”,7
OK
I just need to write some scripting now to automate this.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
I found the answer here. The command to send to the modem is AT+COPS?. The response will be something like
+COPS: 0,0,”Verizon Wireless”,7
OK
I just need to write some scripting now to automate this.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
up vote
0
down vote
I found the answer here. The command to send to the modem is AT+COPS?. The response will be something like
+COPS: 0,0,”Verizon Wireless”,7
OK
I just need to write some scripting now to automate this.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I found the answer here. The command to send to the modem is AT+COPS?. The response will be something like
+COPS: 0,0,”Verizon Wireless”,7
OK
I just need to write some scripting now to automate this.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 hours ago
uvdevops
1
1
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
uvdevops is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
uvdevops is a new contributor. Be nice, and check out our Code of Conduct.
uvdevops is a new contributor. Be nice, and check out our Code of Conduct.
uvdevops is a new contributor. Be nice, and check out our Code of Conduct.
uvdevops is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481127%2fhow-do-i-find-the-mobile-provider-from-4g-dongle%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What operating system(s) are you using?
– Jeff Schaller
3 hours ago
Linux, which is why I posted it here. :)
– uvdevops
2 hours ago
We have a variety of Unices here, so it helps to narrow it down.
– Jeff Schaller
2 hours ago
And what dongle do you have? Most support AT commands (extended with a lot of custom stuff). In which case, go get its (possibly "confidential") manual. But I once had a 4G dongle that was running itself some version of linux+busybox and working as an actual router -- if presented itself as CDC device no different from an android phone in tethering mode. I could get into it by "exploiting" the php(!) scripts from its web configuration interface ;-)
– mosvy
1 hour ago