CN113179487A - Working mode control method and device, electronic equipment and storage medium - Google Patents

Working mode control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113179487A
CN113179487A CN202110436543.8A CN202110436543A CN113179487A CN 113179487 A CN113179487 A CN 113179487A CN 202110436543 A CN202110436543 A CN 202110436543A CN 113179487 A CN113179487 A CN 113179487A
Authority
CN
China
Prior art keywords
ultra
wideband
mode
tag
target
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
CN202110436543.8A
Other languages
Chinese (zh)
Other versions
CN113179487B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110436543.8A priority Critical patent/CN113179487B/en
Publication of CN113179487A publication Critical patent/CN113179487A/en
Application granted granted Critical
Publication of CN113179487B publication Critical patent/CN113179487B/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/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0022Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • 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
    • H04W52/0203Power saving arrangements in the radio access network or backbone network of wireless communication networks
    • 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

Abstract

The application relates to a working mode control method, a working mode control device, computer equipment and a storage medium. The method comprises the following steps: responding to the ranging instruction, sending a mode switching instruction to the ultra-wideband accessory and the target ultra-wideband tag through the wireless communication link, instructing the ultra-wideband accessory to switch the working mode from a first accessory mode to a second accessory mode based on the mode switching instruction, and instructing the target ultra-wideband tag to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction; the ultra-wideband corollary equipment acquires ranging data sent by a target ultra-wideband tag in a second tag mode through an ultra-wideband communication link in the second mating mode, and the power consumption of the ultra-wideband corollary equipment in the first mating mode is smaller than that in the second mating mode; the power consumption of the target ultra-wideband tag in the first tag mode is less than the power consumption in the second tag mode. By adopting the method, the relation between the power consumption and the accuracy can be balanced.

Description

Working mode control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for controlling a working mode, an electronic device, and a computer-readable storage medium.
Background
An Ultra Wide Band (UWB) technology is a wireless carrier communication technology, and is mainly used in military radars, positioning, and communication systems with low interception rate and low detection rate. Because the UWB technology has the characteristics of high data transmission rate, strong multipath interference resistance, low power consumption, low cost, strong penetration capability, low interception rate, spectrum sharing with other wireless communication systems, and the like, the UWB technology becomes the first choice technology for the wireless personal area network communication technology, and manufacturers have begun to integrate the UWB function in electronic devices.
However, it is difficult to balance the relationship between power consumption and accuracy with current devices with ultra-wideband technology.
Disclosure of Invention
The embodiment of the application provides a working mode control method and device, electronic equipment and a computer readable storage medium, which can balance the relation between power consumption and accuracy.
An operation mode control method is applied to electronic equipment, and the method comprises the following steps:
responding to a ranging instruction, sending a mode switching instruction to an ultra-wideband accessory and a target ultra-wideband tag through a wireless communication link to instruct the ultra-wideband accessory to switch a working mode from a first accessory mode to a second accessory mode based on the mode switching instruction, and instruct the target ultra-wideband tag to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction; the ultra-wideband corollary equipment acquires ranging data sent by the target ultra-wideband tag in the second tag mode through an ultra-wideband communication link in the second mating mode, and the power consumption of the ultra-wideband corollary equipment in the first mating mode is smaller than that in the second mating mode; the power consumption of the target ultra-wideband tag in the first tag mode is less than the power consumption in the second tag mode.
A working mode control method is applied to ultra-wideband corollary equipment; the method comprises the following steps:
receiving a mode switching instruction sent by the electronic equipment through a wireless communication link;
switching the working mode from a first mating mode to a second mating mode based on the mode switching instruction; the power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode;
and in the second matching mode, acquiring the ranging data sent by the target ultra-wide band tag in the second tag mode through an ultra-wide band communication link.
A working mode control method is applied to a target ultra-wide band tag; the method comprises the following steps:
receiving a mode switching instruction sent by the electronic equipment through a wireless communication link;
switching the working mode from a first tag mode to a second tag mode based on the mode switching instruction; the power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode;
and acquiring ranging data in the second tag mode, and sending the ranging data to the ultra-wideband corollary equipment through an ultra-wideband communication link.
A working mode control device is applied to electronic equipment; the device comprises:
the sending module is used for responding to a ranging instruction, sending a mode switching instruction to the ultra-wideband accessory equipment and the target ultra-wideband tag through a wireless communication link, so as to instruct the ultra-wideband accessory equipment to switch the working mode from a first accessory mode to a second accessory mode based on the mode switching instruction, and instruct the target ultra-wideband tag to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction; the ultra-wideband corollary equipment acquires ranging data sent by the target ultra-wideband tag in the second tag mode through an ultra-wideband communication link in the second mating mode, and the power consumption of the ultra-wideband corollary equipment in the first mating mode is smaller than that in the second mating mode; the power consumption of the target ultra-wideband tag in the first tag mode is less than the power consumption in the second tag mode.
A working mode control device is applied to ultra-wideband corollary equipment; the device comprises:
the receiving module is used for receiving a mode switching instruction sent by the electronic equipment through a wireless communication link;
the mode switching module is used for switching the working mode from a first mating mode to a second mating mode based on the mode switching instruction; the power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode;
and the sending module is used for obtaining the ranging data sent by the target ultra-wide band tag in the second tag mode through an ultra-wide band communication link in the second matching mode.
A working mode control device is applied to a target ultra-wide band tag; the method comprises the following steps:
the receiving module is used for receiving a mode switching instruction sent by the electronic equipment through a wireless communication link;
the mode switching module is used for switching the working mode from the first label mode to the second label mode based on the mode switching instruction; the power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode;
and the sending module is used for acquiring the ranging data in the second tag mode and sending the ranging data to the ultra-wideband corollary equipment through an ultra-wideband communication link.
An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and wherein the computer program, when executed by the processor, causes the processor to perform the steps of the method for operating mode control as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as described above.
The above-mentioned working mode control method, apparatus, electronic device, and computer-readable storage medium, in response to a ranging instruction, the mode switching instruction is sent to the ultra-wideband accessory and the target ultra-wideband tag through the wireless communication link, to instruct the ultra-wideband companion device to switch from a first companion mode with lower power consumption to a second companion mode, to indicate that the target ultra-wide band tag is switched from a first tag mode that consumes less power to a second tag mode, the ultra-wideband matching equipment acquires the ranging data sent by the target ultra-wideband tag in the second tag mode through the ultra-wideband communication link in the second matching mode, the distance between the ultra-wideband matching equipment and the target ultra-wideband tag can be measured with higher precision, the accuracy of the ultra-wideband matching equipment and the target ultra-wideband tag identification equipment is improved, and therefore the relation between the power consumption and the accuracy of the ultra-wideband equipment (the ultra-wideband matching equipment and the target ultra-wideband tag) is balanced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating an exemplary embodiment of an application environment for a method for operating mode control;
FIG. 2 is a diagram illustrating a Bluetooth data reporting format of a UWB handset housing in accordance with an embodiment;
FIG. 3 is a flow chart of a method of operating mode control in one embodiment;
FIG. 4 is a flowchart of an operation mode control method in another embodiment;
FIG. 5 is a flowchart of an operation mode control method in another embodiment;
FIG. 6 is a timing diagram illustrating the communication connections between the handset terminal, the UWB handset housing and the UWB TAG device in one embodiment;
FIG. 7 is a flowchart of an operation mode control method in another embodiment;
FIG. 8 is a flowchart of an operation mode control method in another embodiment;
FIG. 9 is a block diagram showing the construction of an operation mode control apparatus according to an embodiment;
FIG. 10 is a block diagram showing the construction of an operation mode control apparatus in another embodiment;
fig. 11 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further 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 present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
Fig. 1 is a schematic application environment diagram of an operation mode control method in one embodiment. As shown in fig. 1, the application environment includes an electronic device 102, an ultra-wideband companion device 104, and a target ultra-wideband tag 106. The electronic device 102 responds to the ranging instruction, and sends a mode switching instruction to the ultra-wideband accessory 104 and the target ultra-wideband tag 106 through the wireless communication link to instruct the ultra-wideband accessory 104 to switch the working mode from the first accessory mode to the second accessory mode based on the mode switching instruction, and instruct the target ultra-wideband tag 106 to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction; the ultra-wideband matching device 104 acquires ranging data sent by the target ultra-wideband band tag 106 in the second tag mode through an ultra-wideband communication link in the second matching mode, and the power consumption of the ultra-wideband matching device 104 in the first matching mode is smaller than that in the second matching mode; the power consumption of the target ultra-wide band tag 106 in the first tag mode is less than the power consumption in the second tag mode. The electronic device 102 may be, but is not limited to, various smart phones, tablet computers, and portable wearable devices. The ultra-wideband companion 104 may be, but is not limited to, various wearable cases with ultra-wideband modules that may be worn on the electronic device 102. The target ultra-wide band tag 106 can be, but is not limited to, hardware such as various Software dogs (Software Dongle), bluetooth adapters, wireless transmitters, etc., and the ultra-wide band tag 106 can be attached to a plug-in or attached to a controlled device. The controlled equipment can be but is not limited to various intelligent household equipment, including air conditioners, fans, sweeping robots, televisions, table lamps and the like.
The operation mode control method in this embodiment is described by taking the electronic device in fig. 1 as an example. The electronic equipment responds to the ranging instruction, sends the mode switching instruction to the ultra-wideband accessory equipment and the target ultra-wideband tag through the wireless communication link, so as to instruct the ultra-wideband accessory equipment to switch the working mode from a first accessory mode to a second accessory mode based on the mode switching instruction, and instruct the target ultra-wideband tag to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction; the ultra-wideband corollary equipment acquires ranging data sent by a target ultra-wideband tag in a second tag mode through an ultra-wideband communication link in the second mating mode, and the power consumption of the ultra-wideband corollary equipment in the first mating mode is smaller than that in the second mating mode; the power consumption of the target ultra-wideband tag in the first tag mode is less than the power consumption in the second tag mode.
Ultra Wide Band (UWB) technology is a new type of wireless communication technology. The ultra-wideband technology solves the major problems of the traditional wireless technology in the aspect of transmission for many years, and has the advantages of insensitivity to channel fading, low power spectral density of transmitted signals, low interception capability, low system complexity, capability of providing positioning accuracy of a few centimeters and the like. Ultra wideband technology brings low power consumption, high bandwidth and relatively simple wireless communication technology to interface cards and access technologies for wireless local area networks, LANs, and personal area networks, PANs, and has a core value in enabling spatial awareness, such as indoor positioning. It can be understood that in the present application, the UWB technology can be used to extend the scene functions for pointing control, tracking object finding, indoor navigation, and the like. The pointing control is large in space in an intelligent home control scene, and by means of accurate space perception, the control efficiency of intelligent home equipment (Internet of things equipment) can be improved, and user experience is improved.
The electronic equipment is composed of electronic components such as integrated circuits, transistors, electron tubes and the like, and is used for playing a role by applying electronic technology (including) software, and comprises an electronic computer, a robot controlled by the electronic computer, a numerical control or program control system and the like. For example, the electronic device in the present application may include a smart phone, a tablet computer, a wearable device, and the like, and the smart phone, the tablet computer, and the wearable device may be mobile terminal devices of different operating systems.
The ultra-wideband corollary equipment is equipment which has an ultra-wideband function and is matched with electronic equipment. The ultra-wideband accessory may include different functional ultra-wideband functional objects attached to the electronic device during use. The ultra-wideband corollary equipment can be in the form of a wearing shell, a patch and the like, and an ultra-wideband chip is arranged in the wearing shell (patch) to realize the ultra-wideband function. In addition, wear the shell and can also wear on electronic equipment, for example, the cell-phone shell that embeds there is the ultra-wideband chip can be worn on the cell-phone. It is understood that the ultra-wideband accessory device in the present application includes, but is not limited to, wearing cases, patches, etc. and the form is not limited as long as the ultra-wideband accessory device can be attached to the electronic device.
The target ultra-wideband TAG (TAG) refers to selected hardware with an ultra-wideband chip built in, and may include a Dongle (Software Dongle), a bluetooth adapter, a wireless transmitter, and the like. The target ultra-wide band tag can be externally hung or attached to an inner shell and an outer shell of the target controlled device, and can also be installed inside the shell of the target controlled device, which is not limited herein.
The ranging instruction is an instruction for indicating the distance between the ultra-wideband corollary equipment and the target ultra-wideband tape label. The wireless Communication link may be a bluetooth Communication link, an NFC (Near Field Communication) Communication link, or a network Communication link, but is not limited thereto. When the wireless communication link is a Bluetooth communication link, it may specifically be a classic Bluetooth communication link, and may also be a Bluetooth Low Energy (BLE) communication link.
The first mate mode (Case mode) and the second mate mode (Host mode) are two modes of operation of the ultra-wideband mate device. The power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode; the ultra-wideband accessory can measure the target distance between the ultra-wideband accessory and the target ultra-wideband tape tag according to the ultra-wideband protocol in the second accessory mode. The ultra-wideband corollary equipment is defaulted to work in a first corollary mode, the power consumption of the ultra-wideband corollary equipment can be saved, and the first corollary mode is switched to a second corollary mode under the condition that a mode switching instruction is received.
The first tag mode (Dongle mode) and the second tag mode (Client mode) are two operation modes of the target ultra-wideband tag. The power consumption of the target ultra-wide band tag in the first tag mode is smaller than that in the second tag mode; the target ultra-wide band tag can send the ranging data to the ultra-wide band matching equipment through the ultra-wide band communication link in the second tag mode so as to indicate the ultra-wide band matching equipment to calculate the target distance between the target ultra-wide band tag and the target ultra-wide band tag. The ranging data is data for measuring a distance. The ranging data may include distance information, and may also include distance information and angle information. Wherein the angle information may be at least one of angle information in a horizontal direction and angle information in a vertical direction.
The target ultra-wideband tag works in a first tag mode by default, power consumption of ultra-wideband corollary equipment can be saved, and the first tag mode is switched to a second tag mode under the condition that a mode switching instruction is received.
The ultra-wide band matching equipment and the target ultra-wide band tag are matched ultra-wide band equipment and work cooperatively. The working mode of the ultra-wide band matching equipment is a first matching mode, and the working mode of the target ultra-wide band tag is a first tag mode. The target ultra-wide band tag only sends angle information in the horizontal direction to ultra-wide band matched equipment in a first tag mode; under the first matching mode, the ultra-wideband matching equipment only receives angle information in the horizontal direction sent by the target ultra-wideband tag, and then the ultra-wideband matching equipment can calculate the angle in the horizontal direction between the ultra-wideband matching equipment and the target ultra-wideband tag according to an ultra-wideband protocol. The working mode of the ultra-wide band matching equipment is a second matching mode, and the working mode of the target ultra-wide band tag is a second tag mode. The target ultra-wideband tag sends ranging data to ultra-wideband corollary equipment in a second tag mode; and the ultra-wideband corollary equipment receives ranging data sent by the target ultra-wideband tape tag in a second matching mode, and the ultra-wideband corollary equipment can calculate the target distance between the ultra-wideband corollary equipment and the target ultra-wideband tape tag according to an ultra-wideband protocol.
The working mode of the ultra-wide band matching equipment is a first matching mode, and the working mode of the target ultra-wide band tag is the first tag mode, the electronic equipment does not need to be connected with the target ultra-wide band tag, the target ultra-wide band tag only sends angle information in the horizontal direction to the ultra-wide band matching equipment, the ultra-wide band matching equipment only receives angle information in the horizontal direction sent by the target ultra-wide band tag, the angle in the horizontal direction between the ultra-wide band matching equipment and the target ultra-wide band tag is obtained through calculation, the angle in the horizontal direction is sent to the electronic equipment, and then the electronic equipment can process the angle in the horizontal direction.
And under the condition that the working mode of the ultra-wideband matching equipment is the second matching mode and the working mode of the target ultra-wideband tag is the second tag mode, the electronic equipment and the target ultra-wideband tag communicate through a pre-established wireless communication link.
The electronic equipment responds to the ranging instruction, establishes a wireless communication link with the target ultra-wide band tag, and sends a mode switching instruction to the target ultra-wide band tag through the wireless communication link so as to instruct the target ultra-wide band tag to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction.
An electronic device establishing a wireless communication link with a target ultra-wide band tag, comprising: scanning broadcast signals in an environment; the broadcast signal is targeted ultra-wideband tag broadcast; and under the condition that a broadcast signal matched with the target ultra-wideband label is scanned, establishing a wireless communication link with the target ultra-wideband label.
The user can press a designated physical key in the target ultra-wide band tag to broadcast the broadcast signal of the target ultra-wide band tag. Wherein the broadcast signal may be a bluetooth broadcast signal.
Optionally, under the condition that the working mode of the ultra-wideband matching device is the second matching mode and the working mode of the target ultra-wideband tag is the second tag mode, the ultra-wideband matching device and the target ultra-wideband tag receive and transmit data one to one, so that interference of other devices can be avoided.
In response to the ranging command, in this embodiment, the mode switch command is sent to the ultra-wideband companion device and the target ultra-wideband tag over the wireless communication link, to instruct the ultra-wideband companion device to switch from a first companion mode with lower power consumption to a second companion mode, to indicate that the target ultra-wide band tag is switched from a first tag mode that consumes less power to a second tag mode, the ultra-wideband matching equipment acquires the ranging data sent by the target ultra-wideband tag in the second tag mode through the ultra-wideband communication link in the second matching mode, the distance between the ultra-wideband matching equipment and the target ultra-wideband tag can be measured with higher precision, the accuracy of the ultra-wideband matching equipment and the target ultra-wideband tag identification equipment is improved, and therefore the relation between the power consumption and the accuracy of the ultra-wideband equipment (the ultra-wideband matching equipment and the target ultra-wideband tag) is balanced.
The working mode control method can also ensure that when the distance measurement is not needed, the ultra-wideband matching equipment works in the first matching mode with low power consumption, the target ultra-wideband tag works in the first tag mode with low power consumption, and the ultra-wideband tag is switched to the distance measurement mode only when the distance measurement is needed, so that the working mode is switched in a targeted manner; the power consumption of the ultra-wideband equipment is considered, and the realization of the ranging function is also ensured; the electronic equipment indicates the ultra-wideband matching equipment and the target ultra-wideband tape label to switch modes through the mode switching instruction, and therefore non-sensing switching of working modes can be achieved.
In one embodiment, the ultra-wideband companion device is an article having an ultra-wideband module that is affixed to the electronic device when the article is in use. The description will be given by taking an example in which the mobile phone terminal recognizes the ultra-wide band tag. When the electronic equipment is a mobile phone terminal and the ultra-wideband matching equipment is a UWB mobile phone shell, the UWB mobile phone shell can be worn on the mobile phone terminal. The ultra-wide band tag can be hung outside or attached to a controlled device (namely, an IOT intelligent device). IOT is the Internet of Things (IOT for short). The angle formed by the mobile phone terminal pointing to the smart home is the angle of the UWB mobile phone shell pointing to the UWB TAG device (UWB TAG device). Because the mobile phone terminal does not have the ability of measuring the angle, the ability comes from the mobile phone shell worn on the mobile phone, and the mobile phone wearing the UWB mobile phone shell points to the controlled equipment attached with the UWB label from the using mode of the user. The angle is determined by the UWB protocol, namely under the condition that the UWB mobile phone shell is perpendicular to the horizontal direction, the UWB mobile phone shell takes the direction pointed by the front of the UWB mobile phone shell as the angle 0, determines a connection line between the UWB mobile phone shell and the UWB TAG equipment, and determines the included angle between the UWB TAG equipment and the forward direction of the UWB mobile phone shell as the acquired angle information. Through this angle information, the mobile phone terminal can judge directive property between UWB cell-phone shell positive direction and UWB equipment. The identification between the UWB handset housing and the UWB TAG device is made according to UWB protocols. Information such as angle and distance is defined by the UWB protocol, and ID information, i.e., identification information, is device identification code information carried when the UWB protocol transfers information.
The mode that can adopt the bluetooth to be connected between cell-phone terminal and the UWB cell-phone shell, UWB cell-phone shell reports UWB data through BLE and gives cell-phone terminal, UWB cell-phone shell bluetooth reports data format as shown in figure 2: 2Byte (TYPE:0x6F70) +2Byte (VALUE _ Length) + UWB data variable Length (VALUE) +2Byte (CRC). Wherein, the VALUE _ Length includes the total Length of the VALUE and CRC result, i.e. size of (VALUE + CRC), and the VALUE includes 2Byte (REAL _ VALUE _ TYPE) +2Byte (REAL _ VALUE _ Length) + variable Length (REAL _ VALUE …). The meaning of the UWB data reported by the UWB mobile phone shell is shown in the following table 1:
TABLE 1
Figure BDA0003033303420000051
Figure BDA0003033303420000061
In addition, when the UWB mobile phone shell reports the UWB data to the mobile phone terminal through BLE, the data can be reported according to different preset working modes. For example, the UWB horizontal angle measurement mode is defaulted to carry out data reporting. The UWB mobile phone shell works in a Case mode (only a UWB event is received: only horizontal angle information is received by default), the UWB TAG device (UWB TAG device) works in a Dongle mode (only a UWB event is sent) by default, the UWB mobile phone shell scans UWB TAG device information through UWB, and the mobile phone terminal acquires all scanned UWB TAG device information from the UWB mobile phone shell through BLE request. Therefore, through the adoption of the BLE connection mode, the mobile phone terminal and the UWB mobile phone shell are connected to transmit data, the UWB mobile phone shell simplifies the pairing operation between the mobile phone terminal and the mobile phone terminal in the using process, and quick and effective identification between the devices can be realized.
In one embodiment, the instructions sent by the electronic device to the ultra-wideband companion device or target ultra-wideband tag have the meaning shown in the following table:
table 2:
Figure BDA0003033303420000062
Figure BDA0003033303420000071
in one embodiment, as shown in fig. 3, after the mode switching command is sent to the ultra-wideband accessory and the target ultra-wideband tag through the wireless communication link, the method further includes:
step 302, receiving a target distance between the ultra-wideband matching equipment and a target ultra-wideband tape tag, wherein the target distance is sent by the ultra-wideband matching equipment; the target distance is calculated by the ultra-wideband corollary equipment based on the ranging data.
The ultra-wideband matching equipment acquires ranging data sent by the target ultra-wideband tape tag in the second tag mode through an ultra-wideband communication link in the second matching mode, calculates a target distance between the ultra-wideband matching equipment and the target ultra-wideband tape tag according to an ultra-wideband protocol, and sends the target distance to the electronic equipment through a wireless communication link. And the electronic equipment receives the target distance sent by the ultra-wideband corollary equipment through the wireless communication link.
And 304, responding to the specified trigger operation of the user, and determining the displacement path of the target controlled device where the target ultra-wideband tag is located based on the target distance.
The target controlled device is the device where the target ultra-wide band tag is located. The target controlled device can be, but is not limited to, various smart home devices, including an air conditioner, a fan, a sweeping robot, a television, a desk lamp and the like.
The ultra-wide band matching device is attached to the electronic device, the target ultra-wide band tag and the target controlled device are located at the same position, and the target distance between the ultra-wide band matching device and the target ultra-wide band tag is the distance between the electronic device and the target controlled device.
The specified trigger operation is an operation performed by the user, and can trigger a screen Input event (Input event) which is a trigger event in the electronic device. The trigger event may include a click event, a touch event, a slide event, and the like, that is, the user may perform different trigger operations on the electronic device, for example, the trigger operations include a click operation, a slide operation, a long-time press operation, a shake operation, and the like, and may be set as needed.
The electronic equipment responds to the appointed trigger operation of the user, searches for user requirements corresponding to the appointed trigger operation, the user requirements comprise a target area of the final displacement of the target controlled equipment, and based on the target distance and the target area of the target controlled equipment, the displacement path of the target controlled equipment is calculated by adopting an ultra-wideband protocol.
And step 306, sending the instruction corresponding to the displacement path to the target controlled device to instruct the target controlled device to displace according to the displacement path.
And the target controlled equipment receives the instruction corresponding to the displacement path, acquires the displacement path, performs displacement according to the displacement path, and can displace to a target area corresponding to the user requirement.
For example, a user performs a shake-and-shake operation on a mobile phone (electronic device), the mobile phone responds to the shake-and-shake operation of the user (specified trigger operation), a displacement path of the sweeping robot is determined based on a target distance between the ultra-wideband corollary device and a target ultra-wideband tag, namely, a distance between the mobile phone and the sweeping robot (target controlled device), and an instruction of the displacement path is sent to the sweeping robot. And the sweeping robot receives the instruction of the displacement path and moves to the surrounding area where the mobile phone is located according to the displacement path to sweep.
In this embodiment, a target distance between the ultra-wideband accessory and the target ultra-wideband tag sent by the ultra-wideband accessory is received, and in response to a specified trigger operation of a user, based on the target distance, a displacement path of the target controlled device can be accurately determined, so that an instruction corresponding to the displacement path is sent to the target controlled device, and the target controlled device can be accurately instructed to displace according to the displacement path.
In one embodiment, the method further comprises: and in a specified time after responding to the ranging instruction, under the condition that the ranging instruction is not detected, sending the resetting instruction to the ultra-wideband corollary equipment and the target ultra-wideband tape tag to indicate that the ultra-wideband corollary equipment switches the second matching mode into the first matching mode based on the resetting instruction, and indicate that the target ultra-wideband tape tag switches the second tag mode into the first tag mode based on the resetting instruction.
The specified duration can be set as desired. For example, the specified time period may be 10 seconds, 1 minute, or the like. The reset instruction refers to an instruction to reset the current operation mode to an operation mode with lower power consumption.
The electronic equipment indicates that a second matching mode of the ultra-wideband matching equipment is not needed to be adopted and the target ultra-wideband tag works cooperatively to obtain the target distance under the condition that the ranging instruction is not detected any more within the specified time after responding to the ranging instruction, and also indicates that a user does not need the service of measuring the target distance, so that the reset instruction is sent to the ultra-wideband matching equipment and the target ultra-wideband tag.
And the ultra-wideband corollary equipment receives the reset instruction and switches the second corollary mode into the first corollary mode with lower power consumption. The first matching mode may be a default mode of the ultra-wideband matching device, and the ultra-wideband matching device resets the ultra-wideband matching device to the default mode when receiving the reset instruction.
And the target ultra-wideband tag receives a reset instruction and switches the second tag mode into the first tag mode with lower power consumption. The first tag mode may be a default mode of the target ultra-wide band tag, and the target ultra-wide band tag is reset to the default mode when receiving a reset instruction.
In this embodiment, the electronic device sends the reset instruction to the ultra-wideband accessory and the target ultra-wideband tag within a specified time period after responding to the ranging instruction and under the condition that the ranging instruction is not detected, so that the ultra-wideband accessory is timely instructed to switch the second accessory mode to the first accessory mode with lower power consumption, and the target ultra-wideband tag switches the second tag mode to the first tag mode with lower power consumption, thereby reducing the power consumption of the ultra-wideband accessory and the target ultra-wideband tag.
In one embodiment, as shown in fig. 4, before responding to the ranging instruction, the method further includes:
step 402, obtaining information of each candidate ultra-wideband label sent by ultra-wideband corollary equipment; the information of each candidate ultra-wideband label is obtained by scanning the ultra-wideband label in a preset range by the ultra-wideband corollary equipment in a first corollary mode.
The candidate ultra-wideband tag information refers to the ultra-wideband tag information in a preset distance range scanned by the ultra-wideband corollary equipment. The preset range may be set as desired. For example, the preset range may be a circle with a radius of N meters and an ultra-wideband companion device as a center.
The ultra-wideband matching equipment can send the information of each candidate ultra-wideband label obtained by scanning to the electronic equipment at preset intervals in the first matching mode. The preset duration can be set as required.
Step 404, determining a target ultra-wideband tag based on the information of each candidate ultra-wideband tag.
After the electronic equipment receives the candidate ultra-wideband tag information sent by the ultra-wideband corollary equipment, the electronic equipment can identify the target ultra-wideband tag information from the candidate ultra-wideband tag information. The candidate ultra-wide band tag information comprises angle information of the candidate ultra-wide band tag and ultra-wide band matched equipment. The angle information of the candidate ultra-wide band tag and the ultra-wide band matching equipment is obtained by calculation of the ultra-wide band matching equipment according to an ultra-wide band protocol. The angle information is also the angle information between the electronic device to which the ultra-wideband matching device is attached and the controlled device in which the candidate ultra-wideband tag is located. The angle information may be angle information in a horizontal direction, angle information in a vertical direction, and angle information in the horizontal direction and the vertical direction.
For example, the angle information may be an offset angle between a horizontal direction of the electronic device and a horizontal direction of a controlled device in which the ultra-wide tape tag is located. As another example, the angle information may be an offset angle between a vertical direction of the electronic device and a vertical direction of a controlled device in which the ultra-wide tape tag is located.
In this embodiment, information of each candidate ultra-wideband tag sent by the ultra-wideband corollary equipment is obtained, and the information of each candidate ultra-wideband tag is obtained by scanning the ultra-wideband tag in a preset range in a first matching mode of the ultra-wideband corollary equipment.
In one embodiment, determining a target ultra-wideband tag based on each candidate ultra-wideband tag information comprises: responding to the pointing operation, comparing the angle information in the horizontal direction in each candidate ultra-wideband tag information with a preset angle threshold, identifying target ultra-wideband tag information from the candidate ultra-wideband tag information according to a comparison result, and taking the ultra-wideband tag corresponding to the target ultra-wideband tag information as a target ultra-wideband tag.
The angle information is included angle information between the ultra-wideband corollary equipment and the candidate ultra-wideband tag, and the preset angle threshold value can be an angle range which is set by a user in a user-defined mode, for example, the preset angle threshold value is within a range of plus or minus 30 degrees.
Under the condition that the ultra-wideband matching equipment is in the first matching mode, the electronic equipment responds to the pointing operation, compares the angle information in the horizontal direction in the candidate ultra-wideband tag information with a preset angle threshold value, identifies target ultra-wideband tag information from the candidate ultra-wideband tag information according to a comparison result, and takes the ultra-wideband tag corresponding to the target ultra-wideband tag information as a target ultra-wideband tag. The aim of the pointing operation is that a user performs pointing identification or pointing control on the internet of things equipment. Pointing identification or control, namely when the electronic equipment points to a certain equipment within a preset angle threshold range, the equipment can be quickly identified and controlled. For example, if the electronic device points to the air conditioner within the preset angle threshold range, the electronic device can identify the air conditioner from a plurality of internet of things devices and quickly start up a control interface of the air conditioner; the electronic equipment points to the sweeping robot within a preset angle threshold range, and the sweeping robot can be controlled to start for sweeping.
Specifically, the description will be given by taking an example in which the electronic device identifies the ultra-wide band tag. When the electronic equipment is a mobile phone terminal and the ultra-wideband matching equipment is an ultra-wideband mobile phone shell, and a user points the mobile phone terminal wearing the ultra-wideband mobile phone shell to a certain Internet of things equipment containing an ultra-wideband label within a preset angle threshold range, the mobile phone terminal can automatically acquire all candidate ultra-wideband label information scanned by the ultra-wideband mobile phone shell through the established wireless communication link. After the mobile phone terminal receives the candidate ultra-wideband tag information returned by the UWB mobile phone shell, the mobile phone terminal can compare the angle information in the horizontal direction in the candidate ultra-wideband tag information with a preset angle threshold value, and identify target ultra-wideband tag information from each candidate ultra-wideband tag information according to a comparison result, wherein the angle information is included angle information between the UWB mobile phone shell and each candidate ultra-wideband tag. For example, the ultra wide band corollary equipment is the UWB cell-phone shell, and its inside has the antenna, and the structure of arranging uses cell-phone terminal to erect the screen forward direction as 0 angle, and candidate ultra wide band label is the UWB label on certain thing networking device, and thing networking device and this UWB cell-phone shell direct connection on the horizontal direction are angle information with the contained angle of the forward direction that thing networking device set for. If wear the cell-phone terminal that has the UWB cell-phone shell, satisfy in certain angle range of product definition with the contained angle between the candidate ultra wide band label in the current space, for example positive and negative 15 degrees, then judge that the user is using this cell-phone terminal of wearing the UWB cell-phone shell, pointed to this candidate ultra wide band label, this candidate ultra wide band label is target ultra wide band label, then cell-phone terminal can discern the target controled equipment that this UWB label belongs to according to angle information, carry out data interaction with target controlled equipment again. Therefore, the problem that the equipment of different manufacturers cannot be identified is solved, the use experience of the user is improved, and convenience is brought to the user.
In an embodiment, as shown in fig. 5, before acquiring information of each candidate ultra-wideband tag returned by the ultra-wideband companion device, the method further includes:
step 502, in response to the start triggering operation, supplying power to the ultra-wideband accessory device, so that the ultra-wideband accessory device broadcasts pairing broadcast information containing identification information of the ultra-wideband accessory device and scans candidate ultra-wideband accessory tag devices within a preset range.
The user can wear or attach ultra wide band corollary equipment on electronic equipment, and electronic equipment responds to user's start trigger operation, supplies power to ultra wide band corollary equipment to make ultra wide band corollary equipment broadcast contain ultra wide band corollary equipment identification information pair broadcast information and scan the ultra wide band tape label in the scope of predetermineeing. For example, the description will be given taking an example in which a mobile phone terminal recognizes an ultra-wide band tag. Assuming that the electronic equipment is a mobile phone terminal and the ultra-wideband matching equipment is a mobile phone wearing shell, when a user triggers a power supply operation on the mobile phone wearing shell, the mobile phone terminal can respond to the starting triggering operation of the user, and the mobile phone terminal supplies power to the mobile phone wearing shell. The user's start trigger operation may include, but is not limited to, a tap operation, a click operation, a long-press operation, a pan-and-shake operation, and the like. The user can trigger the mobile phone terminal to supply power to the mobile phone wearing shell by double-clicking the mobile phone wearing the shell, namely the mobile phone terminal responds to the double-click operation of the user to supply wireless power to the mobile phone wearing shell and support the normal work of the UWB module of the mobile phone wearing shell. After the mobile phone terminal supplies power to the mobile phone wearing shell, the mobile phone wearing shell can enter a normal working state of the UWB module, the mobile phone wearing shell can send Bluetooth pairing broadcast information containing self equipment identification information, and an ultra-wide band label in a preset range can be scanned according to a UWB protocol. Therefore, the ultra-wideband corollary equipment is powered, so that the ultra-wideband corollary equipment can enter the normal working state of the ultra-wideband module, can establish quick and effective communication connection with electronic equipment, and can scan the ultra-wideband tape label in a preset range in real time.
And step 504, scanning the identification information of the ultra-wideband corollary equipment in the pairing broadcast information, and establishing a wireless communication link with the ultra-wideband corollary equipment.
Under the condition that the ultra-wideband corollary equipment sends pairing broadcast information containing ultra-wideband corollary equipment identification information and scans an ultra-wideband strap label in a preset range, namely under the condition that the ultra-wideband corollary equipment is in a normal working mode. The electronic device may power the ultra-wideband companion device in response to a start-trigger operation. In addition, the ultra-wideband companion device may also be self-powered or powered by other devices. The power supply means that the ultra-wideband corollary equipment is powered on. The paired broadcast information refers to that the equipment periodically sends message information in the broadcast according to a preset protocol. For example, each time a device broadcasts, the same message may be sent on a different broadcast channel, which is referred to as a broadcast event.
The ultra-wideband corollary equipment identification information is used for identifying the unique equipment. The identification information of the ultra-wideband corollary equipment in the application is used for identifying the identity authentication information among the ultra-wideband corollary equipment, for example, the identification information of the ultra-wideband corollary equipment can be a character string, a binary field or self-defined identification information. The electronic device judges whether to establish a wireless communication link according to the specific identification information, namely the electronic device establishes the wireless communication link with the device corresponding to the identification information according to a preset protocol or rule when the scanned identification information accords with the preset rule or the matching condition. After the wireless communication link is established between the devices, all data communication is performed in Connection Events.
For example, the description will be given taking an example in which a mobile phone terminal recognizes an ultra-wide band tag. Assuming that the electronic equipment is a mobile terminal, the mobile terminal can be a mobile phone terminal, the ultra-wideband matching equipment is a mobile phone wearing shell, and when a user triggers a power supply operation on the mobile phone wearing shell, the mobile phone terminal scans identification information of the mobile phone wearing shell in the paired broadcast information and establishes communication connection with the mobile phone wearing shell. Meanwhile, the mobile phone wearing shell can scan the ultra-wideband label information within a preset range according to a UWB protocol. The Bluetooth pairing broadcast information is in a Bluetooth wireless connection mode, and Bluetooth refers to a Bluetooth Low Energy (BLE) technology.
Specifically, when the electronic device is a mobile phone terminal and the ultra-wideband supporting device is a mobile phone wearing shell a, the mobile phone wearing shell a can send bluetooth matching broadcast information containing identification information of the mobile phone wearing shell a, and the mobile phone wearing shell a enters a broadcast state. The mobile phone terminal can enter a scanning state through real-time scanning, namely, the mobile phone terminal actively searches the broadcasting Bluetooth device and matches the identification information of the mobile phone wearing shell A in the broadcasting information with the identification information locally recorded by the mobile phone terminal. If the identification information of the mobile phone wearing shell A is recorded in the mobile phone terminal locally, which indicates that the mobile phone terminal and the mobile phone wearing shell A have an association relationship or a binding relationship, the mobile phone terminal can establish communication connection with the mobile phone wearing shell A according to the identification information of the mobile phone wearing shell A in the scanned pairing broadcast information. If the identification information of the mobile phone wearing shell A is not recorded locally, which indicates that the mobile phone terminal and the mobile phone wearing shell A do not have a binding relationship or an association relationship, the mobile phone terminal can bind the identification information of the mobile phone wearing shell A in the scanned pairing broadcast information with the identification information corresponding to the mobile phone terminal, establish communication connection with the mobile phone wearing shell A after the binding is successful, and store the identification information of the mobile phone wearing shell A in a local storage of the mobile phone terminal. Wherein, identification information wears shell A's only hardware identification for the cell-phone, and communication connection can adopt bluetooth wireless connection's mode, also can adopt other connected modes in this application, for example wifi's P2P connected mode etc.. Wherein, the cell-phone is worn shell A and can be UWB cell-phone shell, then carries specific equipment identification code in the BLE broadcast that UWB cell-phone shell sent, indicates that current equipment type is UWB cell-phone shell. The mobile phone terminal analyzes and filters the identification code, and only the UWB mobile phone shell equipment can be concerned in the connection process.
Step 506, sending a control command to the ultra-wideband accessory device through the established wireless communication link, where the control command is used to request to acquire the scanned ultra-wideband tag information.
The electronic equipment scans the identification information of the ultra-wideband matching equipment in the matching broadcast information, after a wireless communication link is established with the ultra-wideband matching equipment, the electronic equipment sends a control command to the ultra-wideband matching equipment through the established wireless communication link, and the control command is used for requesting to acquire the scanned ultra-wideband label information. Under the condition that the ultra-wideband corollary equipment normally works, namely the ultra-wideband corollary equipment can scan the ultra-wideband tag in a preset range in real time according to an ultra-wideband protocol, when a user wants to trigger, position and identify the internet of things equipment, the triggering operation of the user can be pointing operation, and angle information corresponding to the pointing operation needs to meet a preset angle threshold condition, for example, the angle threshold condition is that an angle between the ultra-wideband tag and the ultra-wideband corollary equipment is in a preset angle range, for example, the angle between the ultra-wideband tag and the ultra-wideband corollary equipment is in a range of plus or minus 30 degrees due to the pointing operation. For example, when a user directs a mobile phone terminal with a mobile phone wearing shell to a certain internet of things device within a preset angle range (plus or minus 30 degrees), the mobile phone terminal can automatically send a control command to the wearing shell through an established communication connection, and the control command is used for requesting to acquire scanned ultra-wideband label information so as to identify target ultra-wideband label information.
The description will be given by taking an example in which the mobile phone terminal recognizes the ultra-wide band tag. Supposing that the electronic equipment is a mobile phone terminal, when the ultra-wideband corollary equipment is an ultra-wideband mobile phone shell, supposing that a user directs a mobile phone terminal with the ultra-wideband mobile phone shell to a controlled device (the controlled device is provided with an ultra-wideband tag), namely when the user triggers, positions and identifies the controlled device, the mobile phone terminal can automatically send a control command to the ultra-wideband mobile phone shell through an established wireless communication link, when the ultra-wideband mobile phone shell receives the control command sent by the mobile phone terminal, the ultra-wideband mobile phone shell can identify the target ultra-wideband tag information from the candidate ultra-wideband tag information, namely, the mobile phone terminal identifies a target ultra-wideband tag information directed by the mobile phone terminal with the ultra-wideband mobile phone shell, and after the ultra-wideband tag information is received by the mobile phone terminal, the mobile phone terminal can identify the target ultra-wideband tag information from the candidate ultra-wideband tag information based on the candidate ultra-wideband tag information, namely, the mobile phone terminal identifies the target ultra-wideband tag information directed by the user And the target controlled equipment where the label is located.
Further, after the mobile phone terminal identifies the target ultra-wideband tag information from the plurality of candidate ultra-wideband tag information, the mobile phone terminal may automatically send a control instruction to the target controlled device having an association relationship with the identified target ultra-wideband tag information, that is, the mobile phone terminal identifies the target controlled device in which the target ultra-wideband tag is located, and the control instruction is used for controlling the target controlled device. For example, when a user directs a mobile phone terminal wearing a UWB mobile phone case to an air conditioner a attached with a target UWB tag within a preset angle range, the user can quickly turn on a control interface of the air conditioner a. Assuming that the user points the mobile phone terminal wearing the UWB mobile phone case to the air conditioner a attached with the target ultra-wide band tag within a preset angle range, the mobile phone terminal receives the ultra wide band TAG information returned by the UWB mobile phone shell, wherein the angle information of TAG 1 is 40 degrees, the angle information of TAG2 is 29 degrees and the angle information of TAG3 is 60 degrees, the mobile phone terminal identifies target ultra-wideband label information from a plurality of candidate ultra-wideband label information according to preset angle information (the angle threshold value is within a range of plus or minus 30 degrees), namely, the mobile phone terminal recognizes the target ultra-wide band TAG information as TAG2 from TAG 1, TAG2 and TAG3, the TAG2 has a correlation with the air conditioner A, the TAG2 can be attached to the air conditioner A, the mobile phone terminal can automatically send a control instruction to the air conditioner A attached with the TAG2, and a control interface corresponding to the air conditioner A is displayed in a display interface of the mobile phone terminal. In addition, the mobile phone terminal can also send a customized control command to the identified target internet of things device, namely the air conditioner A, through the network in the called control interface of the air conditioner A so as to switch the working mode of the air conditioner A. It can be understood that the ultra-wide band tag plays a role in positioning and identifying the controlled device, the target ultra-wide band tag and the target controlled device do not establish any communication connection, and the controlled device is not controlled through the ultra-wide band tag.
In addition, if the mobile phone terminal identifies a plurality of target ultra-wide band tag information from the angle information of the plurality of candidate ultra-wide band tag information according to the preset angle threshold, the mobile phone terminal may further select the target ultra-wide band tag information meeting the identification rule from the plurality of target ultra-wide band tag information according to the preset identification rule. For example, the preset angle threshold is within a range of plus or minus 30 degrees, the angle information of TAG 1, which is received by the mobile phone terminal and returned by the UWB mobile phone shell, is 20 degrees, the angle information of TAG2 is 29 degrees, and the angle information of TAG3 is 60 degrees, so that the mobile phone terminal recognizes two target ultra-wide TAG information from TAG 1, TAG2, and TAG3 according to the preset angle threshold (the angle threshold is within the range of plus or minus 30 degrees), that is, the mobile phone terminal recognizes that both TAG 1 and TAG2 meet the preset angle threshold condition, the mobile phone terminal can further select TAG 1 of the minimum angle information as the final target ultra-wide TAG information according to the preset recognition rule, assuming that the recognition rule is the minimum angle information meeting the angle threshold, and the mobile phone terminal can select TAG 1 of the minimum angle information from TAG 1 and TAG2 according to the recognition rule. It can be understood that the identification rule in the application is not limited to identifying the minimum angle information meeting the angle threshold condition, but also can be according to the time sequence of the scanned ultra-wide tape tag information, or can display the control interfaces of a plurality of identified internet of things devices attached with target ultra-wide tape tag information on a screen, and the identification rule can be set by user self-definition.
In the traditional identification mode among devices, different manufacturers integrate UWB functions in the mobile phone, namely UWB hardware is integrated in the mobile phone, when the UWB hardware is used in the mobile phone, opposite-end devices need to be found, but an agreed protocol field is well defined and cannot be changed randomly, and the mobile phone manufacturers and the function protocols are not unified in the market, so that the UWB-technology-based interaction among different users cannot be met, and the devices produced by different manufacturers cannot be effectively identified.
In this embodiment, when the ultra-wideband accessory transmits pairing broadcast information including ultra-wideband accessory identification information and scans an ultra-wideband tag within a preset range, the electronic device scans the ultra-wideband accessory identification information in the pairing broadcast information and establishes a wireless communication link with the ultra-wideband accessory. The control command is sent to the ultra-wideband corollary equipment through the established wireless communication link, the control command is used for requesting to acquire scanned ultra-wideband label information, so that the electronic equipment identifies ultra-wideband labels under the assistance of the ultra-wideband corollary equipment, and the target equipment is quickly and accurately determined according to the information between the ultra-wideband labels and the target equipment.
In one embodiment, the method further comprises: and under the condition that the power supply time reaches the time threshold, stopping supplying power to the ultra-wideband corollary equipment.
In one embodiment, scanning for ultra-wideband companion device identification information in the pairing broadcast information to establish a wireless communication link with the ultra-wideband companion device comprises: acquiring ultra-wideband corollary equipment identification information in the paired broadcast information; if the identification information of the ultra-wideband corollary equipment is found in the local storage, a wireless communication link is established with the ultra-wideband corollary equipment; and if the identification information of the ultra-wideband corollary equipment is not found in the local storage, binding the identification of the ultra-wideband corollary equipment with the equipment identification of the electronic equipment, establishing a wireless communication link with the ultra-wideband corollary equipment after the binding is successful, and storing the identification of the ultra-wideband corollary equipment in the local storage.
In one embodiment, the ultra-wideband companion device identification information carries device type information; after the identification information of the ultra-wideband matching device in the pairing broadcast information is acquired, the method further comprises the following steps: and under the condition that the ultra-wideband corollary equipment is determined to be ultra-wideband equipment according to the equipment type information carried by the ultra-wideband corollary equipment identification information, executing the step of searching the ultra-wideband corollary equipment identification information in local storage.
In one embodiment, the example of the mobile phone terminal recognizing the ultra-wide band tag is described. As shown in fig. 6, a timing diagram of communication connections between the handset terminal, UWB handset housing and UWB TAG device (ultra wide band TAG). When electronic equipment is mobile phone terminal, when the ultra wide band corollary equipment was UWB cell-phone shell, the user can trigger wireless anti-charging through the operation of double-click cell-phone shell, opens the wireless function of charging of mobile phone terminal promptly, supplies power for UWB cell-phone shell through the mode that wireless charges. And detecting double click of the mobile phone terminal, triggering wireless reverse charging, and starting BLE scanning by the mobile phone terminal. The UWB mobile phone shell is started after receiving the wireless reverse charging to obtain the electric quantity, immediately starts BLE and sends BLE broadcast, and simultaneously starts to scan UWB TAG equipment in the current environment according to a UWB protocol. When the mobile phone terminal scans the broadcast information sent by the UWB mobile phone shell, the BLE is used for connecting the UWB mobile phone shell. After the Bluetooth connection between the mobile phone terminal and the UWB mobile phone shell is successful, the mobile phone terminal sends a binary string of a control command (0xAABC04) to the UWB mobile phone shell through BLE to request to acquire the TAG scanning information. The UWB handset shell transmits the scanned UWB TAG device information to the handset terminal through BLE, and the transmission protocol is a data protocol shown in table 1, for example, a data format of (0xAA05) is currently transmitted. Under the normal operating condition of UWB cell-phone shell, when the user wants to trigger the location discernment thing networking device, the user can point to target UWB TAG equipment with the cell-phone terminal of wearing UWB cell-phone shell.
The mobile phone terminal responds to the pointing operation of a user, compares the received angle information in the candidate ultra-wideband label information returned by the UWB mobile phone shell with a preset angle threshold, and identifies target ultra-wideband label information from the candidate ultra-wideband label information according to a comparison result, namely, the mobile phone terminal can identify the target UWB TAG equipment pointed by the user through the angle information. Therefore, the problem that the equipment of different manufacturers cannot be identified is solved, the use experience of the user is improved, and convenience is brought to the user.
Fig. 7 is a flowchart of an operation mode control method in one embodiment. The operation mode control method in this embodiment is described by taking the operation on the ultra-wideband supporting device in fig. 1 as an example. As shown in fig. 7, the operation mode control method includes steps 702 to 706.
Step 702, receiving a mode switching instruction sent by an electronic device through a wireless communication link. The mode switch command is transmitted by the electronic device in response to the ranging command.
Step 704, switching the working mode from the first mating mode to the second mating mode based on the mode switching instruction; the power consumption of the ultra-wideband companion device in the first companion mode is less than the power consumption of the ultra-wideband companion device in the second companion mode.
Step 706, in the second matching mode, obtaining the ranging data sent by the target ultra-wide band tag in the second tag mode through the ultra-wide band communication link.
In this embodiment, the ultra-wideband accessory receives a mode switching instruction sent by the electronic device through the wireless communication link, the operating mode is switched from a first matching mode with lower power consumption to a second matching mode based on the mode switching instruction, and in the second matching mode, the ultra-wideband communication link is used for acquiring ranging data sent by the target ultra-wideband tag in the second tag mode, so that the distance between the ultra-wideband accessory and the target ultra-wideband tag can be measured with higher precision, the accuracy of the ultra-wideband accessory for identifying the device is improved, and the relation between the power consumption and the accuracy of the ultra-wideband accessory is balanced.
In one embodiment, the ultra-wideband accessory calculates a target distance between the ultra-wideband accessory and a target ultra-wideband tag based on the ranging data, and sends the target distance to the electronic device; the electronic equipment responds to the specified trigger operation of a user and determines a displacement path of target controlled equipment where the target ultra-wideband label is located based on the target distance; and sending the instruction corresponding to the displacement path to the target controlled equipment to indicate the target controlled equipment to displace according to the displacement path. The ultra-wideband corollary equipment calculates the target distance between the ultra-wideband corollary equipment and the target ultra-wideband tape label based on the ranging data according to the ultra-wideband protocol.
In one embodiment, the method further comprises: the ultra-wideband matching equipment scans the ultra-wideband tags in a preset range to obtain information of the candidate ultra-wideband tags in a first matching mode, and sends the information of the candidate ultra-wideband tags to the electronic equipment so as to indicate the electronic equipment to determine the target ultra-wideband tags based on the information of the candidate ultra-wideband tags.
Further, the electronic equipment responds to the pointing operation, angle information in the horizontal direction in each piece of candidate ultra-wideband tag information is compared with a preset angle threshold value, target ultra-wideband tag information is identified from the candidate ultra-wideband tag information according to a comparison result, and the ultra-wideband tag corresponding to the target ultra-wideband tag information is used as the target ultra-wideband tag.
In one embodiment, the method further comprises: under the condition that the ultra-wideband corollary equipment works in a second corollary mode and receives a reset instruction sent by the electronic equipment, switching the second corollary mode to a first corollary mode; the reset command is sent by the electronic device if the ranging command is no longer detected within a specified time period after responding to the ranging command.
In this embodiment, the electronic device sends the reset instruction to the ultra-wideband companion device when the electronic device does not detect the ranging instruction any more within a specified time period after responding to the ranging instruction. The ultra-wideband corollary equipment can switch the second corollary mode to the first corollary mode with lower power consumption in time, thereby reducing the power consumption of the ultra-wideband corollary equipment.
In one embodiment, before receiving the mode switching instruction sent by the electronic device through the wireless communication link, the method further includes: under the condition of receiving power supply of the electronic equipment, broadcasting paired broadcast information containing identification information of the ultra-wideband corollary equipment, and scanning candidate ultra-wideband tags in a preset range; and receiving a pairing request sent by the electronic equipment according to the pairing broadcast information, and establishing a wireless communication link with the electronic equipment according to the pairing request. Wherein the electronic device powers the ultra-wideband companion device in response to the start-trigger operation.
In this embodiment, when power supply of the electronic device is received, paired broadcast information including identification information of the ultra-wideband accessory is broadcast, and candidate ultra-wideband tags in a preset range are scanned, so that the electronic device can scan the paired broadcast information and send a pairing request, and then the ultra-wideband accessory can accurately establish a wireless communication link with the electronic device according to the pairing request, thereby avoiding interference of other devices.
Fig. 8 is a flowchart of an operation mode control method in one embodiment. The operation mode control method in this embodiment is described by taking the example of the operation on the target ultra-wide tape tag in fig. 1. As shown in fig. 8, the operation mode control method includes steps 802 to 806.
Step 802, receiving a mode switching instruction sent by an electronic device through a wireless communication link.
Step 804, switching the working mode from the first label mode to the second label mode based on the mode switching instruction; the power consumption of the ultra-wideband companion device in the first companion mode is less than the power consumption of the ultra-wideband companion device in the second companion mode.
Step 806, in the second tag mode, obtaining ranging data and sending the ranging data to the ultra-wideband companion device through the ultra-wideband communication link.
In this embodiment, the target ultra-wideband tag receives a mode switching instruction sent by the electronic device through the wireless communication link, the operating mode is switched from a first tag mode with low power consumption to a second tag mode based on the mode switching instruction, in the second tag mode, the ranging data is acquired, and the ranging data is sent to the ultra-wideband accessory through the ultra-wideband communication link, so that the ultra-wideband accessory can measure the distance between the ultra-wideband accessory and the target ultra-wideband tag with higher precision, the accuracy of the identification device of the ultra-wideband accessory is improved, and the relation between the power consumption and the accuracy of the ultra-wideband accessory is balanced.
In one embodiment, when the target ultra-wide band tag is in the second tag mode and the wireless communication link between the target ultra-wide band tag and the electronic device is disconnected, the second tag mode is switched to the first tag mode, so that the power consumption of the target ultra-wide band tag can be saved, and the cruising ability is improved.
In one embodiment, after the ranging data is sent to the ultra-wideband accessory through the ultra-wideband communication link, the ultra-wideband accessory calculates a target distance between the ultra-wideband accessory and a target ultra-wideband tag based on the ranging data according to an ultra-wideband protocol, and sends the target distance to the electronic device; the electronic equipment responds to the specified trigger operation of a user and determines a displacement path of target controlled equipment where the target ultra-wideband label is located based on the target distance; and sending the instruction corresponding to the displacement path to the target controlled equipment to indicate the target controlled equipment to displace according to the displacement path.
In one embodiment, the target ultra-wide band tag is determined by the electronic device from the candidate ultra-wide band tags based on the information of the candidate ultra-wide band tags, and the information of the candidate ultra-wide band tags is obtained by scanning the ultra-wide band tag in a preset range by the ultra-wide band matching device in the first matching mode and is sent to the electronic device.
In one embodiment, the target ultra-wide band tag works in a first tag mode, acquires angle information in the horizontal direction, and sends the angle information in the horizontal direction to the ultra-wide band matching equipment.
In this embodiment, the target ultra-wide band tag operates in the first tag mode, and only angle information in the horizontal direction is acquired, so that power consumption of the target ultra-wide band tag can be saved, and cruising ability of the target ultra-wide band tag is improved.
In one embodiment, the electronic device supplies power to the ultra-wideband accessory device in response to a start trigger operation, so that the ultra-wideband accessory device broadcasts pairing broadcast information containing ultra-wideband accessory device identification information and scans candidate ultra-wideband accessory device identification information within a preset range; scanning identification information of ultra-wideband corollary equipment in the pairing broadcast information, and establishing a wireless communication link with the ultra-wideband corollary equipment; and sending a control command to the ultra-wideband corollary equipment through the established wireless communication link, wherein the control command is used for requesting to acquire the scanned ultra-wideband label information.
In one embodiment, under the condition that the ultra-wideband tag works in a second tag mode and receives a reset instruction sent by electronic equipment, the second tag mode is switched to the first tag mode; the reset command is sent by the electronic device if the ranging command is no longer detected within a specified time period after responding to the ranging command.
In this embodiment, the electronic device sends the reset instruction to the target ultra-wide band tag when the electronic device does not detect the ranging instruction within a specified time length after responding to the ranging instruction. The target ultra-wideband tag can switch the second tag mode to the first tag mode with lower power consumption in time, so that the power consumption of the target ultra-wideband tag is reduced.
It should be understood that, although the respective steps in the flowcharts of fig. 3 to 5, 7 and 8 are sequentially shown as indicated by arrows, the steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3-5, 7 and 8 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, an operation mode control device is provided, which is applied to an electronic device, and comprises:
the sending module is used for responding to the ranging instruction, sending the mode switching instruction to the ultra-wideband accessory equipment and the target ultra-wideband tag through the wireless communication link, indicating the ultra-wideband accessory equipment to switch the working mode from the first accessory mode to the second accessory mode based on the mode switching instruction, and indicating the target ultra-wideband tag to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction; the ultra-wideband corollary equipment acquires ranging data sent by a target ultra-wideband tag in a second tag mode through an ultra-wideband communication link in the second mating mode, and the power consumption of the ultra-wideband corollary equipment in the first mating mode is smaller than that in the second mating mode; the power consumption of the target ultra-wideband tag in the first tag mode is less than the power consumption in the second tag mode.
The working mode control device responds to the ranging instruction and sends the mode switching instruction to the ultra-wideband corollary equipment and the target ultra-wideband tape label through the wireless communication link, to instruct the ultra-wideband companion device to switch from a first companion mode with lower power consumption to a second companion mode, to indicate that the target ultra-wide band tag is switched from a first tag mode that consumes less power to a second tag mode, the ultra-wideband matching equipment acquires the ranging data sent by the target ultra-wideband tag in the second tag mode through the ultra-wideband communication link in the second matching mode, the distance between the ultra-wideband matching equipment and the target ultra-wideband tag can be measured with higher precision, the accuracy of the ultra-wideband matching equipment and the target ultra-wideband tag identification equipment is improved, and therefore the relation between the power consumption and the accuracy of the ultra-wideband equipment (the ultra-wideband matching equipment and the target ultra-wideband tag) is balanced.
In one embodiment, the apparatus further comprises a receiving module and a determining module; the receiving module is used for receiving a target distance between the ultra-wideband corollary equipment and a target ultra-wideband tape label, wherein the target distance is sent by the ultra-wideband corollary equipment; the target distance is calculated by the ultra-wideband corollary equipment based on the ranging data; the determining module is used for responding to the appointed triggering operation of a user and determining a displacement path of the target controlled equipment where the target ultra-wideband label is located based on the target distance; the sending module is further configured to send the instruction corresponding to the displacement path to the target controlled device to instruct the target controlled device to displace according to the displacement path.
In one embodiment, the sending module is further configured to send a reset instruction to the ultra-wideband accessory device and the target ultra-wideband tag in a case that the ranging instruction is not detected any more within a specified time period after responding to the ranging instruction, so as to instruct the ultra-wideband accessory device to switch the second accessory mode to the first accessory mode based on the reset instruction, and instruct the target ultra-wideband tag to switch the second tag mode to the first tag mode based on the reset instruction.
In one embodiment, the receiving module is further configured to obtain information of each candidate ultra-wideband tag sent by the ultra-wideband supporting device; the information of each candidate ultra-wideband label is obtained by scanning the ultra-wideband label in a preset range by ultra-wideband corollary equipment in a first corollary mode; the determining module is further configured to determine a target ultra-wideband tag based on each of the candidate ultra-wideband tag information.
In one embodiment, the determining module is further configured to compare, in response to the pointing operation, angle information in a horizontal direction in each piece of candidate ultra-wideband tag information with a preset angle threshold, identify target ultra-wideband tag information from the candidate ultra-wideband tag information according to a comparison result, and use an ultra-wideband tag corresponding to the target ultra-wideband tag information as the target ultra-wideband tag.
In one embodiment, the apparatus further comprises a power supply module and a scanning module; the power supply module is used for responding to the starting triggering operation and supplying power to the ultra-wideband corollary equipment so as to enable the ultra-wideband corollary equipment to broadcast paired broadcast information containing identification information of the ultra-wideband corollary equipment and scan candidate ultra-wideband labeled equipment in a preset range; the scanning module is used for scanning the identification information of the ultra-wideband corollary equipment in the paired broadcast information and establishing a wireless communication link with the ultra-wideband corollary equipment; the sending module is further used for sending a control command to the ultra-wideband corollary equipment through the established wireless communication link, wherein the control command is used for requesting to acquire the scanned ultra-wideband label information.
Fig. 9 is a block diagram showing the structure of an operation mode control device according to another embodiment. As shown in fig. 9, there is provided an operation mode control device applied to an ultra-wideband supporting apparatus, the device including: a receiving module 902, a mode switching module 904, and a transmitting module 906, wherein:
a receiving module 902, configured to receive a mode switching instruction sent by an electronic device through a wireless communication link.
A mode switching module 904, configured to switch the working mode from the first mating mode to the second mating mode based on the mode switching instruction; the power consumption of the ultra-wideband companion device in the first companion mode is less than the power consumption of the ultra-wideband companion device in the second companion mode.
A sending module 906, configured to obtain, in the second matching mode, ranging data sent by the target ultra-wide band tag in the second tag mode through the ultra-wide band communication link.
According to the working mode control device, the ultra-wideband accessory receives a mode switching instruction sent by the electronic equipment through the wireless communication link, the working mode is switched to the second accessory mode from the first accessory mode with lower power consumption based on the mode switching instruction, under the second accessory mode, the ranging data sent by the target ultra-wideband tag in the second tag mode are obtained through the ultra-wideband communication link, the distance between the ultra-wideband accessory and the target ultra-wideband tag can be measured with higher precision, the accuracy of the identification equipment of the ultra-wideband accessory is improved, and therefore the relation between the power consumption and the accuracy of the ultra-wideband accessory is balanced.
In an embodiment, the mode switching module is further configured to switch the second mating mode to the first mating mode when the ultra-wideband mating device operates in the second mating mode and receives a reset instruction sent by the electronic device; the reset command is sent by the electronic device if the ranging command is no longer detected within a specified time period after responding to the ranging command.
In one embodiment, the apparatus further includes a communication link establishing module, configured to broadcast pairing broadcast information including identification information of the ultra-wideband accessory device and scan candidate ultra-wideband tags within a preset range, when power supplied to the electronic device is received; and receiving a pairing request sent by the electronic equipment according to the pairing broadcast information, and establishing a wireless communication link with the electronic equipment according to the pairing request.
Fig. 10 is a block diagram showing the structure of an operation mode control device according to another embodiment. As shown in fig. 10, there is provided an operation mode control device for an ultra-wide band tag of a target, the device comprising: a receiving module 1002, a mode switching module 1004, and a transmitting module 1006, wherein:
the receiving module 1002 is configured to receive a mode switching instruction sent by an electronic device through a wireless communication link.
A mode switching module 1004, configured to switch the operating mode from the first tag mode to the second tag mode based on the mode switching instruction; the power consumption of the ultra-wideband companion device in the first companion mode is less than the power consumption of the ultra-wideband companion device in the second companion mode.
A sending module 1006, configured to obtain the ranging data in the second tag mode, and send the ranging data to the ultra-wideband supporting device through the ultra-wideband communication link.
Above-mentioned mode control device, the mode switching instruction that the electronic equipment sent is received through the wireless communication link to the target ultra wide band label, switch over the mode into the second label mode from the lower first label mode of consumption with the mode switching instruction based on the mode, under the second label mode, acquire range finding data, and send range finding data to ultra wide band corollary equipment through ultra wide band communication link, then ultra wide band corollary equipment can measure the distance between ultra wide band corollary equipment and the target ultra wide band label with higher precision, improve the degree of accuracy that ultra wide band corollary equipment discerned equipment, thereby the relation between the consumption and the degree of accuracy of ultra wide band corollary equipment has been balanced.
In one embodiment, the sending module is further configured to enable the target ultra-wide band tag to work in a first tag mode, acquire angle information in the horizontal direction, and send the angle information in the horizontal direction to the ultra-wide band accessory device.
In one embodiment, the mode switching module is further configured to switch the second tag mode to the first tag mode when the ultra-wideband tag operates in the second tag mode and receives a reset instruction sent by the electronic device; the reset command is sent by the electronic device if the ranging command is no longer detected within a specified time period after responding to the ranging command.
The division of each module in the operation mode control device is only used for illustration, and in other embodiments, the operation mode control device may be divided into different modules as needed to complete all or part of the functions of the operation mode control device.
For the specific definition of the operation mode control device, reference may be made to the above definition of the operation mode control method, which is not described herein again. The modules in the operation mode control device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 11 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 11, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement an operation mode control method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the operation mode control device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the operating mode control method.
A computer program product comprising instructions which, when run on a computer, cause the computer to perform a method of operating mode control.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (17)

1. An operation mode control method applied to an electronic device, the method comprising:
responding to a ranging instruction, sending a mode switching instruction to an ultra-wideband accessory and a target ultra-wideband tag through a wireless communication link to instruct the ultra-wideband accessory to switch a working mode from a first accessory mode to a second accessory mode based on the mode switching instruction, and instruct the target ultra-wideband tag to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction; the ultra-wideband corollary equipment acquires ranging data sent by the target ultra-wideband tag in the second tag mode through an ultra-wideband communication link in the second mating mode, and the power consumption of the ultra-wideband corollary equipment in the first mating mode is smaller than that in the second mating mode; the power consumption of the target ultra-wideband tag in the first tag mode is less than the power consumption in the second tag mode.
2. The method of claim 1, wherein sending the mode switch command to the ultra-wideband companion device and the target ultra-wideband tag via the wireless communication link further comprises:
receiving a target distance between the ultra-wideband corollary equipment and the target ultra-wideband tape tag, wherein the target distance is sent by the ultra-wideband corollary equipment; the target distance is calculated by the ultra-wideband corollary equipment based on the ranging data;
responding to a specified trigger operation of a user, and determining a displacement path of a target controlled device where the target ultra-wide band tag is located based on the target distance;
and sending the instruction corresponding to the displacement path to the target controlled equipment so as to instruct the target controlled equipment to displace according to the displacement path.
3. The method of claim 1, further comprising:
and under the condition that the ranging instruction is not detected within a specified time after responding to the ranging instruction, sending a reset instruction to the ultra-wideband accessory equipment and the target ultra-wideband tag to indicate the ultra-wideband accessory equipment to switch the second accessory mode to the first accessory mode based on the reset instruction, and indicate the target ultra-wideband tag to switch the second tag mode to the first tag mode based on the reset instruction.
4. The method of claim 1, wherein prior to responding to a ranging command, further comprising:
acquiring information of each candidate ultra-wideband label sent by the ultra-wideband corollary equipment; the information of each candidate ultra-wideband label is obtained by scanning an ultra-wideband label in a preset range by the ultra-wideband corollary equipment in a first corollary mode;
and determining a target ultra-wideband tag based on the information of each candidate ultra-wideband tag.
5. The method of claim 4, wherein determining a target ultra-wideband tag based on each of the candidate ultra-wideband tag information comprises:
responding to pointing operation, comparing angle information in the horizontal direction in each piece of candidate ultra-wideband tag information with a preset angle threshold, identifying target ultra-wideband tag information from the candidate ultra-wideband tag information according to a comparison result, and taking an ultra-wideband tag corresponding to the target ultra-wideband tag information as a target ultra-wideband tag.
6. The method of claim 4, wherein before obtaining information of each candidate ultra-wideband tag returned by the ultra-wideband companion device, the method further comprises:
responding to a starting triggering operation, supplying power to ultra-wideband corollary equipment so as to enable the ultra-wideband corollary equipment to broadcast paired broadcast information containing identification information of the ultra-wideband corollary equipment and scan candidate ultra-wideband labeled equipment in a preset range;
scanning the identification information of the ultra-wideband corollary equipment in the pairing broadcast information, and establishing a wireless communication link with the ultra-wideband corollary equipment;
and sending a control command to the ultra-wideband corollary equipment through the established wireless communication link, wherein the control command is used for requesting to acquire the scanned ultra-wideband label information.
7. A working mode control method is characterized in that the method is applied to ultra-wideband corollary equipment; the method comprises the following steps:
receiving a mode switching instruction sent by the electronic equipment through a wireless communication link;
switching the working mode from a first mating mode to a second mating mode based on the mode switching instruction; the power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode;
and in the second matching mode, acquiring ranging data sent by the target ultra-wide band tag in the second tag mode through an ultra-wide band communication link.
8. The method of claim 7, further comprising:
under the condition that the ultra-wideband corollary equipment works in a second corollary mode and receives a reset instruction sent by the electronic equipment, switching the second corollary mode to the first corollary mode; the reset instruction is sent by the electronic equipment when the ranging instruction is not detected any more within a specified time length after responding to the ranging instruction.
9. The method according to claim 7 or 8, wherein before receiving the mode switching instruction sent by the electronic device via the wireless communication link, the method further comprises:
under the condition of receiving power supply of electronic equipment, broadcasting matched broadcast information containing identification information of the ultra-wideband matched equipment, and scanning candidate ultra-wideband tags in a preset range;
and receiving a pairing request sent by the electronic equipment according to the pairing broadcast information, and establishing a wireless communication link with the electronic equipment according to the pairing request.
10. A working mode control method is characterized in that the method is applied to a target ultra-wide tape label; the method comprises the following steps:
receiving a mode switching instruction sent by the electronic equipment through a wireless communication link;
switching the working mode from a first tag mode to a second tag mode based on the mode switching instruction; the power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode;
and acquiring ranging data in the second tag mode, and sending the ranging data to the ultra-wideband corollary equipment through an ultra-wideband communication link.
11. The method of claim 10, further comprising:
the target ultra-wide band tag works in a first tag mode, angle information in the horizontal direction is obtained, and the angle information in the horizontal direction is sent to the ultra-wide band matching equipment.
12. The method of claim 10, further comprising:
under the condition that the ultra-wide band tag works in a second tag mode and a reset instruction sent by the electronic equipment is received, switching the second tag mode to the first tag mode; the reset instruction is sent by the electronic equipment when the ranging instruction is not detected any more within a specified time length after responding to the ranging instruction.
13. An operation mode control device is characterized by being applied to electronic equipment; the device comprises:
the sending module is used for responding to a ranging instruction, sending a mode switching instruction to the ultra-wideband accessory equipment and the target ultra-wideband tag through a wireless communication link, so as to instruct the ultra-wideband accessory equipment to switch the working mode from a first accessory mode to a second accessory mode based on the mode switching instruction, and instruct the target ultra-wideband tag to switch the working mode from the first tag mode to the second tag mode based on the mode switching instruction; the ultra-wideband corollary equipment acquires ranging data sent by the target ultra-wideband tag in the second tag mode through an ultra-wideband communication link in the second mating mode, and the power consumption of the ultra-wideband corollary equipment in the first mating mode is smaller than that in the second mating mode; the power consumption of the target ultra-wideband tag in the first tag mode is less than the power consumption in the second tag mode.
14. A working mode control device is characterized by being applied to ultra-wideband corollary equipment; the device comprises:
the receiving module is used for receiving a mode switching instruction sent by the electronic equipment through a wireless communication link;
the mode switching module is used for switching the working mode from a first mating mode to a second mating mode based on the mode switching instruction; the power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode;
and the sending module is used for obtaining the ranging data sent by the target ultra-wide band tag in the second tag mode through an ultra-wide band communication link in the second matching mode.
15. A working mode control device is characterized by being applied to a target ultra-wide tape label; the device comprises:
the receiving module is used for receiving a mode switching instruction sent by the electronic equipment through a wireless communication link;
the mode switching module is used for switching the working mode from the first label mode to the second label mode based on the mode switching instruction; the power consumption of the ultra-wideband corollary equipment in the first corollary mode is less than that in the second corollary mode;
and the sending module is used for acquiring the ranging data in the second tag mode and sending the ranging data to the ultra-wideband corollary equipment through an ultra-wideband communication link.
16. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the operation mode control method according to any one of claims 1 to 12.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 12.
CN202110436543.8A 2021-04-22 2021-04-22 Method and device for controlling working mode, electronic equipment and storage medium Active CN113179487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110436543.8A CN113179487B (en) 2021-04-22 2021-04-22 Method and device for controlling working mode, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110436543.8A CN113179487B (en) 2021-04-22 2021-04-22 Method and device for controlling working mode, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113179487A true CN113179487A (en) 2021-07-27
CN113179487B CN113179487B (en) 2023-08-29

Family

ID=76924435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110436543.8A Active CN113179487B (en) 2021-04-22 2021-04-22 Method and device for controlling working mode, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113179487B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110839206A (en) * 2019-11-26 2020-02-25 北京布科思科技有限公司 Positioning method and device based on dual-mode tag
CN111970672A (en) * 2020-08-31 2020-11-20 Oppo广东移动通信有限公司 Searching and positioning method and device, electronic equipment and storage medium
CN112134995A (en) * 2020-08-05 2020-12-25 华为技术有限公司 Method, terminal and computer readable storage medium for searching application object
CN112367621A (en) * 2020-10-23 2021-02-12 珠海格力电器股份有限公司 Ultra-wideband-based positioning system, method, electronic device and storage medium
WO2021027702A1 (en) * 2019-08-09 2021-02-18 北京海益同展信息科技有限公司 Ultra-wideband positioning method and apparatus
CN112518757A (en) * 2020-12-17 2021-03-19 湖南工程学院 Robot control method, robot, and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021027702A1 (en) * 2019-08-09 2021-02-18 北京海益同展信息科技有限公司 Ultra-wideband positioning method and apparatus
CN110839206A (en) * 2019-11-26 2020-02-25 北京布科思科技有限公司 Positioning method and device based on dual-mode tag
CN112134995A (en) * 2020-08-05 2020-12-25 华为技术有限公司 Method, terminal and computer readable storage medium for searching application object
CN111970672A (en) * 2020-08-31 2020-11-20 Oppo广东移动通信有限公司 Searching and positioning method and device, electronic equipment and storage medium
CN112367621A (en) * 2020-10-23 2021-02-12 珠海格力电器股份有限公司 Ultra-wideband-based positioning system, method, electronic device and storage medium
CN112518757A (en) * 2020-12-17 2021-03-19 湖南工程学院 Robot control method, robot, and readable storage medium

Also Published As

Publication number Publication date
CN113179487B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
CN113055873B (en) Method and device for identifying devices, electronic device and storage medium
US9877158B2 (en) Wi-Fi scan scheduling and power adaptation for low-power indoor location
US8879993B2 (en) Method, apparatus, and computer program product for wireless short-range communication establishment
EP2615869B1 (en) Systems for facilitating wireless communication and related methods
USRE47488E1 (en) Method, apparatus, and computer program product for wireless device discovery process
CA2933865A1 (en) A method of locating a mobile device and a cloud computer system employing same
CN112291708B (en) Data transmission method, device, equipment and computer readable storage medium
RU2533310C2 (en) Auxiliary method and system of wireless signal detection by mobile devices
KR101517027B1 (en) Detecter For Identifing User At Close Range
CN111601247A (en) Property broadcast positioning system, method and computer readable storage medium
KR101581327B1 (en) System and method for location awareness of mobile device, and system and method for communication of between mobile devices
CN113179487B (en) Method and device for controlling working mode, electronic equipment and storage medium
CN104811282B (en) Communication method and electronic equipment
US10193704B2 (en) Device control method and apparatus in home network system
CN114286322A (en) Pairing method and device, electronic equipment and storage medium
CN114584923B (en) Directional friend making method and device, storage medium and electronic equipment
CN105472731A (en) Positioning method, auxiliary positioning device and geographical position monitoring device and system
WO2021124740A1 (en) Position estimating method, position estimating program, fixed wireless device, and mobile wireless device
US20210392482A1 (en) Triggering a Proximity-Based Digital Action with a Mobile Device and a Base Device
CN111901754A (en) Position sensing card based on narrowband Internet of things, sensing method and system thereof
CN105284138A (en) Radio communication systems and radio communication methods
CN115189698B (en) UWB tag, communication method and related product
CN112423405B (en) Communication method and device, electronic equipment and computer readable storage medium
EP2997788B1 (en) Radio communication devices and methods for controlling a radio communication device
KR101351662B1 (en) Apparatus and method for searching access point in wireless communication system

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