AT+CNUM for Quectel EC25
Forum rules
Use the SEARCH function for related topics PRIOR to posting a new topic on the same subject.
Use the SEARCH function for related topics PRIOR to posting a new topic on the same subject.
- Didneywhorl
- Posts: 3635
- Joined: Fri Mar 23, 2018 5:37 pm
- Location: USA
- Has thanked: 1369 times
- Been thanked: 761 times
- Contact:
- Didneywhorl
- Posts: 3635
- Joined: Fri Mar 23, 2018 5:37 pm
- Location: USA
- Has thanked: 1369 times
- Been thanked: 761 times
- Contact:
- 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
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
Spitballing while I wait for a test to finish at work
- Didneywhorl
- Posts: 3635
- Joined: Fri Mar 23, 2018 5:37 pm
- Location: USA
- Has thanked: 1369 times
- Been thanked: 761 times
- Contact:
-
- 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
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.
-
- Posts: 249
- Joined: Sun Jul 05, 2020 2:29 pm
- Has thanked: 239 times
- Been thanked: 30 times
Re: AT+CNUM for Quectel EC25
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" ?