CN110048824B - Communication module control method, control device, and computer-readable storage medium - Google Patents

Communication module control method, control device, and computer-readable storage medium Download PDF

Info

Publication number
CN110048824B
CN110048824B CN201910225717.9A CN201910225717A CN110048824B CN 110048824 B CN110048824 B CN 110048824B CN 201910225717 A CN201910225717 A CN 201910225717A CN 110048824 B CN110048824 B CN 110048824B
Authority
CN
China
Prior art keywords
communication
communication module
code
module
closing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910225717.9A
Other languages
Chinese (zh)
Other versions
CN110048824A (en
Inventor
俞斌
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Rongzhao Intelligent Co ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910225717.9A priority Critical patent/CN110048824B/en
Publication of CN110048824A publication Critical patent/CN110048824A/en
Application granted granted Critical
Publication of CN110048824B publication Critical patent/CN110048824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The embodiment of the application discloses a control method, a control device and a computer readable storage medium of a communication module, wherein the control method comprises the following steps: acquiring a communication instruction for closing the communication module; judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired; if so, the communication module is maintained in an open state. When a communication instruction for closing the communication module is received, the communication instruction for closing the communication module is not executed under the condition that the record for opening or closing the communication module exists in the past, and the communication module is kept in an open state, so that the communication module can be directly used when being called, and communication interruption is avoided.

Description

Communication module control method, control device, and computer-readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a communication module, and a computer-readable storage medium.
Background
Code Division Multiple Access (CDMA) refers to Code Division Multiple Access (CDMA) which uses address codes to distinguish different signals. The principle of CDMA technology is based on spread spectrum technology, which realizes the sharing of multiple users on the same frequency at the same time by different spread spectrum codes, i.e. the information data with certain signal bandwidth to be transmitted is modulated by a high-speed pseudo-random code with bandwidth far greater than that of the signal, so that the bandwidth of the original data signal is expanded, modulated by carrier and transmitted.
In addition to the CDMA technology, more advanced CDMA systems have been developed, such as 2000(Code Division Multiple Access2000, CDMA2000), WCDMA (Wideband Code Division Multiple Access), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), and when a mobile terminal based on the CDMA technology calls CDMA, there may be a situation of mutual closure between the systems. For example, both system a and system B need to use CDMA, but when system a is turned off, CDMA is turned off at the same time, and when system B calls CDMA, CDMA cannot be used, thereby causing communication interruption.
That is, in the prior art, the communication module is improperly controlled, which causes communication interruption.
Disclosure of Invention
Embodiments of the present application provide a control method and a control apparatus for a communication module, and a computer-readable storage medium, which can reasonably control the communication module and avoid communication interruption.
In order to solve the above problem, in a first aspect, the present application provides a control method for a communication module, where the control method includes:
acquiring a communication instruction for closing the communication module;
judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired;
and if so, keeping the communication module in an open state.
The communication module corresponds to a plurality of standard codes;
judging whether the communication instruction in the communication code is to close the communication module;
and if the communication instruction in the communication code is to close the communication module, acquiring the communication instruction for closing the communication module.
Wherein the control method further comprises:
and if the communication instruction in the communication code is not to close the communication module, configuring the communication module according to the system code in the communication code acquired this time.
Judging whether a record for opening or closing the communication module exists before the communication instruction for closing the communication module is acquired comprises the following steps:
judging whether other communication codes except the communication code acquired this time are stored;
if other communication codes except the communication code acquired this time are stored, judging that a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired; and if no other communication codes except the communication code acquired this time are stored, judging that no record for opening or closing the communication module exists before the communication instruction for closing the communication module is acquired.
Wherein said maintaining said communication module in an open state comprises:
and keeping the communication module in an open state, and configuring the communication module according to other communication codes except the communication code acquired at this time.
And if the communication module does not exist, closing the communication module.
In order to solve the above problem, in a second aspect, the present application provides a control device of a communication module, applied to a mobile terminal, including:
the acquisition module is used for acquiring a communication instruction for closing the communication module;
the judging module is used for judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired;
and the execution module is used for keeping the communication module in an open state when the record of opening or closing the communication module exists before the communication instruction of closing the communication module is acquired.
The acquisition module is further used for acquiring communication codes, wherein the communication codes comprise system codes and the communication instruction, the communication module corresponds to a plurality of system codes, and the communication module configures different modes according to different system codes;
the judging module is also used for judging whether the communication instruction in the communication code is to close the communication module;
the obtaining module is further configured to obtain a communication instruction for closing the communication module when the communication instruction in the communication code is to close the communication module.
The execution module is further configured to configure the communication module according to the standard code in the communication code acquired this time when the communication instruction in the communication code is not to close the communication module.
In order to solve the above problem, in a third aspect, the present application provides a computer-readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to execute the control method of the communication module of any one of the above.
The beneficial effect of this application is: different from the prior art, the present application provides a control method for a communication module, the control method comprising: acquiring a communication instruction for closing the communication module; judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired; if so, the communication module is maintained in an open state. When a communication instruction for closing the communication module is received, the communication instruction for closing the communication module is not executed under the condition that the record for opening or closing the communication module exists in the past, and the communication module is kept in an open state, so that the communication module can be directly used when being called, and communication interruption is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating an embodiment of a method for controlling a communication module according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a control method of a communication module according to another embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a control device of a communication module according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The application provides a control method, a control device and a computer readable storage medium of a communication module, wherein the control method comprises the following steps: acquiring a communication instruction for closing the communication module; judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired; if so, the communication module is maintained in an open state. The following are detailed below.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for controlling a communication module according to an embodiment of the present disclosure. The control method of the communication module in this embodiment may be applied to a mobile terminal, and the mobile terminal may be an intelligent device such as a smart phone, a smart watch, an ipad, a tablet computer, and the like, which is not limited in this application. The specific flow of the control method of the communication module may be as follows:
s11: and acquiring a communication instruction for closing the communication module.
In this embodiment, the communication module is a CDMA module. The CDMA module is a communication module based on a CDMA platform, and integrates a communication chip, a storage chip and the like on a circuit board, so that the CDMA module has the functions of sending and receiving short messages through the CDMA platform, voice communication, data transmission and the like. In other embodiments, the communication module may be other communication modules such as a GPRS (General Packet Radio Service) module, which is not limited in this application.
In a specific embodiment, the communication instruction is obtained according to a preset frequency, and whether the communication instruction is a communication instruction for closing the communication module is judged. And if the communication instruction is the communication instruction for closing the communication module, acquiring the communication instruction for closing the communication module. The preset frequency may be set according to specific situations, which is not limited in this application. For example, currently, a system a needs to be started for communication, where the system a is a system based on a CDMA module, and at this time, the mobile terminal obtains a communication instruction and further performs a corresponding operation on the CDMA module.
S12: and judging whether a record for opening or closing the communication module exists before the communication instruction for closing the communication module is acquired.
In this embodiment, after the communication instruction for closing the communication module is obtained, it is determined whether a record for opening or closing the communication module exists before the communication instruction for closing the communication module is obtained.
In a specific embodiment, the records of calling the communication module by the mobile terminal all the time are traversed, and whether the records of opening or closing the communication module exist before the communication instruction of closing the communication module is acquired is judged.
S13: the communication module is kept in an open state.
In this embodiment, if there is a record of turning on or off the communication module before the communication instruction of turning off the communication module is acquired, the communication module is kept in the on state. For example, system a and system B are both CDMA module based systems. And the system A needs to be closed currently, and at the moment, the mobile terminal acquires a communication instruction for closing the CDMA module. If the record that the mobile terminal calls the communication module all the time by traversing the mobile terminal is as follows: the system B indicates that the system B calls the CDMA system before the system A, and the system B is possibly in a dormant state, so that the CDMA module is kept in an open state, and the system B can be called in time when the CDMA module is required to be used. That is, after receiving the communication instruction for closing the communication module, if the record for opening or closing the communication module exists before the communication instruction for closing the communication module, the method does not execute the communication instruction for closing the communication module, and keeps the communication module in the open state, so that the related system can call the communication module in time, and communication interruption is avoided.
In a specific embodiment, if there is no record of turning on or turning off the communication module before the communication instruction of turning off the communication module is obtained, the communication module may not be processed or turned off, which is set according to specific situations, and this is not limited in this application.
Different from the prior art, the present application provides a control method for a communication module, the control method comprising: acquiring a communication instruction for closing the communication module; judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired; if so, the communication module is maintained in an open state. When a communication instruction for closing the communication module is received, the communication instruction for closing the communication module is not executed under the condition that the record for opening or closing the communication module exists in the past, and the communication module is kept in an open state, so that the communication module can be directly used when being called, and communication interruption is avoided.
For a more clear description of the method for controlling a communication module of the present application, please refer to fig. 2, and fig. 2 is a flowchart illustrating another embodiment of a method for controlling a communication module according to the present application.
As shown in fig. 2, the specific flow of the control method of the communication module is as follows:
s21: a communication code is obtained.
In this embodiment, the communication code includes a standard code and a communication instruction, where the communication module corresponds to a plurality of standard codes. Specifically, when the mobile terminal is started, all standards based on the communication module in the mobile terminal are acquired, and a unique standard code is allocated to each standard based on the communication module. The communication instruction comprises a communication instruction for opening the communication module and a communication instruction for closing the communication module. And registering communication codes based on the standard codes and the communication instructions. The communication format of the communication code may be: system code + communication command. For example, the CDMA-based system includes a system a and a system B, the system code of the system a is a system code a, the system code of the system B is a system code B, 1 represents a communication instruction for opening a communication module, and 0 represents a communication instruction for closing the communication module. If the communication code is: and the standard code B +1 indicates that the communication module is opened, the CDMA module is configured according to the standard code B, and if the communication code is: and the standard code A +0 indicates that the CDMA module configured according to the standard code A is closed.
S22: and judging whether the communication instruction in the communication code is to close the communication module.
In this embodiment, after the communication code is obtained, whether a communication instruction in the communication code is to close the communication module is determined. If the communication command in the communication code is not to close the communication module, executing S23; if the communication command in the communication code is to close the communication module, S24 is executed.
S23: and configuring the communication module according to the system code in the communication code acquired this time.
In this embodiment, if the communication instruction in the communication code is not to close the communication module, it indicates that the communication module needs to be opened at this time, and the communication module is configured according to the system code in the communication code acquired this time. And further, opening a corresponding system according to the system code to perform communication.
In a specific embodiment, after the communication code obtained this time is stored, the communication module is configured according to the standard code in the communication code obtained this time.
And S24, acquiring a communication instruction for closing the communication module.
In this embodiment, if the communication instruction in the communication code is to close the communication module, indicating that the instruction to close the communication module needs to be executed, the communication instruction of the communication module is obtained.
S25: and judging whether other communication codes except the communication code acquired this time are stored.
In this embodiment, after the communication instruction of the communication module is obtained, if the communication module is directly closed, the related system may not be called in time. Therefore, it is necessary to determine whether or not a communication code other than the communication code acquired this time is stored.
It should be noted that, after the mobile terminal is powered on, the communication code is determined based on the communication module, and the communication code is recorded and stored according to the calling condition of the communication module. Specifically, the recording is performed in sequence according to the sequence called by the communication module. For example, the records of turning on or off the CDMA module are: the system A, the system B and the system C indicate that the CDMA module is called by the previous system A, the previous system B and the previous system C in sequence.
In this embodiment, first, records of opening or closing the communication module in the past are traversed, and whether other communication codes than the communication code acquired this time are stored is determined. If a communication code other than the communication code acquired this time is stored, it is determined that a record for opening or closing the communication module exists before the communication command for closing the communication module is acquired, and S26 is executed. If no other communication code is stored than the communication code acquired this time, it is determined that there is no record of opening or closing the communication module before the communication instruction of closing the communication module is acquired, and execution is performed 27.
S26: and keeping the communication module in an open state, and adjusting the communication module according to other communication codes except the communication code acquired at this time.
In this embodiment, if other communication codes than the communication code acquired this time are stored, the communication module is adjusted according to the other communication codes than the communication code acquired this time. Preferably, the communication module is configured according to a communication code with the latest recording time among other communication codes except the communication code acquired this time. Specifically, the communication module is configured according to the standard code of the communication code with the latest recording time in other communication codes except the currently acquired communication code. For example, the communication code acquired this time is a standard code a +0, which indicates that the CDMA module configured according to the standard code a is closed. And other communication codes except the communication code acquired at this time are the standard code A +1 and the standard code B +1 in sequence, and the CDMA module is configured according to the standard code B because the standard code B +1 is the latest communication code. According to the method and the device, under the condition that the communication instruction is to close the communication module, the communication mode is configured according to other communication codes except the communication code acquired this time, so that the situation that the communication module is kept open when the system is closed is avoided, and other systems can be called conveniently.
S27: the communication module is turned off.
In this embodiment, if no other communication code other than the communication code acquired this time is stored, it indicates that there is no system for invoking the communication mode before, and the communication module may be directly closed.
Different from the prior art, the present application provides a control method for a communication module, the control method comprising: acquiring a communication instruction for closing the communication module; judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired; if so, the communication module is maintained in an open state. When a communication instruction for closing the communication module is received, the communication instruction for closing the communication module is not executed under the condition that the record for opening or closing the communication module exists in the past, and the communication module is kept in an open state, so that the communication module can be directly used when being called, and communication interruption is avoided.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a control device of a communication module according to an embodiment of the present disclosure. As shown in fig. 3, the control device 600 of the communication module, applied to a mobile terminal, includes: an obtaining module 601, a determining module 602, an executing module 603, and a communicating module 604, wherein:
an obtaining module 601, configured to obtain a communication code.
In this embodiment, the communication code includes a standard code and a communication instruction, wherein the communication module 604 corresponds to a plurality of standard codes. Specifically, when the mobile terminal is powered on, all formats based on the communication module 604 in the mobile terminal are acquired, and a unique format code is allocated to each format based on the communication module 604. The communication instruction includes a communication instruction to turn on the communication module 604 and a communication instruction to turn off the communication module 604. And registering communication codes based on the standard codes and the communication instructions. The communication format of the communication code may be: system code + communication command. For example, the CDMA-based standard includes a standard a and a standard B, the standard code of the standard a is the standard code a, the standard code of the standard B is the standard code B, 1 represents a communication instruction for opening the communication module 604, and 0 represents a communication instruction for closing the communication module 604. If the communication code is: the standard code B +1 indicates that the communication module 604 is opened, and the CDMA module is configured according to the standard code B, if the communication code is: and the standard code A +0 indicates that the CDMA module configured according to the standard code A is closed.
The determining module 602 is configured to determine whether a communication instruction in the communication code is to close the communication module 604.
In this embodiment, after the communication code is obtained, it is determined whether the communication instruction in the communication code is to close the communication module 604. If the communication instruction in the communication code is not to close the communication module 604, the execution module 603 configures the communication module 604 according to the system code in the communication code acquired this time; if the communication command in the communication code is to close the communication module 604, the obtaining module 601 obtains the communication command to close the communication module 604.
The executing module 603 is configured to configure the communication module 604 according to the standard code in the communication code obtained this time.
In this embodiment, if the communication instruction in the communication code is not to close the communication module 604, it indicates that the communication module 604 needs to be opened at this time, and the execution module 603 configures the communication module 604 according to the system code in the communication code acquired this time. Further, the execution module 603 opens a corresponding system according to the system code to perform communication.
In a specific embodiment, after the executing module 603 stores the communication code obtained this time, the communication module 604 is configured according to the standard code in the communication code obtained this time.
The obtaining module 601 is further configured to obtain a communication instruction for closing the communication module 604.
In this embodiment, if the communication instruction in the communication code is to close the communication module 604, which indicates that the instruction to close the communication module 604 needs to be executed, the communication instruction of the communication module 604 is obtained.
The determining module 602 is further configured to determine whether other communication codes than the communication code acquired this time are stored.
In this embodiment, after the obtaining module 601 obtains the communication instruction of the communication module 604, if the communication module 604 is directly closed, the related system may not be able to call the communication module 604 in time. Therefore, the determining module 602 needs to determine whether other communication codes than the communication code acquired this time are stored.
It should be noted that, after the mobile terminal is powered on, the communication code is determined based on the communication module 604, and is recorded and stored according to the calling condition of the communication module 604. Specifically, the recording is performed in sequence according to the sequence called by the communication module 604. For example, the records of turning on or off the CDMA module are: the system A, the system B and the system C indicate that the CDMA module is called by the previous system A, the previous system B and the previous system C in sequence.
In this embodiment, the determining module 602 first traverses records of the communication module 604 that are opened or closed all the time, and determines whether other communication codes than the communication code acquired this time are stored. If other communication codes than the communication code acquired this time are stored, it is determined that there is a record for opening or closing the communication module 604 before the communication instruction for closing the communication module 604 is acquired, the execution module 603 keeps the communication module 604 in an open state, and adjusts the communication module 604 according to the other communication codes than the communication code acquired this time. If no other communication code is stored than the communication code acquired this time, it is determined that there is no record of opening or closing the communication module 604 before the communication instruction of closing the communication module 604 is acquired, and the execution module 603 closes the communication module 604.
The executing module 603 is further configured to keep the communication module 604 in an open state, and adjust the communication module 604 according to another communication code other than the communication code acquired this time.
In this embodiment, if other communication codes than the communication code acquired this time are stored, the communication module 604 is adjusted according to the other communication codes than the communication code acquired this time. Preferably, the communication module 604 is configured according to a communication code with the latest recording time, among other communication codes acquired this time. Specifically, the communication module 604 is configured according to the standard code of the communication code with the latest recording time in other communication codes except the communication code acquired this time. For example, the communication code acquired this time is a standard code a +0, which indicates that the CDMA module configured according to the standard code a is closed. And other communication codes except the communication code acquired at this time are the standard code A +1 and the standard code B +1 in sequence, and the CDMA module is configured according to the standard code B because the standard code B +1 is the latest communication code. According to the method and the device, when the communication instruction is to close the communication module 604, the communication mode is configured according to other communication codes except the communication code acquired this time, so that the situation that the communication module 604 is kept open when the system is closed is avoided, and other systems can be called conveniently.
The executing module 603 is further configured to turn off the communication module 604.
In this embodiment, if no other communication code other than the communication code acquired this time is stored, it indicates that there is no system for invoking the communication mode before, and the communication module 604 may be directly closed.
Different from the prior art, the application provides a control device of a communication module, which is used for closing the communication module by acquiring a communication instruction; judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired; if so, the communication module is maintained in an open state. When a communication instruction for closing the communication module is received, the communication instruction for closing the communication module is not executed under the condition that the record for opening or closing the communication module exists in the past, and the communication module is kept in an open state, so that the communication module can be directly used when being called, and communication interruption is avoided.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. The mobile terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 4, the mobile terminal 400 includes a processor 401, a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the mobile terminal 400, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 401 in the mobile terminal 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
acquiring a communication instruction for closing the communication module;
judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is obtained;
if so, the communication module is maintained in an open state.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. Fig. 5 is a block diagram showing a specific structure of a mobile terminal provided in an embodiment of the present application, where the mobile terminal 300 may be used to implement the control method of the communication module provided in the above embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the control method of the communication module and the terminal positioning device in the above embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the function of positioning the terminal. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 5, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring a communication instruction for closing the communication module;
judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is obtained;
if so, the communication module is maintained in an open state.
In specific implementation, the above modules and units may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities, and specific implementations of the above modules and units may refer to the foregoing method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in any one of the control methods of a communication module provided in the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any method for controlling a communication module provided in the embodiments of the present application, the beneficial effects that can be achieved by any method for controlling a communication module provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the details in the foregoing embodiments.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. A control method of a communication module, the control method comprising:
acquiring a communication instruction for closing the communication module, wherein a communication code is acquired, the communication code comprises a standard code and the communication instruction, and the communication module corresponds to a plurality of standard codes; judging whether the communication instruction in the communication code is to close the communication module; if the communication instruction in the communication code is to close the communication module, acquiring a communication instruction for closing the communication module;
judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired;
and if the communication code exists, keeping the communication module in an open state, and configuring the communication module according to other communication codes except the communication code acquired this time, wherein the communication module is configured according to the system code of the communication code with the latest recording time in the other communication codes except the communication code acquired this time.
2. The control method according to claim 1, characterized by further comprising:
and if the communication instruction in the communication code is not to close the communication module, configuring the communication module according to the system code in the communication code acquired this time.
3. The method according to claim 1, wherein determining whether a record for opening or closing the communication module exists before the communication instruction for closing the communication module is acquired comprises:
judging whether other communication codes except the communication code acquired this time are stored;
if other communication codes except the communication code acquired this time are stored, judging that a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired; and if no other communication codes except the communication code acquired this time are stored, judging that no record for opening or closing the communication module exists before the communication instruction for closing the communication module is acquired.
4. A control method according to any one of claims 1 to 3, characterized in that if not present, the communication module is switched off.
5. A control device of a communication module, applied to a mobile terminal, includes:
the communication module comprises an acquisition module, a communication module and a control module, wherein the acquisition module is used for acquiring a communication instruction for closing the communication module, acquiring a communication code, and the communication code comprises a system code and the communication instruction, wherein the communication module corresponds to a plurality of system codes; judging whether the communication instruction in the communication code is to close the communication module; if the communication instruction in the communication code is to close the communication module, acquiring a communication instruction for closing the communication module;
the judging module is used for judging whether a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired;
and the execution module is used for keeping the communication module in an open state when a record for opening or closing the communication module exists before a communication instruction for closing the communication module is acquired, and configuring the communication module according to other communication codes except the currently acquired communication code, wherein the communication module is configured according to a standard code of the communication code with the latest recording time in the other communication codes except the currently acquired communication code.
6. The control device according to claim 5,
the execution module is further configured to configure the communication module according to the system code in the communication code acquired this time when the communication instruction in the communication code is not to close the communication module.
7. A computer-readable storage medium, characterized in that a plurality of instructions are stored therein, said instructions being adapted to be loaded by a processor to perform the method of controlling a communication module according to any of claims 1 to 4.
CN201910225717.9A 2019-03-25 2019-03-25 Communication module control method, control device, and computer-readable storage medium Active CN110048824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910225717.9A CN110048824B (en) 2019-03-25 2019-03-25 Communication module control method, control device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910225717.9A CN110048824B (en) 2019-03-25 2019-03-25 Communication module control method, control device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110048824A CN110048824A (en) 2019-07-23
CN110048824B true CN110048824B (en) 2022-01-04

Family

ID=67275060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910225717.9A Active CN110048824B (en) 2019-03-25 2019-03-25 Communication module control method, control device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110048824B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110972166A (en) * 2019-12-09 2020-04-07 惠州Tcl移动通信有限公司 Network processing method and device, storage medium and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491571A (en) * 2015-11-24 2016-04-13 山东超越数控电子有限公司 Communication terminal based on multi-mode communication terminal
CN106502612A (en) * 2016-10-31 2017-03-15 珠海市魅族科技有限公司 Equipment display management method and device
CN107565988A (en) * 2017-09-27 2018-01-09 无锡神探电子科技有限公司 A kind of design of 4G full frequency bands power amplifier
CN108696874A (en) * 2017-03-01 2018-10-23 惠州Tcl移动通信有限公司 The self-interference solution and system of LTE-U and WIFI5G channels

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101640467B1 (en) * 2010-04-21 2016-07-18 삼성전자 주식회사 Method and method providing hibernation of multi-mode mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491571A (en) * 2015-11-24 2016-04-13 山东超越数控电子有限公司 Communication terminal based on multi-mode communication terminal
CN106502612A (en) * 2016-10-31 2017-03-15 珠海市魅族科技有限公司 Equipment display management method and device
CN108696874A (en) * 2017-03-01 2018-10-23 惠州Tcl移动通信有限公司 The self-interference solution and system of LTE-U and WIFI5G channels
CN107565988A (en) * 2017-09-27 2018-01-09 无锡神探电子科技有限公司 A kind of design of 4G full frequency bands power amplifier

Also Published As

Publication number Publication date
CN110048824A (en) 2019-07-23

Similar Documents

Publication Publication Date Title
CN107734614B (en) Wi-Fi antenna control method, mobile terminal and computer readable storage medium
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
WO2019011231A1 (en) Method for reducing sar value of mobile terminal, storage medium and mobile terminal
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN109151741B (en) Multimedia message receiving method and terminal
CN108089935B (en) Application program management method and mobile terminal
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN110225106B (en) Data transmission method, device and storage medium
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
CN111372003A (en) Camera switching method and device and terminal
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111615101B (en) IMS registration method, device, storage medium and electronic terminal
CN114217685A (en) Application management method, intelligent terminal and storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN112437421A (en) Bluetooth control method, device, storage medium and mobile terminal
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN109995441B (en) Communication information processing method, device and storage medium
WO2019166004A1 (en) Smart terminal and file management method thereof, and apparatus having storage function
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment
CN110046063B (en) Device and method for restoring factory settings of mobile terminal and storage medium
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230717

Address after: Northeast of the intersection of Sidingshan Road and Manquan Road, Hefei Circular Economy Demonstration Park, Feidong County, Hefei City, Anhui Province, 230000

Patentee after: Anhui Rongzhao Intelligent Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right