CN110913377A - Method and system for switching working state of serial port, Bluetooth tracking device and storage medium - Google Patents

Method and system for switching working state of serial port, Bluetooth tracking device and storage medium Download PDF

Info

Publication number
CN110913377A
CN110913377A CN201811087044.7A CN201811087044A CN110913377A CN 110913377 A CN110913377 A CN 110913377A CN 201811087044 A CN201811087044 A CN 201811087044A CN 110913377 A CN110913377 A CN 110913377A
Authority
CN
China
Prior art keywords
bluetooth
serial port
state
processor
running state
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.)
Granted
Application number
CN201811087044.7A
Other languages
Chinese (zh)
Other versions
CN110913377B (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.)
Xian Zhongxing New Software Co Ltd
Original Assignee
Xian Zhongxing New Software 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 Xian Zhongxing New Software Co Ltd filed Critical Xian Zhongxing New Software Co Ltd
Priority to CN201811087044.7A priority Critical patent/CN110913377B/en
Priority to PCT/CN2019/103679 priority patent/WO2020057345A1/en
Publication of CN110913377A publication Critical patent/CN110913377A/en
Application granted granted Critical
Publication of CN110913377B publication Critical patent/CN110913377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/27Transitions between radio resource control [RRC] states
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method and a system for switching the working state of a serial port, Bluetooth tracking equipment and a storage medium, and relates to the technical field of communication. The method comprises the following steps: when the Bluetooth tracking equipment is in an LTE mode, monitoring the Bluetooth running state of the processor in real time, wherein the Bluetooth running state comprises a Bluetooth broadcasting state and a Bluetooth idle state; when the Bluetooth running state is a Bluetooth broadcasting state, loading the serial port; and when the Bluetooth running state is a Bluetooth idle state, unloading the serial port. The embodiment of the invention can realize low power consumption of the serial port and reduce the power consumption of the Bluetooth tracking equipment in the LTE mode.

Description

Method and system for switching working state of serial port, Bluetooth tracking device and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for switching the working state of a serial port, Bluetooth tracking equipment and a storage medium.
Background
In daily life, the loss of some important articles can cause many inconveniences, such as mobile phones, wallets, keys, important documents, and the like. In addition, in some cases, children or pets are also easily lost when careless. To reduce the occurrence of such situations, bluetooth trackers based on wireless communication technology are applied to the issue of security for these important items, people or pets.
The bluetooth tracker generally comprises a bluetooth low-power consumption-based Micro Control Unit (MCU) and a Modem, wherein the MCU is a bluetooth low-power consumption chip running with a Real-time operating system (RTOS), and the MCU is in serial communication with the Modem. Bluetooth trackers generally include two modes of operation after power-on: one is a Bluetooth Low Energy (BLE) mode, in which a Bluetooth tracker and an intelligent terminal carried by a user are in a Bluetooth connection state, the Bluetooth tracker is in communication connection with the intelligent terminal through Bluetooth connection at the moment, a serial port between a Modem and an MCU is in a closed state, and a product is in a lower power consumption level; in the other mode, in a Long Term Evolution (LTE) mode, the bluetooth tracker is disconnected from the bluetooth of the intelligent terminal carried by the user in the LTE mode, and the MCU needs to communicate with the intelligent terminal through the Modem, so that the serial port between the MCU and the Modem is always in an on state, and the overall power consumption of the product is high. However, since the bluetooth broadcast mode of the MCU in the bluetooth tracker is periodic, that is, after the MCU performs a bluetooth broadcast, the MCU performs another next broadcast at a certain interval, which is not a continuous bluetooth broadcast, in the LTE mode, if the serial port between the MCU and the Modem is always on, unnecessary power consumption is wasted.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a method, a system, a bluetooth tracking device and a storage medium for switching a serial port working state, so as to solve the problem of unnecessary power consumption waste caused by the fact that a serial port between an MCU and a Modem is always in an on state in an LTE mode.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to an aspect of the embodiments of the present invention, there is provided a method for switching a serial port operating state, which is applied to a bluetooth tracking device, where the bluetooth tracking device includes a processor and a modem, and the processor and the modem are communicatively connected via a serial port, the method including:
when the Bluetooth tracking equipment is in an LTE mode, monitoring the Bluetooth running state of the processor in real time, wherein the Bluetooth running state comprises a Bluetooth broadcasting state and a Bluetooth idle state;
when the Bluetooth running state is a Bluetooth broadcasting state, loading the serial port; and when the Bluetooth running state is a Bluetooth idle state, unloading the serial port.
According to another aspect of the embodiments of the present invention, there is provided a system for switching serial port operating states, which is applied to a bluetooth tracking device, where the bluetooth tracking device includes a processor and a modem, and the processor and the modem are communicatively connected via a serial port, the system including:
the monitoring unit is used for monitoring the Bluetooth running state of the processor in real time when the Bluetooth tracking equipment is in an LTE mode, wherein the Bluetooth running state comprises a Bluetooth broadcasting state and a Bluetooth idle state;
the first control unit is used for loading the serial port when the Bluetooth running state is a Bluetooth broadcasting state; and when the Bluetooth running state is a Bluetooth idle state, unloading the serial port.
According to another aspect of the embodiments of the present invention, there is provided a bluetooth tracking device, including a processor and a modem, where the processor is communicatively connected to a serial port of the modem, the bluetooth tracking device further includes a memory and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for switching the operating state of the serial port.
According to still another aspect of the embodiments of the present invention, a storage medium is provided, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method for switching the serial port working state are implemented.
In the method, the system, the bluetooth tracking device and the storage medium for switching the working state of the serial port provided by the embodiment of the invention, when the bluetooth tracking device is in an LTE mode, the bluetooth running state of the processor is monitored in real time, wherein the bluetooth running state comprises a bluetooth broadcasting state and a bluetooth idle state; when the Bluetooth running state is a Bluetooth broadcasting state, loading the serial port; and when the Bluetooth running state is the Bluetooth idle state, the serial port is unloaded, so that the low power consumption of the serial port can be realized, and the power consumption of the Bluetooth tracking equipment in an LTE mode is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a block diagram of the basic structure of a Bluetooth tracking device in an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation process of a method for switching a serial port working state according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a ratio of a bluetooth broadcast state time and a bluetooth idle state time in a bluetooth broadcast period in the method for switching a serial port working state according to an embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating an implementation of a method for switching a serial port working state according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a system for switching a serial port operating state according to a third embodiment of the present invention;
fig. 6 is a detailed structural diagram of a bluetooth tracking device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a block diagram of the basic structure of a bluetooth tracking device in an embodiment of the present invention. Only portions related to the embodiments of the present invention are shown for convenience of explanation.
Referring to fig. 1, the bluetooth tracking device 1 in the embodiment of the present invention includes a processor 11 and a modem 12, and the processor 11 and the modem 12 are connected through a serial communication interface. The processor is a bluetooth low energy processor, and an RTOS operating system runs on the processor 11. The operating modes of the RTOS operating system in the running state comprise a BLE mode and an LTE mode. Wherein, under BLE mode, bluetooth tracking equipment 1 has established the bluetooth with the intelligent terminal that the user carried and is connected, passes through bluetooth communication between the two. In the LTE mode, the processor 11 in the bluetooth tracking device 1 is in the bluetooth low energy broadcast mode, the broadcast message needs to be transmitted to the modem 12 through a serial port, and the modem 12 sends the message to the intelligent terminal carried by the user through wireless communication.
The following embodiments of the present invention are proposed based on the basic structural block diagram of the above-described bluetooth tracking apparatus 1.
Example one
Fig. 2 is a schematic flow chart illustrating an implementation process of a method for switching a serial port working state according to an embodiment of the present invention. The method is performed by the processor 11 in the bluetooth tracking device 1 shown in fig. 1. Referring to fig. 2, the method for switching the serial port working state provided in this embodiment includes the following steps:
step S201, when the bluetooth tracking apparatus 1 is in the LTE mode, monitoring the bluetooth running state of the processor 11 in real time, where the bluetooth running state includes a bluetooth broadcast state and a bluetooth idle state.
The bluetooth tracking device 1 has two ways to enter the LTE mode: one is that after the bluetooth tracking device 1 is started and after the bluetooth tracking application program on the intelligent terminal carried by the user is registered and bound, the bluetooth tracking device 1 is in the LTE mode; the other is that when the bluetooth tracking device 1 and the smart terminal are in a bluetooth connection state, the bluetooth tracking device 1 is in a BLE mode, and when the bluetooth connection is disconnected, the bluetooth tracking device 1 automatically switches to an LTE mode.
In the LTE mode, the processor 11 within the bluetooth tracking device 1 is in a bluetooth low energy broadcast mode. In the bluetooth low energy broadcast mode, the broadcast state of the bluetooth low energy tracking device is to periodically send packets, scan surrounding connectable smart devices, and assuming that the total duration of one broadcast period is T, the processor 11 sends the broadcast packets within a time T1, and is in an idle state within a time T2, where T is T1+ T2. Then, during time T1, the bluetooth active state of processor 11 is in the bluetooth broadcast state; during time T2, the bluetooth low energy bluetooth active state is in a bluetooth idle state. Referring to fig. 3, T2 is typically about 99% of the time during a broadcast cycle.
Step S202, when the Bluetooth running state is a Bluetooth broadcasting state, loading the serial port; and when the Bluetooth running state is a Bluetooth idle state, unloading the serial port.
In this embodiment, when the bluetooth running state of the processor 11 is the bluetooth broadcasting state, the serial port driver is synchronously loaded and a serial port initialization action is performed, so that the serial port task in the processor 11 is also in a working state; when the bluetooth running state of the processor 11 is idle and the broadcast data packet is not sent, the unloaded serial port is synchronously driven, and the serial port is closed. Because bluetooth tracking equipment 1 is under LTE mode, and every bluetooth broadcast cycle only has 1% of the time to be in the bluetooth broadcast state, consequently, after synchronous bluetooth broadcast state and serial ports operating condition, can realize the low-power consumption of serial ports task, and then reduce bluetooth tracking equipment 1's consumption.
Optionally, in this embodiment, the method further includes:
when the Bluetooth tracking device 1 is in an LTE mode, starting a serial port and Bluetooth synchronous loading and unloading function of the Bluetooth tracking device 1;
and when the Bluetooth tracking device 1 exits the LTE mode, closing the serial port and Bluetooth synchronous loading and unloading function of the Bluetooth tracking device 1.
In this embodiment, when the serial port and bluetooth synchronous loading and unloading function of the bluetooth tracking apparatus 1 is started, the processor 11 of the bluetooth tracking apparatus 1 is triggered to monitor the bluetooth running state of itself in real time, and enters a processing procedure of switching the serial port working state. The serial port and the Bluetooth synchronous loading and unloading function is started only when the Bluetooth tracking device 1 is in the LTE mode, and the serial port and the Bluetooth synchronous loading and unloading function is closed when the Bluetooth tracking device 1 exits the LTE mode, so that the power consumption of the Bluetooth tracking device 1 can be further saved.
As can be seen from the above, in the method for switching the serial port working state provided in this embodiment, when the bluetooth tracking apparatus 1 is in the LTE mode, the bluetooth running state of the processor 11 is monitored in real time; when the Bluetooth running state is a Bluetooth broadcasting state, loading the serial port; and when the Bluetooth running state is the Bluetooth idle state, the serial port is unloaded, so that the working states of the serial port and the Bluetooth can be synchronized, the low power consumption of the serial port task is realized, and the overall power consumption of the Bluetooth tracking device 1 is reduced.
Example two
Fig. 4 is a schematic flow chart illustrating an implementation process of the method for switching the serial port working state according to the second embodiment of the present invention. The method is performed by the processor 11 in the bluetooth tracking device 1 shown in fig. 1. Referring to fig. 3, the method for switching the serial port working state provided in this embodiment includes the following steps:
step S401, when the Bluetooth tracking device 1 is in an LTE mode, monitoring the Bluetooth running state of the processor 11 in real time, wherein the Bluetooth running state comprises a Bluetooth broadcasting state and a Bluetooth idle state;
step S402, when the Bluetooth running state is a Bluetooth broadcasting state, loading the serial port; and when the Bluetooth running state is a Bluetooth idle state, unloading the serial port.
It should be noted that, since the implementation manners of the steps S301 to S302 in this embodiment are completely the same as those of the steps S201 to S202 in the previous embodiment, the description is omitted here.
Step S403, when receiving a control instruction for requesting serial port communication input by a user, determining whether a bluetooth running state of the processor 11 is in a bluetooth idle state, if yes, entering step S404; if not, the process goes to step S407.
And S404, loading the serial port.
In this embodiment, the processor 11 is provided with a key at a side thereof, and a user can operate the key, for example: the single click, the double click and the triple click correspondingly generate key sequences with different meanings, the key sequences are sent to the modem 12 side from the processor 11 through the serial port, and the modem 12 realizes different functions according to different key values. Wherein, each key sequence corresponds to a control instruction.
In this embodiment, when receiving a control instruction input by a user through a key, the processor 11 determines that the bluetooth motion state is in the bluetooth idle state, and loads and initializes the serial port to switch the serial port from the off state to the on state, so that the processor 11 can send the control instruction to the Modem through the serial port, and the Modem completes a corresponding control function according to the control instruction.
Step S405, after the control instruction is sent to the modem 12 through the serial port, determining whether the bluetooth running state of the processor 11 is still in a bluetooth idle state, and if the bluetooth running state is still in the bluetooth idle state, entering step S406; if the bluetooth operation state is switched to the bluetooth broadcast state, the process proceeds to step S407.
And S406, unloading the serial port.
And step S407, keeping the working state of the serial port unchanged.
In one specific implementation example, the user key press action and the corresponding bluetooth tracking device 1 response function are as follows:
Figure BDA0001803409360000061
in this embodiment, the GPS required for positioning and the microphone required for recording by the bluetooth tracking apparatus 1 are both disposed at the Modem side, and after the user performs a key pressing operation, the key sequence is only required to be sent to the Modem side through the serial port, and the remaining function modems can be performed by themselves without depending on the processor 11 and the serial port. Therefore, in this embodiment, after the control instruction is detected to be sent, if the bluetooth running state of the processor 11 is still in the bluetooth idle state, the serial port driver is unloaded, and the serial port is closed, so that the power consumption of the serial port can be saved, the power consumption of the whole bluetooth tracking device 1 is reduced, and the standby time of the bluetooth tracking device 1 in the emergency state is prolonged.
As can be seen from the above, compared with the previous embodiment, in the method for switching the working state of the serial port according to this embodiment, when the control instruction which is input by the user and requires serial port communication is received, and when it is detected that the bluetooth running state of the processor 11 is in the idle state, the serial port is loaded, so that the processor 11 can send the control instruction to the Modem through the serial port, and the bluetooth tracking device 1 can realize a corresponding control function; after the control instruction is sent and completed, when the Bluetooth running state of the processor 11 is still in the idle state, the serial port is unloaded, so that the power consumption of the serial port can be saved, the power consumption of the whole Bluetooth tracking device 1 is reduced, and the standby time of the Bluetooth tracking device 1 in the emergency state is prolonged.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a system for switching a serial port operating state according to a third embodiment of the present invention. The system is deployed within the processor 11 of the bluetooth tracking device 1 shown in figure 1. Only the portions related to the present embodiment are shown for convenience of explanation.
Referring to fig. 5, the system 5 for switching the serial port operating state provided in this embodiment includes:
a monitoring unit 51, configured to monitor a bluetooth running state of the processor 11 in real time when the bluetooth tracking apparatus 1 is in an LTE mode, where the bluetooth running state includes a bluetooth broadcast state and a bluetooth idle state;
the first control unit 52 is configured to load the serial port when the bluetooth running state is a bluetooth broadcast state; and when the Bluetooth running state is a Bluetooth idle state, unloading the serial port.
Optionally, the system 5 further includes:
a first judging unit 53, configured to, when receiving a control instruction that requires serial port communication and is input by a user, judge whether a bluetooth operating state of the processor 11 is in a bluetooth idle state;
and the second control unit 54 is configured to load the serial port if the bluetooth running state is in a bluetooth idle state.
Optionally, the system 5 further includes:
a second determining unit 55, configured to determine whether the bluetooth operating state of the processor 11 is still in a bluetooth idle state after the control instruction is sent to the modem 12 through the serial port;
a third control unit 56, configured to uninstall the serial port if the bluetooth running state is still in a bluetooth idle state; and if the Bluetooth running state is switched to a Bluetooth broadcasting state, keeping the working state of the serial port unchanged.
Optionally, the system 5 further includes a synchronization function configuration unit 57, configured to:
when the Bluetooth tracking device 1 is in an LTE mode, starting a serial port and Bluetooth synchronous loading and unloading function of the Bluetooth tracking device 1;
and when the Bluetooth tracking device 1 exits the LTE mode, closing the serial port and Bluetooth synchronous loading and unloading function of the Bluetooth tracking device 1.
The system for switching the serial port working state according to the embodiment of the present invention and the method for switching the serial port working state according to the first embodiment or the second embodiment belong to the same concept, and specific implementation processes thereof are detailed in corresponding method embodiments, and technical features in the method embodiments are applicable in this device embodiment, and are not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the disclosed methods of the present embodiments may be implemented as software, firmware, hardware, or any suitable combination thereof.
Example four
Fig. 6 is a detailed structural diagram of a bluetooth tracking device according to a fourth embodiment of the present invention. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the bluetooth tracking apparatus 1 provided in this embodiment includes a processor 11 and a modem 12, where the processor 11 and the modem 12 are connected through a serial port communication, the bluetooth tracking apparatus 1 further includes a memory 13 and a computer program 14 stored in the memory 13 and executable on the processor, and when the computer program 14 is executed by the processor 11, the steps of the method for switching the serial port operating state provided in the first embodiment or the second embodiment are implemented.
It will be appreciated by those of ordinary skill in the art that fig. 5 is merely an example of the bluetooth tracking device 1 and does not constitute a limitation of the bluetooth tracking device 1, and that in practical applications the bluetooth tracking device 1 may include more or less components than those shown, or some components may be combined, or different components may be combined.
The bluetooth tracking device 1 of the embodiment of the present invention and the method for switching a serial port operating state of the first embodiment or the second embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, and are not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the disclosed methods of the present embodiments may be implemented as software, firmware, hardware, or any suitable combination thereof.
EXAMPLE six
An embodiment of the present invention provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method for switching the serial port operating state according to the first embodiment or the second embodiment are implemented.
The storage medium of the embodiment of the present invention and the method of the first embodiment or the second embodiment belong to the same concept, and specific implementation processes thereof are described in detail in the corresponding method embodiments, and technical features in the method embodiments are correspondingly applicable in the computer-readable storage medium embodiments, which are not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

Claims (10)

1. A method for switching the working state of a serial port is applied to a Bluetooth tracking device, the Bluetooth tracking device comprises a processor and a modem, and the processor and the modem are in communication connection through the serial port, and the method comprises the following steps:
when the Bluetooth tracking equipment is in an LTE mode, monitoring the Bluetooth running state of the processor in real time, wherein the Bluetooth running state comprises a Bluetooth broadcasting state and a Bluetooth idle state;
when the Bluetooth running state is a Bluetooth broadcasting state, loading the serial port; and when the Bluetooth running state is a Bluetooth idle state, unloading the serial port.
2. The method for switching the working state of the serial port according to claim 1, wherein the method further comprises:
when a control instruction which is input by a user and requires serial port communication is received, judging whether the Bluetooth running state of the processor is in a Bluetooth idle state or not;
and if the Bluetooth running state is in a Bluetooth idle state, loading the serial port.
3. The method for switching the working state of the serial port according to claim 2, wherein if the bluetooth running state is in the bluetooth idle state when receiving the control instruction which is input by the user and requires serial port communication, the method further comprises the following steps after loading the serial port:
after the control instruction is sent to the modem through the serial port, judging whether the Bluetooth running state of the processor is still in a Bluetooth idle state;
if the Bluetooth running state is still in a Bluetooth idle state, unloading the serial port; and if the Bluetooth running state is switched to a Bluetooth broadcasting state, keeping the working state of the serial port unchanged.
4. The method for switching the working state of the serial port according to claim 1, wherein the method further comprises:
when the Bluetooth tracking equipment is in an LTE mode, starting a serial port and Bluetooth synchronous loading and unloading function of the Bluetooth tracking equipment;
and when the Bluetooth tracking equipment exits the LTE mode, closing the serial port and the Bluetooth synchronous loading and unloading function of the Bluetooth tracking equipment.
5. The utility model provides a system for switch serial ports operating condition, is applied to bluetooth tracking equipment, bluetooth tracking equipment includes treater and modem, the treater with modem passes through serial ports communication connection, its characterized in that, the system includes:
the monitoring unit is used for monitoring the Bluetooth running state of the processor in real time when the Bluetooth tracking equipment is in an LTE mode, wherein the Bluetooth running state comprises a Bluetooth broadcasting state and a Bluetooth idle state;
the first control unit is used for loading the serial port when the Bluetooth running state is a Bluetooth broadcasting state; and when the Bluetooth running state is a Bluetooth idle state, unloading the serial port.
6. The system for switching the working state of the serial port according to claim 5, wherein the system further comprises:
the first judgment unit is used for judging whether the Bluetooth running state of the processor is in a Bluetooth idle state or not when receiving a control instruction which is input by a user and requires serial port communication;
and the second control unit is used for loading the serial port if the Bluetooth running state is in a Bluetooth idle state.
7. The system for switching the working state of the serial port according to claim 6, further comprising:
the second judging unit is used for judging whether the Bluetooth running state of the processor is still in a Bluetooth idle state after the control instruction is sent to the modem through the serial port;
the third control unit is used for unloading the serial port if the Bluetooth running state is still in a Bluetooth idle state; and if the Bluetooth running state is switched to a Bluetooth broadcasting state, keeping the working state of the serial port unchanged.
8. The system for switching the working state of the serial port according to claim 5, wherein the system further comprises a synchronization function configuration unit, configured to:
when the Bluetooth tracking equipment is in an LTE mode, starting a serial port and Bluetooth synchronous loading and unloading function of the Bluetooth tracking equipment;
and when the Bluetooth tracking equipment exits the LTE mode, closing the serial port and the Bluetooth synchronous loading and unloading function of the Bluetooth tracking equipment.
9. A Bluetooth tracking device comprising a processor and a modem, said processor being in serial communication with said modem, characterized in that said Bluetooth tracking device further comprises a memory and a computer program stored in said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method for switching the operating state of a serial port as claimed in any one of claims 1 to 4.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, implements the steps of the method for switching the operating state of a serial port according to any one of claims 1 to 4.
CN201811087044.7A 2018-09-18 2018-09-18 Method and system for switching working state of serial port, Bluetooth tracking device and storage medium Active CN110913377B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811087044.7A CN110913377B (en) 2018-09-18 2018-09-18 Method and system for switching working state of serial port, Bluetooth tracking device and storage medium
PCT/CN2019/103679 WO2020057345A1 (en) 2018-09-18 2019-08-30 Method and system for switching operating state of serial port, bluetooth tracking device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811087044.7A CN110913377B (en) 2018-09-18 2018-09-18 Method and system for switching working state of serial port, Bluetooth tracking device and storage medium

Publications (2)

Publication Number Publication Date
CN110913377A true CN110913377A (en) 2020-03-24
CN110913377B CN110913377B (en) 2021-04-06

Family

ID=69813503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811087044.7A Active CN110913377B (en) 2018-09-18 2018-09-18 Method and system for switching working state of serial port, Bluetooth tracking device and storage medium

Country Status (2)

Country Link
CN (1) CN110913377B (en)
WO (1) WO2020057345A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006126062A2 (en) * 2005-05-27 2006-11-30 Nokia Corporation Mobile node, method and computer program product for handing off from one type of network to another type of network
CN101471796A (en) * 2007-12-24 2009-07-01 Lg电子株式会社 Terminal provided with networking module and method for receiving and transmitting data using the same
CN101754458A (en) * 2008-12-01 2010-06-23 联想(北京)有限公司 Working mode switching method of communication system and mobile terminal
CN101873385A (en) * 2010-06-04 2010-10-27 北京播思软件技术有限公司 Device and method for entering power-saving mode of hand-held terminal rapidly
CN101873679A (en) * 2009-04-23 2010-10-27 瑞昱半导体股份有限公司 Methods and apparatuses of network system with power saving functions
CN103455455A (en) * 2012-05-30 2013-12-18 鸿富锦精密工业(深圳)有限公司 Serial switching system, server and serial switching method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006126062A2 (en) * 2005-05-27 2006-11-30 Nokia Corporation Mobile node, method and computer program product for handing off from one type of network to another type of network
CN101471796A (en) * 2007-12-24 2009-07-01 Lg电子株式会社 Terminal provided with networking module and method for receiving and transmitting data using the same
CN101754458A (en) * 2008-12-01 2010-06-23 联想(北京)有限公司 Working mode switching method of communication system and mobile terminal
CN101873679A (en) * 2009-04-23 2010-10-27 瑞昱半导体股份有限公司 Methods and apparatuses of network system with power saving functions
CN101873385A (en) * 2010-06-04 2010-10-27 北京播思软件技术有限公司 Device and method for entering power-saving mode of hand-held terminal rapidly
CN103455455A (en) * 2012-05-30 2013-12-18 鸿富锦精密工业(深圳)有限公司 Serial switching system, server and serial switching method

Also Published As

Publication number Publication date
CN110913377B (en) 2021-04-06
WO2020057345A1 (en) 2020-03-26

Similar Documents

Publication Publication Date Title
CN109496452B (en) Power-saving signal monitoring method and device
CN106604369B (en) Terminal equipment with dual-mode switching function
WO2020211022A1 (en) Terminal device sleep state control method and apparatus, and computer-readable storage medium
US20160127883A1 (en) Power-efficient availability advertising and discovery
EP3010289A1 (en) Method and apparatus for controlling signal transmission and electronic device
US9609600B2 (en) Wireless communication system with enhanced power management
CN101888435B (en) Portable terminal and state control method thereof
JP2019535152A (en) Method and apparatus for on-demand mobile device access
CN102647527B (en) A kind of intelligent communications terminal and service operation method, device
CN102681649B (en) Device and method for prolonging battery endurance abilities of all kinds of intelligent equipment
CN103200314A (en) Intelligent sleep method of mobile terminal and intelligent sleep device of mobile terminal
EP2830366A1 (en) Method of management of a wireless interface of a device and corresponding wireless device
US20160366680A1 (en) Method for Establishing a Radio Connection, Network Apparatus and Terminal Apparatus
US9313823B2 (en) Method of controlling operation of a communication device, transceiver operating accordingly, and computer program
JP6785332B2 (en) Bluetooth speaker Data processing method, device and bluetooth speaker
US20190215771A1 (en) Beacon signal processing system and filtering method of reducing wake-up frequency
CN110913377B (en) Method and system for switching working state of serial port, Bluetooth tracking device and storage medium
CN113038584A (en) Data transmission method and system for wireless sensor network
CN114302346B (en) Communication method, broadband terminal and storage medium
CN115529654A (en) Method, apparatus, storage medium, and relay device for standby communication
CN108777869B (en) Data transmission control method, network equipment and terminal equipment
CN111049629B (en) Search space detection method, terminal and network side device
CN112788785B (en) Network connection method, terminal and computer storage medium
CN115915396B (en) Paging method and electronic equipment
US20220015033A1 (en) Methdo and system of wireless device power management

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