Page 1 of 1

AT+CNUM for Quectel EC25

Posted: Thu Apr 23, 2020 6:09 pm
by LoneRager
I am trying to find the number associated with my sim card in a Mikrotik SXT with a EC25-AF Modem. When I run AT+CNUM it returns "OK" but no number. Any ideas?

Re: AT+CNUM for Quectel EC25

Posted: Thu Apr 23, 2020 10:59 pm
by Didneywhorl
Im not at my computer, but maybe try

Code: Select all

at+cnum=?
Or

Code: Select all

at+cnum?

Re: AT+CNUM for Quectel EC25

Posted: Thu Apr 23, 2020 11:01 pm
by Didneywhorl
Are you getting connected to the network?

Re: AT+CNUM for Quectel EC25

Posted: Thu Apr 23, 2020 11:04 pm
by Didneywhorl
AT+CNUM should be right, but I dont think that info is there if your not connected to the network first.


Spitballing while I wait for a test to finish at work

Re: AT+CNUM for Quectel EC25

Posted: Tue Apr 28, 2020 6:19 pm
by LoneRager
Yeah I am connected to the network.

Re: AT+CNUM for Quectel EC25

Posted: Tue Apr 28, 2020 8:10 pm
by Didneywhorl
Did you try it with a "?" at the end or "=?" at the end?

Re: AT+CNUM for Quectel EC25

Posted: Thu Jun 25, 2020 5:00 pm
by jhend
LoneRager wrote: Thu Apr 23, 2020 6:09 pm I am trying to find the number associated with my sim card in a Mikrotik SXT with a EC25-AF Modem. When I run AT+CNUM it returns "OK" but no number. Any ideas?
Most likely the SIM doesn't have the number written on it. In interactions with the provider, the modem uses the IMSI from the SIM, and not the "telephone" number. That doesn't need to be anywhere on the SIM or the modem.

The AT+CNUM commands reads your phone number from slot 1 of the SIM's "own numbers" phonebook.

That's writeable. The problem is the most Quectel modems don't give you access in the way other modems do.

If your number was +123456789, the normal AT command write sequence would be:

AT+CPBS="ON"
AT+CPBW=1,"+123456789",145,"Own Nbr"

Or in national format (without the leading +), the number 23456789 would use the write command:

AT+CPBW=1,"23456789",129,"Own Nbr"

Maybe you could put the SIM in another device which allows the writing of your own number.

Re: AT+CNUM for Quectel EC25

Posted: Mon Jul 06, 2020 6:27 pm
by LoveMeSomeCALTE
LoneRager wrote: Thu Apr 23, 2020 6:09 pm I am trying to find the number associated with my sim card in a Mikrotik SXT with a EC25-AF Modem. When I run AT+CNUM it returns "OK" but no number. Any ideas?
I would like to ask LoneRager which terminal interface they are using to run these commands.

Being unfamiliar with the Mikrotik SXT, does the terminal interface return a stream of responses?

It might not be a proper terminal interface to begin with.

For example, does AT+COPS=? actually return the expected list or just "OK" ?