Terminal antenna locking method and device, equipment and storage medium

By identifying the identity of the subscriber identification card and triggering the modem to restart, and locking the antenna in combination with the code file, the problem of the complexity of the antenna coupling test of the terminal product is solved, and the test efficiency and production line productivity are improved.

CN118659837APending Publication Date: 2024-09-17XIAN WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410811491.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

With the development of wireless technology, the number of antennas and frequency bands in terminal products has increased, resulting in an increase in the complexity of antenna coupling testing. There is an urgent need to simplify test tools to improve test efficiency and production line productivity.

Method used

By identifying the identity of the subscriber identity card, if it is a preset identity, the modem is triggered to restart, and the code file is called to lock the associated antenna, which is used to test the antenna coupling status of the terminal.

Benefits of technology

It simplifies the complexity of the test tool, improves the test efficiency, and thus increases the production line productivity. It can complete the antenna coupling test in a short time after the test SIM card is inserted, and there is no need to repeatedly insert the SIM card during the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659837A
    Figure CN118659837A
Patent Text Reader

Abstract

The invention provides a terminal antenna locking method and device, equipment and a storage medium, and relates to the technical field of terminal antennae, the method comprises the following steps: identifying an identifier of a user identification card, if the identifier of the user identification card is a preset identifier, triggering a modem, and controlling the modem to restart; wherein the preset identifier represents that the user identification card is a test card; if it is determined that the modem is in the restart state, calling the first code file; wherein the first code file is used for indicating the modem to lock an associated antenna; controlling a modem to lock an associated antenna according to the first code file; wherein the associated antenna is used for testing the antenna coupling state of the terminal. By adopting the technical scheme, the complexity of a test tool can be simplified, the test efficiency is improved, and the productivity of a production line is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of terminal antennas, and in particular to a terminal antenna locking method, device, equipment and storage medium. Background Art

[0002] With the development of wireless technology, the number of antennas in mobile terminal products has also increased. At present, antenna coupling testing is a necessary step for all wireless terminal products in the production process. Antenna coupling testing has become increasingly complex due to the number of antennas and frequency bands.

[0003] Therefore, there is an urgent need for a terminal antenna locking method that can simplify the complexity of the test tool, improve the test efficiency, and thus increase the production line capacity. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a terminal antenna locking method, device, equipment and storage medium.

[0005] In a first aspect, the present disclosure provides a terminal antenna locking method, the method comprising:

[0006] Identify the identifier of the user identification card, and if the identifier of the user identification card is a preset identifier, trigger the modem and control the modem to restart; wherein the preset identifier indicates that the user identification card is a test card;

[0007] If it is determined that the modem is in a restart state, calling a first code file; wherein the first code file is used to instruct the modem to lock the associated antenna;

[0008] According to the first code file, the modem is controlled to lock an associated antenna; wherein the associated antenna is used to test an antenna coupling state of the terminal.

[0009] In one example, triggering the modem and controlling the modem to restart includes:

[0010] A preset interface is called, and the modem is triggered based on the preset interface to control the modem to restart.

[0011] In one example, before triggering the modem and controlling the modem to restart, the method further includes:

[0012] If the identifier of the user identification card is a preset identifier, the preset text information is written into the second code file to obtain the first code file; wherein the second code file is a preset blank code file; the preset text information is used to represent the identification information of the locked antenna.

[0013] In one example, controlling the modem to lock the associated antenna according to the first code file includes:

[0014] Obtaining the first code file, and identifying preset text information in the first code file;

[0015] According to the preset text information, calling a preset antenna identification table;

[0016] According to the preset antenna identification table, the associated antenna is determined, and the modem is controlled to lock the associated antenna.

[0017] In one example, the method further includes:

[0018] If the identifier of the subscriber identification card is a preset identifier and it is detected that the state of the subscriber identification card changes from an inserted state to an unplugged state, the modem is controlled to keep the associated antenna that has been locked.

[0019] In one example, the method further includes:

[0020] Identify the identifier of the user identification card, and if the identifier of the user identification card is not a preset identifier, call a third code file; wherein the third code file is used to instruct the modem to determine an associated antenna in a preset antenna list;

[0021] According to the third code file, the modem is controlled to switch an associated antenna in a preset antenna list.

[0022] In one example, the time used for identifying the identity of the user identification card is preset.

[0023] In a second aspect, the present disclosure provides a terminal antenna locking device, the device comprising:

[0024] An identification module, used for identifying the identifier of a user identification card, and triggering a modem if the identifier of the user identification card is a preset identifier, and controlling the modem to restart; wherein the preset identifier indicates that the user identification card is a test card;

[0025] A first calling module, configured to call a first code file if it is determined that the modem is in a restart state; wherein the first code file is used to instruct the modem to lock an associated antenna;

[0026] The first control module is used to control the modem to lock the associated antenna according to the first code file; wherein the associated antenna is used to test the antenna coupling state of the terminal.

[0027] In one example, the identification module is specifically configured to call a preset interface, and trigger the modem based on the preset interface to control the modem to restart.

[0028] In one example, the device further includes:

[0029] A writing module is used to write preset text information into a second code file to obtain the first code file if the identifier of the user identification card is a preset identifier; wherein the second code file is a preset blank code file; and the preset text information is used to represent the identification information of the locked antenna.

[0030] In one example, the first control module is specifically used to obtain the first code file, identify preset text information in the first code file; call up a preset antenna identification table according to the preset text information; determine the associated antenna according to the preset antenna identification table, and control the modem to lock the associated antenna.

[0031] In one example, the apparatus further comprises:

[0032] The detection module is used for controlling the modem to keep the associated antenna locked if the identifier of the user identification card is a preset identifier and it is detected that the state of the user identification card changes from the inserted state to the unplugged state.

[0033] In one example, the apparatus further comprises:

[0034] A second calling module is used to call a third code file if the identifier of the user identification card is not a preset identifier; wherein the third code file is used to instruct the modem to determine an associated antenna in a preset antenna list;

[0035] The second control module is used to control the modem to switch the associated antenna in the preset antenna list according to the third code file.

[0036] In one example, the time used for identifying the identity of the user identification card is preset.

[0037] In a third aspect, the present disclosure provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in the first aspect when executing the computer program.

[0038] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in the first aspect.

[0039] The present disclosure provides a terminal antenna locking method, device, equipment and storage medium, which identifies the identifier of a user identification card, triggers a modem if the identifier of the user identification card is a preset identifier, and controls the modem to restart; wherein the preset identifier indicates that the user identification card is a test card; after determining that the modem is in a restart state, calls a first code file; wherein the first code file is used to instruct the modem to lock the associated antenna; according to the first code file, controls the modem to lock the associated antenna; wherein the associated antenna is used to test the antenna coupling state of the terminal. The use of this technical solution can simplify the complexity of the test tool, improve the test efficiency, and thus improve the production line capacity. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1a What is shown is a hardware interaction schematic diagram of an antenna coupling test;

[0043] Figure 1b Shown is a schematic diagram of antenna switching diversity technology;

[0044] Figure 1c Shown is a schematic diagram of antenna locking;

[0045] Figure 1d It is a flowchart of a terminal antenna locking method provided according to the first embodiment of the present disclosure;

[0046] Figure 2 It is a flowchart of a terminal antenna locking method provided according to the second embodiment of the present disclosure;

[0047] Figure 3 is a structural schematic diagram of a terminal antenna locking device provided according to Embodiment 3 of the present disclosure;

[0048] Figure 4 is a structural schematic diagram of a terminal antenna locking device provided according to a fourth embodiment of the present disclosure;

[0049] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0050] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0051] In order to better understand the solution of the present disclosure, the locking process of the terminal antenna in the prior art is first given. For details, please refer to Figure 1a A hardware interaction diagram of an antenna coupling test is shown. As can be seen from the figure, the antenna coupling test includes a test workstation, a terminal under test, and a USB connection cable between the test workstation and the terminal under test. At present, if it is necessary to complete the antenna coupling test of the terminal under test, the test workstation can send a test instruction to the terminal under test. Specifically, the test instruction sent by the test workstation to the terminal under test is as follows: The first is to lock the antenna to antenna No. 2, and the test instruction is 75 11 39 0 7 0 0 0 0 0 2 1 1. The second is to switch the antenna back to antenna No. 2, and the test instruction is 75 11 39 07 0 0 0 0 0 2 01. The third is to lock the antenna to antenna No. 2 when online, and the test instruction is 75 11 39 07 00 0 0 0 2 1 0. The fourth method is to switch the antenna back to antenna 2 when online. The test command is 75 11 39 0 7 0 00 0 0 2 0 0. For details, the antenna switching process inside the terminal under test can be found in Figure 1b The schematic diagram of the antenna switching diversity technology is shown, from which the antenna switching process can be seen. The antennas include ANT5, ANT1, ANT4 and ANT3, and can switch between different antennas according to different test instructions. Figure 1c A schematic diagram of antenna locking is shown, from which it can be seen that the antenna is kept at antenna ANT5 before the test.

[0052] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0053] Figure 1d 1 is a flow chart of a terminal antenna locking method provided according to Embodiment 1 of the present disclosure. Embodiment 1 includes the following steps:

[0054] S101, identifying an identifier of a subscriber identification card, and if the identifier of the subscriber identification card is a preset identifier, triggering a modem and controlling the modem to restart; wherein the preset identifier indicates that the subscriber identification card is a test card.

[0055] In one example, a Subscriber Identity Module (SIM card) is an IC card held by a mobile user of the GSM system. Each Subscriber Identity Module has a unique identifier, for example, the identifier of a SIM card may be AAAAAA. The preset identifier is 00101, which indicates a test card, specifically, it indicates that the SIM card is used for testing. A modem is an abbreviation of a modulator and a demodulator, and is a computer hardware that can translate a computer's digital signal into an analog signal that can be transmitted along a common telephone line, and these analog signals can be received by another modem at the other end of the line and translated into a language that the computer can understand. In this embodiment, when it is detected that the Subscriber Identity Module is a test card, the modem is triggered, and the modem is controlled to restart, and then executed according to the preset code logic.

[0056] S102: If it is determined that the modem is in a restart state, call a first code file; wherein the first code file is used to instruct the modem to lock an associated antenna.

[0057] In this embodiment, the first code file is a code file pre-written by the user. After determining that the modem is in a restart state, the operation of calling the first code file is executed, and then the modem is instructed to lock the associated antenna. The meaning of locking the associated antenna is to determine an antenna from multiple antennas. For example, the multiple antennas may be antenna A, antenna B, and antenna C. One of antenna A, antenna B, and antenna C is locked by the modem. In this embodiment, antenna C is locked.

[0058] S103. According to the first code file, control the modem to lock the associated antenna; wherein the associated antenna is used to test the antenna coupling state of the terminal.

[0059] In this embodiment, the modem is controlled to lock the associated antenna according to the first code file and then the content in the first code file. After locking the antenna, the antenna coupling state of the terminal is tested through the locked antenna.

[0060] The present disclosure provides a terminal antenna locking method, which identifies the identifier of a user identification card. If the identifier of the user identification card is a preset identifier, the modem is triggered and the modem is controlled to restart; wherein the preset identifier indicates that the user identification card is a test card; after determining that the modem is in a restart state, the first code file is called; wherein the first code file is used to instruct the modem to lock the associated antenna; according to the first code file, the modem is controlled to lock the associated antenna; wherein the associated antenna is used to test the antenna coupling state of the terminal. The adoption of this technical solution can simplify the complexity of the test tool, improve the test efficiency, and thus improve the production line capacity.

[0061] Figure 2 1 is a flow chart of a terminal antenna locking method provided according to Embodiment 2 of the present disclosure. Embodiment 2 includes the following steps:

[0062] S201: Identify the ID of the user identification card.

[0063] Exemplarily, this step may refer to the above-mentioned step S101 and will not be described in detail.

[0064] S202, identifying the identifier of the user identification card. If the identifier of the user identification card is a preset identifier, writing preset text information into the second code file to obtain a first code file; wherein the second code file is a preset blank code file; the preset text information is used to represent the identification information of the locked antenna.

[0065] In one example, the time used to identify the identification of the user identification card is preset. In this embodiment, the execution subject is a modem. The preset text information represents the identification information of the locked antenna, for example, the preset text information can be RF CARD id = BNV28967. Specifically, the preset text information can be written into the second code file, and then the first code file is obtained.

[0066] S203: calling a preset interface, and triggering a modem based on the preset interface to control the modem to restart, wherein the preset identifier indicates that the subscriber identity card is a test card.

[0067] In an example, the preset interface may be an ERR_FATAL interface. Calling the preset interface means triggering the modem through the preset interface, thereby controlling the modem to restart.

[0068] S204: If it is determined that the modem is in a restart state, call a first code file; wherein the first code file is used to instruct the modem to lock an associated antenna.

[0069] Exemplarily, this step may refer to the above-mentioned step S102 and will not be described in detail.

[0070] S205: Obtain a first code file, and identify preset text information in the first code file.

[0071] In one example, the preset text information is written into the second code file after the identifier of the user identification card is identified as the preset identifier in step S201, and then the first code file is read to find the preset text information from the first code file.

[0072] S206: Retrieve a preset antenna identification table according to the preset text information.

[0073] In one example, the identification information of the antenna to be locked can be determined according to the preset text information, and then the preset antenna identification table is retrieved to search for the identification information of the antenna in the preset antenna identification table, thereby determining the locking method of the antenna.

[0074] S207: Determine the associated antenna according to the preset antenna identification table, and control the modem to lock the associated antenna, wherein the associated antenna is used to test the antenna coupling state of the terminal.

[0075] In one example, a preset antenna identification table may be traversed, and then the associated antenna may be determined, and then the modem may be controlled to lock the associated antenna, thereby completing the antenna coupling test of the terminal.

[0076] S208: If the identifier of the subscriber identity card is a preset identifier and it is detected that the state of the subscriber identity card is changed from the inserted state to the unplugged state, control the modem to keep the associated antenna that has been locked.

[0077] In one example, if the identifier of the SIM card is a preset identifier and it is detected that the state of the SIM card changes from the inserted state to the unplugged state, it means that the antenna coupling test is finished, and the modem still keeps the associated antenna locked.

[0078] S209: If the identifier of the user identification card is not a preset identifier, call a third code file; wherein the third code file is used to instruct the modem to determine an associated antenna in a preset antenna list.

[0079] In one example, the identifier of the user identification card is identified. If the identifier of the user identification card is not a preset identifier, it means that the user identification card is not a test card, and the third code file is called, wherein the third code file does not limit the associated antenna, but determines the associated antenna according to different situations. Specifically, the content of the third code file can be the antenna switching diversity (Antenna Switching Diversity, referred to as asdiv) technology used.

[0080] S210. According to the third code file, control the modem to switch the associated antenna in the preset antenna list.

[0081] In one example, the modem may be controlled to switch the associated antenna in a preset antenna list according to the third code file. Figure 1b The antenna switching diversity technology shown implements switching of associated antennas in a preset antenna list.

[0082] The present disclosure provides a terminal antenna locking method, which identifies the identifier of a user identification card, writes preset text information in a second code file if the identifier of the user identification card is a preset identifier, obtains a first code file, calls a preset interface, and triggers a modem based on the preset interface to control the modem to restart, wherein the preset identifier indicates that the user identification card is a test card, and after determining that the modem is in a restart state, calls the first code file; wherein the first code file is used to instruct the modem to lock an associated antenna, obtains the first code file, identifies the preset text information in the first code file, retrieves a preset antenna identification table according to the preset text information, determines the associated antenna according to the preset antenna identification table, and controls the modem to lock the associated antenna. wherein the associated antenna is used to test the antenna coupling state of the terminal, and if the identifier of the user identification card is a preset identifier and it is detected that the state of the user identification card changes from an inserted state to an unplugged state, controls the modem to keep the associated antenna that has been locked, identifies the identifier of the user identification card, and if the identifier of the user identification card is not a preset identifier, calls a third code file; wherein the third code file is used to instruct the modem to determine the associated antenna in a preset antenna list. By adopting this technical solution, the antenna coupling test can be completed in a short time after the test SIM card is inserted, and there is no need to repeatedly insert the SIM card during the test.

[0083] Figure 3 1 is a schematic diagram of a terminal antenna locking device provided according to Embodiment 3 of the present disclosure. Specifically, the device 30 of Embodiment 3 includes:

[0084] The identification module 301 is used to identify the identifier of the user identification card. If the identifier of the user identification card is a preset identifier, the modem is triggered and controlled to restart. The preset identifier indicates that the user identification card is a test card.

[0085] The first calling module 302 is used to call a first code file if it is determined that the modem is in a restart state; wherein the first code file is used to instruct the modem to lock an associated antenna.

[0086] The first control module 303 is used to control the modem to lock the associated antenna according to the first code file; wherein the associated antenna is used to test the antenna coupling state of the terminal.

[0087] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0088] Figure 4 1 is a schematic diagram of a terminal antenna locking device according to a fourth embodiment of the present disclosure. Specifically, the device 40 of the fourth embodiment includes:

[0089] The identification module 401 is used to identify the identifier of the user identification card. If the identifier of the user identification card is a preset identifier, the modem is triggered and the modem is controlled to restart; wherein the preset identifier indicates that the user identification card is a test card;

[0090] A first calling module 402 is used to call a first code file if it is determined that the modem is in a restart state; wherein the first code file is used to instruct the modem to lock the associated antenna;

[0091] The first control module 403 is used to control the modem to lock the associated antenna according to the first code file; wherein the associated antenna is used to test the antenna coupling state of the terminal.

[0092] In an example, the identification module 401 is specifically configured to call a preset interface, and trigger the modem based on the preset interface to control the modem to restart.

[0093] In one example, the apparatus 40 further includes:

[0094] The writing module 404 is used to write preset text information into the second code file to obtain the first code file if the identifier of the user identification card is a preset identifier; wherein the second code file is a preset blank code file; the preset text information is used to represent the identification information of the locked antenna.

[0095] In one example, the first control module 403 is specifically used to obtain a first code file, identify preset text information in the first code file; retrieve a preset antenna identification table according to the preset text information; determine the associated antenna according to the preset antenna identification table, and control the modem to lock the associated antenna.

[0096] In one example, the apparatus 40 further includes:

[0097] The detection module 405 is used to control the modem to keep the associated antenna locked if the identifier of the subscriber identity card is a preset identifier and it is detected that the state of the subscriber identity card changes from the inserted state to the unplugged state.

[0098] In one example, the apparatus 40 further includes:

[0099] The second calling module 406 is used to identify the identifier of the user identification card, and if the identifier of the user identification card is not a preset identifier, call a third code file; wherein the third code file is used to instruct the modem to determine the associated antenna in the preset antenna list;

[0100] The second control module 407 is used to control the modem to switch the associated antenna in the preset antenna list according to the third code file.

[0101] In one example, the time used to identify the identity of the user identification card is preset.

[0102] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0103] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment, which device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0104] Device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0105] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0106] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0107] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.

[0108] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0109] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0110] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0111] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500 and the temperature change of the device 500. The sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0112] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0113] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0114] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of the apparatus 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0115] A non-temporary computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute a terminal antenna locking method of the above-mentioned electronic device.

[0116] The present disclosure also discloses a computer program product, including a computer program, which implements the method in the present embodiment when executed by a processor.

[0117] Various embodiments of the systems and techniques described above in the present disclosure may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0118] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or electronic device.

[0119] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0120] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0121] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data electronic device), or a computing system that includes middleware components (e.g., an application electronic device), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0122] The computer system may include a client and an electronic device. The client and the electronic device are generally far away from each other and usually interact through a communication network. The relationship between the client and the electronic device is generated by computer programs running on corresponding computers and having a client-electronic device relationship with each other. The electronic device may be a cloud electronic device, also known as a cloud computing electronic device or a cloud host, which is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The electronic device may also be an electronic device of a distributed system, or an electronic device combined with a blockchain. It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution disclosed in this disclosure can be achieved, and this document is not limited here.

[0123] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0124] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0125] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present disclosure can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0126] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present disclosure may be integrated into one unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0127] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. If not specifically stated, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. If not specifically stated, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc.

[0128] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present disclosure. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0129] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0130] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0131] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A terminal antenna locking method, characterized in that: The method comprises: Identify the identifier of the user identification card, and if the identifier of the user identification card is a preset identifier, trigger the modem and control the modem to restart; wherein the preset identifier indicates that the user identification card is a test card; If it is determined that the modem is in a restart state, calling a first code file; wherein the first code file is used to instruct the modem to lock the associated antenna; According to the first code file, the modem is controlled to lock an associated antenna; wherein the associated antenna is used to test an antenna coupling state of the terminal.

2. The method according to claim 1, characterized in that: The triggering of the modem and controlling the modem to restart include: A preset interface is called, and the modem is triggered based on the preset interface to control the modem to restart.

3. The method according to claim 2, characterized in that Before triggering the modem and controlling the modem to restart, the method further includes: If the identifier of the user identification card is a preset identifier, the preset text information is written into the second code file to obtain the first code file; wherein the second code file is a preset blank code file; the preset text information is used to represent the identification information of the locked antenna.

4. The method according to claim 3, characterized in that The step of controlling the modem to lock the associated antenna according to the first code file comprises: Obtaining the first code file, and identifying preset text information in the first code file; According to the preset text information, calling a preset antenna identification table; According to the preset antenna identification table, the associated antenna is determined, and the modem is controlled to lock the associated antenna.

5. The method according to claim 1, characterized in that The method further comprises: If the identifier of the subscriber identification card is a preset identifier and it is detected that the state of the subscriber identification card changes from an inserted state to an unplugged state, the modem is controlled to keep the associated antenna that has been locked.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If the identifier of the user identification card is not a preset identifier, calling a third code file; wherein the third code file is used to instruct the modem to determine an associated antenna in a preset antenna list; According to the third code file, the modem is controlled to switch an associated antenna in a preset antenna list.

7. The method according to claim 6, characterized in that The time used for identifying the identifier of the user identification card is preset.

8. A terminal antenna locking device, characterized in that: The device comprises: An identification module, used for identifying the identifier of a user identification card, and triggering a modem if the identifier of the user identification card is a preset identifier, and controlling the modem to restart; wherein the preset identifier indicates that the user identification card is a test card; A first calling module, configured to call a first code file if it is determined that the modem is in a restart state; wherein the first code file is used to instruct the modem to lock an associated antenna; The first control module is used to control the modem to lock the associated antenna according to the first code file; wherein the associated antenna is used to test the antenna coupling state of the terminal.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.