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

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

Info

Publication number
CN115604694B
CN115604694B CN202211512866.1A CN202211512866A CN115604694B CN 115604694 B CN115604694 B CN 115604694B CN 202211512866 A CN202211512866 A CN 202211512866A CN 115604694 B CN115604694 B CN 115604694B
Authority
CN
China
Prior art keywords
light
target
equipment
information
light device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211512866.1A
Other languages
Chinese (zh)
Other versions
CN115604694A (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, a light device 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 target second light devices based on the network states and the device information; based on the release service function of the first light equipment and the subscription service function of the target second light equipment, the mutual discovery of the first light equipment and the target second light equipment is realized; establishing connection between the first light equipment and the target second light equipment after mutual discovery based on a WiFi-Aware protocol; and transmitting 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 present application is directed to enabling connection communication of light devices only in the presence of both based on the WiFi-Aware protocol.

Description

Communication method, light equipment and readable storage medium based on WiFi-Aware protocol
Technical Field
The present disclosure relates to the field of communications technology application, and in particular, to a WiFi-Aware protocol-based communication method, 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 single devices such as BLE, NFC, NB and the like as carriers, and further realizes wireless broadcast or multicast communication between adjacent devices, and the method has the defect that multiple devices such as a master control and the like are needed to be combined, so that the hardware cost of the scheme is increased, and meanwhile, the research and development workload is also increased. In addition, wide area network communications are not supported and remote connection of data nodes between wide area or metropolitan area networks with digital twinning platforms.
Based on the shortcomings of the scheme, related wireless communication technology service providers propose and implement a pure WiFi scheme, and the pure WiFi scheme can realize wide area network data communication and near field noninductive discovery and connection communication, so that the cost is saved, and the technical stack requirement is reduced. However, it is applied between rich and light devices, and is not suitable for sensing and networking schemes between multiple light devices.
Disclosure of Invention
The application provides a communication method, light equipment and a computer readable storage medium based on a WiFi-Aware protocol, 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 a WiFi-Aware protocol, the method being 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 device and the subscription service function of the target second light device, the mutual discovery of the first light device and the target second light device is realized;
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 communication between the first light equipment and the target second light equipment.
In a second aspect, the present application also provides a light apparatus comprising:
a memory and a processor; the memory is connected with the processor and used for storing programs; the processor is configured to implement the steps of the communication method based on the WiFi-Aware protocol according to any one of the embodiments of the present application by running a program stored in the memory.
In a third aspect, the present application further provides a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to implement the steps of a communication method based on a WiFi-Aware protocol according to any of the embodiments of the present application.
According to the communication method, the light equipment and the computer readable storage medium based on the WiFi-Aware protocol, mutual discovery between the first light equipment and the target second light equipment can be achieved based on the WiFi-Aware protocol, and connection between the first light equipment and the target second light equipment after mutual discovery is established. In this way, the first light device and the target second light device can perform data transmission, that is, mutual communication between the light devices is achieved. Furthermore, the method can realize communication between light equipment based on the WiFi-Aware protocol, improves the communication application scene of the method in the fields of industry, consumption and the like, does not need multi-device combination such as master 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 of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic 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 for mutual discovery of a first light device and a target second light device according to an embodiment of the present application;
FIG. 3 is a schematic view of a light device provided in 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 following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification 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, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first recognition model and the second recognition model are merely for distinguishing between different callback functions, and are not limited in their order of precedence. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating steps 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 communication between the second light equipment and the target based on the WiFi-Aware protocol can be achieved. As shown in fig. 1, the communication method based on the WiFi-Aware protocol includes steps S11 to S14.
Step S11: network states and device information of the plurality of second light devices are acquired, and a target second light device is determined based on the network states and the device information.
Wherein a light device refers to a resource-constrained device. In general, an electronic device with little memory and little storage space may be referred to as a light device. Compared to rich devices, which are rich in resources, the storage space and processing performance of light devices are generally lower than those of rich devices, and therefore the cost is also lower.
Further, the first light device is a master control device, and has a release service function and is used for releasing a message; the second light equipment is controlled equipment which has a subscription service function and is used for subscribing information; the target second light device is a light device capable of communicating with the first light device based on a 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.
Optionally, the network state includes an online state and an offline state, and the determining the target second light device based on the network state and the device information includes: searching equipment information of the second light equipment with the network state being 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; and determining a target second light device based on the search result.
It should be noted that, the WiFi-Aware protocol can implement communication between the master device and the slave device of wireless near field communication. The wireless near field communication method includes, but is not limited to, NFC (Near Field Communication ) method, bluetooth method, wiFi (Wireless Fidelity ) method, and the like, and the WiFi method is exemplified in the present application.
It will be appreciated that communication may be achieved due to the light devices being in wireless near field communication only. Therefore, the network states of the plurality of second light devices can be determined first, and the second light devices with successful connection to the WiFi, that is, the network states are online, can be selected. Further, the device information of the second light device with the network state being the online state is searched by utilizing the database, and a search result is obtained. Specifically, the second light device corresponding to the device information which can be found from the database is the target second light device.
Step S12: the mutual discovery of the first light device and the target second light device is realized based on the publishing service function of the first light device and the subscription service function of the target second light device.
Mutual discovery between devices based on the WiFi-Aware protocol exchanges information mainly through "Publish" and "Subscribe" messages. In particular, the subscription service may be implemented by a subscription service function of the target second light device, and the presence information and the provided content may be represented by a publication 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 target second light device are indicated to realize mutual discovery.
Optionally, referring to fig. 2, fig. 2 is a schematic diagram of specific steps of mutual discovery of a first light device and a target second light device according to an embodiment of the present application. As shown in fig. 2, the mutual discovery of the first light device and the target second light device may be achieved through steps S121 to S123.
Step S121: and receiving a subscription request sent by the target second light device through a subscription service function.
Step S122: based on the subscription request, information published by the first light device through the publishing service function and storage position information are acquired.
Step S123: and sending the 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 further, a message and storage location information that the first light device publishes 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 may be sent to a storage location corresponding to the target second light device based on the storage location information. In this way, mutual discovery of the first light device and the target second light device is achieved.
Optionally, the sending the message to the storage location corresponding to the target second light device based on the storage location information to implement mutual discovery of the first light device and the target second light device includes: based on the storage position information, sending the message to a storage position corresponding to the target second light equipment; and receiving reply information of the target second light equipment based on the message in a preset time period so as to realize the mutual discovery of the first light equipment and the target second light equipment.
The preset time period is not limited, and may be, for example, 5 minutes, 8 minutes, or the like.
It will be appreciated that there may be cases where a single message transmission fails, and thus the first light device and the target second light device fail to discover each other. Thus, the message may be sent to the storage location corresponding to the target second light device based on the storage location information, and reply information of the target second light device based on the message may be received within a preset period of time. In this way, mutual discovery of the first light device and the target second light device is achieved. Through the mode of periodically sending information for multiple times, the situation that single message sending fails and then 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 information of the target second light device based on the message is not received within the preset time period, it is indicated that the first light device and the target second light device mutually find out failure.
Step S13: and establishing connection between the first light device and the target second light device after mutual discovery based on the WiFi-Aware protocol.
After the first light device and the target second light device are discovered mutually, connection between the first light device and the target second light device after the first light device and the target second light device are discovered mutually can be established based on the WiFi-Aware protocol.
It should be noted that, if the target second light device is first connected to the first light device, an authentication operation is also required in advance. Specifically, the device information of the target second light device may be sent to the cloud server for authentication operation, and after receiving the device information of the plurality of target second light devices, the cloud server queries whether the device information is consistent with the locally stored device information. If the cloud server inquires that the equipment information is consistent with the locally stored equipment information, the authentication passes, and an 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 a failure result of the authentication can be returned.
After the authentication is passed, the first light device establishes a device trust relationship with the target second light device. Typically, 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 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 identification (Service SetIdentifier, SSID) information and Pre-Shared Key (PSK) information sent by a first light device 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 device, and establishing connection between the first light device and the target second light device after mutual discovery.
The access request of the target second light device can be received first, and then key negotiation can be performed based on the WiFi-Aware protocol and the access request of the target second light device. The key, i.e. the key used by negotiations between the light devices, may be used for the connection between the target second light device and the first light device, and for the communication between subsequent light devices. For example, after the authentication of 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, can be performed through the key 1234ABC negotiated at the time of first joining.
Specifically, the service set identification information and the pre-sharing key information sent by the first light device may be obtained, and then the service set identification information and the pre-sharing key information are sent to the target second device, so that the target second device is connected with the first light device based on the service set identification information and the pre-sharing key information. Thus, 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 transmitting 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 this application, and may be text, video, image, audio, web page, and the like.
Specifically, after the connection between the first light device and the target second light device is achieved, the first data information can be sent through the first light device, and the first data information can be received through the target second light device. Thus, the data interaction between the first light device and the target second light device is realized, namely, the communication between the first light device and the target second light device is realized.
Optionally, sending the first data information through the first light device and receiving the first data information through the target second light device to enable the first light device to communicate with the target second light device, including: transmitting, by the first light device, first data information; analyzing the first data information to obtain target data and equipment identifiers corresponding to the target data; and receiving the target data through the target second light equipment based on the equipment identifier corresponding to the target data so as to realize the communication between the first light equipment and the second light equipment.
Specifically, when the first data information is sent through the first light device, the first data information can be analyzed to obtain the target data and the device identifier corresponding to the target data. Wherein the device identification indicates that the target data is assigned to the designated target second light device. Thus, the target data may be received by the target second light device based on the device identification corresponding to the target data. In this way, communication of the first light device with the second light device is achieved.
The data transmission and reception between the first light device and the target second light device are mutually performed, and this application is not limited thereto.
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 further includes: and transmitting the second data information through the target second light device, and receiving the second data information through the first light device so as to realize the communication between the first light device and the second light device. 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 this application, and may be, for example, text, video, image, audio, web page, and the like.
According to the communication method, the light equipment and the computer readable storage medium based on the WiFi-Aware protocol, mutual discovery between the first light equipment and the target second light equipment can be achieved based on the WiFi-Aware protocol, and connection between the first light equipment and the target second light equipment after mutual discovery is established. Thus, the first light equipment and the target second light equipment can mutually send data, namely mutual communication between the light equipment is realized. Furthermore, the method can realize communication between light equipment based on the WiFi-Aware protocol, improves the communication application scene of the method in the fields of industry, consumption and the like, does not need multi-device combination such as master 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 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.
By way of example, the above-described method may be implemented in the form of a computer program that is executable 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 application. The light device 300 may be a server. As shown in fig. 3, the lightweight device 300 includes a processor 301, a memory 302, and a network interface connected by a system bus, wherein the memory 302 may include a volatile storage medium, a nonvolatile storage medium, and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions that, when executed, cause the processor 301 to perform any of a variety of communication methods based on the WiFi-Aware protocol.
The processor 301 is used to provide computing and control capabilities to support the operation of the overall light device 300.
The internal memory provides an environment for the execution of a computer program in a non-volatile storage medium that, when executed by the processor 301, causes the processor 301 to perform any of a number of communication methods based on the WiFi-Aware protocol.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure of the light device 300 is merely a block diagram of some of the structures associated with the present application and is not limiting of 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, or may combine certain components, or have a different arrangement of components.
It should be appreciated that the processor 301 may be a central processing unit (Central Processing Unit, CPU), the processor 301 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in some embodiments the processor 301 is configured to execute a computer program stored in the memory 302 to implement the steps of: 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 device and the subscription service function of the target second light device, the mutual discovery of the first light device and the target second light device is realized; 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 communication between the first light equipment and the target second light equipment.
In some embodiments, the processor 301 is further configured to search for device information of the second light device whose network state is online by using a database, to obtain a search result, where the database contains device information of a plurality of target second light devices; and 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 which are issued by the first light equipment through a release service function; and based on the storage position information, sending the message to a storage position corresponding to the target second light equipment 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 storage location corresponding to the target second light device based on the storage location information; and receiving reply information of the target second light equipment based on the message in a preset time period 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 receive a request for network access from 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 device, and establishing connection between the first light device and the target second light device after mutual discovery.
In some implementations, the processor 301 is further configured to send the first data information through the first light device; analyzing the first data information to obtain target data and equipment identifiers corresponding to the target data; and receiving the target data through the target second light equipment based on the equipment identifier 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 send second data information through the target second light device, and receive the second data information through the first light device, so as to enable communication between the first light device and the second light device.
The embodiment of the application also provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, wherein the computer program comprises program instructions, and the program instructions realize the communication method based on the WiFi-Aware protocol.
The computer readable storage medium may be an internal storage unit of the light device 300 according to the foregoing embodiment, 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 communication methods based on the WiFi-Aware protocol, where the computer program may be stored in the storage medium 40 in the form of a software product, and includes several instructions to cause 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 of the embodiments of the present application. The aforementioned storage device includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes, or a computer, a server, a mobile phone, a tablet, or other devices.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A communication method based on a WiFi-Aware protocol, applied to a first light device, wherein the method comprises:
acquiring network states and device information of a plurality of second light devices, wherein the network states comprise an online state and an offline state, and the first light devices and the second light devices are devices with limited resources;
searching the equipment information of the second light equipment with the network state being an online state by using a database to obtain a searching result, wherein the database contains the equipment information of a plurality of target second light equipment;
if the searching result is that the equipment information of the second light equipment with the network state being the online state can be searched from the database, determining that the second light equipment corresponding to the searched equipment information is the target second light equipment;
based on the publishing service function of the first light device and the subscription service function of the target second light device, the mutual discovery of the first light device and the target second light device is realized;
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 communication between the first light equipment and the target second light equipment.
2. The method of claim 1, wherein the first light device and the target second light device mutually discover based upon 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 which are issued by the first light equipment through a release service function;
and based on the storage position information, sending the message to a storage position corresponding to the target second light equipment so as to realize mutual discovery of the first light equipment and the target second light equipment.
3. The method of claim 2, wherein the sending the message to the storage location corresponding to the target second light device based on the storage location information to enable mutual discovery of the first light device and the target second light device comprises:
based on the storage position information, sending the message to a storage position corresponding to the target second light equipment;
and receiving reply information of the target second light equipment based on the message in a preset time period so as to realize mutual discovery of the first light equipment and the target second light equipment.
4. The method of claim 1, wherein establishing the connection of the first light device and the target second light device after mutual discovery based on a 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 connection between the first light equipment and the target second light equipment after mutual discovery.
5. The method of claim 1, wherein the transmitting, by the first light device, the first data information and receiving, by the target second light device, the first data information to enable communication of the first light device with the second light device comprises:
transmitting the first data information through the first light device;
analyzing the first data information to obtain target data and equipment identifiers corresponding to the target data;
and receiving the target data through the target second light equipment based on the equipment identifier corresponding to the target data so as to realize the communication between the first light equipment and the second light equipment.
6. The method of claim 1, wherein 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, 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 communication between the first light equipment and the second light equipment.
7. The method of claim 1, wherein the device information comprises device physical address information, device type information, device capability information.
8. A light apparatus, comprising:
a memory and a processor; wherein the memory is connected to the processor for storing a program, and the processor is configured to implement the steps of the communication method according to any one of claims 1 to 7 based on the WiFi-Aware protocol by running the program stored in the memory.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the steps of the communication method based on WiFi-Aware protocol according to any of claims 1-7.
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 CN115604694A (en) 2023-01-13
CN115604694B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102274730B1 (en) * 2014-11-26 2021-07-08 삼성전자주식회사 Electronic device and method for transmitting information by the electronic device
US20200311559A1 (en) * 2017-06-20 2020-10-01 Rita Chattopadhyay Optimized decision tree machine learning for resource-constrained devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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.《IEEE》.2016,全文. *
闵荷芳 ; 朱如丹 ; 曲芸 ; .Wi-Fi Aware认证的流程及测试要求.安全与电磁兼容.2016,(06),全文. *

Also Published As

Publication number Publication date
CN115604694A (en) 2023-01-13

Similar Documents

Publication Publication Date Title
US11991255B2 (en) Interworking service for the restful internet of things
US10812345B2 (en) Automated service profiling and orchestration
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
CN106534107B (en) Message service system of Internet of things
EP2680500B1 (en) Application discovery
US11711744B2 (en) Method and apparatus for interaction between an edge computing system and a mobile communication network for providing edge computing service
US10637794B2 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
EP3286936B1 (en) Device and method for adding a service
US20110167182A1 (en) Transport prioritization based on message type
CN102739411A (en) Providing a witness service
US10349341B2 (en) Wireless network service type
US20150088995A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
US8942213B2 (en) Method and system for accessing storage devices
US20110105024A1 (en) Transport independent service discovery
JP2019525604A (en) Network function NF management method and NF management apparatus
CN113572864B (en) Data processing method, network element equipment and readable storage medium
CN102404616B (en) Method and system for pushing data cloud based on digital television network
EP4187878A1 (en) Service continuity event notification method and apparatus
US9485321B2 (en) Method and apparatus for brokering server and device communications and computer-readable storage medium for executing the method
CN107950005B (en) Service element host selection
WO2022116797A1 (en) Sim card selection method and apparatus, and terminal and storage medium
CN115604694B (en) Communication method, light equipment and readable storage medium based on WiFi-Aware protocol
CN116389323A (en) Throughput test method, device and storage medium
US20230283664A1 (en) Method for processing a data transport service
CN112383617A (en) Method, device, terminal equipment and medium for long connection

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