Communication module detection method, mobile terminal, electronic device and storage medium

By reading and locking subbands in calibration files, detecting the frequency bands supported by the communication module, the problem of hardware pin identification in the prior art is solved, and band identification without hardware pins is realized, matching efficiency is improved. Accuracy of data storage.

CN113660045BActive Publication Date: 2024-12-03QUECTEL WIRELESS SOLUTIONS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110801319.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-15
Publication Date
2024-12-03
Estimated Expiration
2041-07-15

AI Technical Summary

Technical Problem

The existing communication module detection method requires pre-equipment of the communication module with band identification hardware pins to determine the frequency bands it supports, resulting in the actual available frequency bands not being recognized when using the same module in different regions.

Method used

By reading the calibration files of each frequency band, locking and detecting whether the communication module supports each subband, storing the supported subbands, so as to understand the actual available frequency bands of the module without hardware pins.

Benefits of technology

It improves the efficiency of communication module matching, reduces the number of detections, saves computing resources, and supports personalized customized frequency band testing solutions to ensure long-term storage and accuracy of frequency band data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113660045B_ABST
    Figure CN113660045B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention relate to the field of communications, and disclose a communication module detection method, a mobile terminal, an electronic device, and a storage medium. In the present invention, the communication module detection method includes: reading the calibration files of each frequency band; the frequency band includes any one of the 2G frequency band, the 3G frequency band, the 4G frequency band, and the 5G frequency band; sequentially locking each sub-frequency band of the frequency band corresponding to the calibration file, detecting whether the communication module supports the locked sub-frequency band; and storing the sub-frequency band supported by the communication module. The communication module detection method of the present invention can obtain the actual available frequency band of the communication module by a non-hardware determination method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of communications, and in particular to a communication module detection method, a mobile terminal, an electronic device, and a storage medium. Background Art

[0002] Mobile communications are developing rapidly, penetrating into all aspects of people's work, social life, and life, and have had a huge impact on people's lifestyles, work methods, social politics, economy, and other aspects. Human society has entered the information age, and the demand for business applications in all aspects has exploded. In order to realize mobile communication services, mobile terminals need to be equipped with communication modules. Due to the different communication technology levels in different countries and regions, different communication frequency bands are used. When mobile terminals run the same application in different regions to achieve the same function, different communication modules are used, resulting in different frequency bands. Alternatively, the same communication module is used, but the frequency bands used by the communication modules are different.

[0003] In order to identify the frequency bands used by each communication module, it is necessary to equip the communication module with general-purpose IO ports (GPIO) pins so that the mobile terminal can determine whether the communication module supports the use of certain frequency bands based on the status of the GPIO pins.

[0004] Therefore, the related communication module detection method has the following problem: the communication module must be equipped with a frequency band identification hardware pin corresponding to the available frequency band in advance so that the mobile terminal can know the actual available frequency band of the communication module. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a communication module detection method, a mobile terminal, an electronic device and a storage medium, which can obtain the actual available frequency band of the communication module through a non-hardware determination method.

[0006] To solve the above technical problems, an embodiment of the present invention provides a communication module detection method, including: reading the calibration files of each frequency band; the frequency band includes any one of the 2G frequency band, the 3G frequency band, the 4G frequency band and the 5G frequency band; locking each sub-frequency band of the frequency band corresponding to the calibration file in turn, and detecting whether the communication module supports the locked sub-frequency band; and storing the sub-frequency bands supported by the communication module.

[0007] An embodiment of the present invention also provides a mobile terminal, including: a reading module, used to read the calibration files of each frequency band; the frequency band includes any one of a 2G frequency band, a 3G frequency band, a 4G frequency band and a 5G frequency band; a testing module, used to sequentially lock each sub-frequency band of the frequency band corresponding to the calibration file, and detect whether the communication module supports the locked sub-frequency band; a storage module, used to store the sub-frequency bands supported by the communication module.

[0008] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned communication module detection method.

[0009] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which implements the above-mentioned communication module detection method when executed by a processor.

[0010] Compared with the prior art, the embodiments of the present invention can determine which frequency bands of the 2G frequency band, 3G frequency band, 4G frequency band and 5G frequency band are supported by the communication module by reading the calibration files of each frequency band, and detect whether the communication module supports the locked sub-frequency band by calibrating the sub-frequency bands of the frequency band corresponding to the calibration file in turn, and store the sub-frequency bands supported by the communication module. It is possible to know which sub-frequency bands under the frequency band supported by the communication module, thereby enabling the mobile terminal to know the actual available frequency band of the communication module without equipping the communication module with hardware pins for identifying each frequency band.

[0011] In addition, locking each sub-frequency band of the frequency band corresponding to the calibration file in sequence, and detecting whether the communication module supports the locked sub-frequency band, includes: obtaining each preset sub-frequency band of the frequency band corresponding to the calibration file; locking the preset sub-frequency band in sequence, and detecting whether the communication module supports the locked preset sub-frequency band. By obtaining each preset sub-frequency band of the frequency band corresponding to the calibration file, locking the preset sub-frequency band in sequence, and detecting whether the communication module supports the locked preset sub-frequency band, the number of sub-frequency bands that need to be tested in the detection of the communication module and the sub-frequency band can be reduced, and the efficiency of communication module matching can be improved.

[0012] In addition, obtaining each preset sub-frequency band of the frequency band corresponding to the calibration file includes: providing a sub-frequency band preset interface, and receiving the preset sub-frequency band input by the user from the sub-frequency band preset interface. By providing the sub-frequency band preset interface and receiving the preset sub-frequency band input by the user from the sub-frequency band preset interface to obtain the preset sub-frequency band, the sub-frequency band to be tested can be set according to real-time needs, without pre-setting the sub-frequency band to be tested, thereby realizing a personalized customized frequency band test plan.

[0013] In addition, storing the sub-frequency bands supported by the communication module includes: storing the sub-frequency bands supported by the communication module as non-volatile data. By storing the sub-frequency bands supported by the communication module as non-volatile data, the sub-frequency bands supported by the communication module can be stored for a long time and will not be lost when the mobile terminal is turned on and off, thereby reducing the number of communication module detection methods that need to be executed when the mobile terminal is running, saving computing resources.

[0014] In addition, before storing the sub-frequency bands supported by the communication module, the method further includes: confirming that the mobile terminal successfully accesses the network through the sub-frequency bands supported by the communication module. By confirming that the mobile terminal successfully accesses the network through the sub-frequency bands supported by the communication module before storing the sub-frequency bands supported by the communication module, it is ensured that the stored sub-frequency bands are the frequency bands currently available to the mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0016] Figure 1 is a flow chart of a communication module detection method provided according to an embodiment of the present invention;

[0017] Figure 2 is a flow chart of a communication module detection method provided according to another embodiment of the present invention;

[0018] Figure 3 is a schematic diagram of the structure of a mobile terminal provided according to an embodiment of the present invention;

[0019] Figure 4 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0020] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0021] The embodiment of the present invention relates to a communication module detection method. The specific process is as follows Figure 1 shown.

[0022] Step 101, reading the calibration file of each frequency band; the frequency band includes any one of the 2G frequency band, the 3G frequency band, the 4G frequency band and the 5G frequency band;

[0023] Step 102, sequentially locking each sub-band of the frequency band corresponding to the calibration file, and detecting whether the communication module supports the locked sub-band;

[0024] Step 103: store the sub-frequency bands supported by the communication module.

[0025] The communication module detection method of this embodiment is used in a mobile terminal, such as a mobile phone. Since the communication service of the mobile terminal needs to be provided by the operator, and the communication frequency bands used by different operators are different, in order to realize the communication service of the mobile terminal, it is necessary to equip the mobile terminal with a corresponding communication module according to the frequency band used by the operator. The application in the mobile terminal generally does not differentiate and develop the frequency bands used, but is integrated into compatible applications compatible with each frequency band. In actual use, the mobile terminal needs to obtain the actual available frequency band of the communication module in order to realize the corresponding function. In the prior art, it is necessary to equip the communication module with GPIO pins, and the mobile terminal can judge whether the communication module supports the use of certain frequency bands according to the state of the GPIO pins, so as to select the frequency band to be used. Therefore, if the GPIO pins equipped with the communication module are insufficient, and pins are not equipped for some frequency bands, the mobile terminal cannot know that these frequency bands are available frequency bands.

[0026] The communication module detection method of the present application can determine which frequency bands of the 2G frequency band, 3G frequency band, 4G frequency band and 5G frequency band are supported by the communication module by reading the calibration files of each frequency band, and detect whether the communication module supports the locked sub-frequency band by sequentially calibrating each sub-frequency band of the frequency band corresponding to the calibration file, and store the sub-frequency bands supported by the communication module. It can be known which sub-frequency bands under the frequency band supported by the communication module, thereby enabling the mobile terminal to know the actual available frequency band of the communication module without equipping the communication module with hardware pins for identifying each frequency band.

[0027] The implementation details of the communication module detection method of this embodiment are specifically described below. The following content is only provided for the convenience of understanding the implementation details and is not necessary for the implementation of this solution.

[0028] In step 101, the mobile terminal reads a calibration file of each frequency band, wherein the frequency band includes any one of a 2G frequency band, a 3G frequency band, a 4G frequency band, and a 5G frequency band;

[0029] Specifically, after the mobile terminal is turned on, it immediately determines which frequency bands of 2G, 3G, 4G, and 5G are supported by the communication module. The mobile terminal can read the calibration files corresponding to each frequency band in the non-volatile memory (NV) memory. For example, if the communication module supports 2G communication, then the Global System for Mobile communications (GSM) calibration file will exist in the NV memory of the mobile terminal. If the mobile terminal can read the GSM calibration file, it can be determined that its communication module supports 2G communication. If the mobile terminal cannot read the GSM calibration file, it can be determined that its communication module does not support 2G communication.

[0030] In step 102, the mobile terminal sequentially locks each sub-band of the frequency band corresponding to the calibration file, and detects whether the communication module supports the locked sub-band. Specifically, the mobile terminal sequentially locks the band frequency, i.e., locks the band, adjusts the radio frequency (RF) parameters of the communication module, and then detects whether the communication module is available, thereby determining whether the communication module supports this band.

[0031] In an example, the mobile terminal may also only obtain the preset sub-frequency bands of the frequency band corresponding to the calibration file, lock the preset sub-frequency bands in turn, and detect whether the communication module supports the locked preset sub-frequency bands, wherein the preset sub-frequency bands may be some sub-frequency bands other than some sub-frequency bands supported by most mobile terminals, or may be some sub-frequency bands that differ between different mobile terminals supporting different operators.

[0032] In this embodiment, the mobile terminal obtains the preset sub-frequency bands of the frequency band corresponding to the calibration file, locks the preset sub-frequency bands in turn, and detects whether the communication module supports the locked preset sub-frequency bands. This can reduce the number of sub-frequency bands that need to be tested in the detection of the communication module and the sub-frequency band, thereby improving the efficiency of communication module matching.

[0033] Furthermore, the preset sub-frequency band may also be a preset sub-frequency band input by a user received by the mobile terminal, wherein the mobile terminal may provide a sub-frequency band preset interface and receive the preset sub-frequency band input by the user from the sub-frequency band preset interface. In this embodiment, the mobile terminal provides a sub-frequency band preset interface and receives the preset sub-frequency band input by the user from the sub-frequency band preset interface to obtain the preset sub-frequency band. Therefore, the sub-frequency band to be tested can be set according to real-time needs without pre-setting the sub-frequency band to be tested, thereby realizing a personalized customized frequency band test plan.

[0034] In step 103, the mobile terminal stores the sub-frequency band supported by the communication module for reading and use. Specifically, the mobile terminal can store the RF parameters of the sub-frequency band supported by the communication module in a cache for subsequent reading and use of the sub-frequency band.

[0035] In one example, the mobile terminal can store the sub-bands supported by the communication module as non-volatile data, that is, in an NV memory, so that the sub-band data in the NV memory can be directly read each time the device is turned on, without having to recalculate the sub-bands.

[0036] In this embodiment, by storing the sub-frequency bands supported by the communication module as non-volatile data, the sub-frequency bands supported by the communication module can be stored for a long time and will not be lost when the mobile terminal is turned on and off, thereby reducing the number of communication module detection methods that need to be executed when the mobile terminal is running and saving computing resources.

[0037] In one example, the mobile terminal can store the sub-frequency band supported by the communication module in a preset position of the non-volatile memory, and the preset position is a preset position in the non-volatile memory for storing the communication module matching result. In this embodiment, by storing the sub-frequency band supported by the communication module in the preset position of the non-volatile memory, the mobile terminal can quickly obtain the communication module matching result from the non-volatile memory, saving the computing resources consumed in the search process.

[0038] In one example, before storing the sub-frequency band supported by the communication module, the mobile terminal also needs to confirm that the mobile terminal successfully accesses the network through the sub-frequency band supported by the communication module, that is, uses the sub-frequency band supported by this communication module to search the network. If the network can be found, that is, this sub-frequency band is an available frequency band, this sub-frequency band is stored; if the network cannot be found, that is, this sub-frequency band is an unavailable frequency band, the mobile terminal will continue to test the next sub-frequency band.

[0039] In this embodiment, the mobile terminal confirms that the mobile terminal successfully accesses the network through the sub-frequency band supported by the communication module before storing the sub-frequency band supported by the communication module, thereby ensuring that the stored sub-frequency band is a frequency band currently available to the mobile terminal.

[0040] In one example, a compatible application can be compatible with the following three mobile terminals: communication module A can realize 4G communication and 2G communication, communication module B can only realize 4G communication and cannot use the B40 frequency band in the 4G frequency band, and communication module C can only realize 4G communication and can use the B40 frequency band. After the mobile terminal is turned on, it first determines whether the GSM calibration file can be read in the NV memory. If it can be read, it is determined that the communication module in the mobile terminal is communication module A, and the corresponding RF parameters are stored for use by compatible applications. If the GSM calibration file cannot be read, the communication module in the mobile terminal is not communication module A, and it is necessary to continue to determine which of the communication module is communication module B and communication module C. The mobile terminal locks the B40 frequency band and searches the network. If the network can be searched, it means that the communication module in this mobile terminal is communication module C, otherwise it is communication module B. The mobile terminal writes the above matching result into a preset position (flag flag) of the NV memory for storage, so that after the mobile terminal is turned on next time, the communication module matching result can be directly read from the flag flag of the NV memory.

[0041] In an example, Figure 2 As shown, after the mobile terminal is turned on, it first reads from the NV memory whether there is a GSM calibration file of the 2G network, or a Code Division Multiple Access (Code Division Multiple Access, referred to as "CDMA") calibration file or a Time Division Synchronous Code Division Multiple Access (Time Division-Synchronous Code Division Multiple Access, referred to as "TDSCDMA") calibration file of the 3G network, or a Frequency Division Duplexing (Frequency Division Duplexing, referred to as "FDD") calibration file and a Time Division Duplexing (Time Division Duplexing, referred to as "TDD") calibration file of the 4G network. Then determine which network the mobile terminal currently belongs to. Assuming that the current mobile terminal is in the 4G network, the mobile terminal locks the preset sub-band (special band) under the network, and uses the preset sub-band to test whether the communication module is available. If the test communication module is not available, switch to another sub-band to test whether the communication module is available. If all sub-bands under the network are unavailable, switch to another available network (assuming it is a 3G network). If the test communication module is available, the corresponding RF parameters are loaded, the network is searched, and the cell is accessed and resident. If the network search is normal, the RF parameters of this sub-band are written into the NV memory.

[0042] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0043] An embodiment of the present invention also relates to a mobile terminal, such as Figure 3 As shown, including:

[0044] The reading module 301 is used to read the calibration file of each frequency band; the frequency band includes any one of the 2G frequency band, the 3G frequency band, the 4G frequency band and the 5G frequency band;

[0045] The test module 302 is used to sequentially lock each sub-band of the frequency band corresponding to the calibration file, and detect whether the communication module supports the locked sub-band;

[0046] The storage module 303 is used to store the sub-frequency bands supported by the communication module.

[0047] In one example, the test module 302 is further used to obtain each preset sub-frequency band of the frequency band corresponding to the calibration file; lock the preset sub-frequency bands in sequence, and detect whether the communication module supports the locked preset sub-frequency bands.

[0048] In one example, the testing module 302 is further configured to provide a sub-frequency band preset interface, and receive a preset sub-frequency band input by a user from the sub-frequency band preset interface.

[0049] In one example, the storage module 303 is further configured to store the sub-frequency bands supported by the communication module as non-volatile data.

[0050] In one example, the storage module 303 is further configured to store the sub-frequency band supported by the communication module in a preset position of the non-volatile memory.

[0051] In one example, the mobile terminal further includes a confirmation module, which is used to confirm that the mobile terminal successfully accesses the network through the sub-frequency band supported by the communication module before storing the sub-frequency band supported by the communication module.

[0052] It is not difficult to find that this embodiment is a system embodiment corresponding to the above embodiment, and this embodiment can be implemented in conjunction with the above embodiment. The relevant technical details mentioned in the above embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiment.

[0053] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.

[0054] The embodiment of the present invention also relates to an electronic device, such as Figure 4 As shown, it includes: at least one processor 401; a memory 402 communicatively connected to the at least one processor; wherein the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401 to implement the above-mentioned communication module detection method.

[0055] The memory 402 and the processor 401 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 401 and the memory 402 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The information processed by the processor 401 is transmitted on a wireless medium via an antenna, and further, the antenna also receives information and transmits the information to the processor 401.

[0056] The processor 401 is responsible for managing the bus and general processing, and may also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 402 may be used to store information used by the processor when performing operations.

[0057] The embodiment of the present invention relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the above method embodiment is implemented.

[0058] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0059] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A communication module detection method, characterized in that: include: Reading a calibration file of each frequency band; the frequency band includes any one of a 2G frequency band, a 3G frequency band, a 4G frequency band, and a 5G frequency band; Locking each sub-frequency band of the frequency band corresponding to the calibration file in sequence, and detecting whether the communication module supports the locked sub-frequency band; wherein, obtaining each preset sub-frequency band of the frequency band corresponding to the calibration file, locking the preset sub-frequency band in sequence, and detecting whether the communication module supports the locked preset sub-frequency band, wherein the preset sub-frequency band is a sub-frequency band that supports differences between different mobile terminals of different operators; The sub-frequency bands supported by the communication module are stored.

2. The communication module detection method according to claim 1, characterized in that: The obtaining of each preset sub-frequency band of the frequency band corresponding to the calibration file includes: A sub-frequency band preset interface is provided, and a preset sub-frequency band input by a user is received from the sub-frequency band preset interface.

3. The communication module detection method according to any one of claims 1 to 2, characterized in that: The storing of the sub-frequency bands supported by the communication module includes: The sub-frequency bands supported by the communication module are stored as non-volatile data.

4. The communication module detection method according to claim 3, characterized in that: The storing of the sub-frequency bands supported by the communication module includes: The sub-frequency bands supported by the communication module are stored in a preset position of the non-volatile memory.

5. The communication module detection method according to any one of claims 1 to 2, characterized in that: Before storing the sub-frequency bands supported by the communication module, the method further includes: Confirm that the network is successfully accessed through the sub-band supported by the communication module.

6. A mobile terminal, characterized in that: include: A reading module, used to read the calibration file of each frequency band; the frequency band includes any one of the 2G frequency band, the 3G frequency band, the 4G frequency band and the 5G frequency band; A test module, used to sequentially lock each sub-frequency band of the frequency band corresponding to the calibration file, and detect whether the communication module supports the locked sub-frequency band; wherein, each preset sub-frequency band of the frequency band corresponding to the calibration file is obtained, the preset sub-frequency band is sequentially locked, and whether the communication module supports the locked preset sub-frequency band, wherein the preset sub-frequency band is a sub-frequency band that supports differences between different mobile terminals of different operators; The storage module is used to store the sub-frequency bands supported by the communication module.

7. An electronic device, characterized in that: include: at least one processor; a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the communication module detection method as described in any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the communication module detection method described in any one of claims 1 to 5 is implemented.