CN116761154A - Operator name acquisition method and device and computer readable storage medium - Google Patents
Operator name acquisition method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN116761154A CN116761154A CN202310527835.1A CN202310527835A CN116761154A CN 116761154 A CN116761154 A CN 116761154A CN 202310527835 A CN202310527835 A CN 202310527835A CN 116761154 A CN116761154 A CN 116761154A
- Authority
- CN
- China
- Prior art keywords
- sim card
- name
- operator
- determining
- operator name
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000013519 translation Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 238000004891 communication Methods 0.000 claims description 8
- 238000013507 mapping Methods 0.000 claims description 4
- PCTMTFRHKVHKIS-BMFZQQSSSA-N (1s,3r,4e,6e,8e,10e,12e,14e,16e,18s,19r,20r,21s,25r,27r,30r,31r,33s,35r,37s,38r)-3-[(2r,3s,4s,5s,6r)-4-amino-3,5-dihydroxy-6-methyloxan-2-yl]oxy-19,25,27,30,31,33,35,37-octahydroxy-18,20,21-trimethyl-23-oxo-22,39-dioxabicyclo[33.3.1]nonatriaconta-4,6,8,10 Chemical compound C1C=C2C[C@@H](OS(O)(=O)=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H]([C@H](C)CCCC(C)C)[C@@]1(C)CC2.O[C@H]1[C@@H](N)[C@H](O)[C@@H](C)O[C@H]1O[C@H]1/C=C/C=C/C=C/C=C/C=C/C=C/C=C/[C@H](C)[C@@H](O)[C@@H](C)[C@H](C)OC(=O)C[C@H](O)C[C@H](O)CC[C@@H](O)[C@H](O)C[C@H](O)C[C@](O)(C[C@H](O)[C@H]2C(O)=O)O[C@H]2C1 PCTMTFRHKVHKIS-BMFZQQSSSA-N 0.000 description 2
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 229910052742 iron Inorganic materials 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/60—Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/02—Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
- H04W8/08—Mobility data transfer
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
An operator name acquisition method and device, and a computer readable storage medium, wherein the operator name acquisition method comprises the following steps: acquiring a network service state and an international mobile subscriber identity corresponding to the SIM card; and detecting that the network service state is in an air mode state, and determining a target operator name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card. By adopting the scheme, the terminal equipment can acquire the correct operator name, so that the situation that VoWiFi cannot be successfully registered is avoided.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for acquiring an operator name, and a computer readable storage medium.
Background
Currently, wiFi has become a specific implementation of deep supplementary coverage for cellular networks. The technology of providing voice service to users by using WiFi hotspots (abbreviated as VoWiFi) is a major concern in the industry. The user can use WiFi to receive and send short messages.
When the terminal device is in the flight mode, the public land mobile network (Public Land Mobile Network, PLMN) value cannot be obtained, and if the user identification (Subscriber Identity Module, SIM) card does not store the carrier name (Service Provider Name, SPN) file, both the PLMN value and the SPN content in the flight mode are empty (null).
Therefore, in the flight mode, when the terminal device registers VoWiFi, an operator name error may occur, which may further cause that the terminal device cannot register VoWiFi successfully.
Disclosure of Invention
The invention solves the technical problem that in the flight mode, the terminal equipment cannot correctly display the name of an operator, so that the terminal equipment possibly cannot register VoWiFi successfully.
In order to solve the above technical problems, the present invention provides a method for acquiring an operator name, including: acquiring a network service state and an international mobile subscriber identity corresponding to the SIM card; and detecting that the network service state is in an air mode state, and determining a target operator name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card.
Optionally, the detecting that the network service state is an in-flight mode state, determining, based on an international mobile subscriber identity corresponding to the SIM card, a name of a target operator corresponding to the SIM card includes: when the network service state is detected to be in an air mode state and the public land mobile network value and the name content of the operator in the SIM card are determined to be null, the target operator name is determined based on the international mobile subscriber identity corresponding to the SIM card
Optionally, the determining, based on the international mobile subscriber identity corresponding to the SIM card, the name of the target operator corresponding to the SIM card includes: acquiring a mobile country code and a mobile network code from an international mobile subscriber identity corresponding to the SIM card; the target operator name is determined based on the mobile country code and the mobile network code.
Optionally, the determining the target operator name based on the mobile country code and the mobile network code includes: obtaining a pre-configured translation file, wherein the translation file comprises the mobile country code and a mapping relation between the mobile network code and the operator name; and acquiring the name of the target operator from the translation file based on the mobile country code and the mobile network code.
Optionally, the method for acquiring the name of the operator further includes: and when detecting that the carrier name content exists in the SIM card, determining the target carrier name based on the carrier name content in the SIM card.
Optionally, the method for acquiring the name of the operator further includes: and detecting that the network service state is a normal communication state, and determining the target operator name based on the public land mobile network value and the operator name content in the SIM card.
Optionally, after determining the name of the operator corresponding to the SIM card, the method further includes: and carrying out VoWiFi registration based on the operator name.
The embodiment of the invention also provides an operator name acquisition device, which comprises: the acquisition unit is used for acquiring the network service state and the international mobile subscriber identity corresponding to the SIM card; and the determining unit is used for detecting that the network service state is in a flight mode state and determining a target operator name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card.
The present invention also provides a computer readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of any of the operator name acquisition methods described above.
The invention also provides another operator name acquisition device, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the steps of any one of the operator name acquisition methods when running the computer program.
Compared with the prior art, the technical scheme of the invention has the following beneficial effects:
and when the network service state is in the flight mode state, determining a target operator name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card. Therefore, the target operator name corresponding to the SIM card can be accurately obtained, and the situation that VoWiFi cannot be successfully registered due to the fact that the operator name is wrong is avoided.
Drawings
FIG. 1 is a flow chart of a method of carrier name acquisition in an embodiment of the invention;
FIG. 2 is a flow chart of another method of carrier name acquisition in an embodiment of the invention;
fig. 3 is a schematic structural diagram of an operator name obtaining apparatus according to an embodiment of the present invention.
Detailed Description
As described in the background art, in the prior art, when the terminal device registers VoWiFi in the flight mode, an operator name error occurs, which may cause the terminal device to fail to register VoWiFi successfully.
And when the network service state is in the flight mode state, determining a target operator name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card. Therefore, the name of the target operator corresponding to the SIM card can be accurately obtained, and further the situation that VoWiFi cannot be successfully registered due to the fact that the name of the operator is wrong is avoided.
In order to make the above objects, features and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below.
The embodiment of the invention provides a method for acquiring an operator name, and the method is described in detail through specific steps with reference to fig. 1.
Step 101, acquiring a network service state and an international mobile subscriber identity corresponding to the SIM card.
In a specific implementation, after the terminal device is started up, the SIM card executes network access operation. The terminal device may obtain a network service status and an international subscriber identity (International Mobile Subscriber Identity, IMSI) of the SIM card.
Specifically, the terminal device may include a service state tracking (service state tracker) module, and obtains, through the service state tracker module, a network service state and an IMSI corresponding to the SIM card.
Those skilled in the art will appreciate that an IMSI is a number assigned to uniquely identify a mobile subscriber. The IMSI number consists of 15 bits in total, and its structure is as follows: mobile country code, mobile network code, and mobile user identification number, wherein:
the resources of the mobile country code (Mobile Country Code, MCC) are uniformly allocated and managed by the International Telecommunication Union (ITU), and the resources uniquely identify the country to which the mobile user belongs, which is 3 digits in total, and China is 460;
mobile network code (Mobile Network Code, MNC) 2 bits total, chinese mobile system using 00, 02, 04, 07, chinese UNICOM GSM system using 01, 06, 09, chinese telecommunication CDMA system using 03, 05, chinese telecommunication 4G system using 11, chinese iron pass system using 20;
the mobile subscriber identification number (Mobile Subscriber Identification Number, MSIN) is 10 bits in total and has the following structure: 09+M0M1M2M3+ABCD, M0M1M2M3 may have a correspondence with H0H1H2H3 in the mobile subscriber directory number, with four digits of ABCD being freely allocated.
When the mobile subscriber directory number (Mobile Directory Number, MDN) is the number that the calling subscriber needs to dial when the home network mobile subscriber is called, it can be generally interpreted as the number of the terminal device (mobile phone), such as the mobile phone number. The mobile subscriber directory number consists of a Country Code (CC), a Mobile Access Code (MAC), a home identity (HLR) and a mobile subscriber number, H0H1H2H3 being the home identity.
Step 102, detecting that the network service state is in an air mode state, and determining a target operator name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card.
In a specific implementation, the network service state of the terminal device may include a normal communication state, an idle mode state, and the like, where the normal communication state is a state in which the terminal device can normally access the mobile communication network and perform data transceiving transmission, and the flight mode state is a state in which the terminal device is not performing signal transmission and reception.
In a specific implementation, if the terminal device detects that the network service state is an in-flight mode state, it determines whether carrier name (SPN) content exists in the SIM card. If SPN content is present, the target carrier name may be determined based on the SPN content in the SIM card.
If the SPN content does not exist, the terminal equipment can determine the name of the target operator corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card. When the SPN content does not exist in the SIM card, the SPN content in the SIM card is null. In other words, when the SPN content in the SIM card is detected as null, it may be determined that the SPN content does not exist in the SIM card.
As will be appreciated by those skilled in the art, when the terminal device is in the flight mode state, the corresponding PLMN value is null. Therefore, when the terminal equipment detects that the PLMN value and the operator name content in the SIM card are null, the target operator name can be determined based on the international mobile subscriber identity corresponding to the SIM card.
In a specific implementation, the mobile country code and the mobile network code may be obtained from an international mobile subscriber identity corresponding to the SIM card. Further, a target operator name is determined based on the mobile country code and the mobile network code.
Specifically, the terminal device may be preconfigured with a translation file, where the translation file includes a mobile country code and a mapping relationship between a mobile network code and an operator name. And the terminal equipment can find out the name of the target operator from the translation file according to the acquired mobile country code and mobile network code of the SIM card.
For example, the terminal device obtains the mobile country code of 460 and the mobile network code of 02 of the SIM card. In the translation file, the following mapping relationship is configured: the mobile country code is 460, the mobile network code is 02, and the corresponding operator name is china. Thus, the terminal equipment can determine that the target operator name corresponding to the SIM card is China Mobile.
In a specific implementation, if the terminal device detects that the network service state is a normal communication state, the target operator name may be determined based on the PLMN value and the SPN content in the SIM card.
In summary, when the network service state is the flight mode state, the target operator name corresponding to the SIM card is determined based on the international mobile subscriber identity corresponding to the SIM card. Therefore, the target operator name corresponding to the SIM card can be accurately obtained, and the situation that VoWiFi cannot be successfully registered due to the fact that the operator name is wrong is avoided.
The operator name acquisition method provided in the above-described embodiment is described in detail below. Referring to fig. 2, another method for acquiring an operator name in an embodiment of the present invention is given.
Step 201, obtaining a network service state and an IMSI corresponding to the SIM card.
Step 202, determining whether the vehicle is currently in a flight mode state.
In a specific implementation, if the terminal device is currently in the flight mode state, the following step 203 may be executed; if the terminal device is currently in a normal communication state, the following step 206 may be performed.
Step 203, determining whether SPN content exists in the SIM card.
In a specific implementation, if the terminal device determines that the SPN content does not exist in the SIM card, step 204 may be executed; if the terminal device determines that SPN content is present in the SIM card, step 207 may be performed.
Step 204, the mobile country code and the mobile network code are obtained from the IMSI corresponding to the SIM card.
In a specific implementation, as shown in the above embodiment, the IMSI includes a mobile country code and a mobile network code, so the terminal device may directly obtain the mobile country code and the mobile network code from the IMSI of the SIM card.
Step 205, determining the name of the target operator according to the mobile country code and the mobile network code.
In the implementation, the terminal device searches the name of the target operator from the translation file according to the acquired mobile country code and mobile network code of the SIM card. The translation file may be an xml format file.
Step 206, determining the destination operator name based on the PLMN value and SPN content.
In a specific implementation, when the terminal device detects that the network service state is a normal communication state, the terminal device can normally acquire the PLMN value and the SPN content in the SIM card, so as to determine the name of the target operator.
Step 207, determining the destination operator name based on the SPN content.
Referring to fig. 3, an operator name acquisition apparatus 30 in an embodiment of the present invention is provided, including: an acquisition unit 301 and a determination unit 302, wherein:
an acquiring unit 301, configured to acquire a network service state and acquire an international mobile subscriber identity corresponding to a SIM card;
and the determining unit 302 is configured to determine, based on the international mobile subscriber identity corresponding to the SIM card, a name of a target operator corresponding to the SIM card, where the network service state is detected to be in a flight mode state.
In specific implementation, the specific execution process of the acquiring unit 301 and the determining unit 302 may refer to steps 101 to 102 correspondingly, which is not described herein.
In a specific implementation, the operator name obtaining apparatus 30 may correspond to a chip having a data processing function in the terminal device, or corresponds to a chip module including a chip having a data processing function in the terminal device, or corresponds to the terminal device.
In a specific implementation, regarding each apparatus and each module/unit included in each product described in the above embodiments, it may be a software module/unit, or a hardware module/unit, or may be a software module/unit partially, or a hardware module/unit partially.
For example, for each device or product applied to or integrated on a chip, each module/unit included in the device or product may be implemented in hardware such as a circuit, or at least part of the modules/units may be implemented in software program, where the software program runs on a processor integrated inside the chip, and the rest (if any) of the modules/units may be implemented in hardware such as a circuit; for each device and product applied to or integrated in the chip module, each module/unit contained in the device and product can be realized in a hardware manner such as a circuit, different modules/units can be located in the same component (such as a chip, a circuit module and the like) or different components of the chip module, or at least part of the modules/units can be realized in a software program, the software program runs on a processor integrated in the chip module, and the rest (if any) of the modules/units can be realized in a hardware manner such as a circuit; for each device, product, or application to or integrated with the terminal, each module/unit included in the device, product, or application may be implemented by using hardware such as a circuit, different modules/units may be located in the same component (for example, a chip, a circuit module, or the like) or different components in the terminal, or at least part of the modules/units may be implemented by using a software program, where the software program runs on a processor integrated inside the terminal, and the remaining (if any) part of the modules/units may be implemented by using hardware such as a circuit.
The embodiment of the invention also provides a computer readable storage medium, which is a non-volatile storage medium or a non-transient storage medium, and a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to execute the steps of the operator name acquisition method provided by any embodiment.
The embodiment of the invention also provides an operator name acquisition device, which comprises a memory and a processor, wherein the memory stores a computer program which can be run on the processor, and the processor executes the steps of the operator name acquisition method provided by any embodiment when running the computer program.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs related hardware, the program may be stored on a computer readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, etc.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention should be assessed accordingly to that of the appended claims.
Claims (10)
1. An operator name acquisition method, comprising:
acquiring a network service state and an international mobile subscriber identity corresponding to the SIM card;
and detecting that the network service state is in an air mode state, and determining a target operator name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card.
2. The method for obtaining the name of the operator according to claim 1, wherein the detecting that the network service state is an in-flight mode state, and determining the name of the target operator corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card, comprises:
and when detecting that the public land mobile network value and the content of the operator name in the SIM card is null, determining the name of the target operator based on the international mobile subscriber identity corresponding to the SIM card.
3. The carrier name acquisition method according to claim 2, wherein the determining the target carrier name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card includes:
acquiring a mobile country code and a mobile network code from an international mobile subscriber identity corresponding to the SIM card;
the target operator name is determined based on the mobile country code and the mobile network code.
4. The carrier name acquisition method as set forth in claim 3, wherein the determining the target carrier name based on the mobile country code and the mobile network code includes:
obtaining a pre-configured translation file, wherein the translation file comprises the mobile country code and a mapping relation between the mobile network code and the operator name;
and acquiring the name of the target operator from the translation file based on the mobile country code and the mobile network code.
5. The carrier name acquisition method as claimed in claim 2, further comprising:
and when detecting that the carrier name content exists in the SIM card, determining the target carrier name based on the carrier name content in the SIM card.
6. The carrier name acquisition method as claimed in claim 2, further comprising:
and detecting that the network service state is a normal communication state, and determining the target operator name based on the public land mobile network value and the operator name content in the SIM card.
7. The carrier name acquisition method according to claim 1, further comprising, after determining the carrier name corresponding to the SIM card:
and carrying out VoWiFi registration based on the operator name.
8. An operator name acquisition device, comprising:
the acquisition unit is used for acquiring the network service state and the international mobile subscriber identity corresponding to the SIM card; and the determining unit is used for detecting that the network service state is in a flight mode state and determining a target operator name corresponding to the SIM card based on the international mobile subscriber identity corresponding to the SIM card.
9. A computer readable storage medium, being a non-volatile storage medium or a non-transitory storage medium, having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, performs the steps of the operator name acquisition method according to any of claims 1-7.
10. An operator name acquisition device comprising a memory and a processor, said memory having stored thereon a computer program executable on said processor, characterized in that said processor executes the steps of the operator name acquisition method according to any one of claims 1-7 when said computer program is executed by said processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310527835.1A CN116761154A (en) | 2023-05-10 | 2023-05-10 | Operator name acquisition method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310527835.1A CN116761154A (en) | 2023-05-10 | 2023-05-10 | Operator name acquisition method and device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116761154A true CN116761154A (en) | 2023-09-15 |
Family
ID=87948572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310527835.1A Pending CN116761154A (en) | 2023-05-10 | 2023-05-10 | Operator name acquisition method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116761154A (en) |
-
2023
- 2023-05-10 CN CN202310527835.1A patent/CN116761154A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9391836B2 (en) | Method and terminal for loading operator configuration information | |
CN108282845B (en) | Network access method and mobile communication terminal | |
US11134143B2 (en) | Call processing method and mobile terminal | |
US11576024B2 (en) | Method and apparatus for making emergency call | |
CN105916131B (en) | Access control method and device | |
US20240073674A1 (en) | Establishing and maintaining cellular data communication using remote subscriber identification module profile | |
US20240298167A1 (en) | Terminal configuration method and apparatus | |
CN114125991A (en) | Network searching method and device in multi-card mode and terminal equipment | |
WO2011056677A2 (en) | Automatic selection of geographic area specific behavior | |
CN105682217B (en) | Network registration method, network registration device and terminal | |
CN116761154A (en) | Operator name acquisition method and device and computer readable storage medium | |
EP4181591A1 (en) | Positioning calibration method and device | |
CN104469899B (en) | Network selection method and electronic equipment | |
US10075839B2 (en) | Information processing method and electronic device | |
CN114827898B (en) | Internet surfing configuration method, device, equipment and medium | |
US20230217400A1 (en) | Terminal registration processing method and device | |
CN113518409B (en) | Method, device and system for mobile terminal to reside in network cell | |
US11509533B2 (en) | Methods and systems for network device name management | |
CN116828409A (en) | Internet of things quick network searching and injecting method and system of intelligent elevator | |
CN115499789A (en) | Paging message processing method, device and storage medium | |
CN115134814A (en) | Discovery method and discovery system for D2D communication | |
CN102811431A (en) | Method and device for establishing mapping relationship of IMSI and MSISDN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |