CN115604694A - Communication method based on WiFi-Aware protocol, light equipment and readable storage medium - Google Patents

Communication method based on WiFi-Aware protocol, light equipment and readable storage medium Download PDF

Info

Publication number
CN115604694A
CN115604694A CN202211512866.1A CN202211512866A CN115604694A CN 115604694 A CN115604694 A CN 115604694A CN 202211512866 A CN202211512866 A CN 202211512866A CN 115604694 A CN115604694 A CN 115604694A
Authority
CN
China
Prior art keywords
light
target
equipment
information
light equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211512866.1A
Other languages
Chinese (zh)
Other versions
CN115604694B (en
Inventor
张芳舵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202211512866.1A priority Critical patent/CN115604694B/en
Publication of CN115604694A publication Critical patent/CN115604694A/en
Application granted granted Critical
Publication of CN115604694B publication Critical patent/CN115604694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Optical Communication System (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a communication method, light equipment and a storage medium based on a WiFi-Aware protocol, wherein the method comprises the following steps: acquiring network states and device information of a plurality of second light devices, and determining a target second light device based on the network states and the device information; the mutual discovery of the first light equipment and the target second light equipment is realized based on the publishing service function of the first light equipment and the subscribing service function of the target second light equipment; establishing connection between the first light equipment and the target second light equipment after mutual discovery based on a WiFi-Aware protocol; and sending the first data information through the first light equipment, and receiving the first data information through the target second light equipment so as to realize the communication between the first light equipment and the target second light equipment. The application aims to realize connection communication of the two under the condition that only light equipment exists based on a WiFi-Aware protocol.

Description

Communication method based on WiFi-Aware protocol, light equipment and readable storage medium
Technical Field
The present application relates to the field of communication technology application, and in particular, to a communication method based on a WiFi-Aware protocol, a light device, and a computer-readable storage medium.
Background
At present, a method for realizing communication based on a WiFi-Aware protocol mainly uses a single device such as BLE, NFC, NB and the like as a carrier, and further realizes wireless broadcast or multicast communication between adjacent devices, and has a disadvantage that multiple devices such as a master control and the like are combined, so that the hardware cost of a scheme is increased, and the workload of research and development is also increased. In addition, wide area network communications and data node remote connections between wide area or metropolitan area networks with digital twin platforms are not supported.
Based on the defects of the scheme, related wireless communication technology service providers propose and implement a pure WiFi scheme, the pure WiFi scheme can realize wide-area network data communication and near-field non-inductive discovery and connection communication, the cost is saved, and the technical stack requirement is reduced. However, it is applied between rich devices and light devices, and is not suitable for perception and networking schemes between a plurality of light devices.
Disclosure of Invention
The application provides a communication method based on a WiFi-Aware protocol, light equipment and a computer readable storage medium, which can realize communication connection between the light equipment based on the WiFi-Aware protocol.
In a first aspect, the present application provides a communication method based on WiFi-Aware protocol, where the method is applied to a first light device, and the method includes:
acquiring network states and device information of a plurality of second light devices, and determining a target second light device based on the network states and the device information;
the mutual discovery of the first light equipment and the target second light equipment is realized based on the publishing service function of the first light equipment and the subscription service function of the target second light equipment;
establishing connection between the first light equipment and the target second light equipment after mutual discovery based on a WiFi-Aware protocol;
and sending first data information through the first light equipment, and receiving the first data information through the target second light equipment so as to realize the communication between the first light equipment and the target second light equipment.
In a second aspect, the present application also provides a light device comprising:
a memory and a processor; wherein the memory is connected with the processor and used for storing programs; the processor is used for implementing the steps of the communication method based on the WiFi-Aware protocol according to any one of the embodiments of the application by running the program stored in the memory.
In a third aspect, the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program causes the processor to implement the steps of the WiFi-Aware protocol based communication method according to any one of the embodiments of the present application.
The communication method, the light device and the computer readable storage medium based on the WiFi-Aware protocol can realize mutual discovery between the first light device and the target second light device based on the WiFi-Aware protocol, and establish connection between the first light device and the target second light device after mutual discovery. In this way, the first light device can be enabled to perform data transmission with the target second light device, i.e. to achieve mutual communication between the light devices. Furthermore, the method can realize the communication between the light devices based on the WiFi-Aware protocol, improves the communication application scenes in the fields of industry, consumption and the like, does not need the combination of multiple devices such as main control and the like, and has lower cost and simpler technical development.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic step diagram of a communication method based on a WiFi-Aware protocol according to an embodiment of the present application;
fig. 2 is a schematic diagram of specific steps of a first light device and a target second light device discovering each other according to an embodiment of the present application;
FIG. 3 is a schematic view of a light device provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer-readable storage medium provided in the present application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flowcharts shown in the figures are illustrative only and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution order may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that, for the convenience of clearly describing the technical solutions of the embodiments of the present application, the words "first", "second", and the like are used in the embodiments of the present application to distinguish the same items or similar items with basically the same functions and actions. For example, the first recognition model and the second recognition model are only used for distinguishing different callback functions, and the sequence order of the callback functions is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments and features of the embodiments described below can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic step diagram of a communication method based on a WiFi-Aware protocol according to an embodiment of the present application. The method provided by the application can be applied to the first light equipment, and can realize communication with the target second light equipment based on a WiFi-Aware protocol. As shown in fig. 1, the communication method based on the WiFi-Aware protocol includes steps S11 to S14.
Step S11: and acquiring the network states and the device information of the plurality of second light devices, and determining the target second light device based on the network states and the device information.
Among them, the light device refers to a resource-limited device. Generally, an electronic device with a small memory and a small storage space may be called a light device. Compared with rich devices with abundant resources, the light devices generally have lower storage space and processing performance than the rich devices, and therefore have lower cost.
Further, the first light device is a main control device, which has a function of issuing a service and is used for issuing a message; the second light equipment is controlled equipment which has a service subscription function and is used for subscribing the message; the target second light device is a light device capable of communicating with the first light device based on the WiFi-Aware protocol.
The device information includes, but is not limited to, device physical address information, device type information, device capability information, and the like, which is not limited in this application.
Optionally, the determining the target second light device based on the network status and the device information includes: searching equipment information of second light equipment with an online network state by using a database to obtain a searching result, wherein the database comprises the equipment information of a plurality of target second light equipment; and determining the target second light equipment based on the searching result.
It should be noted that the WiFi-Aware protocol can implement communication between the master device and the controlled device of the wireless near field communication. The Wireless Near Field Communication method includes, but is not limited to, an NFC (Near Field Communication) method, a bluetooth (bluetooth) method, a WiFi (Wireless Fidelity) method, and the like, and the WiFi method is exemplified in the present application.
It will be appreciated that communication is only possible with light devices for wireless near field communication. Therefore, the network states of the plurality of second light devices can be determined first, and the second light devices which are successfully connected with the WiFi, that is, the network states of the second light devices are online states, can be selected. Further, the database is used for searching the equipment information of the second light equipment with the network state being the online state, and a searching result is obtained. Specifically, the second light equipment corresponding to the equipment information that can be searched from the database is the target second light equipment.
Step S12: and realizing mutual discovery of the first light equipment and the target second light equipment based on the publishing service function of the first light equipment and the subscribing service function of the target second light equipment.
Mutual discovery between devices based on the WiFi-Aware protocol exchanges information mainly through "Publish" and "Subscribe" messages. Specifically, the subscription service may be implemented by the subscription service function of the target second light device, and the information and the provided content that exist are represented by the publishing service function of the first light device. When the target second light device receives the content sent by the first light device, the target second light device and the first light device are explained to realize mutual discovery.
Optionally, referring to fig. 2, fig. 2 is a schematic diagram illustrating specific steps of mutual discovery between a first light device and a target second light device according to an embodiment of the present application. As shown in fig. 2, mutual discovery of the first light device and the target second light device can be achieved through steps S121 to S123.
Step S121: and receiving a subscription request sent by the target second light equipment through the subscription service function.
Step S122: and acquiring the message published by the first light equipment through the publishing service function and the storage position information based on the subscription request.
Step S123: and sending a message to a storage position corresponding to the target second light device based on the storage position information so as to realize mutual discovery of the first light device and the target second light device.
Specifically, a subscription request sent by the target second light device through the subscription service function may be received, and then a message and storage location information published by the first light device through the publishing service function may be obtained based on the subscription request information. The storage location information at least comprises a storage location corresponding to each message. Further, the message can be sent to the corresponding storage position of the target second light device based on the storage position information. In this way, mutual discovery of the first light device and the target second light device is achieved.
Optionally, the sending a message to a storage location corresponding to the target second light device based on the storage location information to achieve mutual discovery between the first light device and the target second light device includes: sending the message to a storage position corresponding to the target second light equipment based on the storage position information; and receiving reply information of the target second light device based on the message within a preset time period so as to realize mutual discovery of the first light device and the target second light device.
The preset time period is not limited in the present application, and may be, for example, 5 minutes, 8 minutes, or the like.
It will be appreciated that there may be situations where a single message transmission fails and hence the mutual discovery of the first light device and the target second light device fails. Therefore, the message can be sent to the storage position corresponding to the target second light device based on the storage position information, and the reply information of the target second light device based on the message can be received within the preset time period. In this way, mutual discovery of the first light device and the target second light device is achieved. By the mode of periodically sending the information for multiple times, the condition that the sending of the single message fails and further the mutual discovery of the first light equipment and the target second light equipment fails can be effectively avoided.
It can be understood that if the reply message based on the message is not received by the target second light device within the preset time period, it indicates that the mutual discovery between the first light device and the target second light device fails.
Step S13: and establishing connection between the first light equipment and the target second light equipment after mutual discovery based on a WiFi-Aware protocol.
After the first light equipment and the target second light equipment are mutually discovered, connection between the first light equipment and the target second light equipment after mutual discovery can be established based on a WiFi-Aware protocol.
It should be noted that, if the target second light device is connected to the first light device for the first time, an authentication operation needs to be performed in advance. Specifically, the device information of the target second light device may be sent to the cloud server for authentication operation, and the cloud server queries whether the device information is consistent with the locally stored device information after receiving the device information of the plurality of target second light devices. If the cloud server inquires that the equipment information is consistent with the locally stored equipment information, the authentication passes, and the authentication passing result can be returned at the moment. If the cloud server inquires that the equipment information is inconsistent with the locally stored equipment information, the authentication fails, and an authentication failure result can be returned at the moment.
After the authentication passes, the first light device establishes a device trust relationship with the target second light device. In general, the next connection of the first light device with the target second light device may not require re-authentication as long as a device trust relationship exists.
Optionally, after the authentication passes, the first light device and the target second light device may establish a connection. The establishing of the connection between the first light device and the target second light device after mutual discovery based on the WiFi-Aware protocol includes: receiving a network access request of a target second light device; acquiring Service Set Identifier (SSID) information and Pre-Shared Key (Pre-Shared Key, PSK) information sent by first light equipment based on a WiFi-Aware protocol and a network access request; and sending the service set identification information and the pre-shared key information to the target second equipment, and establishing the connection between the first light equipment and the target second light equipment after mutual discovery.
The network access request of the target second light device can be accepted first, and further, key negotiation can be carried out based on the WiFi-Aware protocol and the network access request of the target second light device. This key, i.e. the key used for the negotiation between the light devices, can be used for the connection between the target second light device and the first light device, as well as for the communication between subsequent light devices. For example, after the authentication between the first light device and the target second light device passes, the key negotiated between the first light device and the target second light device is 1234ABC. After the first light device and the target second light device are connected based on the key, subsequent communication, that is, data interaction, may be performed through the key 1234ABC negotiated at the time of first joining.
Specifically, the service set identification information and the pre-shared key information sent by the first light device may be obtained, and then the service set identification information and the pre-shared key information are sent to the target second device, so that the target second device is connected to the first light device based on the service set identification information and the pre-shared key information. In this way, the connection between the first light device and the target second light device after mutual discovery is established based on the WiFi-Aware protocol.
Step S14: and sending the first data information through the first light equipment and receiving the first data information through the target second light equipment so as to realize the communication between the first light equipment and the target second light equipment.
The first data information is data information sent by the first light device, and the type of the data information is not limited in the present application, and may be, for example, text, video, image, audio, web page, and the like.
Specifically, after the first light device is connected to the target second light device, the first data information may be sent by the first light device, and the first data information may be received by the target second light device. In this way, data interaction between the first light device and the target second light device is achieved, i.e. communication between the first light device and the target second light device is achieved.
Optionally, sending the first data information by the first light device, and receiving the first data information by the target second light device, so as to implement communication between the first light device and the target second light device, including: sending first data information through first light equipment; analyzing the first data information to obtain target data and equipment identification corresponding to the target data; and receiving the target data through the target second light device based on the device identification corresponding to the target data so as to realize the communication between the first light device and the second light device.
Specifically, when the first data information is sent by the first light device, the first data information may be analyzed to obtain the target data and the device identifier corresponding to the target data. Wherein the device identification indicates assignment of the target data to the specified target second light device. Accordingly, the target data may be received by the target second light device based on the device identification corresponding to the target data. In this manner, communication of the first light device with the second light device is achieved.
It should be noted that the first light device and the target second light device transmit and receive data to and from each other, and the present application is not limited to this.
Optionally, after establishing the connection between the first light device and the target second light device after the mutual discovery based on the WiFi-Aware protocol, the method may further include: and sending the second data information through the target second light equipment and receiving the second data information through the first light equipment so as to realize the communication between the first light equipment and the second light equipment. The second data information is the data information sent by the target second light device, and the type of the data information is not limited in the present application, and may be, for example, text, video, image, audio, web page, and the like.
The communication method, the light device and the computer readable storage medium based on the WiFi-Aware protocol can realize mutual discovery between the first light device and the target second light device based on the WiFi-Aware protocol, and establish connection between the first light device and the target second light device after mutual discovery. Therefore, the first light equipment and the target second light equipment can carry out data mutual transmission, namely, mutual communication between the light equipment is realized. Furthermore, the method can realize the communication between the light devices based on the WiFi-Aware protocol, improves the communication application scenes in the fields of industry, consumption and the like, does not need the combination of multiple devices such as main control and the like, and has lower cost and simpler technical development.
The methods of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
Illustratively, the method described above may be implemented in the form of a computer program that may be run on a light device as shown in fig. 3.
Referring to fig. 3, fig. 3 is a schematic view of a light device according to an embodiment of the present disclosure. The light device 300 may be a server. As shown in fig. 3, the light device 300 includes a processor 301, a memory 302, and a network interface connected by a system bus, wherein the memory 302 may include volatile storage media, non-volatile storage media, and internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions which, when executed, cause the processor 301 to perform any one of the WiFi-Aware protocol based communication methods.
The processor 301 is used to provide computing and control capabilities to support the operation of the entire light device 300.
The internal memory provides an environment for the execution of computer programs on the non-volatile storage medium, which when executed by the processor 301, cause the processor 301 to perform any of the communication methods based on the WiFi-Aware protocol.
The network interface is used for network communication, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure of the light device 300 is merely a block diagram of a portion of the structure associated with the present application, and does not constitute a limitation on the light device 300 to which the present application is applied, and that a particular light device 300 may include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
It should be understood that Processor 301 may be a Central Processing Unit (CPU), and that Processor 301 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In some embodiments, the processor 301 is configured to run a computer program stored in the memory 302 to implement the following steps: acquiring network states and device information of a plurality of second light devices, and determining a target second light device based on the network states and the device information; the mutual discovery of the first light equipment and the target second light equipment is realized based on the publishing service function of the first light equipment and the subscription service function of the target second light equipment; establishing connection between the first light equipment and the target second light equipment after mutual discovery based on a WiFi-Aware protocol; and sending first data information through the first light equipment, and receiving the first data information through the target second light equipment so as to realize the communication between the first light equipment and the target second light equipment.
In some embodiments, the processor 301 is further configured to search for the device information of the second light device with an online network status by using a database, so as to obtain a search result, where the database includes the device information of a plurality of target second light devices; determining the target second light device based on the search result.
In some embodiments, the processor 301 is further configured to receive a subscription request sent by the target second light device through a subscription service function; based on the subscription request, acquiring a message and storage position information published by the first light equipment through a publishing service function; and sending the message to a storage position corresponding to the target second light equipment based on the storage position information so as to realize mutual discovery of the first light equipment and the target second light equipment.
In some embodiments, the processor 301 is further configured to send the message to a corresponding storage location of the target second light device based on the storage location information; and receiving reply information of the target second light device based on the message within a preset time period so as to realize mutual discovery of the first light device and the target second light device.
In some embodiments, the processor 301 is further configured to receive a network entry request of the second light device; acquiring service set identification information and pre-shared key information sent by the first light equipment based on a WiFi-Aware protocol and the network access request; and sending the service set identification information and the pre-shared key information to the target second equipment, and establishing the connection between the first light equipment and the target second light equipment after mutual discovery.
In some embodiments, the processor 301 is further configured to transmit the first data information through the first light device; analyzing the first data information to obtain target data and an equipment identifier corresponding to the target data; and receiving the target data through the target second light equipment based on the equipment identification corresponding to the target data so as to realize the communication between the first light equipment and the second light equipment.
In some embodiments, the processor 301 is further configured to transmit second data information through the target second light device and receive the second data information through the first light device, so as to enable the first light device to communicate with the second light device.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and the program instructions, when executed, implement the communication method based on the WiFi-Aware protocol provided in the embodiment of the present application.
The computer readable storage medium may be an internal storage unit of the light device 300 described in the foregoing embodiments, for example, a hard disk or a memory of the computer device.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a computer-readable storage medium provided in the present application. The storage medium 40 of the present application stores a computer program capable of implementing all the above-mentioned communication methods based on the WiFi-Aware protocol, wherein the computer program may be stored in the storage medium 40 in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present application. The foregoing storage device includes: a U-disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or various media capable of storing program codes, or a computer, a server, a mobile phone, a tablet, or the like.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A communication method based on WiFi-Aware protocol, applied to a first light device, the method comprising:
acquiring network states and device information of a plurality of second light devices, and determining a target second light device based on the network states and the device information;
based on the publishing service function of the first light equipment and the subscribing service function of the target second light equipment, realizing mutual discovery of the first light equipment and the target second light equipment;
establishing connection between the first light equipment and the target second light equipment after mutual discovery based on a WiFi-Aware protocol;
and sending first data information through the first light equipment, and receiving the first data information through the target second light equipment so as to realize the communication between the first light equipment and the target second light equipment.
2. The method of claim 1, wherein the network status comprises an online status and an offline status, and wherein determining the target second light device based on the network status and the device information comprises:
searching the equipment information of the second light equipment with the network state being in an online state by utilizing a database to obtain a searching result, wherein the database comprises the equipment information of a plurality of target second light equipment;
determining the target second light device based on the search result.
3. The method of claim 1, wherein the enabling mutual discovery of the first light device and the target second light device based on a publish service function of the first light device and a subscription service of the target second light device comprises:
receiving a subscription request sent by the target second light equipment through a subscription service function;
based on the subscription request, acquiring a message and storage position information published by the first light equipment through a publishing service function;
and sending the message to a storage position corresponding to the target second light equipment based on the storage position information so as to realize mutual discovery of the first light equipment and the target second light equipment.
4. The method of claim 3, wherein the sending the message to the storage location corresponding to the target second light device based on the storage location information to achieve mutual discovery of the first light device and the target second light device comprises:
sending the message to a storage position corresponding to the target second light equipment based on the storage position information;
and receiving reply information of the target second light device based on the message within a preset time period so as to realize mutual discovery of the first light device and the target second light device.
5. The method according to claim 1, wherein the establishing the connection between the first light device and the target second light device after mutual discovery based on WiFi-Aware protocol comprises:
receiving a network access request of the target second light equipment;
acquiring service set identification information and pre-shared key information sent by the first light equipment based on a WiFi-Aware protocol and the network access request;
and sending the service set identification information and the pre-shared key information to the target second light equipment, and establishing the connection between the first light equipment and the target second light equipment after mutual discovery.
6. The method of claim 1, wherein the sending of the first data information by the first light device and the receiving of the first data information by the target second light device to enable the first light device to communicate with the second light device comprises:
transmitting the first data information through the first light equipment;
analyzing the first data information to obtain target data and an equipment identifier corresponding to the target data;
and receiving the target data through the target second light equipment based on the equipment identification corresponding to the target data so as to realize the communication between the first light equipment and the second light equipment.
7. The method according to claim 1, wherein after establishing the connection between the first light device and the target second light device after discovering each other based on the WiFi-Aware protocol, the method further comprises:
and sending second data information through the target second light equipment, and receiving the second data information through the first light equipment so as to realize the communication between the first light equipment and the second light equipment.
8. The method of claim 1, wherein the device information includes, but is not limited to, device physical address information, device type information, and device capability information.
9. A light weight device, comprising:
a memory and a processor; wherein the memory is connected with the processor for storing programs, and the processor is used for realizing the steps of the communication method based on the WiFi-Aware protocol according to any one of claims 1-8 by running the programs stored in the memory.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, causes the processor to implement the steps of the WiFi-Aware protocol based communication method according to any one of claims 1-8.
CN202211512866.1A 2022-11-30 2022-11-30 Communication method, light equipment and readable storage medium based on WiFi-Aware protocol Active CN115604694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211512866.1A CN115604694B (en) 2022-11-30 2022-11-30 Communication method, light equipment and readable storage medium based on WiFi-Aware protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211512866.1A CN115604694B (en) 2022-11-30 2022-11-30 Communication method, light equipment and readable storage medium based on WiFi-Aware protocol

Publications (2)

Publication Number Publication Date
CN115604694A true CN115604694A (en) 2023-01-13
CN115604694B CN115604694B (en) 2023-05-16

Family

ID=84853186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211512866.1A Active CN115604694B (en) 2022-11-30 2022-11-30 Communication method, light equipment and readable storage medium based on WiFi-Aware protocol

Country Status (1)

Country Link
CN (1) CN115604694B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160150357A1 (en) * 2014-11-26 2016-05-26 Samsung Electronics Co., Ltd. Electronic device and method for transmitting information
CN105897691A (en) * 2016-03-24 2016-08-24 美的集团股份有限公司 Method, apparatus, and system for connection of IoT device to network
CN108901083A (en) * 2018-06-27 2018-11-27 努比亚技术有限公司 Method for transmitting signals, signal transmission apparatus, terminal and storage medium
US20200311559A1 (en) * 2017-06-20 2020-10-01 Rita Chattopadhyay Optimized decision tree machine learning for resource-constrained devices
CN112888029A (en) * 2021-02-03 2021-06-01 惠州Tcl移动通信有限公司 Communication method, computer equipment and computer readable storage medium
WO2021185141A1 (en) * 2020-03-18 2021-09-23 华为技术有限公司 Wi-fi aware link establishment method and system, electronic device, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160150357A1 (en) * 2014-11-26 2016-05-26 Samsung Electronics Co., Ltd. Electronic device and method for transmitting information
CN105897691A (en) * 2016-03-24 2016-08-24 美的集团股份有限公司 Method, apparatus, and system for connection of IoT device to network
US20200311559A1 (en) * 2017-06-20 2020-10-01 Rita Chattopadhyay Optimized decision tree machine learning for resource-constrained devices
CN108901083A (en) * 2018-06-27 2018-11-27 努比亚技术有限公司 Method for transmitting signals, signal transmission apparatus, terminal and storage medium
WO2021185141A1 (en) * 2020-03-18 2021-09-23 华为技术有限公司 Wi-fi aware link establishment method and system, electronic device, and storage medium
CN112888029A (en) * 2021-02-03 2021-06-01 惠州Tcl移动通信有限公司 Communication method, computer equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHUBHAM SALONI: "WiFi-Aware as a Connectivity Solution for IoT" *
闵荷芳;朱如丹;曲芸;: "Wi-Fi Aware认证的流程及测试要求" *

Also Published As

Publication number Publication date
CN115604694B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
US11991255B2 (en) Interworking service for the restful internet of things
Gong Project JXTA: A technology overview
CN110381167B (en) Cloud-based block link point active discovery system and method
JP4525961B2 (en) Organic data network with dynamic topology
US11711744B2 (en) Method and apparatus for interaction between an edge computing system and a mobile communication network for providing edge computing service
US20080102793A1 (en) Automated Secure Pairing for Wireless Devices
US11489686B2 (en) Virtual meetings in ad-hoc networks
CN101296176B (en) Data processing method and apparatus based on cluster
MXPA04008848A (en) Metaspace: communication middleware for partially connected mobile ad hoc networks.
US20110167182A1 (en) Transport prioritization based on message type
CN111885133A (en) Data processing method and device based on block chain and computer storage medium
US20110105024A1 (en) Transport independent service discovery
CN114338063B (en) Message queue system, service processing method and computer readable storage medium
CN112291364A (en) Message pushing processing method and device
EP3056047A1 (en) Wireless network service type
CN116633775B (en) Container communication method and system of multi-container network interface
Bruneo et al. Mobile middleware: Definition and motivations
CN107950005B (en) Service element host selection
Srirama et al. Mobile hosts in enterprise service integration
CN115297098B (en) Edge service acquisition method and device, edge computing system, medium and equipment
CN115604694A (en) Communication method based on WiFi-Aware protocol, light equipment and readable storage medium
CN111385324A (en) Data communication method, device, equipment and storage medium
CN113055444B (en) File sharing method and related device thereof
CN108900593B (en) Distributed processing method for data of storage cabinet
Akherfi et al. A mobile cloud middleware to support mobility and cloud interoperability

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant