CN112187937B - Unpairing method and device, terminal equipment and storage medium - Google Patents

Unpairing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112187937B
CN112187937B CN202011057013.4A CN202011057013A CN112187937B CN 112187937 B CN112187937 B CN 112187937B CN 202011057013 A CN202011057013 A CN 202011057013A CN 112187937 B CN112187937 B CN 112187937B
Authority
CN
China
Prior art keywords
unpairing
equipment
paired
command
unpaired
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
CN202011057013.4A
Other languages
Chinese (zh)
Other versions
CN112187937A (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.)
Wocao Technology Shenzhen Co ltd
Original Assignee
Wocao Technology Shenzhen 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 Wocao Technology Shenzhen Co ltd filed Critical Wocao Technology Shenzhen Co ltd
Priority to CN202011057013.4A priority Critical patent/CN112187937B/en
Publication of CN112187937A publication Critical patent/CN112187937A/en
Application granted granted Critical
Publication of CN112187937B publication Critical patent/CN112187937B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of intelligent equipment management and provides a unpairing method, a device, terminal equipment and a storage medium. In the embodiment of the application, a de-pairing command is acquired, and the connection condition of the current pairing equipment is detected; when the connected paired equipment exists, carrying out the unpairing operation according to the unpairing command, and sending the unpairing command to the paired equipment so as to enable the paired equipment to carry out the unpairing operation according to the unpairing command. Thereby reducing the time it takes for the smart devices to unpair from each other.

Description

Unpairing method and device, terminal equipment and storage medium
Technical Field
The application belongs to the technical field of intelligent equipment management, and particularly relates to a unpairing method, device, terminal equipment and storage medium.
Background
With the development of society, the intelligent devices in the device groups sometimes need to cooperate to complete the expected requirements of users through pairing, but sometimes, a situation may exist in which a certain intelligent device between the intelligent devices occurs or the user performs corresponding control on individual devices according to certain requirements, and in the face of the situation, technicians need to perform the operation of unpairing on the paired intelligent devices manually one by one, which results in long overall time.
Disclosure of Invention
The embodiment of the application provides a de-pairing method, a de-pairing device, terminal equipment and a storage medium, which can solve the problem that the time spent in de-pairing intelligent equipment is long.
In a first aspect, an embodiment of the present application provides a unpairing method, including:
acquiring a de-pairing command, and detecting the connection condition of the current pairing equipment;
when the connected paired equipment exists, carrying out the unpairing operation according to the unpairing command, and sending the unpairing command to the paired equipment so as to enable the paired equipment to carry out the unpairing operation according to the unpairing command.
Optionally, after detecting the connection condition of the current paired device, the method includes:
when the pairing equipment which is not connected exists, reconnection operation is carried out;
when the reconnection times exceeds a preset time threshold, the current state information is sent to a control end, so that the control end carries out prompt operation according to the state information.
Optionally, when there is a paired device that is not connected, performing a reconnection operation includes:
when the unconnected paired equipment is next-stage equipment, detecting broadcast information of the next-stage equipment;
and when the broadcast information of the next-stage equipment is detected, sending a request to the next-stage equipment so that the next-stage equipment responds to the request.
Optionally, when there is a paired device that is not connected, performing a reconnection operation includes:
and when the unconnected paired equipment is the previous-stage equipment, polling the connection state between the unconnected paired equipment and the previous-stage equipment at preset time intervals.
Optionally, the performing the unpairing operation according to the unpairing command includes:
clearing paired equipment information according to the unpaired command, and acquiring original configuration information;
and replacing the original configuration information with the current configuration information.
Optionally, after acquiring the unpaired command, the method includes:
and when the current pairing state is detected to be the unpaired state, clearing the information of the previous-stage equipment according to the unpaired command.
Optionally, when detecting that an abnormal condition meeting a preset condition exists, sending a de-pairing command to pairing equipment corresponding to the abnormal condition.
In a second aspect, an embodiment of the present application provides a unpaired device, including:
the detection module is used for acquiring the unpairing command and detecting the connection condition of the current paired equipment;
and the operation module is used for carrying out the de-pairing operation according to the de-pairing command when the connected paired equipment exists, and sending the de-pairing command to the paired equipment so as to enable the paired equipment to carry out the de-pairing operation according to the de-pairing command.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the above-mentioned unpairing methods when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of any one of the above-described unpairing methods.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on a terminal device, causes the terminal device to perform any one of the unpairing methods of the first aspect described above.
In the embodiment of the application, a de-pairing command is acquired, and the connection condition of the current pairing equipment is detected; when the connected paired equipment exists, carrying out the unpairing operation according to the unpairing command, and sending the unpairing command to the paired equipment so as to enable the paired equipment to carry out the unpairing operation according to the unpairing command. After a certain device acquires a pairing instruction, the connection condition of the paired device is detected to judge whether the paired device is connected or not, so that the unpairing command can be sent to the paired device, the current device and the paired device can be subjected to unpairing operation by themselves without manual control of a technician, and the time spent when the intelligent devices are unpaired with each other is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a first method for unpairing according to an embodiment of the present application;
fig. 2 is a second flowchart of a unpairing method provided in an embodiment of the present application;
fig. 3 is a third flowchart of a unpairing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a unpairing device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Fig. 1 is a schematic flow chart of a method for unpairing in the embodiment of the present application, where an execution body of the method may be a terminal device, and as shown in fig. 1, the method for unpairing may include the following steps:
step S101, acquiring a unpairing command, and detecting a connection status of a current paired device.
In this embodiment, since one terminal device may have a previous device paired with the terminal device or may have a next device paired with the terminal device, but the terminal device of an adjacent level paired with the terminal device may not be connected due to some emergency, when the terminal device obtains a unpaover command sent by a user through a control terminal or sent by the user manipulating a corresponding physical key, the terminal device needs to detect the connection condition of the paired device paired with the terminal device according to the related information of the paired device in the terminal device, so as to prevent the related operation about unpaover in the case that the paired device is disconnected. The previous-stage device can send control commands to each terminal device at the current level at the same time to control each terminal device at the current level to perform corresponding operation, and the control commands sent by the previous-stage device can be obtained from the terminal to send, or after the current running environment meets the preset trigger condition, the corresponding control commands are automatically issued to the current-stage device; the next-stage equipment can carry out corresponding operation through the instruction sent by the current-stage equipment, and can also feed back the current status information of the next-stage equipment to the current-stage equipment so that the current-stage equipment can judge whether the current trigger condition can be met or not according to the obtained information sent by each next-stage equipment, and if the trigger condition can be met, the corresponding operation is executed; the current-stage device is the terminal device, and if the current terminal device has two devices of adjacent stages, the terminal device may be a previous-stage device or a next-stage device.
Alternatively, the connection status of the detection paired device may be obtained from a server associated with the entire device group.
Alternatively, since the current device group may divide each device into a plurality of levels according to a preset rule, the de-pairing command received by the terminal device may be sent to the previous device by acquiring the de-pairing command sent by the control end.
It can be understood that if the terminal device is the first-stage device, that is, the device directly connected to the control end, there is no previous-stage device in the paired devices currently paired with the terminal device; if the terminal device is the last-stage device, that is, the terminal device which finally obtains the unpairing command, the paired device currently paired with the terminal device does not have the next-stage device.
Optionally, after acquiring the unpaired command, the method includes: and when the current pairing state is detected to be the unpaired state, clearing the information of the previous-stage equipment according to the unpaired command.
In this embodiment, when some devices in the whole device group may not receive the unpaired command sent by the previous device, the user directly performs the unpaired operation by the unpaired command sent by the physical key of the device itself, and because the previous device is disconnected and does not send the unpaired command to the previous device, but is in a state of polling the connection condition of the previous device, when the unpaired command is acquired, the current paired state of the device is detected first, if the unpaired state is the unpaired state, it indicates that the terminal device has been unpaired by the user himself, and since the terminal device has received the command, which indicates that the current terminal device and the previous device are successfully connected, the information of the previous device can be directly cleared without continuing polling. The upper level device information includes, but is not limited to, device power status, movement pattern, address, etc.
Optionally, if the unpaired device is currently detected to be the first-stage device, that is, the device directly connected to the control end, an error message is generated, and the error message is sent to the control end, so that the user can find the current situation conveniently.
Optionally, if the terminal device detects that the paired device is in an unpaired state after being successfully connected with the paired device, the unpaired operation is performed according to the unpaired command, and the unpaired command is not required to be sent to the paired device in the unpaired state.
Optionally, as shown in fig. 2, after step S101, the method includes:
step S201, when there is a pairing device which is not connected, reconnection operation is carried out.
Step S202, when the reconnection times exceeds a preset time threshold, the current state information is sent to a control end, so that the control end carries out prompt operation according to the state information.
In this embodiment, because the pairing device may be disconnected from the terminal device due to some sudden situation, when the terminal device obtains a pairing instruction and needs to send the pairing instruction to the previous device or the next device, the terminal device discovers that the pairing device connected with the previous device or the next device has been disconnected from the previous device, and may perform a reconnection operation with the pairing device, and request or poll the current state multiple times, if the reconnection operation initiated by the terminal device exceeds the preset number of times threshold, the terminal device will not perform the reconnection operation with the pairing device, but send the current actual state information to the control end, so that the control end performs related prompt operation on the pairing device which does not match, that is, the pairing device which does not match, so as to facilitate a technician to discover a problem in time, and may send a unpairing command by using a physical key of the unpaired pairing device itself, so as to perform the unpairing operation on the unpaired pairing device. Wherein, the reconnection operation comprises two modes of requesting reconnection and polling whether to connect; the prompting operation can be correspondingly set according to the user requirement, for example, the corresponding display positions of some equipment which are not unpaired are marked red, or voice alarm prompting is carried out.
Optionally, as shown in fig. 3, step S201 includes:
step S301, when the unconnected paired device is a next-stage device, detecting broadcast information of the next-stage device.
And step S302, when the broadcast information of the next-stage equipment is detected, a request is sent to the next-stage equipment, so that the next-stage equipment responds to the request.
In this embodiment, when there is a pairing device that is not connected, a reconnection operation is required, so when the pairing device that is not connected is a next-stage device, the terminal device may detect broadcast information of the next-stage device in real time, and when the broadcast information of the next-stage device is detected, the terminal device may send a request to the next-stage device, so that the next-stage device performs a response operation according to the request to complete reconnection, and then sends a unpairing command to the next-stage device; if the number of times of the request of the terminal equipment exceeds the preset number of times threshold, the terminal equipment does not perform reconnection operation with the paired equipment, but sends the current actual state information to the control end, so that the control end performs prompt operation according to the current state information. Wherein, the response operation is to reply the request information of the terminal equipment and establish connection with the terminal equipment.
Optionally, step S201 includes:
and when the unconnected paired equipment is the previous-stage equipment, polling the connection state between the unconnected paired equipment and the previous-stage equipment at preset time intervals.
In this embodiment, when there is a pairing device that is not connected, a reconnection operation is required, so when the pairing device that is not connected is a previous device, the terminal device may use a timer to poll the connection state with the previous device at a preset time interval, and if the polling information is successful, send a unpairing command to the previous device, so that the previous device performs the unpairing operation according to the unpairing command; if the polling frequency of the terminal device exceeds the maximum polling frequency, that is, the preset frequency threshold, the terminal device will not perform reconnection operation with the paired device, but send the current actual state information to the control terminal, so that the control terminal performs prompt operation according to the current state information, and closes the timer.
Step S102, when the connected paired equipment exists, carrying out the unpairing operation according to the unpairing command, and sending the unpairing command to the paired equipment so as to enable the paired equipment to carry out the unpairing operation according to the unpairing command.
In this embodiment, when the terminal device detects that there is a paired device that has been connected through the server, the terminal device performs a unpairing operation according to the unpairing command, and sends the unpairing command to the paired device that has been paired, so that the paired device that has been paired performs a unpairing operation according to the unpairing command, and transmits the unpairing operation to the entire device group through transmission between levels, so that the entire device group is unpaired.
Optionally, the performing the unpairing operation according to the unpairing command includes: clearing paired equipment information according to the unpaired command, and acquiring original configuration information; and replacing the original configuration information with the current configuration information.
In this embodiment, the terminal device may clear the paired device information of the paired device according to the unpaired command to eliminate the association with the paired device. Because each terminal device in the device group is paired with each other, when a certain work is completed in cooperation, the configuration information in the terminal device is designed according to the whole device chain, for example, after a first device completes a certain operation, a trigger signal is generated to a second device, and the second device performs a corresponding operation according to the configuration information in the second device and the trigger signal. After the terminal equipment is unpaired, the user independently controls the independent terminal equipment, so that the configuration information of the terminal equipment can be changed, the configuration information corresponding to the equipment chain is changed into the configuration information of the original independent equipment, so that when the terminal equipment is unpaired, the original configuration information when the terminal equipment is unpaired is required to be obtained, namely, when the terminal equipment is independently controlled, all the configuration information of the terminal equipment is replaced by the obtained original configuration information, and the configuration information when the terminal equipment is paired with the paired equipment at present is conveniently and independently controlled by the subsequent user.
Optionally, when detecting that an abnormal condition meeting a preset condition exists, sending a de-pairing command to pairing equipment corresponding to the abnormal condition.
In this embodiment, when some devices in the device group are abnormal, if each device in the device group is in a state of performing overall pairing operation, serious accidents are likely to occur in the whole device group due to the occurrence of the abnormal devices, so when the terminal device detects that the terminal device itself has an abnormal condition meeting a preset condition, a command for unpairing is sent to paired devices corresponding to the abnormal condition, so as to enhance the handling of the abnormal condition and improve the success rate of unpairing.
Specific examples, but not limited thereto, if the current terminal device detects that the internal power thereof reaches the preset power threshold, the power will be cut off soon, and a command for removing the pairing can be sent to the pairing device which is paired with the current terminal device having an abnormality and is required to provide a trigger signal, so as to prevent the device group from generating faults and causing serious conditions when the operation of the device group is stopped due to the power cut off.
By way of specific example, but not limitation, if the current terminal device detects that an abnormal condition occurs in a previous stage device or a next stage device connected to the current terminal device, for example, the electric quantity reaches a preset electric quantity threshold, a unpairing command is sent to the paired device, so as to prevent a problem occurring in the whole device group due to the electric quantity of the paired device.
In the embodiment of the application, a de-pairing command is acquired, and the connection condition of the current pairing equipment is detected; when the connected paired equipment exists, carrying out the unpairing operation according to the unpairing command, and sending the unpairing command to the paired equipment so as to enable the paired equipment to carry out the unpairing operation according to the unpairing command. After a certain device acquires a pairing instruction, the connection condition of the paired device is detected to judge whether the paired device is connected or not, so that the unpairing command can be sent to the paired device, the current device and the paired device can be subjected to unpairing operation by themselves, manual control of a technician is not needed, and the time spent in unpairing of mass-produced products is reduced.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Corresponding to the above-mentioned method for unpairing, fig. 4 is a schematic structural diagram of a unpairing device according to an embodiment of the present application, and as shown in fig. 4, the unpairing device may include:
the detecting module 401 is configured to obtain a unpairing command, and detect a connection status of the current paired device.
And an operation module 402, configured to perform a unpairing operation according to the unpairing command when there is a connected paired device, and send the unpairing command to the paired device, so that the paired device performs the unpairing operation according to the unpairing command.
Optionally, the unpairing device may further include:
and the reconnection module is used for performing reconnection operation when the unconnected paired equipment exists.
And the prompting module is used for sending the current state information to the control end when the reconnection times exceed a preset time threshold value so that the control end can perform prompting operation according to the state information.
Optionally, the reconnection module may include:
and the detection unit is used for detecting the broadcast information of the next-stage equipment when the unconnected pairing equipment is the next-stage equipment.
And the response unit is used for sending a request to the next-stage equipment when the broadcast information of the next-stage equipment is detected, so that the next-stage equipment responds to the request.
Optionally, the reconnection module may further include:
and the polling unit is used for polling the connection state between the device and the previous-stage device at preset time intervals when the device to be paired which is not connected is the previous-stage device.
Optionally, the operation module 402 may include:
and the acquisition unit is used for clearing the paired equipment information according to the unpairing command and acquiring the original configuration information.
And the replacing unit is used for replacing the original configuration information with the current configuration information.
Optionally, the unpairing device may further include:
and the clearing module is used for clearing the information of the previous-stage equipment according to the de-pairing command when the current pairing state is detected to be the unpaired state.
Optionally, the unpairing device may further include:
and the sending module is used for sending a pairing removing command to pairing equipment corresponding to the abnormal condition when detecting that the abnormal condition meeting the preset condition exists.
In the embodiment of the application, a de-pairing command is acquired, and the connection condition of the current pairing equipment is detected; when the connected paired equipment exists, carrying out the unpairing operation according to the unpairing command, and sending the unpairing command to the paired equipment so as to enable the paired equipment to carry out the unpairing operation according to the unpairing command. After a certain device acquires a pairing instruction, the connection condition of the paired device is detected to judge whether the paired device is connected or not, so that the unpairing command can be sent to the paired device, the current device and the paired device can be subjected to unpairing operation by themselves, manual control of a technician is not needed, and the time spent in unpairing of mass-produced products is reduced.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and modules described above may refer to corresponding procedures in the foregoing system embodiments and method embodiments, which are not described herein again.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application. For convenience of explanation, only portions relevant to the embodiments of the present application are shown.
As shown in fig. 5, the terminal device 5 of this embodiment includes: at least one processor 500 (only one shown in fig. 5), a memory 501 coupled to the processor 500, and a computer program 502, such as a unpaired program, stored in the memory 501 and executable on the at least one processor 500. The processor 500, when executing the computer program 502, implements the steps of the various unpairing method embodiments described above, such as steps S101 through S102 shown in fig. 1. Alternatively, the processor 500 may implement the functions of the modules in the apparatus embodiments described above, such as the functions of the modules 401 to 402 shown in fig. 4, when executing the computer program 502.
Illustratively, the computer program 502 may be partitioned into one or more modules that are stored in the memory 501 and executed by the processor 500 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 502 in the terminal device 5. For example, the computer program 502 may be divided into a detection module 401 and an operation module 402, where each module specifically functions as follows:
a detection module 401, configured to obtain a unpaover command, and detect a connection status of a current paired device;
and an operation module 402, configured to perform a unpairing operation according to the unpairing command when there is a connected paired device, and send the unpairing command to the paired device, so that the paired device performs the unpairing operation according to the unpairing command.
The terminal device 5 may include, but is not limited to, a processor 500, a memory 501. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the terminal device 5 and is not meant to be limiting as the terminal device 5, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input and output devices, network access devices, buses, etc.
The processor 500 may be a central processing unit (Central Processing Unit, CPU), and the processor 500 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 501 may in some embodiments be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 501 may in other embodiments also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 5. Further, the memory 501 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 501 is used to store an operating system, application programs, boot loader (BootLoader), data, and other programs, such as program code of the computer program. The memory 501 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A method of unpairing comprising:
acquiring a de-pairing command, and detecting the connection condition of the current pairing equipment;
when the connected paired equipment exists, carrying out a unpairing operation according to the unpairing command, and sending the unpairing command to the paired equipment so as to enable the paired equipment to carry out the unpairing operation according to the unpairing command;
when the pairing equipment which is not connected exists, reconnection operation is carried out;
and when the unconnected paired equipment exists, performing reconnection operation, wherein the reconnection operation comprises the following steps:
when the unconnected paired equipment is next-stage equipment, detecting broadcast information of the next-stage equipment;
when the broadcast information of the next-stage equipment is detected, a request is sent to the next-stage equipment, so that the next-stage equipment responds to the request to complete reconnection;
if the terminal equipment is successfully connected with the paired equipment, and the paired equipment is detected to be in an unpaired state, the unpaired operation is performed according to the unpaired command, and the unpaired command is not required to be sent to the paired equipment in the unpaired state.
2. The unpairing method of claim 1, comprising, after detecting a connection condition of a current paired device:
when the reconnection times exceeds a preset time threshold, the current state information is sent to a control end, so that the control end carries out prompt operation according to the state information.
3. The unpairing method of claim 2, wherein the reconnecting operation is performed when there is a paired device that is not connected, further comprising:
and when the unconnected paired equipment is the previous-stage equipment, polling the connection state between the unconnected paired equipment and the previous-stage equipment at preset time intervals.
4. The unpairing method of claim 1, wherein the unpairing operation according to the unpairing command comprises:
clearing paired equipment information according to the unpaired command, and acquiring original configuration information;
and replacing the original configuration information with the current configuration information.
5. The unpairing method of claim 1, comprising, after the unpairing command is obtained:
and when the current pairing state is detected to be the unpaired state, clearing the information of the previous-stage equipment according to the unpaired command.
6. A method of unpairing according to any one of claims 1 to 5, comprising:
when detecting that an abnormal condition meeting a preset condition exists, sending a de-pairing command to pairing equipment corresponding to the abnormal condition.
7. A unpaired device, comprising:
the detection module is used for acquiring the unpairing command and detecting the connection condition of the current paired equipment;
the operation module is used for carrying out unpairing operation according to the unpairing command when the connected paired equipment exists, and sending the unpairing command to the paired equipment so that the paired equipment carries out unpairing operation according to the unpairing command;
the reconnection module is used for reconnecting when the unconnected paired equipment exists;
wherein, reconnection module includes:
a detection unit, configured to detect broadcast information of a next-stage device when the unconnected paired device is the next-stage device;
a response unit, configured to send a request to the next-stage device when broadcast information of the next-stage device is detected, so that the next-stage device performs a response operation according to the request to complete reconnection;
if the terminal equipment is successfully connected with the paired equipment, and the paired equipment is detected to be in an unpaired state, the unpaired operation is performed according to the unpaired command, and the unpaired command is not required to be sent to the paired equipment in the unpaired state.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of a unpairing method according to any of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of a unpairing method according to any of claims 1 to 6.
CN202011057013.4A 2020-09-29 2020-09-29 Unpairing method and device, terminal equipment and storage medium Active CN112187937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011057013.4A CN112187937B (en) 2020-09-29 2020-09-29 Unpairing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011057013.4A CN112187937B (en) 2020-09-29 2020-09-29 Unpairing method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112187937A CN112187937A (en) 2021-01-05
CN112187937B true CN112187937B (en) 2023-05-02

Family

ID=73947312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011057013.4A Active CN112187937B (en) 2020-09-29 2020-09-29 Unpairing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112187937B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542852B (en) * 2021-07-13 2023-03-24 海信视像科技股份有限公司 Display device and control method for fast pairing with external device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105864976B (en) * 2016-04-18 2018-12-18 广东美的环境电器制造有限公司 Inter-linked controlling method and system, the server of household appliance
CN106998496A (en) * 2017-04-06 2017-08-01 深圳创维数字技术有限公司 The method and system that a kind of set top box bluetooth is de-coordinated automatically
EP3654540B1 (en) * 2017-08-31 2023-04-05 Huawei Technologies Co., Ltd. Pairing method, unpairing method, terminal device and externally-connected device
CN108829076B (en) * 2018-09-12 2021-01-26 泛联(北京)科技有限公司 Intelligent equipment grouping linkage control method and system

Also Published As

Publication number Publication date
CN112187937A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN113115351B (en) Network exception processing method, processing device, terminal equipment and medium
EP3214891A1 (en) Switching-on method, base station, base station controller, switching-on system and storage medium
CN105262792A (en) Vehicle abnormality processing method and vehicle-mounted terminal
CN112579356B (en) Fault processing method and server
CN112235370B (en) Equipment information synchronization method, synchronization device, main equipment and storage medium
CN109733233B (en) Charging pile power supply method, device and system, charging pile and storage medium
CN112187937B (en) Unpairing method and device, terminal equipment and storage medium
CN108399136B (en) Control method and device of serial interface and host
CN111203869A (en) Robot system maintenance method and device, robot and readable storage medium
CN110505609B (en) Bluetooth interaction method, bluetooth interaction device and terminal equipment
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN105468123A (en) Rack management controller, power management program update system and method
CN110224872B (en) Communication method, device and storage medium
CN112583912A (en) VPN automatic connection method, device, equipment and storage medium
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN112510644B (en) Short circuit protection method and device for UPS parallel operation system and UPS
CN105335661B (en) USB device monitoring method and device based on USB interface granularity
CN111385167B (en) Network connection recovery method, device, computer device and storage medium
CN114328080A (en) Firmware state detection method and device and electronic equipment
CN113873026A (en) Dynamic timeout response method, device, terminal equipment and storage medium
CN109614246B (en) Message processing method and device and message processing server
CN113110970A (en) Method, device, equipment and medium for monitoring components in server working mode
CN113806069B (en) Nuclear power station system interaction method and device, peripheral system and storage medium
CN116170896A (en) Bluetooth gateway scheduling method, system, device and Bluetooth gateway
CN114691016A (en) Equipment capacity configuration method and device, terminal equipment and storage medium

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