CN115460642B - Network name display test method and device - Google Patents

Network name display test method and device Download PDF

Info

Publication number
CN115460642B
CN115460642B CN202210912380.0A CN202210912380A CN115460642B CN 115460642 B CN115460642 B CN 115460642B CN 202210912380 A CN202210912380 A CN 202210912380A CN 115460642 B CN115460642 B CN 115460642B
Authority
CN
China
Prior art keywords
network
information
card
test
initial
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.)
Active
Application number
CN202210912380.0A
Other languages
Chinese (zh)
Other versions
CN115460642A (en
Inventor
赵吉阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210912380.0A priority Critical patent/CN115460642B/en
Publication of CN115460642A publication Critical patent/CN115460642A/en
Application granted granted Critical
Publication of CN115460642B publication Critical patent/CN115460642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Abstract

The application provides a method and equipment for testing network name display, which are used for solving the problems of high cost and complex scene construction for testing the network name display of electronic equipment in the related technology. The method is applied to the electronic equipment provided with the preset test SIM card, and the electronic equipment is connected with the test terminal. The method comprises the following steps: after the electronic equipment is started, acquiring initial card information and initial network information of a preset test SIM card, wherein the initial network information is used for indicating a network provided by a preset test environment in which the preset test SIM card is registered; and the electronic equipment receives the test instruction from the test terminal. The test instruction is used for testing the function of displaying the network name appointed by a certain operator by the electronic equipment, and the test instruction comprises card information and network information of the SIM card corresponding to the operator. The electronic device responds to the test instruction, replaces the initial card information with the card information of the SIM card, and replaces the initial network information with the network information so as to display the network name according to the card information and the network information of the SIM card.

Description

Network name display test method and device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and apparatus for testing network name display.
Background
After inserting a subscriber identification card (Subscriber Identity Module, SIM) and after the SIM card successfully registers the network, the electronic device typically needs to display the network name of the corresponding operator in the screen of the electronic device. Aiming at the display rule of displaying the network name in the screen, part of operators have the requirement of customization, and the electronic equipment needs to display on the screen according to the customization requirement.
In order to test whether an electronic device can display according to display rules customized by operators, it is generally required to simulate network environments of each operator in a test environment, and test the electronic device by using SIM cards corresponding to each operator in sequence. This is costly and complex to build.
Disclosure of Invention
The embodiment of the application provides a method and equipment for testing network name display, which are used for solving the problems of high cost and complex scene construction for testing the network name display of electronic equipment in the related technology.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
in a first aspect, a method for testing network name display is provided, where the method is applied to an electronic device, the electronic device is connected with a test terminal, and the test terminal is used for testing functions of the electronic device for displaying network names specified by different operators under a preset test environment; a SIM card of a preset test subscriber identity module is installed in the electronic equipment; the method comprises the following steps:
After the electronic equipment is started, acquiring initial card information and initial network information of a preset test SIM card, wherein the initial network information is used for indicating a network provided by a preset test environment in which the preset test SIM card is registered; the electronic equipment receives a first test instruction from the test terminal. The first test instruction is used for testing the function of the electronic equipment for displaying the network name appointed by the first operator, the first test instruction comprises card information of the first SIM card and first network information, and the first SIM card and the first network information correspond to the first operator. The electronic equipment responds to the first test instruction, replaces the initial card information with the card information of the first SIM card, and replaces the initial network information with the first network information so as to display the first network name according to the card information of the first SIM card and the first network information. The first network name may be used to verify that the electronic device displays a function of the first operator specified network name.
The electronic device may also receive a second test instruction from the test terminal. The second test instruction is used for testing the function of the electronic equipment for displaying the network name appointed by the second operator, the second test instruction comprises card information of the second SIM card and second network information, and the second SIM card and the second network information correspond to the second operator. And in response to the second test instruction, the electronic equipment replaces the initial card information with the card information of the second SIM card, and replaces the initial network information with the second network information so as to display a second network name according to the card information of the second SIM card and the second network information. The second network name may be used to verify that the electronic device displays functionality of the second operator specified network name.
According to the technical scheme, under the fixed preset test SIM card and the preset test environment, different test instructions can be sent to the electronic equipment through the test terminal, so that the function of displaying the network names appointed by different operators by the test electronic equipment is realized. The network test environment of various operators is not required to be constructed, and the SIM card corresponding to each operator is not required. Therefore, the cost required by the establishment of the test environment can be effectively reduced, the environment is simple to establish, and the test efficiency is improved.
In some possible embodiments, after displaying the first network name according to the card information and the first network information of the first SIM card, the method further includes: the electronic equipment sends a first network name to the test terminal, wherein the first network name is used for verifying whether the electronic equipment has the function of displaying the network name appointed by the first operator.
In some possible embodiments, after displaying the second network name according to the card information and the second network information of the second SIM card, the method further includes: and the electronic equipment sends a second network name to the test terminal, wherein the second network name is used for verifying whether the electronic equipment has the function of displaying the network name appointed by the second operator.
In the above embodiment, the electronic device sends the network name displayed in the screen of the electronic device to the test terminal, so that the test terminal tests the function of the electronic device for displaying the network name specified by the corresponding operator according to the displayed network name, thereby realizing automation of the test flow.
In some possible implementations, the electronic device includes a radio interface layer RIL, a telephony layer, and an application layer. The method comprises the steps of obtaining initial card information and initial network information of a preset test SIM card, and specifically, the method is completed by RIL of electronic equipment. The electronic device responds to the first test instruction, replaces the initial card information with the card information of the first SIM card, and replaces the initial network information with the first network information so as to display the first network name according to the card information and the first network information of the first SIM card, and specifically comprises the following steps: the RIL responds to the first test instruction, the card information of the first SIM card is adopted to replace the initial card information, and the first network information is adopted to replace the initial network information; the RIL reports card information and first network information of the first SIM card to the telephone communication layer; the telephone communication layer provides the first network name for the application layer according to the card information of the first SIM card and the first network information, and the application layer displays the first network name.
In the above embodiment, the RIL code of the electronic device is specifically modified according to the test instruction, and the replaced card information and the network information are reported to the telephony communication layer, so that the telephony communication layer determines the network name to be displayed according to the replaced card information and the network information. In this way, the testing process has no influence on the content stored in the preset test SIM card and the process of registering the SIM card with the network.
In some possible embodiments, replacing the initial card information with the card information of the first SIM card may specifically include: the RIL replaces the value of the preset parameter in the initial card information with the value of the corresponding parameter in the card information of the first SIM card. The preset parameters comprise at least one of group identity GID, service provider name SPN, PLMN network name PNN and international mobile subscriber identity IMSI. Therefore, only preset parameters in the initial card information are replaced, the workload of the electronic equipment is reduced, and the testing efficiency is improved.
In some possible embodiments, the RIL replaces the value of the preset parameter in the initial card information with the value of the corresponding parameter in the card information of the first SIM card, which may specifically be that the RIL first determines whether the initial card information includes the preset parameter; if yes, the RIL replaces the value of the preset parameter in the initial card information with the value of the corresponding parameter in the card information of the first SIM card. If not, RIL does not replace card information, and reporting initial card information to telephone communication layer directly. Aiming at the SIM card which does not contain preset parameters in part of initial card information, the initial card information is not replaced, and the initial card information is directly reported to a telephone communication layer.
In some possible embodiments, replacing the initial network information with the first network information specifically includes: the RIL judges whether the public land mobile network PLMN indicated by the test terminal is consistent with the PLMN registered by the network provided by the electronic equipment in a preset test environment; if so, the RIL replaces the initial network information with the first network information. In this way, the influence of other networks in the test process on the test can be avoided.
In a second aspect, a method for testing network name display is provided, where the method is applied to a test terminal, and the test terminal is connected with an electronic device; the test terminal is used for testing the function of displaying the network names appointed by different operators of the electronic equipment under a preset test environment; the method comprises the following steps:
and the test terminal sends a first test instruction to the electronic equipment, and the first test instruction is used for testing the function of displaying the network name appointed by the first operator. The first test instruction comprises card information and first network information of a first SIM card, and the first SIM card and the first network information correspond to a first operator. The test terminal may also send a second test instruction to the electronic device for testing the electronic device to display a function of the second operator specifying the network name. The second test instruction comprises card information of a second SIM card and second network information, and the second SIM card and the second network information correspond to a second operator.
In some possible embodiments, after the test terminal sends the first test instruction to the electronic device, the method further includes: the test terminal receives a first network name from the electronic equipment, wherein the first network name is displayed by the electronic equipment according to card information of a first SIM card and the first network information; the test terminal compares the first network name with the first operator designated network name to judge whether the electronic equipment has the function of displaying the first operator designated network name. In the technical scheme, after the electronic equipment displays the network name, the displayed network name is sent to the test terminal, and the test terminal verifies the function of the electronic equipment for displaying the name appointed by the operator according to the network name, so that the automation of the test is realized.
In a third aspect, there is provided a computer device comprising: a processor and a memory; the memory is configured to store computer-executable instructions that, when executed by the computer device, cause the computer device to perform the method of testing network name display as in any of the first aspects above.
In a fourth aspect, there is provided a computer readable storage medium having instructions stored therein which, when run on a computer device, cause the computer to perform the method of testing network name display of any of the first aspects above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer device, cause the computer device to perform the method of testing the display of network names of any of the first aspects above.
In a sixth aspect, there is provided an apparatus (e.g. the apparatus may be a system on a chip) comprising a processor for enabling a computer device to carry out the functions referred to in the first aspect above, e.g. to obtain initial card information and initial network information of a SIM card, etc. In one possible design, the apparatus further includes a memory for holding program instructions and data necessary for the computer device. When the device is a chip system, the device can be formed by a chip, and can also comprise the chip and other discrete devices.
The technical effects of any one of the design manners of the second aspect to the sixth aspect may be referred to the technical effects of the different design manners of the first aspect, and will not be repeated here.
Drawings
Fig. 1 is a schematic diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a test system with network name display according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is a flowchart of a testing method for displaying network names according to an embodiment of the present application;
FIG. 5 is a flowchart of another method for testing network name display according to an embodiment of the present application;
FIG. 6A is a flowchart of another method for testing network name display according to an embodiment of the present application;
fig. 6B is a partial screenshot of a display interface of the mobile phone 1 according to an embodiment of the present application;
fig. 6C is a schematic diagram of data flow according to an embodiment of the present application;
FIG. 7A is a schematic diagram of another data flow according to an embodiment of the present application;
fig. 7B is a partial screenshot of a display interface of another mobile phone 1 according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
After an electronic device having a SIM card installed therein is powered on, the SIM card needs to search for and register a network, and after the SIM card of the electronic device successfully registers the network, an operator generally requires that a specified network name be displayed in a screen of the electronic device.
Fig. 1 shows a schematic diagram of an electronic device according to an embodiment, where the electronic device includes a modem, an RIL (including RILD, RILJ), a telephony layer, and an application layer. The process of displaying the network name of the operator in the screen by the electronic device in the related art includes: after the electronic equipment is started, the modem reports the card information of the SIM card and the network information registered by the SIM card to a wireless interface layer (Radio Interface Layer, RIL), and the RIL reports the card information and the network information of the SIM card to a telephone communication layer (telephone). And the telephone layer sends the network name to be displayed to the application layer according to the card information and the network information of the SIM card. The network name is displayed by the application layer in a screen of the electronic device.
Some operators have a customized requirement for the display rule of the network name, and the electronic device needs to display the network name in the screen according to the display rule customized by the operator. In order to test the function of the electronic device for displaying network names specified by operators, network environments of different operators are generally required to be provided for the tested electronic device respectively, and SIM cards corresponding to the operators are installed in the tested electronic device respectively so as to complete the test of the tested electronic terminal. However, in this way, the number of required SIM cards and network environments of operators to be built is large, the cost is high, and the scene construction is complex.
Therefore, the application provides a network name display test method which can be applied to electronic equipment, and the electronic equipment supports the installation of a SIM card. The electronic device may be, for example, an electronic device supporting SIM card installation, such as a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, and a cellular phone, and the embodiment of the present application is not limited to a specific form of the electronic device.
In some embodiments, the method may be applied to a cell phone 1 in a test system for network name display as shown in fig. 2. In the testing process, a fixed preset testing environment is provided for the mobile phone 1, and the preset testing environment supports the SIM card registration network service. The mobile phone 1 is connected with a test terminal 2, and the test terminal 2 is used for testing the function of displaying the network names appointed by different operators under the preset test environment. A preset test SIM card is installed in the handset 1.
The test terminal 2 may be a tablet computer, a desktop computer, a laptop computer, a handheld computer, or a terminal device dedicated to testing, and the specific form of the test terminal 2 is not particularly limited in the embodiment of the present application.
After the mobile phone 1 is started, a preset test SIM card registers a network in a preset test environment, and network information of the registered network is recorded as initial network information. The mobile phone 1 acquires initial card information and initial network information of a preset test SIM card. The mobile phone 1 receives the test instructions from the test terminal 2, and card information and network information contained in different test instructions are different from operators corresponding to the network information. Then, the mobile phone 1 can replace the initial card information and the initial network information according to different card information and network information contained in different test instructions. Then, the mobile phone 1 displays the network name based on the replaced card information and the network information. Finally, the network name displayed on the screen of the mobile phone 1 may be used to determine whether the mobile phone 1 has the capability of displaying the network name specified by the first operator.
In this technical solution, according to the test instruction sent by the test terminal 2, the mobile phone 1 may replace the initial card information and the network information of the preset test SIM card actually installed in the mobile phone 1 with the card information and the network information of the SIM card corresponding to different operators, and determine the network name displayed in the screen according to the card information and the network information after replacement. Therefore, the mobile phone 1 can detect whether the network names appointed by a plurality of operators can be displayed by using the same test SIM card without constructing network test environments of different operators or using the SIM card corresponding to each operator. Therefore, the cost required by the establishment of the test environment can be effectively reduced, the environment is simple to establish, and the test efficiency is improved.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 3, the electronic device 300 may include a processor 310, a memory 320, a universal serial bus (universal serial bus, USB) interface 330, a charge management module 340, a battery 341, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a sensor module 380, keys 390, and a subscriber identity module (subscriber identification module, SIM) card interface 391, among others. The electronic device 300 may be the mobile phone 1 of fig. 2, for example.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 300. In other embodiments of the application, electronic device 300 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may include one or more processing units, such as: the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, in an embodiment of the present application, the processor 310 may be an application processor AP.
The controller may be a neural hub and a command center of the electronic device 300, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a USB interface, among others.
The USB interface 330 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 330 may be used to connect a charger to charge the electronic device 300, or may be used to transfer data between the electronic device 300 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices or mobile terminals, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 300. In other embodiments of the present application, the electronic device 300 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 340 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some embodiments, the electronic device 300 may support wired charging. Specifically, the charge management module 340 may receive a charge input of the wired charger through the USB interface 330. In other embodiments, electronic device 300 may support wireless charging.
The charging management module 340 may also supply power to the electronic device 300 while charging the battery 341. The charge management module 340 receives input from the battery 341 and provides power to the processor 310, the memory 320, the external memory, the display screen 394, the camera 393, the wireless communication module 360, and the like. The charge management module 340 may also be configured to monitor battery capacity, battery cycle number, battery state of health (leakage, impedance) and other parameters of the battery 341. In other embodiments, the charge management module 340 may also be provided in the processor 310.
The wireless communication function of the electronic device 300 may be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 300 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 350 may provide a solution for wireless communication, including 2G/3G/4G/5G, etc., applied on the electronic device 300. The wireless communication module 360 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), NFC, infrared (IR), etc., as applied on the electronic device 300. In some embodiments, antenna 1 and mobile communication module 350 of electronic device 300 are coupled, and antenna 2 and wireless communication module 360 are coupled, such that electronic device 300 may communicate with a network and other devices via wireless communication techniques.
The electronic device 300 implements display functions through a GPU, a display screen 394, an application processor, and the like. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 394 is used for displaying images, videos, and the like. The display screen 394 includes a display panel. In some embodiments, the electronic device 300 may include 1 or N display screens 394, N being a positive integer greater than 1.
Electronic device 300 may implement capture functionality through an ISP, camera 393, video codec, GPU, display 394, and application processor, among others. The ISP is used to process the data fed back by camera 393. In some embodiments, the ISP may be provided in the camera 393. Camera 393 is used to capture still images or video. In some embodiments, electronic device 300 may include 1 or N cameras 393, N being a positive integer greater than 1.
The internal memory 320 may be used to store computer-executable program code that includes instructions. The processor 310 executes various functional applications of the electronic device 300 and data processing by executing instructions stored in the internal memory 320. In addition, the internal memory 320 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 300 may implement audio functionality through an audio module 370, an application processor, and the like. Such as music playing, recording, etc.
The audio module 370 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. In some embodiments, the audio module 370 may be disposed in the processor 310, or some of the functional modules of the audio module 370 may be disposed in the processor 310.
The keys 390 include a power on key, a volume key, etc. Key 390 may be a mechanical key. Or may be a touch key. The electronic device 300 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 300. The SIM card interface 391 is for connecting a SIM card. The SIM card may be inserted into the SIM card interface 391, or removed from the SIM card interface 391 to enable contact and separation with the electronic device 300. The electronic device 300 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 391 may support Nano SIM cards, micro SIM cards, and the like. In some embodiments, the electronic device 300 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 300 and cannot be separated from the electronic device 300.
The application provides a network name display test method which can be applied to a mobile phone 1 with the hardware structure shown in the figure 3. The mobile phone 1 is used for displaying whether the tested network name meets the expectations or not, specifically installing a preset test SIM card in the mobile phone 1, and providing a preset test environment supporting the registration network service of the preset test SIM card for the mobile phone 1. The test terminal 2 sends a test instruction to the mobile phone 1, and the mobile phone 1 replaces the real initial card information and initial network information of the tested SIM card according to the card information and the network information of the SIM card carried in the test instruction. And then the mobile phone 1 determines the network name to be displayed in the screen of the mobile phone 1 according to the replaced card information and the network information. Thereby judging whether the mobile phone 1 has the capability of displaying the network name specified by the operator according to the network name displayed in the screen of the mobile phone 1.
Technical terms that may be involved in the embodiments of the present application are described below.
The modem includes a modulator and a demodulator. The modem can translate the digital signals of the computer into analog signals that can be transmitted along a common telephone line, which can be received by another modem at the other end of the line and translated into a language that is understandable to the computer.
A mobile country code (Mobile Country Code, MCC), the resources of the MCC being uniformly allocated and managed by the international union (ITU), uniquely identifying the country to which the mobile subscriber belongs.
In a certain country or region, a cellular mobile communication network of a certain standard of a certain operator is called public land mobile network (Public Land Mobile Network, PLMN). The PLMN is a network established and operated by the government or its approved operators for the purpose of providing land mobile services to the public.
The SIM card is an IC card held by a mobile subscriber of the global system for mobile communications (Global System for Mobile Communications, GSM) system. The GSM system identifies the GSM user through the SIM card. The GSM mobile terminal can access to the network only after the SIM card is inserted.
The RIL radio interface layer, responsible for providing telephony services, is the middle layer between the upper layer applications and the lower layer hardware modems. Is responsible for the reliability of the data, the transmission of the commands and the resolution of the responses. The ril.java file in the RIL framework (frame) is described as RILJ.
The telephone communication layer Telephony mainly provides functions of voice, short messages, data links, SIM card management, telephone directory and the like.
The service provider name (Service Provider Name, SPN) refers to the name of the operator to which the SIM card belongs.
PLMN network name (PLMN network name, PNN).
The international mobile subscriber identity (International Mobile Subscriber Identity, IMSI) is an identity that is not repeated in all cellular networks for distinguishing between different users in the cellular network.
Group identity (Group Identification, GID), refers to the identity of the shared resource system user.
Fig. 4 is a flowchart of a method for testing network name display according to an embodiment of the application. The method can be applied to the system shown in fig. 1 and relates to a mobile phone 1 and a test terminal 2. The method includes S400-S406. Wherein:
s400, after the mobile phone 1 is started, initial card information and initial network information of a preset test SIM card are obtained.
The initial network information is used for indicating a network provided by a preset test environment for registering a preset test SIM card. The preset test environment is a test environment provided for the mobile phone 1 in the test process, and supports the registration network service of the preset test SIM card. In some embodiments, the preset test environment may provide a network of one or more operators.
In some embodiments, after the mobile phone 1 is powered on, it is necessary to search for and register with a network. After registering the network, the mobile terminal is successfully attached to the mobile network, the handset 1 can use the relevant mobile services provided by the network. After the mobile phone 1 registers the network, the related information of the registered network is recorded as the initial network information of the preset test SIM card. The preset test environment provides an operator a network for the mobile phone 1, and after the mobile phone 1 is powered on, the preset test SIM card may register the operator a network and acquire information of the operator a network as initial network information. Or, the preset test environment provides a plurality of networks such as an operator a network and an operator B network, after the mobile phone 1 is started, a suitable network can be selected from the networks provided by the preset test environment for registration, and network information of the registered network is obtained as initial network information.
In some embodiments, the mobile phone 1 obtains initial network information of a preset test SIM card, which may specifically be that the radio interface layer RIL of the mobile phone 1 obtains initial network information. The RIL obtains the initial network information, which may be specifically the initial network information reported by the modem of the mobile phone 1.
After the mobile phone 1 is started, searching and registering a network by a modem in the mobile phone 1, after the mobile phone 1 successfully registers the network, the modem interacts with a base station of the registered network to acquire network information issued by the base station, namely initial network information of a preset test SIM card.
In some embodiments, the initial network information may be a network identification of a network to which the preset test SIM card is registered. Illustratively, the operator a network is registered with a preset test SIM card, and the initial network information may be a PLMN of the operator a network.
The initial card information refers to information of a preset test SIM card. The information of the SIM card may include values of two or more parameters. In some embodiments, the card information includes at least one of the parameters GID, SPN, PNN, IMSI of the preset test SIM card. It should be understood that the card information described above is only an example, and in other embodiments, the card information may also include other parameters of the SIM card.
In some embodiments, the mobile phone 1 obtains initial card information of a preset test SIM card, and specifically, the RIL of the mobile phone 1 obtains initial network information. The RIL obtains the initial card information, which may be specifically obtained and reported by the RIL obtaining modem.
S401, the test terminal 2 sends a first test instruction to the mobile phone 1.
The first test instruction is used for testing the function of displaying the network name specified by the first operator by the mobile phone 1. The first test instruction includes card information and first network information of the first SIM card. The first SIM card and the first network information correspond to a first operator.
As can be seen from the above description of the embodiments, the test terminal 2 is configured to test whether the mobile phone 1 has the capability of displaying the network name specified by the operator in a preset test environment. In the embodiment of the application, the test terminal sends the test instruction to the mobile phone 1, and the card information and the network information of the SIM card of the operator to be tested are carried in the test instruction.
In some embodiments, the mobile phone 1 and the test terminal 2 may be connected by a wired connection, for example, by a USB connection. In other embodiments, the mobile phone 1 and the test terminal 2 may also be connected wirelessly, such as by a network.
In some embodiments, the test terminal 2 may send the first test instruction to the mobile phone 1 when receiving the test instruction from the user. The card information and the network information included in the first test instruction may be specified by a user, or may be read from a preset test document by the test terminal 2. The preset test document at least comprises card information and network information of SIM cards of operators and network names appointed by the operators. The preset test document may be preset according to actual conditions and stored in a designated path of the test terminal 2.
S402, the mobile phone 1 receives a first test instruction from the test terminal 2.
In some embodiments, the test instruction is used to cause the mobile phone 1 to determine the network name to be displayed in the screen according to the card information and the network information of the SIM card to be tested therein. Thus, whether the mobile phone 1 has the capability of displaying the network name specified by the first operator can be confirmed according to whether the network name displayed by the mobile phone 1 is the same as the network name specified by the first operator to be displayed. Specifically, the operation performed by the mobile phone 1 according to the test instruction is as follows:
s403, the mobile phone 1 responds to the first test instruction, replaces the initial card information with the card information of the first SIM card, and replaces the initial network information with the first network information so as to display the first network name according to the card information and the first network information of the first SIM card.
After the mobile phone 1 displays the first network name, it may be determined whether the mobile phone 1 has the capability of displaying the first operator-specified network name by determining whether the first network name is the first operator-specified network name. In some embodiments, the step of determining whether the first network name is the first operator specified network name may be performed manually or may be performed automatically by a computer program.
In some embodiments, the test terminal 2 sends a test instruction to the mobile phone 1 to instruct the mobile phone 1 to replace the information reported by the bottom layer in the mobile phone 1 with the information in the test instruction, which may be referred to as piling.
Illustratively, taking the step of determining whether the first network name is the first operator-specified network name as described above as an example, the computer program is automatically executed, after S403, as shown in fig. 5, the method further includes S501 and S502. Wherein:
s501, the mobile phone 1 sends a first network name to the test terminal 2.
The first network name is used to verify whether the mobile phone 1 has a function of displaying the network name specified by the first operator.
Further, in some embodiments, after receiving the first network name, the test terminal 2 may compare the first network name with a first preset network name of the first operator, and determine whether the first network name is the first preset network name.
S502, the test terminal 2 compares the first network name with the first operator designated network name to judge whether the mobile phone 1 has the function of displaying the first operator designated network name.
The network name specified by the first operator is used for indicating the network name required to be displayed by the electronic equipment (such as the mobile phone 1) according to the display requirement customized by the first operator. In some embodiments, the first operator-specified network name may be pre-stored at the test terminal 2.
Further, in some embodiments, the first operator-specified network name may be stored corresponding to card information and the first network information of the first SIM card.
In some embodiments, the handset 1 includes an RIL, a telephony layer, and an application layer. The step S400 is specifically that after the mobile phone 1 is turned on, the RIL obtains initial card information and initial network information of a preset test SIM card. In S401, the test terminal 2 sends a first test instruction to the mobile phone 1, specifically, the test terminal 2 sends the first test instruction to the RIL of the mobile phone 1. Or in other embodiments, S401 is specifically that the test terminal 2 sends a first test instruction to a communication module (not shown in fig. 6A) of the mobile phone 1, and the communication module of the mobile phone 1 forwards the first test instruction to the RIL.
Further, as shown in fig. 6A, S403 specifically includes S403a-S403d, where:
s403a, the RIL of the mobile phone 1 responds to the first test instruction, the card information of the first SIM card is adopted to replace the initial card information, and the first network information is adopted to replace the initial network information.
The card information of the SIM card generally includes values of two or more parameters, and in the embodiment of the present application, only a part of the parameter values need to be replaced. As can be seen from the description of the above embodiments, the initial card information may include at least one of GID, SPN, PNN and IMSI. Likewise, the preset parameter information may also include at least one of GID, SPN, PNN and IMSI.
In this embodiment, when the initial card information is replaced, the RIL replaces the value of the preset parameter in the initial card information with the value of the corresponding parameter in the card information of the first SIM card. For example, if the preset parameter includes GID, the RIL replaces the initial GID value in the initial card information with the target GID value in the card information of the first SIM card. For another example, if the preset parameter includes SPN, the RIL replaces the initial SPN value in the initial card information with the target SPN value in the card information of the first SIM card. If the preset parameters comprise more than two parameters, the RIL sequentially replaces the values of the preset parameters in the initial card information with the values of the corresponding parameters in the card information of the first SIM card.
In some embodiments, the RIL replaces a value of a preset parameter in the initial card information with a value of a corresponding parameter in the card information of the first SIM card, and specifically includes: and the RIL judges whether the initial card information contains preset parameters, if so, the RIL replaces the value of the preset parameters in the initial card information with the corresponding value in the card information of the first SIM card.
In other embodiments, if the initial card information does not include the predetermined parameters, the RIL reports the initial card information to the telephony layer.
The card information of part of the SIM card may not include the preset parameters, so when the initial card information is replaced, the RIL first determines whether the initial card information includes the preset parameters, and if it is determined that the initial card information includes the preset parameters, the value of the preset parameters is replaced. If the initial card information does not include the preset parameters, the RIL does not replace the information in the initial card information, and the initial card information is directly reported to the telephone communication layer. It should be understood that the preset parameters include more than two parameters, and if the RIL detects that only one preset parameter is included in the initial card information, the value of the preset parameter included in the initial card information is replaced by the value of the corresponding parameter in the card information of the first SIM card.
In some embodiments, the step of determining whether the initial card information includes the preset parameter by the RIL may be specifically implemented by executing a card information reading function by the RIL. The card information reading function sequentially reads the parameters corresponding to each address in the initial card information and judges whether the parameters are preset parameters or not. If yes, the RIL replaces the value of the preset parameter in the address with the value of the corresponding parameter in the card information of the first SIM card. For example, the preset parameters include SPN, where the parameter corresponding to the first parameter address in the initial card information read by the RIL is SPN, and then the RIL replaces the SPN value corresponding to the first parameter address with the SPN value in the card information of the first SIM card. If not, RIL does not replace, and continues to read parameters corresponding to the next address in the initial card information.
In the technical scheme provided by the embodiment of the application, the testing process does not influence the content stored in the preset test SIM card and the network registering process of the SIM card.
In addition, in order to avoid interference of other network environments in the testing process, the mobile phone 1 also determines the initial network information, and determines whether the network corresponding to the initial network information is consistent with the network indicated by the testing terminal 2. Illustratively, replacing the initial network information with the first network information specifically includes: the RIL judges whether the PLMN indicated by the test terminal is consistent with the PLMN registered by the network provided by the mobile phone 1 in the preset test environment. If yes, the RIL replaces the initial network information with the first network information.
The PLMN indicated by the test terminal 2 is a PLMN sent by the test terminal to the mobile phone 1, and is used for indicating a PLMN of a network to which a preset test SIM card belongs. If the PLMN registered by the mobile phone 1 in the network provided by the preset test environment is consistent with the PLMN indicated by the test terminal, the RIL of the mobile phone 1 replaces the initial network information with the first network information. If not, the initial network information is not replaced, and the RIL reports the initial network information to the telephone communication layer. In this way, interference from other networks during testing can be avoided.
S403b, RIL sends card information of the first SIM card and first network information to the telephone communication layer.
S403c, the telephone communication layer provides the first network name for the application layer according to the card information of the first SIM card and the first network information.
The telephone communication layer is a telephone layer, and can determine the network name to be displayed in the screen of the mobile phone 1 according to the card information and the network information of the SIM card reported by the RIL and a preset rule. The preset rule may be a display rule of a network name set by an operator. In the embodiment of the application, the telephone communication layer determines the network name to be displayed in the screen of the mobile phone 1 according to the card information of the first SIM card and the first network information, and marks the network name as the first network name. And then, the telephone communication layer reports the determined first network name to the application layer.
S403d, the application layer receives and displays the first network name.
The Application layer (Java Application) comprises various Android Application programs and is responsible for interaction with users.
In the self-application embodiment, the application layer receives the first network name reported from the telephone communication layer, and displays the first network name in the screen of the mobile phone 1. Fig. 6B is a partial display screen shot of the mobile phone 1 according to an embodiment of the application. The area 60 in fig. 6B is the area where the mobile phone 1 displays the network name.
In the above embodiment, since the modem searches and registers the network normally after the mobile phone 1 is powered on, and the modem reports the initial network information of the registered network to the RIL, the above process of replacing the initial card information and the initial network information with the card information and the first network information of the first SIM card does not affect the flow of actually registering the network of the mobile phone 1.
In the technical scheme provided by the embodiment of the application, the code of the RIL layer is modified in the mobile phone 1 through the test instruction sent to the mobile phone 1 by the test terminal 2. And replacing the initial card information and the initial network information actually reported by the modem with the card information and the first network information of the first SIM card in the test instruction. And the telephone communication layer provides the first network name to be displayed for the application layer according to the card information and the first network information of the replaced first SIM card. In this way, the mobile phone 1 can be detected whether to have the capability of displaying the network name specified by the first operator without actually providing the mobile phone 1 with the network test environment of the first operator and without using the SIM card corresponding to the first operator as the test card. And the above-described process does not affect the process of actually registering the mobile phone 1 with the network.
In some embodiments, the process shown in fig. 6A may be represented as a data flow process shown in fig. 6C. In this embodiment, after the mobile phone 1 is turned on, the test terminal 2 sends a first test instruction to the mobile phone 1, and the RIL of the mobile phone 1 uses the card information and the first network information of the first SIM card included in the first test instruction to replace the initial card information and the initial network information reported by the modem. Then, the information reported by RIL to the telephone communication layer is changed from the initial card information and the initial network information shown in FIG. 1 to the card information and the first network information of the first SIM card. Therefore, after receiving the card information of the first SIM card and the first network information, the telephony communication layer provides the first network name to the application layer according to the two pieces of information, so that the application layer displays the first network name in the screen of the mobile phone 1.
As can be seen from the above embodiment, the first test instruction is used to test whether the mobile phone 1 has the capability of displaying the network name specified by the first operator, and in a similar manner, the test terminal 2 can further test whether the mobile phone 1 has the capability of displaying the network names specified by other operators. Specifically, after the mobile phone 1 responds to one test instruction and displays the network name on the screen, the test terminal 2 may send another test instruction to the mobile phone 1, so as to test whether the mobile phone 1 has the capability of displaying the name specified by another operator.
S404, the test terminal 2 sends a second test instruction to the mobile phone 1.
The second test instruction comprises card information of a second SIM card and second network information. The second SIM card and the second network information correspond to a second operator.
In some embodiments, the test terminal 2 may send a second test instruction to the mobile phone 1 when receiving the test instruction from the user. The card information and the network information included in the second test instruction may be specified by the user, or may be read from a preset test document by the test terminal 2. The preset test document at least comprises card information and network information of SIM cards of operators and network names appointed by the operators. The preset test document may be preset according to actual conditions and stored in a designated path of the test terminal 2.
In other embodiments, the test terminal 2 may also automatically send the second test instruction to the mobile phone 1 after receiving the network name (e.g. the first network name) corresponding to the last test instruction sent by the mobile phone 1.
S405, the mobile phone 1 receives a second test instruction from the test terminal 2.
S406, the mobile phone 1 responds to the second test instruction, replaces the initial card information with the card information of the second SIM card, and replaces the initial network information with the second network information so as to display the second network name according to the card information of the second SIM card and the second network information.
The details of the steps S405 and S406 are described in reference to S402 and S403, and are not described herein.
With continued reference to FIG. 6A, S406 may include S406a-S406d.
S406a, in response to the second test instruction, the RIL of the mobile phone 1 replaces the initial card information with the card information of the second SIM card, and replaces the initial network information with the second network information.
S406b, the RIL sends card information of the second SIM card and second network information to the telephone communication layer.
S406c, the telephone communication layer provides a second network name for the application layer according to the card information of the second SIM card and the second network information.
S406d, the application layer receives and displays the second network name.
After the mobile phone 1 displays the second network name, it may be determined whether the mobile phone 1 has the capability of displaying the second operator-specified network name by determining whether the second network name is the second operator-specified network name.
Similarly to the case where the mobile phone 1 transmits the first network name to the test terminal 2 after displaying the first network name, the mobile phone 1 may also transmit the second network name to the test terminal 2 after displaying the second network name. The second network name is used for testing whether the terminal judges whether the mobile phone 1 has the capability of displaying the network name specified by the second operator. With continued reference to fig. 5, in some embodiments, after S406, the method further includes S503 and S504.
S503, the mobile phone 1 sends a second network name to the test terminal 2.
The second network name is used to verify whether the mobile phone 1 has a function of displaying the network name specified by the second operator.
S504, the test terminal 2 compares the second network name with the second operator designated network name to judge whether the mobile phone 1 has the function of displaying the second operator designated network name.
The detailed steps of S503 and S504 may refer to the descriptions of S501 and S502, and are not described herein.
The above steps S400 to S406 can determine that the mobile phone 1 receives different test instructions sent from the test terminal 2 at different times, and can replace the initial card information and the initial network information according to the card information and the network information carried in the received test instructions. The mobile phone 1 can then display the corresponding network name based on the card information and the network information after the replacement. The process can realize whether the mobile phone 1 has the capability of displaying the appointed names of different operators or not without replacing the SIM card used for the test or constructing a network test environment corresponding to each operator. Therefore, the technical scheme provided by the embodiment of the application can effectively reduce the cost required by the establishment of the test environment, and the environment is simple to establish, so that the test efficiency is improved.
In some embodiments, the specific process of S405 and S406 described above may be represented as a data flow process as shown in fig. 7A. In this embodiment, the test terminal 2 sends a second test instruction to the mobile phone 1, and the RIL of the mobile phone 1 replaces the initial card information and the initial network information reported by the modem by using the card information and the second network information of the second SIM card included in the second test instruction. Then, the RIL changes the information of the initial card information and the initial network information reported to the telephone communication layer into the card information of the second SIM card and the second network information. Therefore, after receiving the card information of the second SIM card and the second network information, the telephony communication layer provides the second network name to the application layer according to the two pieces of information, so that the application layer displays the second network name in the screen of the mobile phone 1. Exemplary, fig. 7B shows a partial screenshot of the mobile phone 1 when displaying the second network name on the screen according to an embodiment of the present application. The area 70 in fig. 7B is the area where the mobile phone 1 displays the network name.
Other embodiments of the present application provide a computer device that is an electronic device (e.g., handset 1) or a test terminal (e.g., test terminal 2) as described above. The computer device may include: a memory and one or more processors. The memory is coupled to the processor. The memory is also used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the computer device may perform the various functions or steps performed by the handset 1 in the method embodiments described above. When the computer device is the mobile phone 1, the structure may refer to the structure of the electronic device 300 shown in fig. 3.
The present application also provides a chip system, as shown in fig. 8, the chip system 80 includes at least one processor 801 and at least one interface circuit 802. The processor 801 and the interface circuit 802 may be interconnected by wires. For example, interface circuit 802 may be used to receive signals from other devices (e.g., a memory of a computer apparatus). For another example, interface circuit 802 may be used to send signals to other devices (e.g., processor 801). The interface circuit 802 may, for example, read instructions stored in a memory and send the instructions to the processor 801. The instructions, when executed by the processor 801, may cause a computer device to perform the various steps of the embodiments described above. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium, which comprises computer instructions, when the computer instructions run on the computer device (such as the mobile phone 1 or the test terminal 2), the computer device is caused to execute the functions or steps executed by the mobile phone 1 or the test terminal 2 in the embodiment of the method.
The embodiment of the application also provides a computer program product, when the computer program product runs on a computer, the computer is caused to execute the functions or steps executed by the mobile phone 1 or the test terminal 2 in the embodiment of the method. The computer may be a computer device such as a cell phone 1 or a test terminal 2.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. The method is characterized in that the method is applied to electronic equipment, the electronic equipment is connected with a test terminal, and the test terminal is used for testing the function of displaying the network names appointed by different operators under a preset test environment; a preset test Subscriber Identity Module (SIM) card is installed in the electronic equipment; the method comprises the following steps:
after the electronic equipment is started, acquiring initial card information and initial network information of a preset test SIM card, wherein the initial network information is used for indicating a network provided by the preset test environment registered by the preset test SIM card;
the electronic equipment receives a first test instruction from the test terminal, wherein the first test instruction is used for testing the function of displaying a network name appointed by a first operator by the electronic equipment, the first test instruction comprises card information of a first SIM card and first network information, and the first SIM card and the first network information correspond to the first operator;
The electronic equipment responds to the first test instruction, replaces the initial card information with the card information of the first SIM card, and replaces the initial network information with the first network information so as to display a first network name according to the card information of the first SIM card and the first network information;
the electronic equipment receives a second test instruction from the test terminal, wherein the second test instruction is used for testing the function of displaying a network name appointed by a second operator by the electronic equipment, the second test instruction comprises card information of a second SIM card and second network information, and the second SIM card and the second network information correspond to the second operator;
and the electronic equipment responds to the second test instruction, replaces the initial card information with the card information of the second SIM card, and replaces the initial network information with the second network information so as to display a second network name according to the card information of the second SIM card and the second network information.
2. The method of claim 1, wherein after the displaying of the first network name according to the card information of the first SIM card and the first network information, the method further comprises:
And the electronic equipment sends the first network name to the test terminal, wherein the first network name is used for verifying whether the electronic equipment has the function of displaying the network name appointed by the first operator.
3. The method of claim 1 or 2, wherein the electronic device comprises a radio interface layer RIL, a telephony layer and an application layer;
the obtaining the initial card information and the initial network information of the preset test SIM card comprises the following steps:
the RIL acquires the initial card information and the initial network information;
the electronic device responds to the first test instruction, replaces the initial card information with the card information of the first SIM card, replaces the initial network information with the first network information, and displays a first network name according to the card information of the first SIM card and the first network information, and comprises:
the RIL responds to the first test instruction, replaces the initial card information with the card information of the first SIM card, and replaces the initial network information with the first network information;
the RIL reports card information and the first network information of the first SIM card to the telephone communication layer;
And the telephone communication layer provides the first network name for the application layer according to the card information of the first SIM card and the first network information, and the application layer displays the first network name.
4. A method according to claim 3, wherein said replacing said initial card information with card information of said first SIM card comprises:
the RIL replaces the value of the preset parameter in the initial card information with the value of the corresponding parameter in the card information of the first SIM card; the preset parameters include at least one of group identity GID, service provider name SPN, PLMN network name PNN and international mobile subscriber identity IMSI.
5. The method of claim 4, wherein the RIL replaces the value of the preset parameter in the initial card information with the value of the corresponding parameter in the card information of the first SIM card, comprising:
the RIL judges whether the initial card information comprises the preset parameters or not;
if the initial card information comprises the preset parameters, the RIL replaces the values of the preset parameters in the initial card information with the values of the corresponding parameters in the card information of the first SIM card;
And if the initial card information does not comprise the preset parameters, reporting the initial card information to the telephone communication layer by the RIL.
6. The method of claim 4 or 5, wherein said replacing the initial network information with the first network information comprises:
the RIL judges whether the public land mobile network PLMN indicated by the test terminal is consistent with the PLMN registered by the network provided by the electronic equipment in the preset test environment;
if so, the RIL replaces the initial network information with the first network information.
7. The method is applied to a test terminal, and the test terminal is connected with an electronic device provided with a preset test SIM card; the test terminal is used for testing the function of displaying the network names appointed by different operators of the electronic equipment under a preset test environment; the method comprises the following steps:
the test terminal sends a first test instruction to the electronic equipment, wherein the first test instruction is used for testing the function of displaying a network name appointed by a first operator by the electronic equipment, the first test instruction comprises card information of a first SIM card and first network information, and the first SIM card and the first network information correspond to the first operator; the first test instruction is used for enabling the electronic equipment to respond to the first test instruction, adopting card information of the first SIM card to replace initial card information of the preset test SIM card, and adopting the first network information to replace the initial network information of the preset test SIM card, so that a first network name is displayed according to the card information of the first SIM card and the first network information; the initial card information and the initial network information of the preset test SIM card are acquired after the electronic equipment is started; the initial network information is used for indicating a network provided by the preset test environment registered by the preset test SIM card;
The test terminal sends a second test instruction to the electronic equipment, wherein the second test instruction is used for testing the function of displaying a network name appointed by a second operator by the electronic equipment, the second test instruction comprises card information of a second SIM card and second network information, and the second SIM card and the second network information correspond to the second operator; the second test instruction is used for enabling the electronic equipment to respond to the second test instruction, adopting card information of the second SIM card to replace the initial card information, and adopting the second network information to replace the initial network information, so that a second network name is displayed according to the card information of the second SIM card and the second network information.
8. The method of claim 7, wherein after the test terminal sends the first test instruction to the electronic device, the method further comprises:
the test terminal receives a first network name from the electronic equipment, wherein the first network name is displayed by the electronic equipment according to card information of the first SIM card and the first network information;
and the test terminal compares the first network name with the first operator designated network name to judge whether the electronic equipment has the function of displaying the first operator designated network name.
9. A computer device comprising a processor and a memory coupled to the processor, the memory for storing computer program code comprising computer instructions which, when executed by the processor, perform the method of testing network name display of any of claims 1 to 8.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein instructions, which when run in a computer device, cause the computer device to perform the method of testing network name display according to any of claims 1 to 8.
CN202210912380.0A 2022-07-29 2022-07-29 Network name display test method and device Active CN115460642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210912380.0A CN115460642B (en) 2022-07-29 2022-07-29 Network name display test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210912380.0A CN115460642B (en) 2022-07-29 2022-07-29 Network name display test method and device

Publications (2)

Publication Number Publication Date
CN115460642A CN115460642A (en) 2022-12-09
CN115460642B true CN115460642B (en) 2023-10-03

Family

ID=84296951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210912380.0A Active CN115460642B (en) 2022-07-29 2022-07-29 Network name display test method and device

Country Status (1)

Country Link
CN (1) CN115460642B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135618A (en) * 2023-03-21 2023-11-28 荣耀终端有限公司 Method, equipment and storage medium for setting local number function

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070027393A (en) * 2005-09-06 2007-03-09 엘지전자 주식회사 Method for displaying network information and mobile terminal thereof
CN101656974A (en) * 2009-07-17 2010-02-24 厦门敏讯信息技术股份有限公司 SIM card compatibility automated test method and device
CN102123484A (en) * 2003-02-13 2011-07-13 捷讯研究有限公司 Method and equipment for providing mobile station with manual selection of communication network
CN106686579A (en) * 2017-01-05 2017-05-17 广东欧珀移动通信有限公司 Operator name acquisition method and device
CN107509212A (en) * 2017-10-13 2017-12-22 上海展扬通信技术有限公司 A kind of method of testing and test system for mobile terminal
CN111263388A (en) * 2020-02-13 2020-06-09 上海复深蓝软件股份有限公司 Mobile network environment testing method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123484A (en) * 2003-02-13 2011-07-13 捷讯研究有限公司 Method and equipment for providing mobile station with manual selection of communication network
KR20070027393A (en) * 2005-09-06 2007-03-09 엘지전자 주식회사 Method for displaying network information and mobile terminal thereof
CN101656974A (en) * 2009-07-17 2010-02-24 厦门敏讯信息技术股份有限公司 SIM card compatibility automated test method and device
CN106686579A (en) * 2017-01-05 2017-05-17 广东欧珀移动通信有限公司 Operator name acquisition method and device
CN107509212A (en) * 2017-10-13 2017-12-22 上海展扬通信技术有限公司 A kind of method of testing and test system for mobile terminal
CN111263388A (en) * 2020-02-13 2020-06-09 上海复深蓝软件股份有限公司 Mobile network environment testing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115460642A (en) 2022-12-09

Similar Documents

Publication Publication Date Title
EP3361786B1 (en) Network access method, terminal and storage medium
KR102427401B1 (en) An electronic device providing call continuity in a weak signal environment and control method thereof
US20230171586A1 (en) Automated Subscription Management for Wireless Devices Having Multiple Subscription Profiles
CN111010693B (en) Method for providing wireless fidelity network access service and electronic equipment
CN106375962A (en) Network searching method and mobile terminal
US11570611B2 (en) Electronic device, external electronic device, and method for managing eSIM of external electronic device
US11582686B2 (en) Electronic device and method for searching for PLMN in wireless communication system
WO2018145477A1 (en) Network access method and terminal
CN115460642B (en) Network name display test method and device
CN113572890A (en) Volume management method and electronic equipment
CN110290585B (en) Method and electronic equipment for reporting CA combination
JP2013255081A (en) Communication device, communication method, control program, and recording medium
CN106454299A (en) Screen projection method and device between terminals, and terminal
US20230300598A1 (en) Display method and electronic device
US20230087282A1 (en) Dual wi-fi connection method and electronic device
CN111031531B (en) Data transmission method, device, storage medium and terminal
CN111010716B (en) Network control method, network control device, storage medium and electronic equipment
CN115776666A (en) Network parameter configuration method and related equipment
CN115398984A (en) Electronic device and method for searching wireless access technology by electronic device supporting multiple communication networks
CN110121856B (en) Control area configuration method and device
EP4290935A1 (en) Electronic device for plmn selection and operation method thereof
CN115250459B (en) Network residence method, electronic equipment and system
US20230067521A1 (en) Electronic device for acquiring network information and method for operating same
US20230275960A1 (en) Electronic device for performing edge computing service and electronic device operating method
CN117377049A (en) Method and device for limiting transmitting power

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
GR01 Patent grant
GR01 Patent grant