AT+CNUM for Quectel EC25

Forum rules
Use the SEARCH function for related topics PRIOR to posting a new topic on the same subject.
Post Reply
LoneRager
Posts: 7
Joined: Thu Apr 16, 2020 2:25 pm
Has thanked: 0
Been thanked: 0

AT+CNUM for Quectel EC25

Post 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?
User avatar
Didneywhorl
Posts: 3635
Joined: Fri Mar 23, 2018 5:37 pm
Location: USA
Has thanked: 1369 times
Been thanked: 761 times
Contact:

Re: AT+CNUM for Quectel EC25

Post by Didneywhorl »

Im not at my computer, but maybe try

Code: Select all

at+cnum=?
Or

Code: Select all

at+cnum?
User avatar
Didneywhorl
Posts: 3635
Joined: Fri Mar 23, 2018 5:37 pm
Location: USA
Has thanked: 1369 times
Been thanked: 761 times
Contact:

Re: AT+CNUM for Quectel EC25

Post by Didneywhorl »

Are you getting connected to the network?
User avatar
Didneywhorl
Posts: 3635
Joined: Fri Mar 23, 2018 5:37 pm
Location: USA
Has thanked: 1369 times
Been thanked: 761 times
Contact:

Re: AT+CNUM for Quectel EC25

Post 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
LoneRager
Posts: 7
Joined: Thu Apr 16, 2020 2:25 pm
Has thanked: 0
Been thanked: 0

Re: AT+CNUM for Quectel EC25

Post by LoneRager »

Yeah I am connected to the network.
User avatar
Didneywhorl
Posts: 3635
Joined: Fri Mar 23, 2018 5:37 pm
Location: USA
Has thanked: 1369 times
Been thanked: 761 times
Contact:

Re: AT+CNUM for Quectel EC25

Post by Didneywhorl »

Did you try it with a "?" at the end or "=?" at the end?
jhend
Posts: 19
Joined: Sun Jun 24, 2018 4:08 pm
Location: Australia
Has thanked: 0
Been thanked: 12 times

Re: AT+CNUM for Quectel EC25

Post 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.
LoveMeSomeCALTE
Posts: 249
Joined: Sun Jul 05, 2020 2:29 pm
Has thanked: 239 times
Been thanked: 30 times

Re: AT+CNUM for Quectel EC25

Post 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" ?
Post Reply

Return to “Quectel Modems”