CN116017766A - Device communication method, device and storage medium - Google Patents
Device communication method, device and storage medium Download PDFInfo
- Publication number
- CN116017766A CN116017766A CN202211513146.7A CN202211513146A CN116017766A CN 116017766 A CN116017766 A CN 116017766A CN 202211513146 A CN202211513146 A CN 202211513146A CN 116017766 A CN116017766 A CN 116017766A
- Authority
- CN
- China
- Prior art keywords
- equipment
- target
- uwb
- information
- communication
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 135
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000005516 engineering process Methods 0.000 claims abstract description 20
- 238000012795 verification Methods 0.000 claims description 56
- 230000004044 response Effects 0.000 claims description 14
- 230000005540 biological transmission Effects 0.000 abstract description 10
- 230000006870 function Effects 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 6
- 125000004122 cyclic group Chemical group 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000005265 energy consumption Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/40—Connection management for selective distribution or broadcast
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the technical field of communication, and discloses a device communication method, a device, equipment and a storage medium, wherein the method comprises the following steps: scanning UWB equipment in a preset range, wherein the UWB equipment periodically broadcasts own equipment information; generating and displaying a device radar map according to the device information obtained by scanning; determining target UWB equipment selected by a user based on the equipment radar map, and reading target equipment information of the target UWB equipment; and establishing communication connection with the target UWB equipment according to the target equipment information. According to the method, the device radar map is generated and displayed by utilizing the data transmission and positioning functions of the UWB technology, the target device information is determined according to the target WUB device selected by the user on the device radar map, and the communication connection is established with the target UWB device according to the target device information, so that the data communication between intelligent terminals under the condition of no network is realized.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device communications method, apparatus, device, and storage medium.
Background
The communication between the intelligent terminals needs network support, and the two communication parties can mutually identify and communicate only by authentication and establishing a one-to-one communication channel, if the communication channel is not established between the intelligent terminals or the intelligent terminals are in the condition of no network, even if the distance between the intelligent terminals is very close, the intelligent terminals cannot directly communicate, so how to solve the communication of the intelligent terminals under the condition of no network becomes a technical problem to be solved urgently.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a device communication method, a device, equipment and a storage medium, and aims to solve the technical problem that intelligent terminals cannot communicate with each other under the condition of no network in the prior art.
To achieve the above object, the present invention provides a device communication method, the method comprising the steps of:
scanning UWB equipment in a preset range, wherein the UWB equipment periodically broadcasts own equipment information;
generating and displaying a device radar map according to the device information obtained by scanning;
determining target UWB equipment selected by a user based on the equipment radar map, and reading target equipment information of the target UWB equipment;
and establishing communication connection with the target UWB equipment according to the target equipment information.
Optionally, the establishing a communication connection with the target UWB device according to the target device information includes:
generating a verification data packet according to the target equipment information, and sending the verification data packet to the target UWB equipment;
and when receiving a response data packet fed back by the target UWB equipment based on the verification data packet, completing establishment of communication connection with the target UWB equipment.
Optionally, the generating an authentication data packet according to the target device information and sending the authentication data packet to the target UWB device includes:
reading target equipment identity information from the target equipment information, and generating a verification data packet according to the target equipment identity information and a preset data format;
broadcasting the verification data packet to the target UWB device through UWB technology.
Optionally, said broadcasting said verification data packet to said target UWB device via UWB technology comprises:
and when the verification data packet is generated, continuously broadcasting the verification data packet by a UWB technology in a first preset time length so as to send the verification data packet to the target UWB equipment, wherein the first preset time length is longer than the scanning interval time length of the target UWB equipment.
Optionally, the generating and displaying a device radar map according to the device information obtained by scanning includes:
determining the equipment position, the equipment distance and the equipment identity information of each UWB equipment according to the equipment information obtained by scanning;
and generating and displaying a device radar map according to the device position, the device distance and the device identity information.
Optionally, after the communication connection is established with the target UWB device according to the target device information, the method further includes:
and when the communication connection is established, switching to a full duplex mode, and carrying out data communication in the duplex mode with the target UWB equipment based on the communication connection.
Optionally, after the communication connection is established, the method shifts to a full duplex mode and performs data communication in duplex mode based on the communication connection, further includes:
and when the data communication is finished, entering a standby mode, and sending an ending instruction to the target UWB equipment so that the target UWB equipment enters the standby mode when receiving the ending instruction.
In addition, to achieve the above object, the present invention also proposes a device communication apparatus, the apparatus comprising:
the scanning module is used for scanning UWB equipment in a preset range, and the UWB equipment periodically broadcasts own equipment information;
the generation module is used for generating and displaying a device radar map according to the device information obtained by scanning;
the determining module is used for determining target UWB equipment selected by a user based on the equipment radar map and reading target equipment information of the target UWB equipment;
and the communication connection establishment module is used for establishing communication connection with the target UWB equipment according to the target equipment information.
In addition, to achieve the above object, the present invention also proposes an apparatus comprising: a memory, a processor and a device communication program stored on the memory and executable on the processor, the device communication program being configured to implement the steps of the device communication method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a device communication program which, when executed by a processor, implements the steps of the device communication method as described above.
The method comprises the steps that UWB equipment in a preset range is scanned, and the UWB equipment periodically broadcasts own equipment information; generating and displaying a device radar map according to the device information obtained by scanning; determining target UWB equipment selected by a user based on the equipment radar map, and reading target equipment information of the target UWB equipment; and establishing communication connection with the target UWB equipment according to the target equipment information. According to the method, the device radar map is generated and displayed by utilizing the data transmission and positioning functions of the UWB technology, the target device information is determined according to the target WUB device selected by the user on the device radar map, and the communication connection is established with the target UWB device according to the target device information, so that the data communication between intelligent terminals under the condition of no network is realized.
Drawings
FIG. 1 is a schematic diagram of a device communication device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the communication method of the device of the present invention;
FIG. 3 is a schematic diagram of a radar map of a device according to an embodiment of the communication method of the present invention;
FIG. 4 is a flow chart of a second embodiment of the communication method of the device of the present invention;
FIG. 5 is a flow chart of a third embodiment of the communication method of the device of the present invention;
fig. 6 is a block diagram of a first embodiment of the communication means of the apparatus of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a device communication device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the device communication device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 is not limiting of the device communication device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a device communication program may be included in the memory 1005 as one type of storage medium.
In the device communication device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the device communication apparatus of the present invention may be provided in the device communication apparatus, and the device communication apparatus calls the device communication program stored in the memory 1005 through the processor 1001 and executes the device communication method provided by the embodiment of the present invention.
An embodiment of the present invention provides a device communication method, referring to fig. 2, and fig. 2 is a schematic flow chart of a first embodiment of the device communication method of the present invention.
In this embodiment, the device communication method includes the following steps:
step S10: and scanning UWB equipment in a preset range, wherein the UWB equipment periodically broadcasts own equipment information.
It should be noted that, the execution body of the embodiment may be a computing service device having functions of data processing, network communication and program running, such as a smart watch, a tablet computer, a personal computer, a mobile phone, or an electronic device capable of implementing the above functions. The present embodiment and the following embodiments will be described by taking a smart watch as an example.
It can be understood that Ultra Wideband (UWB) technology is a wireless carrier communication technology, which does not use a sinusoidal carrier, but uses non-sinusoidal narrow pulses of nanosecond level to transmit data, so that the UWB technology occupies a Wide spectrum range, and has data transmission and positioning functions.
In this embodiment, the smart watch periodically scans UWB devices within a preset range; the intelligent watch is internally provided with the UWB module, the intelligent watch can realize data transmission and positioning functions through the UWB module, the preset range can be the data transmission range of the UWB module, for example, the data transmission range of the UWB module is a meters, and the corresponding preset range can be the range taking a meters as the radius; the UWB equipment can be equipment provided with a WUB module, and the UWB equipment can be intelligent terminals such as intelligent watches, intelligent mobile phones and the like; the device information may be information capable of characterizing a device characteristic, the device information including device location information and device identity information.
Step S20: and generating and displaying a device radar map according to the device information obtained by scanning.
It can be understood that the device radar map may be a map with device location information and device identity information identified, the smart watch scans the device information within a preset range according to a preset period, reads the device location information and the device identity information from the device information, maps the device identity information to a blank radar map according to the device location information, and obtains the device radar map, and updates the device radar map according to the scanned device information at preset intervals; for example: and presetting a blank radar map, and mapping the equipment position information and the equipment identity information to the blank radar map by the intelligent watch according to the equipment information obtained by scanning to obtain the equipment radar map.
In this embodiment, the smart watch periodically scans UWB devices within a preset range, and may update a device radar map according to device information obtained by current scanning, and update a device radar map according to the device information obtained by scanning in real time; in order to reduce the energy consumption, the radar map of the equipment can also be updated according to a preset scanning period, for example, the preset scanning period is a, and the radar map of the equipment is updated once at intervals of a scanning periods; an updating mode can be set according to a specific scene, for example, a radar map of the device is refreshed every 500ms, so that the accuracy of scanned UWB devices is ensured; the present embodiment is not limited herein.
Step S30: and determining target UWB equipment selected by a user based on the equipment radar map, and reading target equipment information of the target UWB equipment.
It can be understood that the target UWB device may be a UWB device selected by a user on a device radar map to perform data communication, where the device identity and the device orientation of the UWB device are visually displayed on the device radar map, and the user may select the target UWB device based on the device identity and the device orientation; after the user selects the target UWB device, the intelligent watch reads the target device information corresponding to the target UWB device.
Step S40: and establishing communication connection with the target UWB equipment according to the target equipment information.
In this embodiment, the smart watch performs communication verification with the target UWB device according to the target device information, and establishes communication connection with the target UWB device when the communication verification passes.
It should be understood that, since the UWB device periodically transmits its own device information, if the smart watch scans during the period when the UWB device stops transmitting, the smart watch may not be able to scan the device information, in order to be able to scan the device information transmitted by the UWB device in time, the scan time of the smart watch in the scan period is set to be longer than the interval duration of the UWB device transmitting the device information, for example: the interval duration of the device information emission of the UWB device is 101ms, the scanning duration in the intelligent watch scanning period can be set to be 120ms, the intelligent watch scans the UWB device once at intervals of 500ms, and the scanning duration of each time is 120ms, so that the scanning duration of the intelligent watch at least covers one emission period of the UWB device.
It should be noted that, in the conventional UWB-based data transmission manner, the two interacting parties need to know each other, the data receiving end needs to be always in a receiving mode, and the data transmitting end needs to be always in a transmitting mode, so that the power consumption of the device is large.
In a specific implementation, for example: the intelligent watch is provided with a UWB module, the data communication range of the UWB module is 15 meters, the intelligent watch scans UWB equipment within the radius range of 15 meters to receive equipment information transmitted by the UWB equipment, the intelligent watch determines equipment identity information and equipment position information of the UWB equipment according to the equipment information obtained by scanning, the equipment identity information and the equipment position information are mapped to a blank radar map to generate an equipment radar map, the equipment radar map is displayed, the displayed equipment radar map is updated at intervals of preset scanning period, if a user selects target UWB equipment on the equipment radar map, target equipment information of the target UWB equipment is read, communication verification is carried out between the target equipment information and the target UWB equipment according to the target equipment information, and communication connection is established between the intelligent watch and the target UWB equipment when the communication verification passes.
Further, in order to generate a device radar map based on the scanned device information, the step S40 includes: determining the equipment position, the equipment distance and the equipment identity information of each UWB equipment according to the equipment information obtained by scanning; and generating and displaying a device radar map according to the device position, the device distance and the device identity information.
It can be understood that the UWB has a positioning function, when the UWB equipment transmits equipment information, the UWB equipment transmits the equipment position of the UWB equipment together, and the equipment distance can be determined according to the equipment position and the equipment position of the UWB equipment; the device identity information may be information capable of identifying a device identity, for example, the device identity information includes a device ID, a device number, a device identification number, and the like.
In this embodiment, the UWB device generates device information according to the device identity information and a preset data format, and periodically transmits the device information, where the smart watch determines a device relative position and a device distance according to its device position and the scanned device position, and maps the device identity information to a blank radar map according to the device relative position and the device distance, so as to obtain a device radar map.
It should be noted that, in this embodiment, the UWB technology is adopted, the device ID of the UWB device is displayed on the smart watch by using the positioning function of the UWB device in a manner of a device radar map, and because the positioning accuracy of the UWB device has a centimeter level, the user can determine the correspondence between the device ID on the device radar map and a person in a preset range based on the device ID, the device position and the device distance displayed on the device radar map, and the user can select the target UWB device on the device radar map through the correspondence, and the smart watch establishes communication connection with the target UWB device according to the target device information of the target UWB device, so as to exchange data and files.
In specific implementation, referring to fig. 3, fig. 3 is a schematic diagram of a device radar map, where UWB devices generate device information according to a preset data format and a user-defined device ID, where the preset data format may refer to table 1, in which "HEAD" is a field for characterizing a data header, and data "0x5A" is stored for characterizing the data header, and a storage space of "0x5A" is 1 byte; "Length" is a field characterizing the LENGTH of an ID segment, the LENGTH N of the ID segment is used for characterizing the LENGTH N of bytes occupied by the ID of the device, and the storage space of the "LENGTH N of the ID segment" is 1 byte; the "ID" is a field for characterizing the device ID, and the storage data "device ID" is used for characterizing the device identification number, where the storage space of the "device identification number" is N bytes (N bytes), for example, the device identification number may be Jack, jim, etc.; CRC (Cyclic Redundancy Check), namely cyclic redundancy check, "CRC" is a field for representing cyclic redundancy check, and the check of the stored data "ID segment" is used for representing cyclic redundancy check code, wherein the storage space of the cyclic redundancy check code is 2 bytes (2 bytes); for example, the smart watch scans UWB devices within a predetermined range, scans device information transmitted by 4 UWB devices, and reads device IDs from the device information as follows: jack, jim, tom and Lucy, determining the azimuth angle and the device distance of each UWB device relative to the device according to the device position of each UWB device, and mapping the device ID to a blank radar map according to the azimuth angle and the device distance to obtain a device radar map.
TABLE 1
HEAD | LENGTH | ID | CRC |
1byte | 1byte | N byte | 2byte |
0x5A | ID segment Length N | Device ID | Verification of ID segments |
The method comprises the steps that UWB equipment in a preset range is scanned, and the UWB equipment periodically broadcasts own equipment information; generating and displaying a device radar map according to the device information obtained by scanning; determining target UWB equipment selected by a user based on the equipment radar map, and reading target equipment information of the target UWB equipment; and establishing communication connection with the target UWB equipment according to the target equipment information. According to the method, the device radar map is generated and displayed by utilizing the data transmission and positioning functions of the UWB technology, the target device information is determined according to the target WUB device selected by the user on the device radar map, and the communication connection is established with the target UWB device according to the target device information, so that the data communication between intelligent terminals under the condition of no network is realized.
Referring to fig. 4, fig. 4 is a schematic flow chart of a second embodiment of the communication method of the device of the present invention.
Based on the first embodiment, in this embodiment, the step S40 includes:
step S401: and generating a verification data packet according to the target equipment information, and sending the verification data packet to the target UWB equipment.
It will be appreciated that the authentication data packet may be a data packet that is authenticated during establishment of a communication connection and broadcast within a predetermined range such that the authentication data packet is scanned by the target UWB device.
Step S402: and when receiving a response data packet fed back by the target UWB equipment based on the verification data packet, completing establishment of communication connection with the target UWB equipment.
It can be understood that the response data packet may be a data packet generated by the target UWB device according to the target device ID and the preset data format, after the target UWB device receives the verification data packet, the target UWB device may parse its own device ID from the verification data packet, and send the response data packet containing its own device ID, and after receiving the response data packet, the smart watch completes establishment of communication connection with the target UWB device.
In specific implementation, the smart watch generates a verification data packet according to the information of the target device, and broadcasts the verification data packet within a preset range, so that the target UWB device scans to obtain the verification data packet, the smart watch receives a response data packet fed back by the target UWB device based on the verification data packet, and when the smart watch receives the response data packet fed back by the target UWB device, the smart watch completes establishment of communication connection with the target UWB device.
Further, in order to establish a communication connection with a target UWB device, the generating an authentication data packet according to the target device information and transmitting the authentication data packet to the target UWB device includes: reading target equipment identity information from the target equipment information, and generating a verification data packet according to the target equipment identity information and a preset data format; broadcasting the verification data packet to the target UWB device through UWB technology.
In a specific implementation, for example, the target identity information is a device ID, the smart watch reads the device ID from the device information, generates a verification data packet according to the device ID and a preset data format, and broadcasts the verification data packet to a preset range when the verification data packet is generated, so that the target UWB device scans the verification data packet.
Further, to enable a target UWB device to receive the broadcasted authentication data, the broadcasting the authentication data packet to the target UWB device by UWB technology includes: and when the verification data packet is generated, continuously broadcasting the verification data packet by a UWB technology in a first preset time length so as to send the verification data packet to the target UWB equipment, wherein the first preset time length is longer than the scanning interval time length of the target UWB equipment.
In a specific implementation, for example, the scanning interval duration of the target UWB device is 5ms, the first preset duration is 10ms, the user selects the target UWB device based on the device radar map, the smart watch acquires target device information of the target UWB device, reads the target device ID from the target device information, generates a verification data packet according to a preset data format and the target device ID, and continues to broadcast the verification data packet within a preset range for 10ms, after receiving the verification data packet, the target UWB device transmits a response data packet containing its own device ID, and when receiving the response data packet, the smart watch completes establishment of communication connection.
According to the embodiment, a verification data packet is generated according to the target device information, and the verification data packet is sent to the target UWB device; and when receiving a response data packet fed back by the target UWB equipment based on the verification data packet, completing establishment of communication connection with the target UWB equipment. According to the method, verification data generated according to target device information of the target UWB device are broadcasted to the target UWB device, the target UWB device transmits response data packets based on the verification data packets, and when the response data packets are scanned, establishment of communication connection is completed, and short-distance communication under the condition of no network is achieved.
Referring to fig. 5, fig. 5 is a schematic flow chart of a third embodiment of the communication method of the device of the present invention.
Based on the above embodiments, in this embodiment, after step S40, the method further includes:
step S50: and when the communication connection is established, switching to a full duplex mode, and carrying out data communication in the duplex mode with the target UWB equipment based on the communication connection.
In this embodiment, in order to reduce energy consumption, the data transmission mode of the smart watch before the communication connection is established with the target UWB device is a half duplex mode, and when the communication connection is established with the target UWB device, the smart watch is switched to a full duplex mode.
Further, in order to reduce the power consumption of the apparatus, after the step S50, the method further includes: and when the data communication is finished, entering a standby mode, and sending an ending instruction to the target UWB equipment so that the target UWB equipment enters the standby mode when receiving the ending instruction.
In a specific implementation, the smart watch enters a standby mode when data communication is finished, and sends an ending instruction to the target UWB device, and when the target UWB device receives the ending instruction, the data communication ending information is displayed and enters the standby mode.
When the communication connection is established, the embodiment shifts to a full duplex mode, and performs data communication in duplex mode with the target UWB equipment based on the communication connection. The embodiment is switched into the full duplex mode when the communication connection with the target UWB equipment is established, so that the data communication quality is ensured and the equipment energy consumption is reduced.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a device communication program, and the device communication program realizes the steps of the device communication method when being executed by a processor.
Referring to fig. 6, fig. 6 is a block diagram showing the configuration of a first embodiment of the communication apparatus of the present invention.
As shown in fig. 6, a device communication apparatus according to an embodiment of the present invention includes: a scanning module 10, a generating module 20, a determining module 30 and a communication connection establishing module 40.
The scanning module is used for scanning UWB equipment in a preset range, and the UWB equipment periodically broadcasts own equipment information;
the generating module 20 is configured to generate and display a device radar map according to the device information obtained by scanning;
the determining module 30 is configured to determine a target UWB device selected by a user based on the device radar map, and read target device information of the target UWB device;
the communication connection establishment module 40 is configured to establish a communication connection with the target UWB device according to the target device information.
The method comprises the steps that UWB equipment in a preset range is scanned, and the UWB equipment periodically broadcasts own equipment information; generating and displaying a device radar map according to the device information obtained by scanning; determining target UWB equipment selected by a user based on the equipment radar map, and reading target equipment information of the target UWB equipment; and establishing communication connection with the target UWB equipment according to the target equipment information. According to the method, the device radar map is generated and displayed by utilizing the data transmission and positioning functions of the UWB technology, the target device information is determined according to the target WUB device selected by the user on the device radar map, and the communication connection is established with the target UWB device according to the target device information, so that the data communication between intelligent terminals under the condition of no network is realized.
Based on the above-described first embodiment of the device communication apparatus of the present invention, a second embodiment of the device communication apparatus of the present invention is presented.
In this embodiment, the communication connection establishment module 40 is further configured to generate a verification data packet according to the target device information, and send the verification data packet to the target UWB device; and when receiving a response data packet fed back by the target UWB equipment based on the verification data packet, completing establishment of communication connection with the target UWB equipment.
The communication connection establishment module 40 is further configured to read target equipment identity information from the target equipment information, and generate a verification data packet according to the target equipment identity information and a preset data format; broadcasting the verification data packet to the target UWB device through UWB technology.
The communication connection establishment module 40 is further configured to continuously broadcast the verification data packet for a first preset duration by UWB technology when the verification data packet is generated, so as to send the verification data packet to the target UWB device, where the first preset duration is longer than a scanning interval duration of the target UWB device.
The generating module 20 is further configured to determine a device location, a device distance, and device identity information of each UWB device according to the device information obtained by scanning; and generating and displaying a device radar map according to the device position, the device distance and the device identity information.
The communication connection establishment module 40 is further configured to switch to a full duplex mode when the communication connection establishment is completed, and perform data communication 5 in duplex mode with the target UWB device based on the communication connection.
The communication connection establishment module 40 is further configured to enter a standby mode when the data communication is ended, and send an ending instruction to the target UWB device, so that the target UWB device enters the standby mode when receiving the ending instruction.
Other embodiments or specific implementations of the device communication apparatus of the present invention may refer to the above method embodiments, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements
The system includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or system. Without the further limitation of this,
the inclusion of an element defined by the phrase "comprising one … …" does not preclude the presence of additional identical elements in a process, method, article, or system that includes the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above 0 example method may be implemented by means of software plus a necessary general purpose hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part contributing to the prior art in the form of a software product stored on a storage medium (e.g. read-only memory/random access memory
A memory, a magnetic disk, an optical disk) includes instructions for causing a terminal device (which may be a mobile phone, a 5-computer, a server, an air conditioner, or a network device, etc.) to perform the methods according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (10)
1. A method of device communication, the method comprising:
scanning UWB equipment in a preset range, wherein the UWB equipment periodically broadcasts own equipment information;
generating and displaying a device radar map according to the device information obtained by scanning;
determining target UWB equipment selected by a user based on the equipment radar map, and reading target equipment information of the target UWB equipment;
and establishing communication connection with the target UWB equipment according to the target equipment information.
2. The method of claim 1, wherein said establishing a communication connection with said target UWB device based on said target device information comprises:
generating a verification data packet according to the target equipment information, and sending the verification data packet to the target UWB equipment;
and when receiving a response data packet fed back by the target UWB equipment based on the verification data packet, completing establishment of communication connection with the target UWB equipment.
3. The method of claim 2, wherein said generating an authentication data packet from said target device information and transmitting said authentication data packet to said target UWB device comprises:
reading target equipment identity information from the target equipment information, and generating a verification data packet according to the target equipment identity information and a preset data format;
broadcasting the verification data packet to the target UWB device through UWB technology.
4. The method of claim 3, wherein said broadcasting said authentication data packet to said target UWB device via UWB technology comprises:
and when the verification data packet is generated, continuously broadcasting the verification data packet by a UWB technology in a first preset time length so as to send the verification data packet to the target UWB equipment, wherein the first preset time length is longer than the scanning interval time length of the target UWB equipment.
5. The method of any of claims 1-4, wherein the generating and displaying a device radar map from the scanned device information comprises:
determining the equipment position, the equipment distance and the equipment identity information of each UWB equipment according to the equipment information obtained by scanning;
and generating and displaying a device radar map according to the device position, the device distance and the device identity information.
6. The method of any of claims 1-4, further comprising, after said establishing a communication connection with said target UWB device based on said target device information:
and when the communication connection is established, switching to a full duplex mode, and carrying out data communication in the duplex mode with the target UWB equipment based on the communication connection.
7. The method of claim 6, wherein after the step of switching to the full duplex mode and performing the duplex mode data communication based on the communication connection when the communication connection is established, further comprising:
and when the data communication is finished, entering a standby mode, and sending an ending instruction to the target UWB equipment so that the target UWB equipment enters the standby mode when receiving the ending instruction.
8. A device communication apparatus, the apparatus comprising:
the scanning module is used for scanning UWB equipment in a preset range, and the UWB equipment periodically broadcasts own equipment information;
the generation module is used for generating and displaying a device radar map according to the device information obtained by scanning;
the determining module is used for determining target UWB equipment selected by a user based on the equipment radar map and reading target equipment information of the target UWB equipment;
and the communication connection establishment module is used for establishing communication connection with the target UWB equipment according to the target equipment information.
9. An apparatus, the apparatus comprising: a memory, a processor and a device communication program stored on the memory and executable on the processor, the device communication program being configured to implement the steps of the device communication method of any one of claims 1 to 7.
10. A storage medium having stored thereon a device communication program which, when executed by a processor, implements the steps of the device communication method of any of claims 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211513146.7A CN116017766A (en) | 2022-11-28 | 2022-11-28 | Device communication method, device and storage medium |
PCT/CN2023/129944 WO2024114307A1 (en) | 2022-11-28 | 2023-11-06 | Device communication method and apparatus, device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211513146.7A CN116017766A (en) | 2022-11-28 | 2022-11-28 | Device communication method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116017766A true CN116017766A (en) | 2023-04-25 |
Family
ID=86027350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211513146.7A Pending CN116017766A (en) | 2022-11-28 | 2022-11-28 | Device communication method, device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116017766A (en) |
WO (1) | WO2024114307A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024114307A1 (en) * | 2022-11-28 | 2024-06-06 | 歌尔科技有限公司 | Device communication method and apparatus, device, and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108810866B (en) * | 2018-05-28 | 2022-08-19 | 北京小米移动软件有限公司 | Method and device for connecting intelligent equipment and storage medium |
CN113194454B (en) * | 2020-01-13 | 2023-02-07 | 华为技术有限公司 | Data sharing method and electronic equipment |
CN114679761A (en) * | 2020-04-14 | 2022-06-28 | 支付宝(杭州)信息技术有限公司 | UWB-based equipment interaction method, device and equipment |
KR20220018874A (en) * | 2020-08-07 | 2022-02-15 | 삼성전자주식회사 | Method and apparatus for managing wireless connections of electronic device |
CN112261572A (en) * | 2020-10-14 | 2021-01-22 | 北京小米移动软件有限公司 | Information interaction method and device and storage medium |
CN114783435A (en) * | 2022-04-25 | 2022-07-22 | 歌尔科技有限公司 | Equipment control method and device, sound box equipment and storage medium |
CN116017766A (en) * | 2022-11-28 | 2023-04-25 | 歌尔科技有限公司 | Device communication method, device and storage medium |
-
2022
- 2022-11-28 CN CN202211513146.7A patent/CN116017766A/en active Pending
-
2023
- 2023-11-06 WO PCT/CN2023/129944 patent/WO2024114307A1/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024114307A1 (en) * | 2022-11-28 | 2024-06-06 | 歌尔科技有限公司 | Device communication method and apparatus, device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2024114307A1 (en) | 2024-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11102645B2 (en) | Network registration method of internet of things device, and device therefor | |
US10887745B2 (en) | Method and device for sharing file between different terminals | |
US20080101400A1 (en) | Managing attachment of a wireless terminal to local area networks | |
CN105682015A (en) | Method and device for establishing wireless connection | |
KR20180121170A (en) | Electronic device and proximity discovery method thereof | |
CN101483489A (en) | Method of operating a cognitive radio device and cognitive radio device | |
US9591616B2 (en) | Data transmission | |
CN109699019B (en) | Broadcast scanning method, device, electronic equipment and storage medium | |
WO2024114307A1 (en) | Device communication method and apparatus, device, and storage medium | |
CN104219065A (en) | Beacon-based broadcasting method and Beacon equipment | |
CN104346838A (en) | Terminal and system | |
CN103581889A (en) | Method and system for automatically updating network configuration parameters | |
CN111602437B (en) | Information processing method, device, user equipment and storage medium | |
CN103281236B (en) | Electronic business card exchange method, device and system | |
CN108769210B (en) | Attendance tracking method, device, terminal, server and storage medium | |
KR101416339B1 (en) | Method and apparatus for providing service using user identification in portable communication system | |
CN108848139B (en) | Attendance tracking method, device, terminal, server and storage medium | |
JPH1023028A (en) | Member identification method in radioelectronic conference | |
CN114342494B (en) | Method, device, communication equipment and storage medium for packet paging | |
KR102326625B1 (en) | Service providing system, terminal and processing method of service providing system | |
KR101901717B1 (en) | Method for transmitting text message in multi sim mobile terminal | |
CN107196756B (en) | WIFI password generation method and mobile terminal | |
US8059614B2 (en) | Pseudorandom noise selection method for mobile communication sites | |
CN112584378A (en) | Identity card information reading method and system | |
KR102252525B1 (en) | Wireless charging equipment, terminal, wireless charging system comprising the same, control method thereof and computer readable medium having computer program recorded therefor |
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 |