UWB-based device communication system, method, device and medium
Through the establishment of a security connection and using the equipment control center between UWB devices to automatically adjust the communication status and functional status of the equipment control center, the power consumption and information security risks caused by the long -term maintenance of mobile smart devices to keep the communication are realized. Effect.
Patent Information
- Application Number
- CN202311444564.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2025-01-28
AI Technical Summary
Existing mobile smart devices with UWB modules keep WiFi, Bluetooth or GPS on for a long time without requiring them, resulting in increased power consumption and information security risks.
By establishing a secure connection between the main control UWB device and the accused UWB device, the device control center automatically adjusts the communication status and functional status of the device according to the requirements of the equipment control center to ensure that the unnecessary function is automatically closed when not needed to reduce the power consumption to reduce power consumption consumption. Essence
On the basis of ensuring communication security, the communication status and functional status of automated management equipment is reduced, reducing power consumption, improving the flexibility of users to control the equipment, and enhancing the interconnection between equipment.
Smart Images

Figure CN119383555A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and specifically to a device communication system, method, device, and medium based on UWB. Background Technology
[0002] Modern electronic products, such as smartphones, offer us a variety of connectivity options, including Wi-Fi, Bluetooth, and GPS, enabling easy communication and interconnection with external devices. Currently, to save power, users of mobile smart devices with UWB modules need to turn on Wi-Fi, Bluetooth, or GPS (communication modules) when needed and turn them off when not in use. This operation is sometimes easily forgotten, leading to power consumption. Furthermore, if these connectivity methods are left on for extended periods, they may connect to devices not intended by the user, and the constant presence of GPS could even lead to location information leaks, posing a data security risk. Summary of the Invention
[0003] In view of this, the present invention provides a device communication system, method, device and medium based on UWB to solve the problem of convenient and fast device interconnection and interoperability while ensuring communication security and reducing power consumption.
[0004] In a first aspect, the present invention provides a UWB-based device communication system, comprising: a master UWB device, a device control center, and at least one controlled UWB device; wherein: the controlled UWB device is configured to establish requirement control information based on preset function points in a function requirement library; after the master UWB device enters a preset scanning range and establishes a secure connection with the master UWB device, the controlled UWB device transmits the requirement control information to the master UWB device, the requirement control information including: communication status requirement information and functional status requirement information; the master UWB device is configured to acquire the requirement control information of at least one controlled UWB device after entering the preset scanning range and establishing a secure connection with the controlled UWB device; and transmit the requirement control information to the device control center; after leaving the preset scanning range, the master UWB device transmits its own communication status modification request to the device control center; the device control center is configured to generate a first instruction based on the functional status requirement information to control the functional status of the controlled UWB device; and generate a second instruction based on the communication requirement information or the communication status modification request to control the communication status of the master UWB device.
[0005] This invention enables controlled UWB devices to establish requirement control information based on preset function points in a function requirement library. The master UWB device automatically acquires this information and adjusts its own and the controlled UWB's states through a device control center. Utilizing UWB technology, it achieves secure device connection and remote control. When the master UWB device leaves the preset scanning range, it automatically disables certain functions by sending a communication status modification request to the device control center, thereby reducing the power consumption of the master UWB device. Users do not need to manually control the function states of the controlled UWB devices or the communication states of the master UWB device, ensuring convenient and quick interconnection between devices and improving the flexibility of user operation.
[0006] In one optional implementation, at least one controlled UWB device is equipped with a UWB module and is fixed within a preset scanning range; the device control center is used to generate a first instruction based on functional status requirement information, and transmit the first instruction using the UWB module to control the functional status of the controlled UWB device.
[0007] In this embodiment of the invention, the controlled UWB device is equipped with a UWB module and is fixed within a preset scanning range. Therefore, the master UWB device can immediately sense the location of the controlled UWB device after entering its scanning range and transmit the request to the device control center to control the functional state of the controlled UWB device, thereby ensuring a rapid response to the device's control requirements.
[0008] In one optional implementation, at least one controlled UWB device is externally equipped with a UWB tag, which is bound to account information with control permissions for the controlled UWB device and is fixed within a preset scanning range. The controlling UWB device, after entering the preset scanning range and establishing a secure connection with the controlled UWB device, obtains the account information bound to the controlled UWB device and transmits the account information to the controlled device control center. The device control center, based on the account information and functional status requirements, calls the corresponding control interface and generates a first instruction according to the control interface to control the functional status of the controlled UWB device.
[0009] This invention, by binding UWB tags to account information with control permissions and restricting UWB devices to communicate within a preset scanning range, ensures that only accounts with control permissions can establish secure connections with the controlled UWB devices. The device control center can call the corresponding control interface to generate instructions, thereby achieving centralized control and coordination of multiple controlled UWB devices, which enhances the security of data transmission and ensures interconnectivity between devices.
[0010] In one optional implementation, the master UWB device stores a first public key and a first private key. The master device establishes a connection request with the controlled UWB device by acquiring a broadcast signal transmitted by the controlled UWB device, sends the first public key, receives a second public key from the controlled device, and then verifies the first private key. Upon successful verification, the master device generates a master key based on image information acquired by its image acquisition module within a preset time period, replaces the first private key with the master key, and transmits the master key to the controlled UWB device. The master key includes image capture information, image location information, and image time information. The controlled UWB device stores a second public key and a second private key. The controlled UWB device transmits a broadcast signal to the master device, responds to the master device's connection request, receives the first public key from the master device, sends its own second public key, and then verifies the second private key. Upon successful verification, the controlled device acquires the master key transmitted by the master device and replaces the second key with the master key.
[0011] The embodiments of the present invention can increase the security of the connection by using a verification process of public and private keys and using images within a preset time period as keys. By incorporating multiple factors such as image capture information, image location information, and image time information as part of the key, it can ensure that images with high randomness and complexity are used as keys for timely updates, thereby making the key highly confidential and improving the security of data transmission.
[0012] Secondly, the present invention provides a UWB-based device communication method, applied to the master UWB device in the aforementioned UWB-based device communication system. The method includes: after entering a preset scanning range and establishing a secure connection with the controlled UWB device, acquiring the demand control information of at least one controlled UWB device and transmitting the demand control information to the device control center; after leaving the preset scanning range, transmitting its own communication status modification request to the device control center.
[0013] In this embodiment of the invention, once the master UWB device enters the preset scanning range and establishes a secure connection, it immediately acquires the control request information of the controlled UWB device. This acquired control request information is transmitted to the device control center, thereby ensuring that the device control center can quickly control multiple UWB devices. If the master device leaves the preset scanning range, it automatically sends a communication status modification request to the device control center, avoiding unnecessary resource waste and reducing device power consumption.
[0014] In one optional implementation, before establishing a secure connection with the controlled UWB device, the method further includes: obtaining a broadcast signal transmitted by the controlled UWB device to establish a connection request with the controlled UWB device, sending a first public key, receiving a second public key sent by the controlled device, and then verifying the first key; after successful verification, generating a master control key based on the image information acquired by the image acquisition module in the master control UWB device within a preset time, replacing the first key with the master control key for storage, and transmitting the master control key to the controlled UWB device.
[0015] This invention establishes a key exchange mechanism to ensure the security of communication between the master UWB device and the controlled UWB device. By using a public-key encryption and decryption mechanism, it ensures that the key can only be decrypted by the master and controlled UWB devices. A master key is generated based on image information acquired by the image acquisition module within a preset time and transmitted to the controlled UWB device, guaranteeing the randomness of the master key and making it difficult to crack, thereby enhancing the security and reliability of communication between the master and controlled UWB devices.
[0016] Thirdly, the present invention provides a UWB-based device communication method, applied to a controlled UWB device in the aforementioned UWB-based device communication system. The method includes: establishing requirement control information based on preset function points in a function requirement library; and transmitting the requirement control information to the master UWB device after the master UWB device enters a preset scanning range and establishes a secure connection with the master UWB device.
[0017] In this embodiment of the invention, requirement control information is established based on preset function points in the function requirement library, enabling the controlled UWB device to transmit accurate requirement information to the master UWB device. When the master UWB device enters the preset scanning range and receives the requirement control information, it can quickly receive and transmit the information, thereby improving the communication efficiency between the master and controlled UWB devices.
[0018] In one optional implementation, before establishing a secure connection with the master UWB device, the method further includes: transmitting a broadcast signal to the master UWB device, responding to a connection request from the master UWB device, receiving a first public key sent by the master UWB device and sending a second public key, and then performing a second key verification; after successful verification, obtaining the master key transmitted by the master UWB device, and replacing the second key with the master key for storage.
[0019] This invention establishes a key exchange mechanism to ensure the security of communication between the master UWB device and the controlled UWB device. By using a public-key encryption and decryption mechanism, it ensures that the key can only be decrypted by the master and controlled UWB devices. The second key is then stored in place of the master key, and the controlled UWB's key is updated promptly, thereby ensuring secure and reliable communication between the master and controlled UWB devices.
[0020] Fourthly, the present invention provides a UWB-based device communication method, applied to a device control center in a UWB-based device communication system. The method includes: generating a first instruction based on functional status requirement information to control the functional status of the controlled UWB device; and generating a second instruction based on communication requirement information or a communication status modification request to control the communication status of the master UWB device.
[0021] This invention generates a first instruction based on functional status requirement information to control the functional status of the controlled UWB device, and generates a second instruction based on communication requirement information or communication status modification request to control the communication status of the master UWB device. This flexible control of device communication and functional status improves the efficiency of interconnection between devices.
[0022] Fifthly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the UWB-based device communication method of the second, third, or fourth aspects or any corresponding embodiments thereof described above.
[0023] In a sixth aspect, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the UWB-based device communication method of the second, third, or fourth aspects or any corresponding embodiments thereof. Attached Figure Description
[0024] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0025] Figure 1 This is a data transmission timing diagram of a UWB-based device communication system according to an embodiment of the present invention;
[0026] Figure 2 This is a schematic diagram of the application process of a UWB-based device communication system according to an embodiment of the present invention;
[0027] Figure 3 This is a schematic diagram of the UWB device connection process of a UWB-based device communication system according to an embodiment of the present invention;
[0028] Figure 4This is a flowchart illustrating a UWB-based device communication method according to an embodiment of the present invention.
[0029] Figure 5 This is a schematic diagram of an application scenario of a master control UWB device in a UWB-based device communication system according to an embodiment of the present invention;
[0030] Figure 6 This is a schematic diagram of an application scenario of the main control UWB device in another UWB-based device communication system according to an embodiment of the present invention;
[0031] Figure 7 This is a flowchart illustrating another UWB-based device communication method according to an embodiment of the present invention;
[0032] Figure 8 This is a flowchart illustrating another UWB-based device communication method according to an embodiment of the present invention;
[0033] Figure 9 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0035] This invention provides a UWB-based device communication system applicable to smart homes, offices, and car cabins. By using this system, secure connections and communication between devices are achieved, along with remote control of the functional status (function switches) of controlled UWB devices and the communication status (Wi-Fi switch, GPS switch) of the controlling UWB device. In smart home scenarios, it enables interconnection and interoperability of various smart devices, such as smart TVs, audio systems, and lighting fixtures, allowing for control and coordination. In offices, it facilitates convenient management and control of device communication status. In car cabins, it enables intelligent control of various in-vehicle devices via an onboard control center, allowing the controlling device to activate GPS positioning, etc.
[0036] This invention proposes a device communication system based on UWB. Figure 1 This is a timing diagram of a UWB-based device communication system according to an embodiment of the present invention, such as... Figure 1 As shown, the system includes: a master UWB device 2, a device control center 3, and at least one controlled UWB device 1;
[0037] a1: The controlled UWB device 1 establishes requirement control information based on the preset function points in the function requirement library; after the master UWB device enters the preset scanning range and establishes a secure connection with the master UWB device, it transmits the requirement control information to the master UWB device.
[0038] a2: After entering the preset scanning range and establishing a secure connection with the controlled UWB device, the master UWB device 2 acquires the demand control information of at least one controlled UWB device and transmits the demand control information to the device control center.
[0039] a3: After leaving the preset scanning range, the main UWB device 2 will transmit its own communication status modification request to the device control center;
[0040] a4: The equipment control center 3 generates the first instruction based on the functional status requirement information to control the functional status of the controlled UWB device;
[0041] a5: Generates a second instruction based on communication requirement information or communication status modification request; controls the communication status of the master UWB device.
[0042] It should be noted that UWB (Ultra-Wideband) technology is a wireless carrier communication technology that uses nanosecond-level non-sinusoidal narrow pulses to transmit data, occupying a very wide spectrum. Data transmission rates can reach hundreds of megabits per second or more. The main advantages of UWB technology include low power consumption, insensitivity to channel fading (such as multipath and non-line-of-sight channels), strong anti-interference capabilities, no interference to other devices in the same environment, strong penetration, and high positioning accuracy and precision. It can perform real-time precise positioning of personnel and integrates functions such as risk management, video linkage, historical trajectory playback, personnel management, electronic fences, various behavioral monitoring, and emergency rescue. In this embodiment, the master UWB device refers to a smart device equipped with a UWB module, such as a head-mounted XR display device, a mobile phone or tablet with a UWB module installed, etc. The head-mounted XR display device is an innovative virtual reality (VR) or augmented reality (AR) device, where XR stands for "Extended Reality." It consists of glasses or a helmet and can place the user in an immersive experience that allows interaction with the real world or integration with the virtual world. The controlled UWB device refers to at least one device capable of UWB communication in a fixed scene, such as a television or audio system with a built-in UWB module. The device control center can be an independent physical device, and its specific installation location can be selected according to actual needs. It can be centrally installed on a server or host, or distributed across different devices to achieve distributed management and control. Whether it is an independent device or distributed across other devices, the device control center is responsible for receiving control requests from both the master and controlled UWB devices and generating corresponding instructions to control the functional status of the controlled UWB devices and the communication status of the master UWB device.
[0043] A functional requirements library is a database stored within a device to record and manage the functional points corresponding to the device's functional requirements in different scenarios. For example, in a home scenario, the functional requirements library could contain requirements for a TV and audio system, such as communication status (whether the audio system's Bluetooth is on) and on / off status (whether the audio system and TV are on).
[0044] Preset function points refer to predefined, selectable function options or settings that users can configure according to their needs. For example, in a home setting, the preset function points of a controlled UWB device (television) may include: TV on / off status (status function point), Wi-Fi on / off status (communication function point), Bluetooth on / off status (communication function point), etc.
[0045] The demand control information obtained based on preset function points includes communication status demand information and functional status demand information. For example, in a home scenario, the demand control information transmitted between the TV and the XR head-mounted display device via UWB communication may include the TV's name, location, communication requirements (Bluetooth connection requirement: no, GPS enabled requirement: no, WiFi connection requirement: yes), and functional requirements (whether the switch is on: yes), etc.
[0046] The preset scanning range refers to the effective range within which a device scans using its UWB module when entering a specific scene. Within this range, the device can identify other devices equipped with UWB modules and communicate with them. For example, smart TVs, smart speakers, smart air conditioners, smart lights, and smart refrigerators, all devices with UWB communication capabilities, collectively constitute a home scene (i.e., the preset scanning range). When a head-mounted XR display device enters this home scene, it can effectively scan using its UWB module to obtain relevant information about multiple controlled UWB devices.
[0047] A self-state modification request refers to a request sent by the master UWB device to the device control center after leaving the preset scanning range, used to modify the communication status of the master UWB device. For example, when the master UWB device leaves the home environment, it needs to directly turn off the switches for Wi-Fi, GPS, and Bluetooth, and turn on the mobile communication switch (the above self-state modification request has already been preset, so there is no need to obtain the required control information of the controlled UWB device in the home environment again).
[0048] The first instruction is generated based on functional status requirement information and is used to control the functional status of the controlled UWB device. The second instruction is generated based on communication requirement information or a communication status modification request and is used to control the communication status of the master UWB device. For example, the control program may include: a function `generate_FirstCommand(need_Fth)` that returns the first instruction, and a vague function `generate_SecondCommand(need_Scd, change_status)` that returns the second instruction, where `need_Fth` is the parameter for the functional status requirement, `need_Scd` is the parameter for the communication requirement, and `change_status` is the parameter for the communication status modification requirement. When 1 is entered in `generate_FirstCommand(need_Fth)`, it returns "turn on the TV" (the first instruction, indicating that the TV is turned on). When you enter {[1, 0, 0], 0} in generate_SecondCommand(need_Scd, change_status), it returns ["turn on wifi", "trunoff GPS", "trun off Bluetooth"] (the second command means to turn on the XR device's wifi, turn off Bluetooth, and turn off GPS).
[0049] In this embodiment of the invention, the device control center 3 is a control component of a UWB-based device communication system. It manages and controls the operational status of devices throughout the entire communication system, receives demand control information from the master UWB device 2 and the controlled UWB device 1, and generates corresponding instructions based on this information to control the functional status of the controlled UWB device and the communication status of the master UWB device. The master UWB device is a key node in the system, capable of connecting to and controlling the controlled UWB device. It is responsible for establishing a secure connection with the controlled UWB device 1 and acquiring the demand control information of the controlled UWB device 1. The master UWB device 2 transmits the acquired demand control information to the device control center 3 through communication with the device control center 3, and transmits its own communication status modification request to the device control center 3 after leaving the preset scanning range. The controlled UWB device 1 is controlled by the master UWB device 2. It can establish demand control information based on preset function points in the function requirement library and transmit the demand control information to the master UWB device 2. After the controlled UWB device 1 enters the preset scanning range and establishes a secure connection with the master UWB device 2, it transmits the required control information to the master UWB device 2, including communication status requirement information and functional status requirement information.
[0050] For example, refer to Figure 2When a user enters a scenario (where the scenario can be a multi-scenario scenario, such as a home scenario containing multiple smart home devices; a single scenario, such as a company scenario requiring only Wi-Fi network authentication; a converged scenario, such as an airplane or car smart cockpit; or a custom scenario, this embodiment does not limit this) with an XR head-mounted display device equipped with a UWB module, it first establishes a secure connection with the UWB devices in the scenario. After establishing a secure connection, it obtains the demand control information of the UWB devices. The XR head-mounted display device obtains the demand control information (mobile signal demand, yes / no; GPS demand, yes / no; Bluetooth demand, yes / no; Wi-Fi demand, yes / no) and uploads it to the control center. After that, it can automatically control the communication switch status of the XR head-mounted display device in different scenarios, as well as the functional status of different controlled UWB devices in different scenarios.
[0051] This invention enables controlled UWB devices to establish requirement control information based on preset function points in a function requirement library. The master UWB device automatically acquires this information and adjusts its own and the controlled UWB's states through a device control center. Utilizing UWB technology, it achieves secure device connection and remote control. When the master UWB device leaves the preset scanning range, it automatically disables certain functions by sending a communication status modification request to the device control center, thereby reducing the power consumption of the master UWB device. Users do not need to manually control the function states of the controlled UWB devices or the communication states of the master UWB device, ensuring convenient and quick interconnection between devices and improving the flexibility of user operation.
[0052] In one optional implementation, at least one controlled UWB device is equipped with a UWB module and is fixed within a preset scanning range; the device control center is used to generate a first instruction based on functional status requirement information, and transmit the first instruction using the UWB module to control the functional status of the controlled UWB device.
[0053] It should be noted that the presence of a UWB module within the controlled UWB device indicates that the device has an embedded UWB module for UWB communication. This UWB module can be implemented through the device's circuit board or other integration methods; this embodiment does not impose any limitations on this. If the controlled UWB device does not have an internal UWB module, it cannot directly perform UWB communication and requires external physical configuration using a UWB tag. Being fixed within a preset scanning range means that the controlled UWB device is installed in a specific location (e.g., in a home setting, the controlled UWB device can only be inside the room) so that communication between devices can occur within the preset scanning range.
[0054] In this embodiment of the invention, the controlled UWB device is equipped with a UWB module and is fixed within a preset scanning range. Therefore, the master UWB device can immediately sense the location of the controlled UWB device after entering its scanning range and transmit the request to the device control center to control the functional state of the controlled UWB device, thereby ensuring a rapid response to the device's control requirements.
[0055] In one optional implementation, at least one controlled UWB device is externally equipped with a UWB tag, which is bound to account information with control permissions for the controlled UWB device and is fixed within a preset scanning range. The controlling UWB device, after entering the preset scanning range and establishing a secure connection with the controlled UWB device, obtains the account information bound to the controlled UWB device and transmits the account information to the controlled device control center. The device control center, based on the account information and functional status requirements, calls the corresponding control interface and generates a first instruction according to the control interface to control the functional status of the controlled UWB device.
[0056] It should be noted that UWB tags can be attached to items and communicate with other UWB-enabled devices of the user to achieve location and tracking within a certain range. For example, during travel, a UWB tag can be attached to a suitcase, and a smartphone with a UWB module can track and locate the luggage at any time, ensuring that the luggage is not misdelivered or lost. In this embodiment of the invention, the account information with control permissions for the controlled UWB device can be a username or ID, such as a Mi Home account. When it is necessary to control the controlled UWB device, the corresponding account information must be provided to call the corresponding control interface to generate instructions. The control interface refers to the API interface for controlling the controlled device. By calling these interfaces, various control operations on the controlled device can be achieved, such as turning smart lights on / off or adjusting the temperature of a smart refrigerator. In the device control center, based on the account information and functional status requirements, a specific control interface is called to generate the first instruction to achieve functional status control of the controlled device.
[0057] For example, in a home scenario, a smart refrigerator might be a Mijia model without an internal UWB module. In this case, a UWB tag can be attached to the outside of the refrigerator and linked to a Mijia account. This tag includes a control interface called `set_temperature` (the control interface for the smart refrigerator) for setting its temperature. Based on account information and functional status requirements, request headers and parameters (status requirements and account information) are set, and a POST request is sent using the `requests.post` method to obtain the first instruction (the refrigerator's control instruction). Further processing is then performed based on the returned instruction, or the instruction is sent to the controlled UWB device to execute corresponding operations.
[0058] This invention, by binding UWB tags to account information with control permissions and restricting UWB devices to communicate within a preset scanning range, ensures that only accounts with control permissions can establish secure connections with the controlled UWB devices. The device control center can call the corresponding control interface to generate instructions, thereby achieving centralized control and coordination of multiple controlled UWB devices, which enhances the security of data transmission and ensures interconnectivity between devices.
[0059] In one optional implementation, the master UWB device stores a first public key and a first private key. The master device establishes a connection request with the controlled UWB device by acquiring a broadcast signal transmitted by the controlled UWB device, sends the first public key, receives a second public key from the controlled device, and then verifies the first private key. Upon successful verification, the master device generates a master key based on image information acquired by its image acquisition module within a preset time period, replaces the first private key with the master key, and transmits the master key to the controlled UWB device. The master key includes image capture information, image location information, and image time information. The controlled UWB device stores a second public key and a second private key. The controlled UWB device transmits a broadcast signal to the master device, responds to the master device's connection request, receives the first public key from the master device, sends its own second public key, and then verifies the second private key. Upon successful verification, the controlled device acquires the master key transmitted by the master device and replaces the second key with the master key.
[0060] It should be noted that the transmission of broadcast signals by a controlled UWB device refers to the controlled UWB device sending a specific signal to the controlling UWB device to indicate its presence and detectability. This signal may include the controlled UWB device's identifier, status, etc. Upon receiving the broadcast signal from the controlled UWB device, the controlling UWB device sends a request to establish a communication connection. This connection request may include the controlling UWB device's identifier and the identifier of the controlled UWB device to which it wishes to connect. The master UWB device sends its public key (first public key) to the controlled UWB device as part of establishing a connection, allowing the controlled UWB device to verify its identity. Upon receiving the controlled UWB device's public key (second public key), the master UWB device verifies it using its own key (first key). Only after successful verification can a secure communication connection be established. After successful verification, within a preset time period (e.g., the duration the master UWB device remains in the scene), the master UWB device uses its internal image acquisition module to acquire image information. This image information includes capture information (e.g., image content), location information (e.g., GPS coordinates), and time information. A dynamic key is generated using a preset key generation algorithm (hash algorithm) to update the existing key. For example, the image information, location information, and time information are combined into a message string, a preset key is used as the HMAC algorithm key, and the message string is hashed; the resulting hash value is the dynamically updated key.
[0061] For example, refer to Figure 3 The XR head-mounted display (the main UWB device) scans for broadcast signals from the HOME UWB device (any UWB device in the home environment) and sends a connection request to the HOME UWB device. Upon receiving the XR's connection request, the HOME UWB device responds with a connection reply, and both parties exchange public keys. The XR head-mounted display uses its stored public key to send to the HOME UWB device. The HOME UWB device, upon receiving the XR's public key, responds with its stored public key and sends it back to the XR head-mounted display. The XR head-mounted display then performs password verification. Upon receiving the public key from the HOME UWB device, it uses its previously stored private key to verify the identities of both parties and ensure secure communication. After successful verification, the XR head-mounted display begins the key update process. The XR head-mounted display device extracts images from a grayscale camera during this operation and collects shooting information, location information, and time information. The XR head-mounted display device packages this information into a key update package and sends it to the HOME UWB device. After receiving the key update package, the HOME UWB device parses the information, extracts and updates the key. The updated key will be used for subsequent communication processes.
[0062] In addition, XR head-mounted displays are equipped with multiple RGB cameras and several grayscale cameras. These cameras take pictures continuously at a certain frame rate during system operation to assist the system's SLAM positioning. The number of pictures captured by the grayscale cameras depends on the system memory size and retention mechanism.
[0063] The embodiments of the present invention can increase the security of the connection by using a verification process of public and private keys and using images within a preset time period as keys. By incorporating multiple factors such as image capture information, image location information, and image time information as part of the key, it can ensure that images with high randomness and complexity are used as keys for timely updates, thereby making the key highly confidential and improving the security of data transmission.
[0064] According to embodiments of the present invention, a UWB-based device communication method embodiment is also provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Although a logical order is shown in the flowcharts, the execution order or described steps shown herein may be appropriately adjusted in certain circumstances.
[0065] This embodiment also provides a UWB-based device communication method, applied to the master UWB device in the aforementioned UWB-based device communication system. Figure 4 This is a flowchart of a UWB-based device communication method according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps:
[0066] Step S401: After entering the preset scanning range and establishing a secure connection with the controlled UWB device, acquire the demand control information of at least one controlled UWB device and transmit the demand control information to the device control center.
[0067] In one optional implementation, before establishing a secure connection with the controlled UWB device, the method further includes: obtaining a broadcast signal transmitted by the controlled UWB device to establish a connection request with the controlled UWB device, sending a first public key, receiving a second public key sent by the controlled device, and then verifying the first key; after successful verification, generating a master control key based on the image information acquired by the image acquisition module in the master control UWB device within a preset time, replacing the first key with the master control key for storage, and transmitting the master control key to the controlled UWB device.
[0068] This invention establishes a key exchange mechanism to ensure the security of communication between the master UWB device and the controlled UWB device. By using a public-key encryption and decryption mechanism, it ensures that the key can only be decrypted by the master and controlled UWB devices. A master key is generated based on image information acquired by the image acquisition module within a preset time and transmitted to the controlled UWB device, guaranteeing the randomness of the master key and making it difficult to crack, thereby enhancing the security and reliability of communication between the master and controlled UWB devices.
[0069] Step S402: After leaving the preset scanning range, transmit its own communication status modification request to the device control center.
[0070] For example, refer to Figure 5 In mobile scenarios, users wearing XR head-mounted displays have their own scanning range, while in fixed scenarios (such as homes, offices, and cars with controlled UWB devices), there are preset scanning ranges. Once within the preset scanning range, the UWB module automatically scans for UWB devices within the preset range to obtain relevant information and communication status on / off requirements. At this point, the main control device sends control requests to the device control center to adjust its own communication status or the functional status of the controlled UWB devices.
[0071] For example, refer to Figure 6 When the UWB module leaves the preset scanning range, the preset scanning distance reaches its limit and it cannot automatically scan the UWB devices within the preset range to obtain relevant information and communication status switching requirements. At this time, the main control device will send a communication status change request to the device control center to adjust its own communication status, such as turning off Wi-Fi and Bluetooth and turning on mobile communication.
[0072] In this embodiment of the invention, once the master UWB device enters the preset scanning range and establishes a secure connection, it immediately acquires the control request information of the controlled UWB device. This acquired control request information is transmitted to the device control center, thereby ensuring that the device control center can quickly control multiple UWB devices. If the master device leaves the preset scanning range, it automatically sends a communication status modification request to the device control center, avoiding unnecessary resource waste and reducing device power consumption.
[0073] This embodiment also provides a UWB-based device communication method, which is applied to the controlled UWB device in the above-mentioned UWB-based device communication system. Figure 7 This is a flowchart of a UWB-based device communication method according to an embodiment of the present invention, such as... Figure 7 As shown, the process includes the following steps:
[0074] Step S701: Establish requirement control information based on the preset function points in the function requirement library.
[0075] Understandably, the purpose of establishing a library of pre-defined functional requirements is to facilitate users in quickly selecting the required functionalities in real-world application scenarios. These pre-defined functionalities can be derived from statistical analysis based on application experience and user feedback in certain scenarios (for example, in a home setting, users might need smart lights to turn on immediately upon entering a room, or the paper towel dispenser to automatically open upon entering a sink; these can be statistically analyzed as pre-defined functionalities). Alternatively, they can be pre-designed based on existing needs (such as TV volume, power on / off settings, and channel switching options).
[0076] In one optional implementation, before establishing a secure connection with the master UWB device, the method further includes: transmitting a broadcast signal to the master UWB device, responding to a connection request from the master UWB device, receiving a first public key sent by the master UWB device and sending a second public key, and then performing a second key verification; after successful verification, obtaining the master key transmitted by the master UWB device, and replacing the second key with the master key for storage.
[0077] This invention establishes a key exchange mechanism to ensure the security of communication between the master UWB device and the controlled UWB device. By using a public-key encryption and decryption mechanism, it ensures that the key can only be decrypted by the master and controlled UWB devices. The second key is then stored in place of the master key, and the controlled UWB's key is updated promptly, thereby ensuring secure and reliable communication between the master and controlled UWB devices.
[0078] Step S702: After the master UWB device enters the preset scanning range and establishes a secure connection with the master UWB device, the required control information is transmitted to the master UWB device.
[0079] It is understandable that transmitting demand control information to the master UWB device ensures that once the master UWB device enters the preset scanning range for the first time and obtains the demand control information, it is immediately stored. If the master UWB device enters the preset scanning range again, there is no need to obtain the demand control information again. The controlled UWB device automatically performs the required function, thereby improving the flexibility and convenience of device interaction.
[0080] This invention establishes a key exchange mechanism to ensure the security of communication between the master UWB device and the controlled UWB device. By using a public-key encryption and decryption mechanism, it ensures that the key can only be decrypted by the master and controlled UWB devices. The second key is then stored in place of the master key, and the controlled UWB's key is updated promptly, thereby ensuring secure and reliable communication between the master and controlled UWB devices.
[0081] This embodiment also provides a UWB-based device communication method, which is applied to the device control center in the aforementioned UWB-based device communication system. Figure 8 This is a flowchart of a UWB-based device communication method according to an embodiment of the present invention, such as... Figure 8 As shown, the process includes the following steps:
[0082] Step S801: Generate a first instruction based on the functional status requirement information to control the functional status of the controlled UWB device.
[0083] Step S802: Generate a second instruction based on communication requirement information or communication status modification request to control the communication status of the master UWB device.
[0084] It is understandable that the device control center can control both the master UWB device and the controlled UWB device because it integrates relevant control logic and algorithms. That is, the device control center can send instructions to the master UWB device and the controlled UWB device through internal control code and algorithms to control their functional status and communication status, thus realizing centralized management of the two types of devices.
[0085] This invention generates a first instruction based on functional status requirement information to control the functional status of the controlled UWB device, and generates a second instruction based on communication requirement information or communication status modification request to control the communication status of the master UWB device. This flexible control of device communication and functional status improves the efficiency of interconnection between devices.
[0086] This invention also provides a computer device; please refer to [link / reference]. Figure 9 , Figure 9 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 9 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 9 Take a processor 10 as an example.
[0087] Processor 10 may be a central processing unit, a data processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0088] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0089] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0090] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0091] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0092] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0093] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined herein.
Claims
1. A UWB-based device communication system, characterized in that: The system comprises: a master UWB device, a device control center, and at least one controlled UWB device; wherein: The controlled UWB device is used to establish demand control information based on preset function points in the function demand library; after the master UWB device enters the preset scanning range and establishes a secure connection with the master UWB device, transmit the demand control information to the master UWB device, the demand control information including: communication state demand information, function state demand information; The master UWB device is used to obtain the demand control information of at least one controlled UWB device after entering the preset scanning range and establishing a secure connection with the controlled UWB device; and transmit the demand control information to the device control center; after leaving the preset scanning range, transmit its own communication status modification request to the device control center; The device control center is used to generate a first instruction according to the functional status requirement information to control the functional status of the controlled UWB device; and generate a second instruction according to the communication requirement information or the communication status modification request to control the communication status of the master UWB device.
2. The system according to claim 1, characterized in that The at least one controlled UWB device is internally provided with a UWB module and is fixed within a preset scanning range; The device control center is used to generate a first instruction according to the functional state requirement information, and transmit the first instruction using the UWB module to control the functional state of the controlled UWB device.
3. The system according to claim 1, characterized in that A UWB tag is provided outside the at least one controlled UWB device, and the UWB tag is bound to account information having control authority over the controlled UWB device and is fixed within a preset scanning range; The master UWB device, after entering a preset scanning range and establishing a secure connection with the controlled UWB device, obtains the account information bound to the controlled UWB device; and transmits the account information to the controlled device control center; The device control center is used to call the corresponding control interface based on the account information and the functional status requirement information, and generate a first instruction according to the control interface to control the functional status of the controlled UWB device.
4. The system according to claim 1, characterized in that The master UWB device stores a first public key and a first secret key, and is used to establish a connection request with the controlled UWB device by acquiring a broadcast signal transmitted by the controlled UWB device, and send the first public key, and perform first secret key verification after receiving a second public key sent by the controlled device; after successful verification, a master secret key is generated based on image information acquired by an image acquisition module in the master UWB device within a preset time, the first secret key is replaced with the master secret key storage, and the master secret key is transmitted to the controlled UWB device, wherein the master secret key includes: image shooting information, image location information, and image time information; The controlled UWB device stores a second public key and a second secret key, which are used to transmit a broadcast signal to the master UWB device, respond to the connection request of the master UWB device, receive the first public key sent by the master UWB device and send the second public key, and then perform a second secret key verification; after the verification is successful, obtain the master secret key transmitted by the master UWB device, and replace the second secret key with the master secret key storage.
5. A device communication method based on UWB, characterized in that: A master UWB device applied to a UWB-based device communication system as described in any one of claims 1 to 4, the method comprising: After entering the preset scanning range and establishing a secure connection with the controlled UWB device, obtaining demand control information of at least one controlled UWB device, and transmitting the demand control information to the device control center; After leaving the preset scanning range, it transmits its own communication status modification request to the device control center.
6. The method according to claim 5, characterized in that Before establishing a secure connection with the controlled UWB device, it also includes: Establishing a connection request with the controlled UWB device by acquiring the broadcast signal transmitted by the controlled UWB device, sending a first public key, and performing a first secret key verification after receiving a second public key sent by the controlled device; After successful verification, a master key is generated based on the image information acquired by the image acquisition module in the master UWB device within a preset time, the first key is replaced with the master key for storage, and the master key is transmitted to the controlled UWB device.
7. A device communication method based on UWB, characterized in that: The method applied to the controlled UWB device of the UWB-based device communication system according to any one of claims 1 to 4 comprises: Establish demand control information based on preset function points in the function requirement library; After the master UWB device enters the preset scanning range and establishes a secure connection with the master UWB device, the demand control information is transmitted to the master UWB device.
8. The method according to claim 7, characterized in that Before establishing a secure connection with the master UWB device, the method further includes: Transmitting a broadcast signal to the master UWB device, responding to a connection request from the master UWB device, receiving a first public key sent by the master UWB device and sending a second public key and then performing a second secret key verification; After the verification is successful, the master key transmitted by the master UWB device is obtained, and the second key is replaced with the master key for storage.
9. A device communication method based on UWB, characterized in that: A device control center applied to a UWB-based device communication system as described in any one of claims 1 to 4, comprising: Generate a first instruction according to the functional state requirement information to control the functional state of the controlled UWB device; A second instruction is generated according to the communication requirement information or the communication status modification request to control the communication status of the master UWB device.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for prefetching data of the system cache as described in any one of claims 5 to 6 or claims 7 to 8 or claim 9 by executing the computer instructions.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for pre-fetching data from the system cache according to any one of claims 5 to 6, claims 7 to 8, or claim 9.