Disclosure of Invention
Accordingly, an object of an embodiment of the present invention is to provide a circuit detection method based on an ESIM card, an electronic device and a storage medium, so as to solve the technical problem that the circuit detection cannot be performed on the whole machine after the whole machine assembly of the electronic device is completed.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to an aspect of an embodiment of the present invention, there is provided a circuit detection method based on an ESIM card, applied to an electronic device including the ESIM card, the method including:
When a first conversion instruction is received, converting the ESIM card into a radio frequency test card;
Detecting a hardware circuit of the electronic equipment through the radio frequency test card;
and when a second conversion instruction is received, recovering the radio frequency test card to the ESIM card.
Optionally, before the converting the ESIM card into the radio frequency test card when the first converting instruction is received, the method further includes:
After the electronic equipment is powered on, performing in-place detection on the ESIM card;
and when the ESIM card is in place, outputting prompt information about the ESIM card in place.
Optionally, the performing the on-line detection on the ESIM card after the electronic device is powered up includes:
and after the electronic equipment is electrified, detecting the level state of an ESIM card detection pin, and judging that the ESIM card is in place when the level state meets a preset condition.
Optionally, when receiving the first conversion instruction, converting the ESIM card into a radio frequency test card includes:
When a first conversion instruction is received, decompiling is carried out on the ESIM card, authentication of the ESIM card is opened, and an encryption key of the ESIM card is modified to be a preset key.
Optionally, the detecting, by the radio frequency test card, a hardware circuit of the electronic device includes:
and detecting the hardware circuit of the electronic equipment based on the preset key by the radio frequency test card.
Optionally, when receiving the second conversion instruction, recovering the radio frequency test card to the ESIM card includes:
And when a second conversion instruction is received, recovering the preset key to be the encryption key of the ESIM card, and recovering the ESIM card to the initial state before the ESIM card is converted into the radio frequency test card.
Optionally, the detecting, by the radio frequency test card, a hardware circuit of the electronic device includes:
and receiving a test instruction and feeding back a test result in a coupling mode through the radio frequency test card.
Optionally, the first conversion instruction and the second conversion instruction are received through a user input unit of the electronic device.
According to another aspect of the embodiment of the invention, an electronic device is provided, which comprises an ESIM card, a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program is executed by the processor to realize the steps of the circuit detection method based on the ESIM card.
According to still another aspect of the embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon an ESIM card-based circuit detection program, which when executed by a processor, implements the steps of the above-described ESIM card-based circuit detection method.
In the ESIM card-based circuit detection method, the electronic device and the storage medium, when a first conversion instruction is received, the ESIM card is converted into the radio frequency test card, the hardware circuit of the electronic device is detected through the radio frequency test card, and when a second conversion instruction is received, the radio frequency test card is restored to the ESIM card. Through adopting this technical scheme, when carrying out the circuit detection of complete machine, through the ESIM card in the electronic equipment conversion radio frequency test card of first conversion instruction to accomplish the hardware circuit detection of electronic equipment based on this radio frequency test card, avoided the complete machine bad, and then promoted user experience.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Example 1
Fig. 1 is a flowchart of a circuit detection method based on an ESIM card according to an embodiment of the present invention. The method of this embodiment automatically operates through the electronic device including the ESIM card, where each step may be performed sequentially as shown in the flowchart during operation, or may be performed simultaneously according to a plurality of steps in actual situations, which is not limited herein. The circuit detection method based on the ESIM card provided by the invention comprises the following steps:
step S101, when a first conversion instruction is received, converting the ESIM card into a radio frequency test card;
step S102, detecting a hardware circuit of the electronic equipment through the radio frequency test card;
and step S103, when a second conversion instruction is received, the radio frequency test card is restored to the ESIM card.
According to the embodiment, firstly, when a first conversion instruction is received, the ESIM card is converted into the radio frequency test card, then, the hardware circuit of the electronic equipment is detected through the radio frequency test card, and finally, when a second conversion instruction is received, the radio frequency test card is restored into the ESIM card.
In this embodiment, it should be noted first that, in order to solve the technical problem that in the prior art, after the complete machine assembly of the electronic device is completed, circuit detection cannot be performed on the complete machine, the method includes converting the ESIM card into a radio frequency test card when a first conversion instruction is received, detecting a hardware circuit of the electronic device through the radio frequency test card, and recovering the radio frequency test card into the ESIM card when a second conversion instruction is received. After the whole machine assembly is completed, the ESIM card in the electronic equipment is converted into the radio frequency test card through the first conversion instruction, and the hardware circuit detection of the electronic equipment is completed based on the radio frequency test card, so that the defect of the whole machine is avoided, and the user experience is further improved.
The above steps will be specifically described in connection with the following embodiments.
In step S101, when a first conversion instruction is received, the ESIM card is converted into a radio frequency test card.
Specifically, when receiving a first conversion instruction, the electronic device comprising the ESIM card converts the ESIM card into a radio frequency test card so as to carry out subsequent circuit detection on the whole machine based on the radio frequency test card. The radio frequency test card can receive the test instruction and feed back the test result in a coupling mode, so that the problem that a test interface of a circuit module is packaged in an electronic equipment shell and cannot be in communication connection with test equipment is solved, and the circuit detection of the whole machine is realized.
Optionally, the first conversion instruction is received through a user input unit of the electronic device. That is, the tester can input the first conversion instruction through the user input unit of the electronic device, so as to control the electronic device to convert the ESIM card of the tester into the radio frequency test card, so that the electronic device enters a circuit test mode of the whole machine. The user input unit may be a key, a touch screen, a microphone, or the like of the electronic device, and the specific type of the user input unit is not limited in this embodiment.
For example, a tester inputs a first conversion instruction 123# through a key of the electronic device, controls the electronic device to convert the ESIM card into a radio frequency test card, and enters a circuit test mode of the whole machine.
In one embodiment, when the first conversion instruction is received, converting the ESIM card into the radio frequency test card comprises decompiling the ESIM card, opening the authentication of the ESIM card and modifying the encryption key of the ESIM card into a preset key when the first conversion instruction is received.
In this embodiment, in order to realize communication connection between the electronic device and the test device in the circuit detection process of the complete machine, when the electronic device receives the first conversion instruction, decompiling is performed on its own ESIM card, and the authentication of the ESIM card is opened and the encryption key of the ESIM card is modified to a preset key, so that the electronic device can be in communication connection with the test device based on the preset key, receive the test instruction sent by the test device, and feed back the test result to the test device. The test device may be a computer or other devices for testing, and the specific type of the test device is not limited in this embodiment.
For example, when receiving the first conversion instruction, the electronic device decompiles the ESIM card itself, opens the Authentication (Authentication), NAS Security (Non-Access Stratus Security, non-access stratum Security) and AS Security (Access Stratus Security, access stratum Security) of the ESIM card, and modifies the encryption key of the ESIM card to the preset key 000102030405060708090A0B 0C0D 0E0F Hex.
In step S102, a hardware circuit of the electronic device is detected by the radio frequency test card.
Specifically, after the communication connection is established between the electronic device and the test device through the radio frequency test card, various tests may be performed on the hardware circuit of the electronic device, for example, TRP (Total Radiated Power, total radiant power), TIS (Total Isotropic Sensitivity ), etc., and the specific test item is not limited in this embodiment.
In one embodiment, the detecting the hardware circuit of the electronic device by the radio frequency test card includes detecting the hardware circuit of the electronic device by the radio frequency test card based on the preset key.
In this embodiment, if the encryption key of the ESIM card is modified to a preset key when the ESIM card is converted to the radio frequency test card, the electronic device may detect a hardware circuit of the electronic device through the radio frequency test card based on the preset key, and specifically, may encrypt a test instruction and a test result transmitted between the electronic device and the test device with the preset key.
In step S103, when a second conversion instruction is received, the radio frequency test card is restored to the ESIM card.
Specifically, when the electronic device receives the second conversion instruction, the radio frequency test card is restored to the ESIM card so as to exit the circuit test mode of the whole device, and the default function of the ESIM card is restored.
Optionally, the second conversion instruction is received through a user input unit of the electronic device. That is, after the test is finished, or when the test is abnormal, the tester inputs the second conversion instruction through the user input unit of the electronic device, so as to control the electronic device to restore the radio frequency test card to the ESIM card, so that the electronic device exits from the circuit test mode of the whole machine.
For example, after the test is finished, or when the test is abnormal, the tester inputs a second conversion instruction 345# through a key of the electronic device, controls the electronic device to restore the radio frequency test card to the ESIM card, and exits the circuit test mode of the whole machine.
Optionally, the second conversion instruction is received from a test device through the radio frequency test card. That is, after the test device completes the circuit test of the whole machine, a second conversion instruction is sent to the electronic device, so that the electronic device restores the radio frequency test card to the ESIM card, and the circuit test mode of the whole machine is exited.
In one embodiment, the recovering the radio frequency test card to the ESIM card when the second conversion instruction is received comprises recovering the preset key to the encryption key of the ESIM card when the second conversion instruction is received, and recovering the ESIM card to the initial state before the ESIM card is converted to the radio frequency test card.
In this embodiment, when receiving the second conversion instruction, the electronic device restores the preset key to the encryption key of the ESIM card, and restores the ESIM card to the initial state before the conversion of the ESIM card to the radio frequency test card, so as to restore the default function of the ESIM card.
For example, when receiving the second conversion instruction, the electronic device restores the preset key to the encryption key of the ESIM card, and restores Authentication, NAS Security, AS Security Authentication.
In an implementation manner, please refer to fig. 2, fig. 2 is a flowchart of another circuit detection method based on an ESIM card according to an embodiment of the present invention. Before the converting the ESIM card into the radio frequency test card when the first converting instruction is received, the method further comprises:
Step S104, after the electronic equipment is powered on, the ESIM card is subjected to in-situ detection;
step S105, when the ESIM card is in place, outputting prompt information about the ESIM card in place.
In this embodiment, when the circuit test of the whole machine is performed on the electronic device, the electronic device is powered on, then the on-site detection is performed on the ESIM card, and if the on-site detection of the ESIM card is detected, the on-site prompt information about the ESIM card is output, so that the tester can perform the subsequent circuit test of the whole machine after knowing the on-site detection result of the ESIM card. For example, if the ESIM card is detected to be in place, the circuit test of the subsequent complete machine is performed, and if the ESIM card cannot be detected to be in place, the circuit test of the complete machine can be directly terminated.
In one embodiment, the step of performing in-place detection on the ESIM card after the electronic device is powered on includes detecting a level state of an ESIM card detection pin after the electronic device is powered on, and determining that the ESIM card is in place when the level state meets a preset condition.
In this embodiment, the electronic device may be provided with an ESIM card detection pin, which is set to a low level when no ESIM card is inserted or no ESIM card is recognized, and which is set to a high level when an ESIM card is inserted or no ESIM card is recognized, or the electronic device may be provided with an ESIM card detection pin which is pulled up to a power supply through a resistor, and which is set to a high level when no ESIM card is inserted, and which is pulled down to a low level when an ESIM card is inserted. Those skilled in the art will appreciate that the level state detection of the ESIM card detection pin may be implemented in other manners, and the embodiment is not limited to a specific manner of implementing the level state detection of the ESIM card detection pin.
In the embodiment of the invention, the ESIM card is converted into the radio frequency test card when the first conversion instruction is received, the hardware circuit of the electronic equipment is detected by the radio frequency test card, and the radio frequency test card is recovered into the ESIM card when the second conversion instruction is received. When the circuit of the whole machine is detected, the ESIM card in the electronic equipment is converted into the radio frequency test card through the first conversion instruction, and the hardware circuit detection of the electronic equipment is finished based on the radio frequency test card, so that the defect of the whole machine is avoided, and the user experience is further improved.
Example two
Based on the above embodiments, fig. 3 is a flowchart of still another circuit detection method based on an ESIM card according to an embodiment of the present invention. The method comprises the following steps:
step S201, after the electronic equipment is powered on, the ESIM card is subjected to in-place detection;
step S202, judging whether the ESIM card is in place, if so, executing step S203, otherwise, turning to step S209;
step S203, outputting prompt information about the ESIM card in place;
Step S204, judging whether a first conversion instruction is received within a preset time, if yes, executing step S205, otherwise, turning to step S209;
Specifically, if the electronic equipment receives the first conversion instruction within the preset time, the electronic equipment converts the ESIM card of the electronic equipment into a radio frequency test card and enters a circuit test mode of the whole machine so as to detect a hardware circuit of the electronic equipment through the radio frequency test card, and if the electronic equipment does not receive the first conversion instruction within the preset time, the electronic equipment is not subjected to the hardware circuit test, and at the moment, the ESIM card is not required to be converted into the radio frequency test card, and the circuit detection flow based on the ESIM card is directly ended.
Step S205, converting the ESIM card into a radio frequency test card;
Step S206, detecting the hardware circuit of the electronic equipment through the radio frequency test card;
Step S207, judging whether a second conversion instruction is received, if yes, executing step S208, otherwise, turning to step S206;
Specifically, if the electronic equipment receives the second conversion instruction, the radio frequency test card is restored to the ESIM card and exits from the circuit test mode of the whole machine, and if the electronic equipment does not receive the second conversion instruction, the circuit test of the whole machine is not completed, and at the moment, the hardware circuit of the electronic equipment is continuously detected through the radio frequency test card.
Step S208, recovering the radio frequency test card to the ESIM card;
step S209, the flow ends.
For example, when the circuit detection method based on the ESIM card of the embodiment is used for detecting the circuit of the electronic device, the electronic device is powered on first, after the electronic device is powered on, the ESIM card is subjected to in-place detection, if the ESIM card is detected to be in place, prompt information about the in-place position of the ESIM card is output through a display screen of the electronic device, so that a tester can input a first conversion instruction through a keyboard of the electronic device after knowing that the ESIM card is in place, and the electronic device is controlled to convert the ESIM card into a radio frequency test card. And then, placing the electronic equipment in a preset position of the coupling box, and respectively connecting the coupling box with the testing equipment and the testing instrument. The test equipment runs an automatic test script, sends a test instruction to the electronic equipment through a coupling box and a radio frequency test card, controls a circuit of the electronic equipment to work in a working mode corresponding to the test instruction (for example, the electronic equipment communicates with a base station in a mode corresponding to the test instruction) after receiving the test instruction, feeds test results of the electronic equipment back to the test equipment through the radio frequency test card and the coupling box, measures test data of the electronic equipment in a circuit detection process through the coupling box by the test instrument, generates a test report based on the test data and reports the test report to the test equipment, compares the test report with a preset threshold value, determines whether circuit detection of the electronic equipment is passed or not according to a preset judging condition, and outputs the detection results so that test staff can know the test results in time. If the test is passed, the electronic equipment can be taken out from the coupling box, a second conversion instruction is input through the keyboard of the electronic equipment, and after the electronic equipment receives the second conversion instruction, the radio frequency test card is restored to the ESIM card. Thus, the circuit detection of the electronic device is completed, and the ESIM card is restored to the default function. It will be appreciated by those skilled in the art that the predetermined location at which the electronic device is placed in the coupling box may be determined by testing an electronic device in the coupling box that is optimized for each of the various indicators and parameters.
In the embodiment of the invention, the in-place detection is carried out on the ESIM card after the electronic equipment is electrified, when the ESIM card is in place, prompt information about the ESIM card is output, when a first conversion instruction is received, the ESIM card is converted into a radio frequency test card, the hardware circuit of the electronic equipment is detected through the radio frequency test card, and when a second conversion instruction is received, the radio frequency test card is recovered into the ESIM card. When the circuit of the whole machine is detected, the ESIM card in the electronic equipment is converted into the radio frequency test card through the first conversion instruction, and the hardware circuit detection of the electronic equipment is finished based on the radio frequency test card, so that the defect of the whole machine is avoided, and the user experience is further improved.
Example III
Fig. 4 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present invention. The electronic device 300 comprises an ESIM card 301, a memory 302, a processor 303 and a computer program (not shown) stored on the memory 302 and executable on the processor 303, which when executed by the processor 303, implements the steps of the ESIM card based circuit detection method as described in the first or second embodiments.
The electronic device of the embodiment of the present invention belongs to the same concept as the circuit detection method based on the ESIM card of the first embodiment and the second embodiment, and the specific implementation process is detailed in the corresponding method embodiment, and the technical features of the method embodiment are correspondingly applicable in the electronic device embodiment, which is not repeated herein.
Example IV
The embodiment of the invention also provides a computer readable storage medium, on which a circuit detection program based on an ESIM card is stored, where the circuit detection program based on the ESIM card implements the steps of the circuit detection method based on the ESIM card according to the first or second embodiment.
The computer readable storage medium of the embodiment of the present invention belongs to the same concept as the methods of the first embodiment and the second embodiment, and the specific implementation process is detailed in the corresponding method embodiment, and the technical features of the method embodiment are correspondingly applicable to the computer readable storage medium embodiment, and are not repeated herein.
The corresponding technical features in the above embodiments can be used mutually without causing contradiction between schemes or incapacitation.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.