WO2023108628A1 - 通信方法、装置、设备、存储介质、芯片、产品及程序 - Google Patents

通信方法、装置、设备、存储介质、芯片、产品及程序 Download PDF

Info

Publication number
WO2023108628A1
WO2023108628A1 PCT/CN2021/139248 CN2021139248W WO2023108628A1 WO 2023108628 A1 WO2023108628 A1 WO 2023108628A1 CN 2021139248 W CN2021139248 W CN 2021139248W WO 2023108628 A1 WO2023108628 A1 WO 2023108628A1
Authority
WO
WIPO (PCT)
Prior art keywords
internet
information
service information
service
things
Prior art date
Application number
PCT/CN2021/139248
Other languages
English (en)
French (fr)
Inventor
张军
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN202180103839.6A priority Critical patent/CN118176756A/zh
Priority to PCT/CN2021/139248 priority patent/WO2023108628A1/zh
Publication of WO2023108628A1 publication Critical patent/WO2023108628A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Definitions

  • the embodiments of the present application relate to the technical field of mobile communication, and specifically relate to a communication method, device, equipment, storage medium, chip, product, and program.
  • IoT technology is widely used in all aspects of life.
  • Discovering IoT devices is a basic requirement in the IoT system. By discovering IoT devices and establishing connections with discovered IoT devices, devices can interact.
  • Embodiments of the present application provide a communication method, device, device, storage medium, chip, product, and program.
  • the embodiment of the present application provides a communication method, the method including:
  • the first device receives the release message sent by the second device;
  • the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame;
  • the first device establishes a connection with the second device based on the first Internet of Things service information.
  • an embodiment of the present application provides a communication method, the method including:
  • the second device sends a release message to the first device;
  • the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame;
  • the first Internet of Things service information is used for establishing a connection between the first device and the second device.
  • the embodiment of the present application provides a communication device, including:
  • a transceiver unit configured to receive a release message sent by the second device; the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame;
  • a connection unit configured to establish a connection with the second device based on the first Internet of Things service information.
  • the embodiment of the present application provides a communication device, including:
  • a transceiver unit configured to send a release message to the first device;
  • the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame;
  • the first Internet of Things service information is used for establishing a connection between the first device and the second device.
  • the embodiment of the present application provides a first device, including: a transceiver, a processor, and a memory, the memory stores a computer program, and when the computer program is executed by the processor, the processor passes The transceiver implements the method as described in the first aspect.
  • the embodiment of the present application provides a second device, including: a transceiver, a processor, and a memory, where the memory stores a computer program, and when the computer program is executed by the processor, the processor passes The transceiver implements the method described in the second aspect.
  • the embodiment of the present application provides a computer storage medium, the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, so as to realize the above-mentioned first Aspect or Second Aspect methods.
  • the embodiment of the present application provides a chip, including: a processor, configured to invoke and run a computer program from a memory, so as to implement the method of the first aspect or the second aspect above.
  • the embodiment of the present application provides a computer program product
  • the computer program product includes a computer storage medium
  • the computer storage medium stores a computer program
  • the computer program includes instructions executable by at least one processor, when When the instructions are executed by the at least one processor, the above method of the first aspect or the second aspect is implemented.
  • the embodiment of the present application provides a computer program, the computer program causes a computer to execute the method of the first aspect or the second aspect.
  • the first device receives a release message sent by the second device; the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame; the first device Establish a connection with the second device based on the first Internet of Things service information.
  • the first device since the first device establishes a connection with the second device based on the publishing message sent by the second device including or indicating the first Internet of Things service information, the connection between the first device and the second device can be easily established.
  • FIG. 1 is a schematic diagram of a cluster composed of multiple Internet of Things devices provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a communication method provided in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for discovering an IoT device by broadcasting a message provided by an embodiment of the present application
  • FIG. 4 is a schematic flowchart of another communication method provided by the embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a method for discovering an IoT device through a broadcast subscription message provided by an embodiment of the present application
  • FIG. 6 is a schematic diagram of the structural composition of a communication device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the structural composition of another communication device provided by the embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • the communication method in this embodiment of the present application may be applied to an Internet of Things (Internet of Things, IoT) system or a narrowband Internet of Things (Narrow Band Internet of Things, NB-IoT) system.
  • Internet of Things Internet of Things
  • NB-IoT narrowband Internet of Things
  • the first device or the second device in the embodiment of the present application may be called user equipment (User Equipment, UE), mobile station (Mobile Station, MS), mobile terminal (Mobile Terminal, MT), user unit , subscriber station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user device.
  • UE User Equipment
  • MS Mobile Station
  • MT Mobile Terminal
  • subscriber station mobile station
  • remote station remote terminal
  • mobile device user terminal
  • terminal wireless communication device
  • user agent wireless communication device
  • the first device or the second device may include one or a combination of at least two of the following: an Internet of Things (Internet of Things, IoT) device, a satellite terminal, a wireless local loop (Wireless Local Loop, WLL) station, a personal digital processing ( Personal Digital Assistant, PDA), handheld devices with wireless communication functions, computing devices or other processing devices connected to wireless modems, servers, mobile phones, tablet computers (Pad), computers with wireless transceiver functions, handheld computers , desktop computers, personal digital assistants, portable media players, smart speakers, navigation devices, smart watches, smart glasses, smart necklaces and other wearable devices, pedometers, digital TVs, virtual reality (Virtual Reality, VR) terminal equipment , Augmented Reality (AR) terminal equipment, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, smart grid ( Wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, and vehicles and vehicle-mounted devices in the Internet of Vehicles system , vehicle module, wireless mode
  • the first device may be a device that needs to discover an Internet of Things device or a device that needs to discover an Internet of Things device.
  • the first device may be a central control device such as a mobile phone, a TV, a speaker, or a smart home.
  • the second device may be a discovered IoT device, for example, the second device may be an air conditioner, a refrigerator, a sensor, or a camera.
  • system and “network” are often used interchangeably herein.
  • the term “and/or” in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
  • the character "/" in this article generally indicates that the contextual objects are an "or” relationship.
  • the "indication” mentioned in the embodiments of the present application may be a direct indication, may also be an indirect indication, and may also mean that there is an association relationship.
  • A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also indicate that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also indicate that there is an association between A and B relation.
  • the "correspondence" mentioned in the embodiments of the present application may mean that there is a direct correspondence or an indirect correspondence between the two, or that there is an association between the two, or that it indicates and is indicated. , configuration and configured relationship.
  • pre-defined may refer to defined in the protocol.
  • the "protocol” may refer to a standard protocol in the communication field, for example, it may include the LTE protocol, the NR protocol, and related protocols applied to future communication systems, which is not limited in this application .
  • Wi-Fi NAN Wireless-Fidelity Neighborhood Aware Network
  • Wi-Fi Aware is a proximity awareness developed by the Wi-Fi Alliance. A network standard that enables nearby device discovery without a Wi-Fi access point. Wi-Fi Aware exchanges information through "Publish (Publish)” and “Subscribe (Subscribe)” messages. Once devices and desired services are detected, the detecting device can send notification information to these detected devices.
  • FIG 1 is a schematic diagram of a cluster composed of multiple Internet of Things devices provided by the embodiment of the present application.
  • the cluster Cluster also known as a proximity-aware network.
  • Any IoT device can discover other IoT devices and/or be discovered by other IoT devices, so as to establish a connection between the any IoT device and other IoT devices.
  • IoT devices supporting the Matter standard can discover each other and establish a connection.
  • the first device and the second device in the Cluster may establish a connection based on the Matter standard or the Matter protocol.
  • the Matter protocol is an application layer protocol. Matter can use Wireless-Fidelity (Wi-Fi), Thread, Bluetooth (Bluetooth), Cellular, Ethernet, Ethernet, etc., Zigbee (Zigbee), Z-Wave as network layer/transport layer protocol communication protocols,
  • Wi-Fi Wireless-Fidelity
  • Thread Thread
  • Bluetooth Bluetooth
  • Cellular Cellular
  • Ethernet Ethernet
  • Ethernet etc.
  • Zigbee Zigbee
  • Z-Wave Z-Wave
  • the embodiment of this application does not limit the network layer/transport layer protocol corresponding to Matter.
  • at least two devices can join the Matter network through Bluetooth, Wi-Fi or Thread.
  • the NAN mechanism is a standard formulated by the Wi-Fi Alliance.
  • the devices of the NAN mechanism that is, NAN devices
  • DW Discovery Window
  • the sixth channel can be used as the discovery channel in the NAN mechanism.
  • the duration of the discovery window DW is fixed, and any The time interval between two adjacent DWs is also fixed.
  • the NAN mechanism generally has a DW in every 512 TU (time unit, time unit), and the duration of one TU is about 1024 ⁇ s, and the duration of the DW is generally 16TU, that is, in the NAN mechanism, generally every 496 TU Set up a DW.
  • one or more NAN devices form a cluster. When a Cluster enters the DW, it is composed of the master node (Master), the anchor master node (Anchor Master, AM) in the Cluster, and the master node responsible for synchronization.
  • Non-Master Synchronization, Non-Master Sync state and other NAN devices send a Sync Beacon frame (Sync Beacon) message, which carries the information of the AM in the Cluster, and is used to communicate with the NAN device that received the message
  • Sync Beacon Sync Beacon
  • the NAN devices in the cluster can send Service Discovery Frames (Service Discovery Frames, SDF) messages in the DW to perform service discovery.
  • SDF Service Discovery Frames
  • the NAN devices in the cluster can send discovery beacons ( discovery beacon) message to announce the existence of the cluster.
  • NAN device service discovery is as follows:
  • a device activates the NAN function (that is, after becoming a NAN device), it can set itself as an AM, create a Cluster, and set the Cluster identity of the Cluster based on its own Media Access Control (MAC) address (Identity, ID) value, set the Time Synchronization Function (Time Synchronization Function, TSF) to an integer multiple of 512TU.
  • MAC Media Access Control
  • ID Identity, ID
  • TSF Time Synchronization Function
  • Beacon frames ie, sync beacons, collectively referred to as Beacon frames hereinafter
  • Beacon frames sent by NAN devices from one or more other Clusters, it can determine whether it wants to join the other party's Cluster.
  • the Beacon frame it generally carries the information of the corresponding Cluster, which can be specifically the information of the AM in the corresponding Cluster, for example, it can include the anchor master node level (Anchor Master Rank, AMR), the master node level (Master Rank, MR) , Master Preference (MP), Anchor Master Preference (AMP), Random Factor (RF), Anchor Master Beacon Transmission Time (AMBTT), One or more of time synchronization function TSF, cluster identity (Cluster ID), and cluster grade (Cluster grade, CG).
  • Anchor Master Rank, AMR Anchor Master Rank
  • MP Master Preference
  • AMP Anchor Master Preference
  • RF Random Factor
  • AMBTT Anchor Master Beacon Transmission Time
  • TSF time synchronization function
  • cluster identity cluster ID
  • cluster grade Cluster grade
  • a NAN device can send the AM information of the Cluster it belongs to to other NAN devices by sending Beacon frames. Similarly, a NAN device can also receive Beacon frames sent by the NAN devices in its own Cluster or other Clusters.
  • a NAN device After a NAN device receives a Beacon frame, it can determine whether the Beacon frame is from a NAN device in the Cluster to which it belongs or from a NAN device in another Cluster. Whether the value of the cluster level CG in the Beacon frame is greater than the value of its own cluster level CG, if it is greater, the NAN device will join the Cluster corresponding to the received Beacon frame, otherwise, the NAN device will not process it. This completes the aggregation of the NAN devices, that is, the NAN devices will join the Cluster with a higher value of the cluster level CG (for example, the value of the cluster level CG is the highest).
  • the NAN device After synchronization, when the DW of the joined Cluster arrives, the NAN device sends an SDF message in the DW for service discovery.
  • the SDF message may carry, for example, the service corresponding to the service that the NAN device can provide Publish (Service Publish) information, after receiving the SDF message sent by the NAN device, other NAN devices can reply the SDF message to the NAN device in the DW if it is determined that the SDF message is satisfied, that is, service matching can be performed.
  • Publish Service Publish
  • the NAN device may also receive SDF messages sent by other NAN devices for service discovery. If the NAN device determines that the received SDF message is satisfied, the NAN device will also be in the DW. Reply the SDF message to the corresponding NAN device.
  • Anchor master node level AMR generally the maximum value is 8 bytes (byte), which is the value of MR of AM.
  • the master node level MR generally the maximum value is 8 bytes, which is calculated based on the MP value, RF value and the MAC address of the NAN device, indicating that the NAN device wants to be the master.
  • MR can also be regarded as another expression form of MP.
  • Master node priority MP generally the maximum value is 1 byte, indicating the willingness of the NAN device to be the master. The larger the value of MP, the higher the willingness of the NAN device to be the master.
  • the anchor master node priority AMP generally the maximum value is 1 byte, which is the value of the MP of the AM.
  • the random factor RF generally the maximum value is 1 byte, is a random number selected by the NAN device.
  • the anchor master node signal transmission time AMBTT generally the maximum value is 4 bytes, indicating the sending time of the Beacon frame of AM.
  • the NAN device sending the Beacon frame will carry the AMBTT, which is used for other NAN devices to synchronize with the time of the AM corresponding to the AMBTT.
  • the time synchronization function TSF indicates the synchronization function of the NAN device, so that the timer (timer) of the NAN device that receives the TSF is synchronized with the time of the AM corresponding to the NAN device that sent the TSF .
  • TSF can also represent time information.
  • the cluster identity identifier, Cluster ID generally has a maximum value of 6 bytes, and it is carried in the field of Address (address) 3 in the Beacon frame.
  • the cluster level CG generally has a maximum value of 8 bytes, indicating the level of the Cluster, and is used for comparison between different Clusters when merging.
  • the Cluster with a smaller CG value is merged into the Cluster with a larger CG value.
  • SDF message is an Action Frame specially defined for service discovery. According to different functions, SDF message can be roughly divided into three types: SDF publishes Publish message, SDF subscribes to Subscribe message, and SDF replies to Follow-Up message. Generally speaking, an indication bit is included in the SDF message, which is used to indicate what kind of SDF message the SDF message is.
  • SDF Publish message used to publish the services that the NAN device can provide, or to reply to the received SDF Subscribe message sent by other NAN devices;
  • SDF Subscribe message used to find the service to be used
  • SDF follow-Up message used to reply to the received SDF Publish message, or to negotiate more information.
  • Both the first IoT service information and the second IoT service information in this embodiment of the application can support Matter, so that the first device can send the first IoT service information that includes or indicates the logo or name of the Matter protocol according to the second device. Information, establish a connection based on the Matter protocol with the second device.
  • connection based on Matter protocol may include one of the following: Bluetooth connection based on Matter protocol, Wi-Fi connection based on Matter protocol, Thread connection based on Matter protocol, Cellular connection based on Matter protocol, Ethernet connection based on the Matter protocol, Ethernet connection based on the Matter protocol, other network layer/transport layer protocol connections based on the Matter protocol, etc.
  • This application does not limit the network layer/transport layer protocol corresponding to the Matter protocol, as long as a connection based on the Matter protocol can be established between the first device and the second device.
  • the Matter Internet of Things standard is a smart home connection standard based on the Internet Protocol (IP) developed by the Connectivity Standards Alliance (CSA), which solves the problems of compatibility, security and connectivity in the smart home market. .
  • IP Internet Protocol
  • CSA Connectivity Standards Alliance
  • the device discovery currently adopted by the Matter standard is based on multicast domain name system (multicast Domain Name System, mDNS), which is also called multicast domain name system/domain name system service discovery (DNS Service Discovery, DNS-SD). It obtains the Matter device and its service information through the domain name system-based mDNS/DNS-SD query.
  • mDNS multicast Domain Name System
  • DNS-SD multicast Domain Name System/domain name system service discovery
  • the Matter device mDNS record includes Matter-related mDNS service (SRV), pointer (PTR) and text (TXT) records and other information.
  • SRV records are resource records that can be used to specify information about services available in a domain.
  • the name field can be used to indicate the identification information of the service, such as the name of the service, the protocol used by the service (such as the Universal Datagram Protocol (User Datagram Protocol, UDP) or Transmission Control Protocol (Transmission Control Protocol, TCP)) .
  • UDP Universal Datagram Protocol
  • TCP Transmission Control Protocol
  • a PTR record is a resource record used to point to a location in the domain name space.
  • the RDATA field can be used to store the pointed location.
  • TXT records can be used to hold descriptive text.
  • descriptive text can be included in the RDATA field.
  • Matter device discovery mechanism requires IoT devices to support IP. IoT devices that do not support IP cannot perform Matter device discovery. In addition, Matter device discovery needs to create and maintain Matter-related mDNS/DNS-SD SRV, PTR, and TXT records. For IoT devices with low power consumption, limited storage and computing resources, there is a possibility that the device discovery mechanism based on mDNS/DNS-SD cannot be afforded.
  • the Internet of Things service information is indicated through the SDF message, so that the discovery of the Matter device can be realized through the SDF message, and then the connection between the Matter devices can be realized.
  • the embodiment of the present application uses the SDF Publish message or the SDF Subscribe message in the SDF message to describe the communication method in the embodiment of the present application.
  • the first device and/or the second device in the embodiment of the present application may be the aforementioned IoT device, NAN device or Matter device.
  • Fig. 2 is a schematic flowchart of a communication method provided by an embodiment of the present application, the method may be applied to a first device or a processor of the first device, and the method includes:
  • the first device receives a release message sent by the second device; the release message includes or indicates first Internet of Things service information, and the release message is a Proximity Aware Network Service Discovery Frame (NAN SDF).
  • NAN SDF Proximity Aware Network Service Discovery Frame
  • the first device and/or the second device may not only be a discovered IoT device, but may also be a discovered IoT device.
  • the first device is a discovered IoT device
  • the second device is a discovered IoT device for illustration.
  • the discovered IoT device can broadcast a release message, and the published message broadcast by each discovered IoT device includes or indicates the IoT service information, which can be the IoT service information supported by each discovered IoT device. Internet service information.
  • the Publish (Pulish) message in the embodiment of the present application may also be referred to as an SDF Push message or a NAN SDF Push message in other embodiments.
  • the message type of the published message may be a proximity-aware network service discovery frame (NAN SDF).
  • the publish message may be sent once within the DW. In other embodiments, the publish message can be sent multiple times within the DW. In yet other embodiments, a publish message may be sent once within multiple DWs. For example, publish messages can be sent every multiple DWs.
  • the first IoT service information may include one or more IoT service information.
  • the first Internet of Things service information may be service information that can be provided by the second device.
  • the one or more pieces of service information included in the first Internet of Things service information may be all service information that the second device can support.
  • one or more service information included in the first Internet of Things service information may include service information 1, service information 2 and service information3.
  • the one or more pieces of service information included in the first Internet of Things service information may be part of all service information supported by the second device.
  • one or more service information included in the first Internet of Things service information may include service information 1.
  • the second device may determine to send service information 1 among service information 1, service information 2, and service information 3 according to configuration information generated by the user's configuration of the second device or received configuration information sent by other devices.
  • the configuration information may indicate that service information 1 is information that can be sent out, and/or that service information 2 and service information 3 are information that cannot be sent out.
  • a piece of IoT service information may be service information corresponding to the communication standard of the IoT.
  • a certain IoT service information may include at least one of the following information: service information corresponding to Matter, service information corresponding to Bluetooth, service information corresponding to Wi-Fi, service information corresponding to Zigbee, service information corresponding to Z- Service information corresponding to Wave and service information corresponding to Cellular.
  • Cellular includes Narrow Band-Internet of Things (NB-IOT) or Long-Term Evolution Internet of Things (LTE-Machine to Machine, LTE-M).
  • a certain Internet of Things service information may include: service information corresponding to Matter and service information corresponding to Bluetooth, so that when both the first device and the second device support Matter and Bluetooth, a Bluetooth protocol based on Matter can be established. connect.
  • a certain Internet of Things service information may include: service information corresponding to Matter, so that when both the first device and the second device support Matter, a connection based on the Matter protocol can be established; the network layer protocol corresponding to the Matter protocol Can be pre-configured.
  • a piece of IoT service information may be service information corresponding to a service type.
  • certain IoT service information may include one of the following: service information corresponding to temperature monitoring, service information corresponding to humidity monitoring, and so on.
  • the first device establishes a connection with the second device based on the first Internet of Things service information.
  • S202 may include: when the first device determines that the first device supports a service corresponding to the first Internet of Things service information, A connection is established with the second device.
  • the connection established between the first device and the second device may be a connection corresponding to the first Internet of Things service information.
  • the connection established between the first device and the second device may be a connection based on the Matter protocol, a Wi-Fi connection, or a Zigbee connection. In this way, the first device can transmit Matter information, Wi-Fi information, or Zigbee information and the like between the second device.
  • the connection established between the first device and the second device may be a connection corresponding to temperature monitoring or a connection corresponding to humidity monitoring. In this way, the first device can receive temperature information or humidity information, etc. sent by the second device.
  • S202 may include: the first device may determine at least one IoT supported by the first device from the multiple IoT service information. Internet service information, and establish a connection with the second device based on at least one supported Internet of Things service information.
  • the connection established between the first device and the second device may be a connection corresponding to at least one piece of Internet of Things service information.
  • the connection established between the first device and the second device may be a connection based on the Matter protocol and/or a Bluetooth connection.
  • the connection that can be established between the first device and the second device can be a Wi-Fi connection and/or Bluetooth connection based on the Matter protocol, or the connection that can be established between the first device and the second device can be based on the Matter protocol Bluetooth connection.
  • the connection established between the first device and the second device may be a connection based on the Matter protocol and a connection corresponding to temperature monitoring. In this way, temperature information can be sent between the first device and the second device based on the Matter protocol.
  • the first device receives a release message sent by the second device; the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame; the first device Establish a connection with the second device based on the first Internet of Things service information.
  • the first device since the first device establishes a connection with the second device based on the publishing message sent by the second device including or indicating the first Internet of Things service information, the connection between the first device and the second device can be easily established.
  • the release message is broadcast by the second device.
  • the first Internet of Things service information included or indicated by different release messages may be different.
  • the second device may issue a message when it determines that the services that the second device can currently broadcast or spread to the outside world increase, decrease or change based on the configuration information generated by the user's settings or the configuration information received from other devices.
  • the included or indicated first Internet of Things service information will also be changed accordingly.
  • the first Internet of Things service information included or indicated in the release message includes service information 1, service information 2, and service information 3.
  • the configuration information is obtained at time t, and the configuration information indicates that the service information that can be broadcast or disseminated includes service information 1 and service information 2, or if the configuration information indicates that the broadcast or dissemination of service information 3 is stopped, after time t , the first Internet of Things service information included or indicated in the release message includes service information 1 and service information 2 .
  • the method before the first device receives the publishing message sent by the second device, the method further includes: the first device subscribes to at least one first service; each of the first services includes or an indicator Internet service information; wherein, the at least one first service includes or indicates Internet of Things service information, including part or all of the first Internet of Things service information.
  • both the first device and the second device have services corresponding to part or all of the first Internet of Things service information, so that the first device and the second device can establish part or all of the first Internet of Things service information
  • the corresponding service connection For example, part or all of the first Internet of Things service information includes the identifier or name of the Matter protocol, then the first device and the second device may establish a connection based on the Matter protocol.
  • the IoT service information included or indicated by the at least one first service may include the second IoT service information.
  • the subscription message broadcast by the first device includes or indicates the second Internet of Things service information, which is selected from the Internet of Things service information included or indicated by at least one first service subscribed by the first device.
  • the Internet of Things service information included or indicated by each of the first services may be service information corresponding to an Internet of Things communication standard. In some other embodiments, the Internet of Things service information included or indicated by each of the first services may be service information corresponding to a service type.
  • the first Internet of Things service information includes or indicates an identifier or a name of the Matter protocol.
  • the first IoT service information in the release message broadcast by the second device includes or indicates the logo or name of the Matter protocol, and the first device supports the Matter service, for example, at least one first IoT service subscribed by the first device
  • the service includes or indicates Internet of Things service information, and also includes or indicates the logo or name of the Matter protocol.
  • both the first device and the second device support the Matter service, and the first device can establish a connection with the second device based on the Matter protocol.
  • the third device receives the Internet of Things service information broadcast by the second device indicating the identification or name of the Zigbee and/or Matter protocol, and the third device also supports Zigbee and/or Matter services, the third device A Zigbee connection, and/or a Zigbee or other network layer protocol connection based on the Matter protocol may be established with the second device.
  • the first IoT service information includes one or more IoT service information; each IoT service information in the one or more IoT service information includes at least one of the following information: Networking service logo, IoT service name.
  • the IoT service identifier may be in one-to-one correspondence with the IoT service name. In this way, different IoT service identifiers can correspond to different IoT service names.
  • the IoT service identifier and/or the IoT service name may be predefined or stipulated by a protocol.
  • the bit lengths occupied by different IoT service identifiers and/or different IoT service names may be the same or different.
  • the IoT service identifier may include information of a preset number of bits.
  • the preset number of bits may include 4, 8, 16, 32 or 64 and so on.
  • the IoT service identifier can be represented by a two-digit hexadecimal number.
  • the IoT service identifier may include 0x11, 0x01, or 0x12, etc.
  • the release message includes first proximity-aware network attribute information; and the first proximity-aware network attribute information includes the first Internet of Things service information.
  • Proximity-aware network attribute information (also called NAN attribute, such as the first proximity-aware network attribute information and/or the second proximity-aware network attribute information described below) may be called proximity-aware network attribute or proximity-aware network attribute information in other embodiments. attribute field.
  • the first proximity-aware network attribute information may include a piece of attribute information, and the piece of attribute information may include first Internet of Things service information.
  • the first Internet of Things service information includes one or more Internet of Things service information
  • one attribute information may include one or more Internet of Things service information.
  • the first proximity-aware network attribute information may include a plurality of attribute information, and each attribute information in the plurality of attribute information includes a piece of Internet of Things service information.
  • a plurality of attribute information may be in one-to-one correspondence with a plurality of Internet of Things service information.
  • the size of the payload or the number of bits corresponding to the first Internet of Things service information is not fixed, for example, it can be determined according to at least one of the following: the size of the payload or the number of bits corresponding to the Internet of Things service identifier in the first Internet of Things service information, the second A payload size or number of bits corresponding to the IoT service name in the IoT service information.
  • the first proximity-aware network attribute information further includes at least one of the following information: first attribute identifier, first length information;
  • the first attribute identifier is used to identify the type of the first proximity-aware network attribute information; the first length information is used to indicate the Internet of Things service identifier and/or the Internet of Things service identifier in the first Internet of Things service information Length information of the service name.
  • the first attribute identifier and the first length information may respectively have a specified size.
  • the payload size or the number of bits corresponding to the first attribute identifier and the first length information is preset or stipulated by the protocol.
  • the first attribute identifier may be 1 octet
  • the first length information may be 2 octets.
  • the first IoT service information includes one or more IoT service information, and the one or more IoT service information includes target IoT service information;
  • the first device establishes a connection with the second device based on the first Internet of Things service information, including:
  • the first device If the first device supports the target service corresponding to the target Internet of Things service information, the first device establishes a target service connection with the second device.
  • the target IoT service information may include at least one IoT service information.
  • the target IoT service information may be included in the IoT service information supported by the first device.
  • the first device and the second device are devices in the same Wi-Fi Aware cluster. In this way, each NAN device in the cluster can perform service discovery in the DW to discover other NAN devices that can perform NAN-based intelligent management with it.
  • the communication method in the embodiment corresponding to FIG. 2 is described below by taking the second device or the processor of the second device as an execution subject. Wherein, for descriptions that are the same as or corresponding to the first device or the processor side of the first device, please refer to the description of the first device or the processor side of the first device for understanding.
  • the communication methods include:
  • the second device sends a release message to the first device;
  • the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame;
  • the first Internet of Things service information is used for establishing a connection between the first device and the second device.
  • the release message is broadcast by the second device.
  • the method before the second device sends the release message to the first device, the method further includes: the second device publishes at least one second service; each of the second services includes or indicates the Internet of Things Service information; wherein, the at least one second service includes or indicates Internet of Things service information, including the first Internet of Things service information.
  • the Internet of Things service information included or indicated by each second service may be service information corresponding to an Internet of Things standard. In some other embodiments, the Internet of Things service information included or indicated by each second service may be service information corresponding to a service type.
  • the publish message broadcast by the second device includes or indicates the first Internet of Things service information, and may be determined from the Internet of Things service information included or indicated by at least one second service.
  • the Internet of Things service information included or indicated by at least one second service includes service information 1, service information 2, and service information 3
  • the release message broadcast by the second device includes or indicates that the first Internet of Things service information may include service information 1, service information 2, and service information 3.
  • Service Information 2 and Service Information 3 may include service information 1, service information 2, service information 3, service information 4, and so on.
  • the at least one second service published by the second device may be all services supported by the second device.
  • the release message broadcast by the second device includes or indicates the first IoT service information, including service information 1, service information 2 and service information 3.
  • the at least one second service released by the second device may be a part of all services supported by the second device.
  • the release message broadcast by the second device includes or indicates the first IoT service information, including service information 1, service information 2 and service information 3.
  • Service 4 may be a service that is determined by the second device through configuration information to stop sending out.
  • the first IoT service information includes one or more IoT service information; each IoT service information in the one or more IoT service information includes at least one of the following information: Networking service logo, IoT service name.
  • the first Internet of Things service information includes or indicates an identifier or a name of the Matter protocol.
  • the release message includes first proximity-aware network attribute information; and the first proximity-aware network attribute information includes the first Internet of Things service information.
  • the first proximity-aware network attribute information further includes at least one of the following information: first attribute identifier, first length information;
  • the first attribute identifier is used to identify the type of the first proximity-aware network attribute information; the first length information is used to indicate the Internet of Things service identifier and/or the Internet of Things service identifier in the first Internet of Things service information Length information of the service name.
  • the first IoT service information includes one or more IoT service information, and the one or more IoT service information includes target IoT service information;
  • Both the first device and the second device support the target service corresponding to the target Internet of Things service information; the connection established between the first device and the second device is the target service connection.
  • the target service connection may be a connection based on the Matter protocol.
  • the first device and the second device are devices in the same Wi-Fi Aware cluster.
  • Fig. 3 is a schematic flowchart of a method for discovering an IoT device by broadcasting a message provided by an embodiment of the present application. As shown in Fig. 3 , the method includes:
  • the first device and the second device join or form a Wi-Fi Aware Cluster.
  • the first device subscribes to a service.
  • the first device may subscribe to at least one first service; each of the first services includes or indicates Internet of Things service information.
  • the IoT service information includes one or more of the following information: IoT service identifier, IoT service name.
  • IoT service ID is 0x11 and the IoT service name is Matter.
  • the second device publishes a service.
  • the second device may issue at least one second service; each of the second services includes or indicates Internet of Things service information.
  • the IoT service information includes one or more of the following information: IoT service identifier, IoT service name.
  • the IoT service ID is 0x11 and the IoT service name is Matter.
  • S302 and S303 there is no order requirement for S302 and S303, and the order of S302 and S303 can be exchanged, that is, S303 can also be performed before S302.
  • the second device broadcasts a release message, where the release message includes or indicates the first Internet of Things service information.
  • the first Internet of Things service information may include one or more of the following information: an Internet of Things service identifier, and an Internet of Things service name.
  • the embodiment of the present application carries the Internet of Things service information by publishing the proximity-aware network attribute of the message (that is, the above-mentioned first proximity-aware network attribute information).
  • the first proximity-aware network attribute information is shown in Table 1:
  • the attribute identification field can be used to identify the type of the attribute information of the first proximity-aware network, and the size is 1 byte.
  • the length field can provide length information of the Internet of Things service, and the size is 2 bytes.
  • the Internet of Things service information field can be Used to indicate the first Internet of Things service information, the size is not fixed, the first Internet of Things service information can be one byte or multiple bytes, and the first Internet of Things service information includes one or more of the following information: Internet of Things service identifier , IoT service name.
  • the IoT service ID is 0x11 and the IoT service name is Matter.
  • the first device discovers the Internet of Things service through the attribute information of the first proximity-aware network in the release message.
  • Certain IoT service information in the first IoT service information may be known to both the first device and the second device, so the first device may discover the second device and the IoT service corresponding to the IoT service information.
  • discovering the IoT service by publishing the first proximity-aware network attribute information in the message may be discovering the IoT service by using the first proximity-aware network attribute information in the first Internet of Things service information.
  • the first device and the second device establish a connection for the Internet of Things service.
  • the first device and the second device establish a connection based on the Matter protocol to perform data transmission.
  • Fig. 4 is a schematic flow chart of another communication method provided by the embodiment of the present application, the method may be applied to the first device or the processor of the first device, and the method includes:
  • the first device broadcasts a subscription message; the subscription message includes or indicates information about a second Internet of Things service, and the subscription message is a Proximity Aware Network Service Discovery Frame (NAN SDF); wherein, the second Internet of Things service
  • NAN SDF Proximity Aware Network Service Discovery Frame
  • the information includes the first Internet of Things service information.
  • the Subscribe message in this embodiment of the present application may also be called an SDF Subscribe message or a NAN SDF Subscribe message in other embodiments.
  • the message type of the subscription message can be NAN SDF.
  • the SUBSCRIBE message may be sent once within the DW. In some other embodiments, the subscription message can be sent multiple times within the DW. In some embodiments, the subscription message can be sent once in multiple DWs. For example, a subscription message can be sent every multiple DWs.
  • the second Internet of Things service information may include one or more Internet of Things service information.
  • the second Internet of Things service information may be service information that can be provided by the first device.
  • the one or more pieces of service information included in the second Internet of Things service information may be all service information that the first device can support.
  • one or more service information included in the second Internet of Things service information may include service information 1, service information 2 and service information3.
  • the one or more pieces of service information included in the second Internet of Things service information may be part of all service information supported by the first device.
  • one or more service information included in the second Internet of Things service information may include service information 1.
  • the first device may determine to send service information 1 among service information 1, service information 2, and service information 3 according to configuration information generated by the user's configuration of the first device or received configuration information sent by other devices.
  • the configuration information may indicate that service information 1 is information that can be sent out, and/or that service information 2 and service information 3 are information that cannot be sent out.
  • the number of IoT service information included in the second IoT service information may be the same as the number of IoT service information included in the first IoT service information. In this way, the IoT service information included in the second IoT service information is the same as the IoT service information included in the first IoT service information.
  • the IoT service information included in the second IoT service information is Matter
  • the IoT service information included in the first IoT service information is also Matter.
  • the first device receives a release message sent by the second device; the release message includes or indicates the first Internet of Things service information.
  • the release message is unicast by the second device to the first device, that is, the first device receives the release message sent by the second device through unicast.
  • the publishing message includes or indicates the first Internet of Things service information
  • the publishing message is a proximity-aware network service discovery frame.
  • the first device establishes a connection with the second device based on the first Internet of Things service information.
  • the method before the first device receives the release message sent by the second device, the method further includes:
  • the first device subscribes to at least one first service; each of the first services includes or indicates Internet of Things service information; wherein, the at least one first service includes or indicates Internet of Things service information, including the second IoT service information.
  • the first IoT service information includes one or more IoT service information; each IoT service information in the one or more IoT service information includes at least one of the following information: Networking service logo, IoT service name.
  • the first Internet of Things service information includes or indicates an identifier or a name of the Matter protocol.
  • the release message includes first proximity-aware network attribute information; and the first proximity-aware network attribute information includes the first Internet of Things service information.
  • the first proximity-aware network attribute information further includes at least one of the following information: first attribute identifier, first length information;
  • the first attribute identifier is used to identify the type of the first proximity-aware network attribute information; the first length information is used to indicate the IoT service identifier and/or the IoT service name in the first IoT service information length information.
  • the subscription message includes second proximity-aware network attribute information; the second proximity-aware network attribute information includes the second Internet of Things service information.
  • the second proximity-aware network attribute information may include attribute information, and the attribute information may include second Internet of Things service information.
  • the piece of attribute information may include one or more Internet of Things service information.
  • the second proximity-aware network attribute information may include a plurality of attribute information, and each attribute information in the plurality of attribute information includes a piece of Internet of Things service information.
  • a plurality of attribute information may be in one-to-one correspondence with a plurality of Internet of Things service information.
  • the size of the payload or the number of bits corresponding to the second Internet of Things service information is not fixed, for example, it can be determined according to at least one of the following: the size of the payload or the number of bits corresponding to the Internet of Things service identifier in the second Internet of Things service information, the first 2.
  • the payload size or number of bits corresponding to the IoT service name in the IoT service information is not fixed, for example, it can be determined according to at least one of the following: the size of the payload or the number of bits corresponding to the Internet of Things service identifier in the second Internet of Things service information, the first 2.
  • the payload size or number of bits corresponding to the IoT service name in the IoT service information is not fixed, for example, it can be determined according to at least one of the following: the size of the payload or the number of bits corresponding to the Internet of Things service identifier in the second Internet of Things service information, the first 2.
  • the second proximity-aware network attribute information further includes at least one of the following information: a second attribute identifier, and second length information;
  • the second attribute identifier is used to identify the type of the second proximity-aware network attribute information; the second length information is used to indicate the Internet of Things service identifier and/or the Internet of Things service identifier in the second Internet of Things service information Length information of the service name.
  • the second attribute identifier and the second length information may respectively have a specified size.
  • the payload size or the number of bits corresponding to the second attribute identifier and the second length information is preset or stipulated by the protocol.
  • the second attribute identifier may be 1 octet
  • the second length information may be 2 octets.
  • the first IoT service information includes one or more IoT service information, and the one or more IoT service information includes target IoT service information;
  • the first device establishes a connection with the second device based on the first Internet of Things service information, including:
  • the first device If the first device supports the target service corresponding to the target Internet of Things service information, the first device establishes a target service connection with the second device.
  • the first device and the second device are devices in the same Wi-Fi Aware cluster.
  • the communication method in the embodiment corresponding to FIG. 4 is described below by using the second device or the processor of the second device as an execution subject. Wherein, for descriptions that are the same as or corresponding to the first device or the processor side of the first device, please refer to the description of the first device or the processor side of the first device for understanding.
  • the communication methods include:
  • the second device sends a release message to the first device;
  • the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame;
  • the first Internet of Things service information is used for establishing a connection between the first device and the second device.
  • the method before the second device sends the release message to the first device, the method further includes:
  • the second device receives a subscription message broadcast by the first device; the subscription message includes or indicates second Internet of Things service information, and the subscription message is a proximity-aware network service discovery frame (NAN SDF); wherein, the The second Internet of Things service information includes the first Internet of Things service information.
  • NAN SDF proximity-aware network service discovery frame
  • the publishing message is unicast by the second device to the first device.
  • the method before the second device sends the release message to the first device, the method further includes:
  • the second device publishes at least one second service; each of the second services includes or indicates Internet of Things service information; wherein, the at least one second service includes or indicates Internet of Things service information, including the first IoT service information.
  • the first IoT service information includes one or more IoT service information; each IoT service information in the one or more IoT service information includes at least one of the following information: Networking service logo, IoT service name.
  • the first Internet of Things service information includes or indicates an identifier or a name of the Matter protocol.
  • the release message includes first proximity-aware network attribute information; and the first proximity-aware network attribute information includes the first Internet of Things service information.
  • the first proximity-aware network attribute information further includes at least one of the following information: first attribute identifier, first length information;
  • the first attribute identifier is used to identify the type of the first proximity-aware network attribute information; the first length information is used to indicate the Internet of Things service identifier and/or the Internet of Things service identifier in the first Internet of Things service information Length information of the service name.
  • the subscription message includes second proximity-aware network attribute information; the second proximity-aware network attribute information includes the second Internet of Things service information.
  • the second proximity-aware network attribute information further includes at least one of the following information: a second attribute identifier, and second length information;
  • the second attribute identifier is used to identify the type of the second proximity-aware network attribute information; the second length information is used to indicate the Internet of Things service identifier and/or the Internet of Things service identifier in the second Internet of Things service information Length information of the service name.
  • the first IoT service information includes one or more IoT service information, and the one or more IoT service information includes target IoT service information;
  • Both the first device and the second device support the target service corresponding to the target Internet of Things service information; the connection established between the first device and the second device is the target service connection.
  • the first device and the second device are devices in the same Wi-Fi Aware cluster.
  • FIG. 5 is a schematic flowchart of a method for discovering an IoT device through a broadcast subscription message provided by an embodiment of the present application. As shown in FIG. 5 , the method includes:
  • the first device and the second device join or form a Wi-Fi Aware Cluster.
  • the first device subscribes to a service.
  • the first device may subscribe to at least one first service; each of the first services includes or indicates Internet of Things service information.
  • the IoT service information includes one or more of the following information: IoT service identifier, IoT service name.
  • IoT service ID is 0x11
  • IoT service name is Matter.
  • the second device publishes a service.
  • the second device may publish at least one second service; each of the second services includes or indicates Internet of Things service information.
  • the IoT service information includes one or more of the following information: IoT service identifier, IoT service name.
  • the IoT service ID is 0x11 and the IoT service name is Matter.
  • S502 and S503 there is no order requirement for S502 and S503, and the order of S502 and S503 can be exchanged, that is, S503 can also be performed before S502.
  • the first device broadcasts a subscription message, where the subscription message includes or indicates the second Internet of Things service information.
  • the second Internet of Things service information may include one or more of the following information: an Internet of Things service identifier, and an Internet of Things service name.
  • the Internet of Things service information is carried through the proximity-aware network attribute (that is, the above-mentioned second proximity-aware network attribute information) of the subscription message.
  • the proximity-aware network attribute information that is, the above-mentioned second proximity-aware network attribute information.
  • Table 2 For an example of the second proximity-aware network attribute information, see Table 2:
  • the attribute identification field is used to identify the type of the attribute information of the second proximity-aware network, and the size is 1 byte.
  • the length field provides the length information of the Internet of Things service, and the size is 2 bytes.
  • the Internet of Things service information field is used to indicate The second Internet of Things service information is not fixed in size and can be one byte or multiple bytes, including one or more of the following information: Internet of Things service identifier, Internet of Things service name.
  • the IoT service ID is 0x11 and the IoT service name is Matter.
  • the second device After receiving the subscription message, the second device sends a release message in response, and the release message includes or indicates the first Internet of Things service information.
  • the publishing message in S505 is a unicast message.
  • the first Internet of Things service information may include one or more of the following information: an Internet of Things service identifier, and an Internet of Things service name.
  • the Internet of Things service information is carried by publishing the first proximity-aware network attribute information of the message.
  • first proximity-aware network attribute information see Table 3:
  • Attribute ID 1 Identify the type of the first proximity-aware network attribute information length 2 Length information of the IoT Service ID IoT service information not fixed IoT service logo
  • the attribute identification field is used to identify the type of the attribute information of the first proximity-aware network, and the size is 1 byte.
  • the length field provides the length information of the Internet of Things service, and the size is 2 bytes.
  • the Internet of Things service information field is used to indicate The first Internet of Things service information is not fixed in size and can be one or more bytes, including one or more of the following information: Internet of Things service identifier, Internet of Things service name.
  • the IoT service ID is 0x11 and the IoT service name is Matter.
  • the first device discovers the Internet of Things service through the attribute information of the first proximity-aware network in the release message.
  • Certain IoT service information in the first IoT service information may be known to both the first device and the second device, so the first device may discover the second device and the IoT service corresponding to the IoT service information.
  • the first device and the second device establish a connection for the Internet of Things service.
  • the first device and the second device establish a connection based on the Matter protocol to perform data transmission.
  • the communication method provided by the embodiment of the present application does not require the Internet of Things device to support IP, and reduces the resource requirements of the Internet of Things device discovery process for the Internet of Things device, thereby improving the universality of discovering the Internet of Things device.
  • sequence numbers of the above-mentioned processes do not mean the order of execution, and the order of execution of the processes should be determined by their functions and internal logic, and should not be used in this application.
  • the implementation of the examples constitutes no limitation.
  • the terms “downlink”, “uplink” and “sidelink” are used to indicate the transmission direction of signals or data, wherein “downlink” is used to indicate that the transmission direction of signals or data is sent from the station The first direction to the user equipment in the cell, “uplink” is used to indicate that the signal or data transmission direction is the second direction sent from the user equipment in the cell to the station, and “side line” is used to indicate that the signal or data transmission direction is A third direction sent from UE1 to UE2.
  • “downlink signal” indicates that the transmission direction of the signal is the first direction.
  • the term “and/or” is only an association relationship describing associated objects, indicating that there may be three relationships. Specifically, A and/or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or” relationship.
  • FIG. 6 is a schematic diagram of the structure and composition of a communication device provided in the embodiment of the present application, which is applied to the first device.
  • the communication device 600 includes:
  • the transceiver unit 601 is configured to receive a release message sent by the second device; the release message includes or indicates the first Internet of Things service information, and the release message is a proximity-aware network service discovery frame;
  • the connecting unit 602 is configured to establish a connection with the second device based on the first Internet of Things service information.
  • the release message is broadcast by the second device.
  • the transceiver unit 601 is further configured to broadcast a subscription message; the subscription message includes or indicates information of a second Internet of Things service, and the subscription message is a discovery frame of a proximity-aware network service; wherein, the second thing The networking service information includes the first IoT service information.
  • the publishing message is unicast by the second device to the first device.
  • the communication device further includes a subscription unit 603, and the subscription unit 603 is configured to: subscribe to at least one first service; each of the first services includes or indicates Internet of Things service information; wherein, the at least one first The Internet of Things service information included or indicated by the service includes part or all of the first Internet of Things service information.
  • the first IoT service information includes one or more IoT service information; each IoT service information in the one or more IoT service information includes at least one of the following information: Networking service logo, IoT service name.
  • the first Internet of Things service information includes or indicates an identifier or a name of the Matter protocol.
  • the release message includes first proximity-aware network attribute information; and the first proximity-aware network attribute information includes the first Internet of Things service information.
  • the first proximity-aware network attribute information further includes at least one of the following information: a first attribute identifier, and first length information; wherein, the first attribute identifier is used to identify the first proximity-aware The type of network attribute information; the first length information is used to indicate the length information of the IoT service identifier and/or the IoT service name in the first IoT service information.
  • the subscription message includes second proximity-aware network attribute information; the second proximity-aware network attribute information includes the second Internet of Things service information.
  • the second proximity-aware network attribute information further includes at least one of the following information: a second attribute identifier, and second length information; wherein, the second attribute identifier is used to identify the second proximity-aware The type of network attribute information; the second length information is used to indicate the length information of the IoT service identifier and/or the IoT service name in the second IoT service information.
  • the first IoT service information includes one or more IoT service information, and the one or more IoT service information includes target IoT service information;
  • the connecting unit 602 is further configured to establish a target service connection with the second device when the first device supports the target service corresponding to the target Internet of Things service information.
  • the first device and the second device are devices in the same Wi-Fi aware cluster.
  • FIG. 7 is a schematic diagram of the structure and composition of another communication device provided in the embodiment of the present application, which is applied to the second device. As shown in FIG. 7, the communication device 700 includes:
  • the transceiver unit 701 is configured to send a release message to the first device; the release message includes or indicates the first Internet of Things service information, and the release message is a discovery frame of a proximity-aware network service;
  • the first Internet of Things service information is used for establishing a connection between the first device and the second device.
  • the release message is broadcast by the second device.
  • the transceiving unit 701 is further configured to receive a subscription message broadcast by the first device; the subscription message includes or indicates the second Internet of Things service information, and the subscription message is a proximity-aware network service discovery frame; Wherein, the second Internet of Things service information includes the first Internet of Things service information.
  • the publishing message is unicast by the second device to the first device.
  • the communication device further includes a publishing unit 702, and the publishing unit 702 is configured to: publish at least one second service; each of the second services includes or indicates Internet of Things service information; wherein, the at least one second The IoT service information included or indicated by the service includes the first IoT service information.
  • the first IoT service information includes one or more IoT service information; each IoT service information in the one or more IoT service information includes at least one of the following information: Networking service logo, IoT service name.
  • the first Internet of Things service information includes or indicates an identifier or a name of the Matter protocol.
  • the release message includes first proximity-aware network attribute information; and the first proximity-aware network attribute information includes the first Internet of Things service information.
  • the first proximity-aware network attribute information further includes at least one of the following information: a first attribute identifier, and first length information; wherein, the first attribute identifier is used to identify the first proximity-aware The type of network attribute information; the first length information is used to indicate the length information of the IoT service identifier and/or the IoT service name in the first IoT service information.
  • the subscription message includes second proximity-aware network attribute information; the second proximity-aware network attribute information includes the second Internet of Things service information.
  • the second proximity-aware network attribute information further includes at least one of the following information: a second attribute identifier, and second length information; wherein, the second attribute identifier is used to identify the second proximity-aware The type of network attribute information; the second length information is used to indicate the length information of the IoT service identifier and/or the IoT service name in the second IoT service information.
  • the first IoT service information includes one or more IoT service information, and the one or more IoT service information includes target IoT service information;
  • Both the first device and the second device support the target service corresponding to the target Internet of Things service information; the connection established between the first device and the second device is the target service connection.
  • the first device and the second device are devices in the same Wi-Fi aware cluster.
  • FIG. 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • the communication device may be the first device or the second device, or may be applied to the first device or the second device.
  • the communication device 800 shown in FIG. 8 includes: a processor 810, a memory 820, and a transceiver 830.
  • the memory 820 stores a computer program that, when executed by the processor 810, causes the processor 810 to communicate via the
  • the transceiver 830 implements the communication method performed by the first device in any of the above embodiments, or, when the computer program is executed by the processor 810, the processor 810 implements any of the above via the transceiver 830 A communication method performed by the second device in an embodiment.
  • the memory 820 may be an independent device independent of the processor 810 , or may be integrated in the processor 810 .
  • the processor 810 can control the transceiver 830 to communicate with other devices, for example, can send information or data to other devices, or receive information or data sent by other devices.
  • the transceiver 830 may include a transmitter and a receiver.
  • the transceiver 830 may further include antennas, and the number of antennas may be one or more.
  • the communication device 800 may specifically be the second device in the embodiment of the present application, and the communication device 800 may implement the corresponding process implemented by the second device in each method of the embodiment of the present application. For the sake of brevity, the This will not be repeated here.
  • the communication device 800 may specifically be the first device in the embodiment of the present application, and the communication device 800 may implement the corresponding processes implemented by the first device in each method of the embodiment of the present application. For the sake of brevity, the This will not be repeated here.
  • the embodiment of the present application also provides a computer storage medium, the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, so as to realize the Methods.
  • the computer-readable storage medium can be applied to the first device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the first device in the methods of the embodiments of the present application, for It is concise and will not be repeated here.
  • the computer-readable storage medium can be applied to the second device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the second device in the methods of the embodiments of the present application, for It is concise and will not be repeated here.
  • FIG. 9 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • the chip 900 shown in FIG. 9 includes a processor 910, and the processor 910 can call and run a computer program from a memory, so as to implement the method in the embodiment of the present application.
  • the chip 900 may further include a memory 920 .
  • the processor 910 can invoke and run a computer program from the memory 920, so as to implement the method in the embodiment of the present application.
  • the memory 920 may be an independent device independent of the processor 910 , or may be integrated in the processor 910 .
  • the chip 900 may further include an input interface 930 . Wherein, the processor 910 can control the input interface 930 to communicate with other devices or chips, specifically, can obtain information or data sent by other devices or chips. In some embodiments, the chip 900 may further include an output interface 940 . Wherein, the processor 910 can control the output interface 940 to communicate with other devices or chips, specifically, can output information or data to other devices or chips.
  • the chip can be applied to the first device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the first device in the various methods of the embodiments of the present application. For the sake of brevity, no further repeat.
  • the chip can be applied to the second device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the second device in the various methods of the embodiments of the present application. For the sake of brevity, no further repeat.
  • the chip mentioned in the embodiment of the present application may also be called a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip.
  • the embodiment of the present application also provides a computer program product, the computer program product includes a computer storage medium, the computer storage medium stores a computer program, and the computer program includes instructions executable by at least one processor, when the When the instructions are executed by the at least one processor, the methods in the embodiments of the present application are implemented.
  • the computer program product can be applied to the first device in the embodiments of the present application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the first device in the various methods of the embodiments of the present application.
  • the computer program product can be applied to the second device in the embodiments of the present application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the second device in the various methods of the embodiments of the present application. For the sake of brevity , which will not be repeated here.
  • the embodiment of the present application also provides a computer program.
  • the computer program enables a computer to execute the method in the embodiment of the present application.
  • the computer program can be applied to the first device in the embodiments of the present application, and when the computer program is run on the computer, the computer can execute the corresponding functions implemented by the first device in the various methods of the embodiments of the present application. For the sake of brevity, the process will not be repeated here.
  • the computer program can be applied to the second device in the embodiment of the present application.
  • the computer program can execute the corresponding functions implemented by the second device in the methods of the embodiments of the present application. For the sake of brevity, the process will not be repeated here.
  • the processor in the embodiment of the present application may be an integrated circuit chip, which has a signal processing capability.
  • each step of the above-mentioned method embodiments may be completed by an integrated logic circuit of hardware in a processor or instructions in the form of software.
  • processors may include any one or more of the following integrations: general-purpose processors, application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), digital signal processing devices (Digital Signal Processing Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD), Field Programmable Gate Array (Field Programmable Gate Array, FPGA), Central Processing Unit (Central Processing Unit, CPU), Graphics Processing Unit (Graphics Processing Unit, GPU), embedded neural-network processing units (NPU), controller, microcontroller, microprocessor, programmable logic device, discrete gate or transistor logic device, discrete hardware components.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • Field Programmable Gate Array Field Programmable Gate Array
  • FPGA Field Programmable Gate Array
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • NPU embedded neural-network processing units
  • controller microcontroller, microprocess
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
  • the memory and/or computer storage medium in the embodiments of the present application may be volatile memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • the volatile memory can be Random Access Memory (RAM), which acts as external cache memory.
  • RAM Static Random Access Memory
  • SRAM Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • Synchronous Dynamic Random Access Memory Synchronous Dynamic Random Access Memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM, DDR SDRAM enhanced synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM synchronous connection dynamic random access memory
  • Synchlink DRAM, SLDRAM Direct Memory Bus Random Access Memory
  • Direct Rambus RAM Direct Rambus RAM
  • the memory in the embodiment of the present application may also be a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM) , DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM ), synchronous connection dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM) and so on. That is, the memory in the embodiments of the present application is intended to include, but not be limited to, these and any other suitable types of memory.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, a first device or a second device, etc.) execute all or part of the steps of the methods described in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory,) ROM, random access memory (Random Access Memory, RAM), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

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

Abstract

本申请实施例提供一种通信方法、装置、设备、存储介质、芯片、产品及程序,该方法包括:第一设备接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接。

Description

通信方法、装置、设备、存储介质、芯片、产品及程序 技术领域
本申请实施例涉及移动通信技术领域,具体涉及一种通信方法、装置、设备、存储介质、芯片、产品及程序。
背景技术
随着科技水平和生活水平的快速进步,物联网技术被广泛的应用于生活中的各个方面。发现物联网设备是物联网系统中的基础需求,通过发现物联网设备与被发现的物联网设备建立连接,进行设备交互。
然而,如何实现发现物联网设备与被发现的物联网设备的连接,是本领域一直以来关注的问题。
发明内容
本申请实施例提供一种通信方法、装置、设备、存储介质、芯片、产品及程序。
第一方面,本申请实施例提供一种通信方法,所述方法包括:
第一设备接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接。
第二方面,本申请实施例提供一种通信方法,所述方法包括:
第二设备向第一设备发送发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
其中,所述第一物联网服务信息用于所述第一设备与所述第二设备建立连接。
第三方面,本申请实施例提供一种通信装置,包括:
收发单元,用于接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
连接单元,用于基于所述第一物联网服务信息,与所述第二设备建立连接。
第四方面,本申请实施例提供一种通信装置,包括:
收发单元,用于向第一设备发送发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
其中,所述第一物联网服务信息用于所述第一设备与第二设备建立连接。
第五方面,本申请实施例提供一种第一设备,包括:收发器、处理器和存储器,所述存储器存储计算机程序,所述计算机程序在由所述处理器执行时使所述处理器经由所述收发器实现如第一方面所述的方法。
第六方面,本申请实施例提供一种第二设备,包括:收发器、处理器和存储器,所述存储器存储计算机程序,所述计算机程序在由所述处理器执行时使所述处理器经由所述收发器实现如第二方面所述的方法。
第七方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现上述第一方面或第二方面的方法。
第八方面,本申请实施例提供一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,以实现上述第一方面或第二方面的方法。
第九方面,本申请实施例提供一种计算机程序产品,所述计算机程序产品包括计算机存储介质,所述计算机存储介质存储计算机程序,所述计算机程序包括能够由至少一个处理器执行的指令,当所述指令由所述至少一个处理器执行时实现上述第一方面或第二方面的方法。
第十方面,本申请实施例提供一种计算机程序,所述计算机程序使得计算机执行上述第一方面或第二方面的方法。
在本申请实施例中,第一设备接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接。这样,由于第一设备基于第二设备发送的发布消息包括或指示第一物联网服务信息,与所述第二设备建立连接,能够容易建立第一设备与第二设备之间的连接。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本申请实施例提供的一种由多个物联网设备组成的簇的示意图;
图2为本申请实施例提供的一种通信方法的流程示意图;
图3为本申请实施例提供的一种通过广播发布消息发现物联网设备的方法的流程示意图;
图4为本申请实施例提供的另一种通信方法的流程示意图;
图5为本申请实施例提供的一种通过广播订阅消息发现物联网设备的方法的流程示意图;
图6为本申请实施例提供的一种通信装置的结构组成示意图;
图7为本申请实施例提供的另一种通信装置的结构组成示意图;
图8为本申请实施例提供的一种通信设备示意性结构图;
图9是本申请实施例的芯片的示意性结构图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。
可选地,本申请实施例的通信方法是可以应用于物联网(Internet of Things,IoT)系统或窄带物联网(Narrow Band Internet of Things,NB-IoT)系统。
可选地,本申请实施例中的第一设备或第二设备,可以称为用户设备(User Equipment,UE)、移动台(Mobile Station,MS)、移动终端(Mobile Terminal,MT)、用户单元、用户站、移动站、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。第一设备或第二设备可以包括以下之一或者至少两者的组合:物联网(Internet of Things,IoT)设备、卫星终端、无线本地环路(Wireless Local  Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、服务器、手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、掌上电脑、台式计算机、个人数字助理、便捷式媒体播放器、智能音箱、导航装置、智能手表、智能眼镜、智能项链等可穿戴设备、计步器、数字TV、虚拟现实(Virtual Reality,VR)终端设备、增强现实(Augmented Reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端以及车联网系统中的车、车载设备、车载模块、无线调制解调器(modem)、手持设备(handheld)、客户终端设备(Customer Premise Equipment,CPE)、智能家电。
在一些实施例中,第一设备可以为需要发现物联网设备的设备或者发现物联网设备,例如,第一设备可以为手机、电视、音箱或智能家居等中控设备等。第二设备可以为被发现的物联网设备,例如第二设备可以为空调、冰箱、传感器或摄像头等。
本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。还应理解,在本申请的实施例中提到的“指示”可以是直接指示,也可以是间接指示,还可以是表示具有关联关系。举例说明,A指示B,可以表示A直接指示B,例如B可以通过A获取;也可以表示A间接指示B,例如A指示C,B可以通过C获取;还可以表示A和B之间具有关联关系。还应理解,在本申请的实施例中提到的“对应”可表示两者之间具有直接对应或间接对应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。还应理解,在本申请的实施例中提到的“预定义”、“协议规定”、“预先确定”或“预定义规则”可以通过在设备(例如,包括第一设备或第二设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。比如预定义可以是指协议中定义的。还应理解,本申请实施例中,所述“协议”可以指通信领域的标准协议,例如可以包括LTE协议、NR协议以及应用于未来的通信系统中的相关协议,本申请对此不做限定。
为便于理解本申请实施例的技术方案,以下对本申请实施例的相关技术进行说明,以下相关技术作为可选方案与本申请实施例的技术方案可以进行任意结合,其均属于本申请实施例的保护范围。
无线保真临近感知网络(Wireless-Fidelity Neighborhood Aware Network,Wi-Fi NAN)又称无线保真感知(Wireless-Fidelity Aware,Wi-Fi Aware),Wi-Fi Aware是Wi-Fi联盟制定的临近感知网络标准,可以在没有Wi-Fi接入点的情况下,可以进行临近设备发现。Wi-Fi Aware通过“发布(Publish)”和“订阅(Subscribe)”消息交换信息,一旦检测到设备和想要的服务,发出检测的设备就可向这些检测到的设备发送提示信息。
图1为本申请实施例提供的一种由多个物联网设备组成的簇的示意图,如图1所示,在簇Cluster(又称为邻近感知网络)中存在多个物联网设备,Cluster内的任一个物联网设备能够发现其它物联网设备和/或被其它物联网设备发现,以建立该任一个物联网设备与其它物联网设备的连接。在本申请实施例中,可以实现支持Matter标准的物联网设备能够发现彼此并建立连接。例如,Cluster内的第一设备和第二设备可以基于Matter标准或者Matter协议建立连接。
Matter协议是一个应用层协议。Matter可以以无线保真(Wireless-Fidelity,Wi-Fi)、 Thread、蓝牙(Bluetooth)、Cellular,Ethernet、以太网等、紫蜂(Zigbee)、Z-Wave作为网络层/传输层协议通信协议,本申请实施例并不限制Matter对应的网络层/传输层协议。在一些实施例中,至少两个设备间可以通过蓝牙、Wi-Fi或Thread等加入到Matter网络。
此处对临近感知网络(Neighbor Awareness Network,NAN)机制进行简要的介绍:NAN机制是无线保真Wi-Fi联盟制订的一个标准,这个标准的作用是在没有中心节点的情况下,使得所有参与NAN机制的设备(即NAN设备)同步起来,在NAN机制约定的发现窗口(Discovery Window,DW)中进行NAN机制的维持工作和服务发现工作。
在Wi-Fi联盟指定的标准中,在NAN机制中可以以第6信道为发现信道,在第6信道上,对于每个簇而言,发现窗口DW的时长是固定的,且该簇的任意相邻的两个DW之间的时间间隔也是固定的。
NAN机制一般每512个TU(time unit,时间单元)内设置有一个DW,其中一个TU的持续时长大约为1024μs,DW的持续时长一般为16TU,即在NAN机制中,一般每隔496个TU设置一个DW。在NAN机制中,一个或多个NAN设备形成一个簇Cluster,一个Cluster在进入DW时,由该Cluster中处于主节点(Master)、锚主节点(Anchor Master,AM)、以及负责同步的主节点(Non-Master Synchronization,Non-Master Sync)状态等的NAN设备发送同步信标帧(Sync Beacon)消息,该消息中携带有该Cluster中的AM的信息,用于接收到该消息的NAN设备与该Cluster中的AM实现同步。
在DW中,该簇中的NAN设备可以在DW中发送服务发现帧(Service Discovery Frames,SDF)消息,进行服务发现,在DW以外的时间中,该簇中的NAN设备可以发送发现信标(discovery beacon)消息,以宣告该簇的存在。
NAN设备服务发现的流程如下:
1、一个设备激活NAN功能后(即成为NAN设备后),可以将自身设置为AM,创建一个Cluster,并基于自身的介质访问控制(Media Access Control,MAC)地址设定该Cluster的Cluster身份标识(Identity,ID)值,将时间同步功能(Time Synchronization Function,TSF)设置为512TU的整数倍。
2、一旦该NAN设备接收到来自一个或多个其他Cluster的NAN设备发送的Beacon帧(即sync beacon,以下统一称为Beacon帧)时,就可以判断自己是否要加入对方的Cluster。
在Beacon帧中,一般携带有相应的Cluster的信息,具体可以是相应的Cluster中的AM的信息,例如可以包括锚主节点等级(Anchor Master Rank,AMR)、主节点等级(Master Rank,MR)、主节点优先权(Master Preference,MP)、锚主节点优先权(Anchor Master Preference,AMP)、随机因素(Random Factor,RF)、锚主节点信号传输时间(Anchor Master Beacon Transmission Time,AMBTT)、时间同步功能TSF、簇身份标识(Cluster ID)、以及簇等级(Cluster grade,CG)中的一种或多种。
一个NAN设备可以通过发送Beacon帧将自己所属的Cluster的AM的信息发送给其他的NAN设备,同样,一个NAN设备也可以接收本Cluster或其他Cluster中的NAN设备发送的Beacon帧。
在NAN设备接收到一个Beacon帧后,可以判断该Beacon帧是来自自身所属的Cluster中的NAN设备还是来自其他Cluster中的NAN设备,若是来自其他Cluster中的NAN设备,则该NAN设备可以判断接收的Beacon帧中的簇等级CG的值是否大于自身的簇等级CG的值,若大于,则该NAN设备加入该接收的Beacon帧对应的Cluster,否则,该NAN设备不做处理。这就完成了NAN设备的聚合,即,NAN设备会加入簇 等级CG的值较高(例如,簇等级CG的值最高)的Cluster。
3、若判断确定要加入对方的Cluster,则在加入对方的Cluster之后与加入的Cluster中的AM实现同步,例如可以是将自身的AM中的各项参数信息与加入的Cluster中的AM同步,例如将自身原有的时间同步功能TSF更新为加入的Cluster中的AM的TSF等。
4、在同步后,当加入的Cluster的DW到来时,该NAN设备在DW中发送SDF消息以进行服务发现,该SDF消息中例如可以携带有用于发布该NAN设备所能够提供的服务对应的服务发布(Service Publish)信息,其他NAN设备在接收到该NAN设备发送的SDF消息后,若确定满足该SDF消息,即能够进行服务匹配,则可以在DW中向该NAN设备回复SDF消息。
同样的,在DW中,该NAN设备也可能会接收到其他NAN设备发送的用于进行服务发现的SDF消息,若该NAN设备确定满足所接收的SDF消息,则该NAN设备也会在DW中向相应的NAN设备回复SDF消息。
以下对AM中包含的各类信息进行解释。
锚主节点等级AMR,一般最大取值为8个字节(byte),是AM的MR的值。
主节点等级MR,一般最大取值为8个字节,是根据MP值、RF值以及本NAN设备的MAC地址计算得出,表示该NAN设备想当master的意愿。MR的值越大,表明该NAN设备想当master意愿越高。MR也可以看做是MP的另外表达形式。
主节点优先权MP,一般最大取值为1个字节,表明本NAN设备想当master的意愿。MP的值越大,表明该NAN设备想当master意愿越高。
锚主节点优先权AMP,一般最大取值为1个字节,是AM的MP的值。
随机因素RF,一般最大取值为1个字节,是NAN设备选择的随机数。
锚主节点信号传输时间AMBTT,一般最大取值为4个字节,表明AM的Beacon帧的发送时间。一般来说,发送Beacon帧的NAN设备会携带有AMBTT,用于其他NAN设备与该AMBTT对应的AM的时间实现同步。
时间同步功能TSF,一般最大取值为8个字节,表明NAN设备的同步功能,使得接收到该TSF的NAN设备的计时器(timer)与发送该TSF的NAN设备对应的AM的时间实现同步。TSF也可以表示时间信息。
簇身份标识Cluster ID,一般最大取值为6个字节,将其携带在Beacon帧中的Address(地址)3的字段中。
簇等级CG,一般最大取值为8个字节,表示Cluster的等级,用于不同的Cluster在合并时进行比较,CG的值小的Cluster合并到CG的值大的Cluster中。
以下介绍服务发现帧SDF消息。
SDF消息是一种专门定义用来做服务发现的动作帧(Action Frame),根据功能不同,SDF消息大致可以分为三种:SDF发布Publish消息、SDF订阅Subscribe消息、SDF回复Follow-Up消息,一般来说,在SDF消息中包括一个指示位,用于指示该SDF消息是哪种SDF消息。
SDF Publish消息:用于发布NAN设备所能提供的服务,或用于回复收到的其他NAN设备发送的SDF Subscribe消息;
SDF Subscribe消息:用于查找需要使用的服务;
SDF Follow-Up消息:用于回复收到的SDF Publish消息,或者用于协商更多的信息。
本申请实施例中的第一物联网服务信息和第二物联网服务信息可以都支持Matter,从而第一设备可以根据第二设备发送的包括或指示Matter协议的标识或名称的第一物 联网服务信息,与第二设备建立基于Matter协议的连接。
在一些实施例中,基于Matter协议的连接,可以包括以下之一:基于Matter协议的蓝牙连接、基于Matter协议的Wi-Fi连接、基于Matter协议的Thread连接、基于Matter协议的Cellular连接、基于Matter协议的Ethernet连接、基于Matter协议的以太网连接、基于Matter协议的其它网络层/传输层协议连接等等。本申请并不限定Matter协议所对应的网络层/传输层协议,只要第一设备和第二设备之间能够建立基于Matter协议的连接即可。
Matter物联网标准是连接标准联盟(Connectivity Standards Alliance,CSA)制定的基于网际互连协议(Internet Protocol,IP)的智能家居连接标准,解决智能家居市场存在的兼容性、安全性和连接性等问题。Matter标准目前采用的设备发现为基于组播域名系统(multicast Domain Name System,mDNS),组播域名系统又称多播域名系统/域名系统服务发现(DNS Service Discovery,DNS-SD)的设备发现,其是通过基于域名系统的mDNS/DNS-SD查询的方式以获得Matter设备及其服务信息。
例如,Matter设备mDNS记录中包括Matter相关的mDNS服务(SRV)、指针(PTR)和文本(TXT)记录等信息。SRV记录是可用于指定关于域中可用的服务的信息的资源记录。在SRV记录中,名称字段可用于指示服务的标识信息,诸如服务的名称、服务所使用的协议(诸如通用数据报协议(User Datagram Protocol,UDP)或传输控制协议(Transmission Control Protocol,TCP))。PTR记录是用于指向域名空间中的位置的资源记录。在PTR记录中,可以使用RDATA字段来存储所指向的位置。TXT记录可用于保留描述性文本。在TXT记录中,描述性文本可包括在RDATA字段中。
Matter设备发现机制需要物联网设备支持IP,不支持IP的物联网设备则无法进行Matter设备发现,另外Matter设备发现需要创建并维护Matter相关的mDNS/DNS-SD SRV、PTR和TXT记录等信息,对于低功耗、存储和计算资源受限的物联网设备,存在无法负担基于mDNS/DNS-SD的设备发现机制的可能性。
在本申请实施例中,通过SDF消息进行物联网服务信息的指示,从而能够通过SDF消息实现Matter设备的发现,进而实现Matter设备之间的连接。
本申请实施例采用SDF消息中的SDF Publish消息或者SDF Subscribe消息,对本申请实施例中的通信方法进行说明。
本申请实施例中的第一设备和/或第二设备可以是上述提到的的物联网设备、NAN设备或Matter设备。
为便于理解本申请实施例的技术方案,以下通过具体实施例详述本申请的技术方案。以上相关技术作为可选方案与本申请实施例的技术方案可以进行任意结合,其均属于本申请实施例的保护范围。本申请实施例包括以下内容中的至少部分内容。
图2为本申请实施例提供的一种通信方法的流程示意图,该方法可以应用于第一设备或者第一设备的处理器,该方法包括:
S201、第一设备接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧(NAN SDF)。
在一些实施例中,第一设备和/或第二设备可以不仅是发现物联网设备,还可以是被发现的物联网设备。本申请实施例以第一设备为发现物联网设备,第二设备为被发现的物联网设备进行举例说明。
在实施过程中,被发现的物联网设备可以广播发布消息,每个被发现的物联网设备广播的发布消息包括或指示的物联网服务信息,可以是每个被发现的物联网设备支持的物联网服务信息。
本申请实施例中的发布(Pulish)消息,在其它实施例中也可以称为SDF Pulish消 息或者NAN SDF Pulish消息。发布消息的消息类型可以为邻近感知网络服务发现帧(NAN SDF)。
在一些实施例中,发布消息可以在DW内发送一次。在另一些实施例中,发布消息可以在DW内发送多次。在又一些实施例中,发布消息可以在多个DW内发送一次。例如,发布消息可以每隔多个DW发送一次。
第一物联网服务信息可以包括一个或多个物联网服务信息。第一物联网服务信息可以是第二设备可向外提供的服务信息。在一些实施例中,第一物联网服务信息包括的一个或多个服务信息可以是第二设备能够支持的所有服务信息。例如,在第二设备支持的所有服务信息包括服务信息1、服务信息2以及服务信息3的情况下,第一物联网服务信息包括的一个或多个服务信息可以包括服务信息1、服务信息2以及服务信息3。在另一些实施例中,第一物联网服务信息包括的一个或多个服务信息可以是第二设备能够支持的所有服务信息中的部分服务信息。例如,在第二设备支持的所有服务信息包括服务信息1、服务信息2以及服务信息3的情况下,第一物联网服务信息包括的一个或多个服务信息可以包括服务信息1。第二设备可以根据用户对第二设备的配置所生成的配置信息或者接收的其它设备发送的配置信息,确定向外发送服务信息1、服务信息2以及服务信息3中的服务信息1。例如,配置信息可以指示服务信息1为可向外发出的信息,和/或,服务信息2和服务信息3是不可向外发出的信息。
在一些实施例中,一个物联网服务信息可以是与物联网通信标准对应的服务信息。例如,某一个物联网服务信息可以包括以下至少一种信息:与Matter对应的服务信息、与蓝牙对应的服务信息、与Wi-Fi对应的服务信息、与紫蜂对应的服务信息、与Z-Wave对应的服务信息、与Cellular对应的服务信息。其中,Cellular包括窄带物联网(Narrow Band-Internet of Things,NB-IOT)或长期演进物联网(LTE-MachinetoMachine,LTE-M)。例如,某一个物联网服务信息可以包括:与Matter对应的服务信息和与蓝牙对应的服务信息,从而在第一设备和第二设备都支持Matter和蓝牙的情况下,可以建立基于Matter协议的蓝牙连接。又例如,某一个物联网服务信息可以包括:与Matter对应的服务信息,从而在第一设备和第二设备都支持Matter的情况下,可以建立基于Matter协议的连接;Matter协议对应的网络层协议可以是预先配置的。
在另一些实施例中,一个物联网服务信息可以是与服务类型对应的服务信息。例如,某一个物联网服务信息可以包括以下之一:与温度监测对应的服务信息,与湿度监测对应的服务信息等等。
S202、所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接。
在一些实施例中,在第一物联网服务信息包括一个物联网服务信息的情况下,S202可以包括:第一设备在确定第一设备支持与第一物联网服务信息对应的服务的情况下,与所述第二设备建立连接。在这种情况下,第一设备与第二设备建立的连接可以是与第一物联网服务信息对应的连接。例如,第一设备与第二设备建立的连接可以是基于Matter协议的连接、Wi-Fi连接或Zigbee连接等。这样,第一设备可以与第二设备之间传输Matter信息、Wi-Fi信息或者Zigbee信息等。又例如,第一设备与第二设备建立的连接可以是与温度监测对应的连接、与湿度监测对应的连接。这样,第一设备可以接收第二设备发送的温度信息或湿度信息等。
在另一些实施例中,在第一物联网服务信息包括多个物联网服务信息的情况下,S202可以包括:第一设备可以从多个物联网服务信息中确定第一设备支持的至少一个物联网服务信息,并基于支持的至少一个物联网服务信息与第二设备建立连接。在这种情况下,第一设备与第二设备建立的连接可以是与至少一个物联网服务信息对应的连接。例如,第一设备与第二设备建立的连接可以是基于Matter协议的连接和/或蓝牙连接。 示例性地,第一设备与第二设备可以建立的连接可以是基于Matter协议的Wi-Fi连接和/或蓝牙连接,或者,第一设备与第二设备可以建立的连接可以是基于Matter协议的蓝牙连接。又例如,第一设备与第二设备建立的连接可以是基于Matter协议的连接与温度监测对应的连接。这样,第一设备和第二设备之间可以基于Matter协议发送温度信息。
在本申请实施例中,第一设备接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接。这样,由于第一设备基于第二设备发送的发布消息包括或指示第一物联网服务信息,与所述第二设备建立连接,能够容易建立第一设备与第二设备之间的连接。
在一些实施例中,所述发布消息是所述第二设备广播的。
不同的发布消息包括或指示的第一物联网服务信息可以是不同的。例如,第二设备可以基于用户的设置所生成的配置信息或者接收到其它设备发送的配置信息,确定第二设备当前可广播或向外传播的的服务增加、减少或改变的情况下,发布消息包括或指示的第一物联网服务信息也会进行相应的改变。例如,在t时刻之前,发布消息包括或指示的第一物联网服务信息包括服务信息1、服务信息2以及服务信息3。t时刻获取到配置信息,配置信息指示可广播或向外传播的服务信息包括服务信息1和服务信息2,或者,配置信息指示停止广播或向外传播服务信息3的情况下,在t时刻之后,发布消息包括或指示的第一物联网服务信息包括服务信息1和服务信息2。
在一些实施例中,所述第一设备接收第二设备发送的发布消息之前,所述方法还包括:所述第一设备订阅至少一个第一服务;每个所述第一服务包括或指示物联网服务信息;其中,所述至少一个第一服务包括或指示的物联网服务信息,包括所述第一物联网服务信息中的部分或全部。这样,第一设备和第二设备都具有第一物联网服务信息中的部分或全部所对应的服务,从而能够实现第一设备与第二设备建立该第一物联网服务信息中的部分或全部所对应的服务连接。例如,第一物联网服务信息中的部分或全部包括Matter协议的标识或名称,则第一设备和第二设备可以建立基于Matter协议的连接。
在一些实施例中,所述至少一个第一服务包括或指示的物联网服务信息,可以包括第二物联网服务信息。这样,第一设备广播的订阅消息包括或指示第二物联网服务信息,是从第一设备订阅的至少一个第一服务包括或指示的物联网服务信息中的选择的。
在一些实施例中,每个所述第一服务包括或指示的物联网服务信息,可以是与物联网通信标准对应的服务信息。在另一些实施例中,每个所述第一服务包括或指示的物联网服务信息,可以是与服务类型对应的服务信息。
在一些实施例中,所述第一物联网服务信息包括或指示Matter协议的标识或名称。
在这种情况下,第二设备广播的发布消息中的第一物联网服务信息包括或指示Matter协议的标识或名称,而第一设备支持Matter服务,例如,第一设备订阅的至少一个第一服务包括或指示物联网服务信息,也包括或指示Matter协议的标识或名称,这样,第一设备和第二设备都支持Matter服务,第一设备可以与第二设备建立基于Matter协议的连接。能够理解的是,如果第三设备接收到第二设备广播的物联网服务信息指示Zigbee和/或Matter协议的标识或名称,第三设备也支持Zigbee和/或Matter服务的情况下,第三设备可以与第二设备建立Zigbee连接,和/或,基于Matter协议的Zigbee或其它网络层协议连接。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息;所述一个或多个物联网服务信息中的每个物联网服务信息包括以下至少一种信息:物联网服务标识、物联网服务名称。
其中,物联网服务标识可以与物联网服务名称一一对应。这样,不同的物联网服务 标识可以对应不同的物联网服务名称。在一些实施例中,物联网服务标识和/或物联网服务名称可以是预先定义的或者协议规定的。可选地,不同的物联网服务标识和/或不同的物联网服务名称所占用的比特长度可以相同或不同。
物联网服务标识可以包括预设比特数目的信息。预设比特数目可以包括4、8、16、32或64等。在一些实施例中,物联网服务标识可以采用两位十六进制的数来表示。例如,物联网服务标识可以包括0x11、0x01或0x12等。
在一些实施例中,所述发布消息包括第一邻近感知网络属性信息;所述第一邻近感知网络属性信息包括所述第一物联网服务信息。
邻近感知网络属性信息(又称NAN属性,例如第一邻近感知网络属性信息和/或下述的第二邻近感知网络属性信息)在另一些实施例中可以称为邻近感知网络属性或者邻近感知网络属性字段。
在一些实施例中,第一邻近感知网络属性信息可以包括一个属性信息,该一个属性信息可以包括第一物联网服务信息。例如,第一物联网服务信息包括一个或多个物联网服务信息的情况下,一个属性信息可以包括一个或多个物联网服务信息。在另一些实施例中,第一邻近感知网络属性信息可以包括多个属性信息,多个属性信息中的每个属性信息包括一个物联网服务信息。多个属性信息可以与多个物联网服务信息一一对应。
第一物联网服务信息对应的有效载荷大小或者比特数目,并不是固定的,例如可以根据以下至少之一确定:第一物联网服务信息中物联网服务标识对应的有效载荷大小或者比特数目,第一物联网服务信息中物联网服务名称对应的有效载荷大小或者比特数目。
在一些实施例中,所述第一邻近感知网络属性信息还包括以下至少一种信息:第一属性标识、第一长度信息;
其中,所述第一属性标识用于标识所述第一邻近感知网络属性信息的类型;所述第一长度信息用于指示所述第一物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
第一属性标识和第一长度信息可以分别有一个指定的大小。第一属性标识和第一长度信息对应的有效载荷大小或者比特数目是预先设定的或者协议规定的。在一些实施例中,第一属性标识可以为1个八位字节,第一长度信息可以为2个八位字节。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息,所述一个或多个物联网服务信息包括目标物联网服务信息;
所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接,包括:
在所述第一设备支持与所述目标物联网服务信息对应的目标服务的情况下,所述第一设备与所述第二设备建立目标服务连接。
目标物联网服务信息可以包括至少一个物联网服务信息。目标物联网服务信息可以包括在第一设备支持的物联网服务信息中。
在一些实施例中,所述第一设备和所述第二设备为同一无线保真感知(Wi-Fi Aware)簇中的设备。这样,簇中的每个NAN设备都可以在DW中进行服务发现,以发现能够和其进行基于NAN智能管理的其他NAN设备。
以下以第二设备或者第二设备的处理器为执行主体,说明与图2对应的实施例中的通信方法。其中,与第一设备或者第一设备的处理器侧的相同或相应的说明,请参照第一设备或者第一设备的处理器侧的说明进行理解。该通信方法包括:
第二设备向第一设备发送发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
其中,所述第一物联网服务信息用于所述第一设备与所述第二设备建立连接。
在一些实施例中,所述发布消息是所述第二设备广播的。
在一些实施例中,所述第二设备向第一设备发送发布消息之前,所述方法还包括:所述第二设备发布至少一个第二服务;每个所述第二服务包括或指示物联网服务信息;其中,所述至少一个第二服务包括或指示的物联网服务信息,包括所述第一物联网服务信息。
在一些实施例中,每个所述第二服务包括或指示的物联网服务信息,可以是与物联网标准对应的服务信息。在另一些实施例中,每个所述第二服务包括或指示的物联网服务信息,可以是与服务类型对应的服务信息。
第二设备广播的发布消息包括或指示第一物联网服务信息,可以是从至少一个第二服务包括或指示的物联网服务信息中确定的。例如,至少一个第二服务包括或指示的物联网服务信息包括服务信息1、服务信息2以及服务信息3,第二设备广播的发布消息包括或指示第一物联网服务信息可以包括服务信息1、服务信息2以及服务信息3。在另一些实施例中,至少一个第二服务包括或指示的物联网服务信息可以包括服务信息1、服务信息2、服务信息3以及服务信息4等。
在一些实施例中,第二设备发布的至少一个第二服务,可以是第二设备支持的所有服务。例如,第二设备支持服务1、服务2以及服务3,则第二设备广播的发布消息包括或指示第一物联网服务信息,包括服务信息1、服务信息2以及服务信息3。在另一些实施例中,第二设备发布的至少一个第二服务,可以是第二设备支持的所有服务中的部分服务。例如,第二设备支持服务1、服务2、服务3以及服务4,则第二设备广播的发布消息包括或指示第一物联网服务信息,包括服务信息1、服务信息2以及服务信息3。服务4可以是第二设备通过配置信息确定的停止向外发送的服务。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息;所述一个或多个物联网服务信息中的每个物联网服务信息包括以下至少一种信息:物联网服务标识、物联网服务名称。
在一些实施例中,所述第一物联网服务信息包括或指示Matter协议的标识或名称。
在一些实施例中,所述发布消息包括第一邻近感知网络属性信息;所述第一邻近感知网络属性信息包括所述第一物联网服务信息。
在一些实施例中,所述第一邻近感知网络属性信息还包括以下至少一种信息:第一属性标识、第一长度信息;
其中,所述第一属性标识用于标识所述第一邻近感知网络属性信息的类型;所述第一长度信息用于指示所述第一物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息,所述一个或多个物联网服务信息包括目标物联网服务信息;
所述第一设备和所述第二设备均支持与所述目标物联网服务信息对应的目标服务;所述第一设备和所述第二设备建立的连接为所述目标服务连接。
例如,在目标服务为Matter的情况下,目标服务连接可以为基于Matter协议的连接。
在一些实施例中,所述第一设备和所述第二设备为同一无线保真感知(Wi-Fi Aware)簇中的设备。
图3为本申请实施例提供的一种通过广播发布消息发现物联网设备的方法的流程示意图,如图3所示,该方法包括:
S301、第一设备、第二设备加入或组建Wi-Fi Aware Cluster。
S302、第一设备订阅服务。
例如,第一设备可以订阅至少一个第一服务;每个所述第一服务包括或指示物联网 服务信息。
物联网服务信息包括以下信息的一个或多个:物联网服务标识、物联网服务名称。例如,物联网服务标识是0x11,物联网服务名称是Matter。
S303、第二设备发布服务。
例如,第二设备可以发布至少一个第二服务;每个所述第二服务包括或指示物联网服务信息。
物联网服务信息包括以下信息的一个或多个:物联网服务标识、物联网服务名称。
例如,物联网服务标识是0x11,物联网服务名称是Matter。
需要说明的是,S302和S303没有先后顺序要求,S302和S303的顺序可以交换,即S303也可以在S302之前进行。
S304、第二设备广播发布消息,所述发布消息包括或指示第一物联网服务信息。
第一物联网服务信息可以包括以下信息的一个或多个:物联网服务标识、物联网服务名称。
本申请实施例通过发布消息的邻近感知网络属性(即上述的第一邻近感知网络属性信息)来携带物联网服务信息,第一邻近感知网络属性信息的示例见表1:
表1
大小(字节) 描述
属性标识 1 标识第一邻近感知网络属性信息的类型
长度 2 物联网服务标识的长度信息
物联网服务信息 不固定 物联网服务标识
其中,属性标识域可以用于标识第一邻近感知网络属性信息的类型,大小为1个字节,长度域可以提供物联网服务的长度信息,大小为2个字节,物联网服务信息域可以用于指示第一物联网服务信息,大小不固定,第一物联网服务信息可以为一个字节或多个字节,第一物联网服务信息包括以下信息的一个或多个:物联网服务标识、物联网服务名称。例如,物联网服务标识是0x11,物联网服务名称是Matter。
S305、第一设备根据收到的发布消息,通过发布消息中的第一邻近感知网络属性信息发现物联网服务。
第一物联网服务信息中的某一物联网服务信息可以是第一设备和第二设备所共知的,因此第一设备可以发现第二设备以及该物联网服务信息对应的物联网服务。
在一些实施例中,通过发布消息中的第一邻近感知网络属性信息发现物联网服务,可以是通过第一邻近感知网络属性信息中的第一物联网服务信息来发现物联网服务。
S306、第一设备和第二设备建立针对所述物联网服务的连接。
例如,第一设备和第二设备建立基于Matter协议的连接,进行数据传输。
图4为本申请实施例提供的另一种通信方法的流程示意图,该方法可以应用于第一设备或者第一设备的处理器,该方法包括:
S401、所述第一设备广播订阅消息;所述订阅消息包括或指示第二物联网服务信息,所述订阅消息为邻近感知网络服务发现帧(NAN SDF);其中,所述第二物联网服务信息包括所述第一物联网服务信息。
本申请实施例中的订阅(Subscribe)消息,在其它实施例中也可以称为SDF Subscribe消息或者NAN SDF Subscribe消息。订阅消息的消息类型可以为NAN SDF。
在一些实施例中,订阅消息可以在DW内发送一次。在另一些实施例中,订阅消息可以在DW内发送多次。在有一些实施例中,订阅消息可以在多个DW内发送一次。 例如,订阅消息可以每隔多个DW发送一次。
第二物联网服务信息可以包括一个或多个物联网服务信息。第二物联网服务信息可以是第一设备可向外提供的服务信息。在一些实施例中,第二物联网服务信息包括的一个或多个服务信息可以是第一设备能够支持的所有服务信息。例如,在第一设备支持的所有服务信息包括服务信息1、服务信息2以及服务信息3的情况下,第二物联网服务信息包括的一个或多个服务信息可以包括服务信息1、服务信息2以及服务信息3。在另一些实施例中,第二物联网服务信息包括的一个或多个服务信息可以是第一设备能够支持的所有服务信息中的部分服务信息。例如,在第一设备支持的所有服务信息包括服务信息1、服务信息2以及服务信息3的情况下,第二物联网服务信息包括的一个或多个服务信息可以包括服务信息1。第一设备可以根据用户对第一设备的配置所生成的配置信息或者接收的其它设备发送的配置信息,确定向外发送服务信息1、服务信息2以及服务信息3中的服务信息1。例如,配置信息可以指示服务信息1为可向外发出的信息,和/或,服务信息2和服务信息3是不可向外发出的信息。
在一些实施例中,第二物联网服务信息包括的物联网服务信息的数量,可以与第一物联网服务信息包括的物联网服务信息的数量相同。在这种方式中,第二物联网服务信息包括的物联网服务信息,与第一物联网服务信息包括的物联网服务信息相同。例如,第二物联网服务信息包括的物联网服务信息为Matter,第一物联网服务信息包括的物联网服务信息也为Matter。
S402、第一设备接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息。
在一些实施例中,所述发布消息是所述第二设备向所述第一设备单播的,即第一设备接收第二设备通过单播发送的发布消息。
其中,所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧。
S403、所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接。
在一些实施例中,其中,所述第一设备接收第二设备发送的发布消息之前,所述方法还包括:
所述第一设备订阅至少一个第一服务;每个所述第一服务包括或指示物联网服务信息;其中,所述至少一个第一服务包括或指示的物联网服务信息,包括所述第二物联网服务信息。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息;所述一个或多个物联网服务信息中的每个物联网服务信息包括以下至少一种信息:物联网服务标识、物联网服务名称。
在一些实施例中,所述第一物联网服务信息包括或指示Matter协议的标识或名称。
在一些实施例中,所述发布消息包括第一邻近感知网络属性信息;所述第一邻近感知网络属性信息包括所述第一物联网服务信息。
在一些实施例中,所述第一邻近感知网络属性信息还包括以下至少一种信息:第一属性标识、第一长度信息;
其中,所述第一属性标识用于标识第一邻近感知网络属性信息的类型;所述第一长度信息用于指示所述第一物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
在一些实施例中,所述订阅消息包括第二邻近感知网络属性信息;所述第二邻近感知网络属性信息包括所述第二物联网服务信息。
在一些实施例中,第二邻近感知网络属性信息可以包括一个属性信息,该一个属性 信息可以包括第二物联网服务信息。例如,第二物联网服务信息包括一个或多个物联网服务信息的情况下,该一个属性信息可以包括一个或多个物联网服务信息。在另一些实施例中,第二邻近感知网络属性信息可以包括多个属性信息,多个属性信息中的每个属性信息包括一个物联网服务信息。多个属性信息可以与多个物联网服务信息一一对应。
第二物联网服务信息对应的有效载荷大小或者比特数目,并不是固定的,例如可以根据以下至少之一确定:第二物联网服务信息中物联网服务标识对应的有效载荷大小或者比特数目,第二物联网服务信息中物联网服务名称对应的有效载荷大小或者比特数目。
在一些实施例中,所述第二邻近感知网络属性信息还包括以下至少一种信息:第二属性标识、第二长度信息;
其中,所述第二属性标识用于标识所述第二邻近感知网络属性信息的类型;所述第二长度信息用于指示所述第二物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
第二属性标识和第二长度信息可以分别有一个指定的大小。第二属性标识和第二长度信息对应的有效载荷大小或者比特数目是预先设定的或者协议规定的。在一些实施例中,第二属性标识可以为1个八位字节,第二长度信息可以为2个八位字节。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息,所述一个或多个物联网服务信息包括目标物联网服务信息;
所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接,包括:
在所述第一设备支持与所述目标物联网服务信息对应的目标服务的情况下,所述第一设备与所述第二设备建立目标服务连接。
在一些实施例中,所述第一设备和所述第二设备为同一无线保真感知(Wi-Fi Aware)簇中的设备。
以下以第二设备或者第二设备的处理器为执行主体,说明与图4对应的实施例中的通信方法。其中,与第一设备或者第一设备的处理器侧的相同或相应的说明,请参照第一设备或者第一设备的处理器侧的说明进行理解。该通信方法包括:
第二设备向第一设备发送发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
其中,所述第一物联网服务信息用于所述第一设备与所述第二设备建立连接。
在一些实施例中,所述第二设备向第一设备发送发布消息之前,所述方法还包括:
所述第二设备接收所述第一设备广播的订阅消息;所述订阅消息包括或指示第二物联网服务信息,所述订阅消息为邻近感知网络服务发现帧(NAN SDF);其中,所述第二物联网服务信息包括所述第一物联网服务信息。
在一些实施例中,所述发布消息是所述第二设备向所述第一设备单播的。
在一些实施例中,所述第二设备向第一设备发送发布消息之前,所述方法还包括:
所述第二设备发布至少一个第二服务;每个所述第二服务包括或指示物联网服务信息;其中,所述至少一个第二服务包括或指示的物联网服务信息,包括所述第一物联网服务信息。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息;所述一个或多个物联网服务信息中的每个物联网服务信息包括以下至少一种信息:物联网服务标识、物联网服务名称。
在一些实施例中,所述第一物联网服务信息包括或指示Matter协议的标识或名称。
在一些实施例中,所述发布消息包括第一邻近感知网络属性信息;所述第一邻近感知网络属性信息包括所述第一物联网服务信息。
在一些实施例中,所述第一邻近感知网络属性信息还包括以下至少一种信息:第一 属性标识、第一长度信息;
其中,所述第一属性标识用于标识所述第一邻近感知网络属性信息的类型;所述第一长度信息用于指示所述第一物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
在一些实施例中,所述订阅消息包括第二邻近感知网络属性信息;所述第二邻近感知网络属性信息包括所述第二物联网服务信息。
在一些实施例中,所述第二邻近感知网络属性信息还包括以下至少一种信息:第二属性标识、第二长度信息;
其中,所述第二属性标识用于标识所述第二邻近感知网络属性信息的类型;所述第二长度信息用于指示所述第二物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息,所述一个或多个物联网服务信息包括目标物联网服务信息;
所述第一设备和所述第二设备均支持与所述目标物联网服务信息对应的目标服务;所述第一设备和所述第二设备建立的连接为所述目标服务连接。
在一些实施例中,所述第一设备和所述第二设备为同一无线保真感知(Wi-Fi Aware)簇中的设备。
图5为本申请实施例提供的一种通过广播订阅消息发现物联网设备的方法的流程示意图,如图5所示,该方法包括:
S501、第一设备、第二设备加入或组建Wi-Fi Aware Cluster。
S502、第一设备订阅服务。
例如,第一设备可以订阅至少一个第一服务;每个所述第一服务包括或指示物联网服务信息。
物联网服务信息包括以下信息的一个或多个:物联网服务标识、物联网服务名称。例如,物联网服务标识是0x11,物联网服务名称是Matter。
S503、第二设备发布服务。
例如,第二设备可以发布至少一个第二服务;每个所述第二服务包括或指示物联网服务信息。
物联网服务信息包括以下信息的一个或多个:物联网服务标识、物联网服务名称。
例如,物联网服务标识是0x11,物联网服务名称是Matter。
需要说明的是,S502和S503没有先后顺序要求,S502和S503的顺序可以交换,即S503也可以在S502之前进行。
S504、第一设备广播订阅消息,订阅消息包括或指示第二物联网服务信息。
第二物联网服务信息可以包括以下信息的一个或多个:物联网服务标识、物联网服务名称。
本申请实施例通过订阅消息的邻近感知网络属性(即上述的第二邻近感知网络属性信息)来携带物联网服务信息,第二邻近感知网络属性信息的示例见表2:
表2
大小(字节) 描述
属性标识 1 标识第二邻近感知网络属性信息的类型
长度 2 物联网服务标识的长度信息
物联网服务信息 不固定 物联网服务标识
其中,属性标识域用于标识第二邻近感知网络属性信息的类型,大小为1个字节,长度域提供物联网服务的长度信息,大小为2个字节,物联网服务信息域用于指示第二物联网服务信息,大小不固定,可以为一个字节或多个字节,包括以下信息的一个或多个:物联网服务标识、物联网服务名称。例如,物联网服务标识是0x11,物联网服务名称是Matter。
S505、第二设备接收到订阅消息后,发送发布消息进行响应,发布消息包括或指示第一物联网服务信息。
S505中的发布消息是单播消息。
第一物联网服务信息可以包括以下信息的一个或多个:物联网服务标识、物联网服务名称。
本申请实施例通过发布消息的第一邻近感知网络属性信息来携带物联网服务信息,第一邻近感知网络属性信息的示例见表3:
表3
大小(字节) 描述
属性标识 1 标识第一邻近感知网络属性信息的类型
长度 2 物联网服务标识的长度信息
物联网服务信息 不固定 物联网服务标识
其中,属性标识域用于标识第一邻近感知网络属性信息的类型,大小为1个字节,长度域提供物联网服务的长度信息,大小为2个字节,物联网服务信息域用于指示第一物联网服务信息,大小不固定,可以为一个字节或多个字节,包括以下信息的一个或多个:物联网服务标识、物联网服务名称。例如,物联网服务标识是0x11,物联网服务名称是Matter。
S506、第一设备根据收到的发布消息,通过发布消息中的第一邻近感知网络属性信息发现物联网服务。
第一物联网服务信息中的某一物联网服务信息可以是第一设备和第二设备所共知的,因此第一设备可以发现第二设备以及该物联网服务信息对应的物联网服务。
S507、第一设备和第二设备建立针对所述物联网服务的连接。
例如,第一设备和第二设备建立基于Matter协议的连接,进行数据传输。
本申请实施例提供的通信方法,不需要物联网设备支持IP,而且降低物联网设备发现过程对物联网设备的资源要求,从而提升了发现物联网设备的普适性。
以上结合附图详细描述了本申请的优选实施方式,但是,本申请并不限于上述实施方式中的具体细节,在本申请的技术构思范围内,可以对本申请的技术方案进行多种简单变型,这些简单变型均属于本申请的保护范围。例如,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本申请对各种可能的组合方式不再另行说明。又例如,本申请的各种不同的实施方式之间也可以进行任意组合,只要其不违背本申请的思想,其同样应当视为本申请所公开的内容。又例如,在不冲突的前提下,本申请描述的各个实施例和/或各个实施例中的技术特征可以和现有技术任意的相互组合,组合之后得到的技术方案也应落入本申请的保护范围。
还应理解,在本申请的各种方法实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。此外,在本申请实施例中,术语“下行”、“上行”和“侧行” 用于表示信号或数据的传输方向,其中,“下行”用于表示信号或数据的传输方向为从站点发送至小区的用户设备的第一方向,“上行”用于表示信号或数据的传输方向为从小区的用户设备发送至站点的第二方向,“侧行”用于表示信号或数据的传输方向为从用户设备1发送至用户设备2的第三方向。例如,“下行信号”表示该信号的传输方向为第一方向。另外,本申请实施例中,术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。具体地,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
图6为本申请实施例提供的一种通信装置的结构组成示意图,应用于第一设备,如图6所示,所述通信装置600包括:
收发单元601,用于接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
连接单元602,用于基于所述第一物联网服务信息,与所述第二设备建立连接。
在一些实施例中,所述发布消息是所述第二设备广播的。
在一些实施例中,收发单元601,还用于广播订阅消息;所述订阅消息包括或指示第二物联网服务信息,所述订阅消息为邻近感知网络服务发现帧;其中,所述第二物联网服务信息包括所述第一物联网服务信息。
在一些实施例中,所述发布消息是所述第二设备向所述第一设备单播的。
在一些实施例中,通信装置还包括订阅单元603,订阅单元603用于:订阅至少一个第一服务;每个所述第一服务包括或指示物联网服务信息;其中,所述至少一个第一服务包括或指示的物联网服务信息,包括所述第一物联网服务信息中的部分或全部。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息;所述一个或多个物联网服务信息中的每个物联网服务信息包括以下至少一种信息:物联网服务标识、物联网服务名称。
在一些实施例中,所述第一物联网服务信息包括或指示Matter协议的标识或名称。
在一些实施例中,所述发布消息包括第一邻近感知网络属性信息;所述第一邻近感知网络属性信息包括所述第一物联网服务信息。
在一些实施例中,所述第一邻近感知网络属性信息还包括以下至少一种信息:第一属性标识、第一长度信息;其中,所述第一属性标识用于标识所述第一邻近感知网络属性信息的类型;所述第一长度信息用于指示所述第一物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
在一些实施例中,所述订阅消息包括第二邻近感知网络属性信息;所述第二邻近感知网络属性信息包括所述第二物联网服务信息。
在一些实施例中,所述第二邻近感知网络属性信息还包括以下至少一种信息:第二属性标识、第二长度信息;其中,所述第二属性标识用于标识所述第二邻近感知网络属性信息的类型;所述第二长度信息用于指示所述第二物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息,所述一个或多个物联网服务信息包括目标物联网服务信息;
连接单元602,还用于在所述第一设备支持与所述目标物联网服务信息对应的目标服务的情况下,与所述第二设备建立目标服务连接。
在一些实施例中,所述第一设备和所述第二设备为同一无线保真感知簇中的设备。
图7为本申请实施例提供的另一种通信装置的结构组成示意图,应用于第二设备,如图7所示,所述通信装置700包括:
收发单元701,用于向第一设备发送发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
其中,所述第一物联网服务信息用于所述第一设备与第二设备建立连接。
在一些实施例中,所述发布消息是所述第二设备广播的。
在一些实施例中,收发单元701,还用于接收所述第一设备广播的订阅消息;所述订阅消息包括或指示第二物联网服务信息,所述订阅消息为邻近感知网络服务发现帧;其中,所述第二物联网服务信息包括所述第一物联网服务信息。
在一些实施例中,所述发布消息是所述第二设备向所述第一设备单播的。
在一些实施例中,通信装置还包括发布单元702,发布单元702用于:发布至少一个第二服务;每个所述第二服务包括或指示物联网服务信息;其中,所述至少一个第二服务包括或指示的物联网服务信息,包括所述第一物联网服务信息。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息;所述一个或多个物联网服务信息中的每个物联网服务信息包括以下至少一种信息:物联网服务标识、物联网服务名称。
在一些实施例中,所述第一物联网服务信息包括或指示Matter协议的标识或名称。
在一些实施例中,所述发布消息包括第一邻近感知网络属性信息;所述第一邻近感知网络属性信息包括所述第一物联网服务信息。
在一些实施例中,所述第一邻近感知网络属性信息还包括以下至少一种信息:第一属性标识、第一长度信息;其中,所述第一属性标识用于标识所述第一邻近感知网络属性信息的类型;所述第一长度信息用于指示所述第一物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
在一些实施例中,所述订阅消息包括第二邻近感知网络属性信息;所述第二邻近感知网络属性信息包括所述第二物联网服务信息。
在一些实施例中,所述第二邻近感知网络属性信息还包括以下至少一种信息:第二属性标识、第二长度信息;其中,所述第二属性标识用于标识所述第二邻近感知网络属性信息的类型;所述第二长度信息用于指示所述第二物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
在一些实施例中,所述第一物联网服务信息包括一个或多个物联网服务信息,所述一个或多个物联网服务信息包括目标物联网服务信息;
所述第一设备和所述第二设备均支持与所述目标物联网服务信息对应的目标服务;所述第一设备和所述第二设备建立的连接为所述目标服务连接。
在一些实施例中,所述第一设备和所述第二设备为同一无线保真感知簇中的设备。
本领域技术人员应当理解,本申请实施例的上述通信装置的相关描述可以参照本申请实施例的通信方法的相关描述进行理解。
图8为本申请实施例提供的一种通信设备示意性结构图。该通信设备可以第一设备,也可以是第二设备,或者可以应用于第一设备或第二设备中。图8所示的通信设备800包括:处理器810、存储器820和收发器830,所述存储器820存储计算机程序,所述计算机程序在由所述处理器810执行时使所述处理器810经由所述收发器830实现上述任一实施例中第一设备所执行的通信方法,或者,所述计算机程序在由所述处理器810执行时使所述处理器810经由所述收发器830实现上述任一实施例中第二设备所执行的通信方法。其中,存储器820可以是独立于处理器810的一个单独的器件,也可以集成在处理器810中。
处理器810可以控制该收发器830与其他设备进行通信,例如,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。其中,收发器830可以包括发射机 和接收机。收发器830还可以进一步包括天线,天线的数量可以为一个或多个。
在一些实施例中,该通信设备800具体可为本申请实施例的第二设备,并且该通信设备800可以实现本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
在一些实施例中,该通信设备800具体可为本申请实施例的第一设备,并且该通信设备800可以实现本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。
本申请实施例还提供了一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现本申请实施例中的方法。
在一些实施例中,该计算机可读存储介质可应用于本申请实施例中的第一设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。
在一些实施例中,该计算机可读存储介质可应用于本申请实施例中的第二设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
图9是本申请实施例的芯片的示意性结构图。图9所示的芯片900包括处理器910,处理器910可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。
在一些实施例中,如图9所示,芯片900还可以包括存储器920。其中,处理器910可以从存储器920中调用并运行计算机程序,以实现本申请实施例中的方法。其中,存储器920可以是独立于处理器910的一个单独的器件,也可以集成在处理器910中。
在一些实施例中,该芯片900还可以包括输入接口930。其中,处理器910可以控制该输入接口930与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。在一些实施例中,该芯片900还可以包括输出接口940。其中,处理器910可以控制该输出接口940与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。
在一些实施例中,该芯片可应用于本申请实施例中的第一设备,并且该芯片可以实现本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。
在一些实施例中,该芯片可应用于本申请实施例中的第二设备,并且该芯片可以实现本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括计算机存储介质,所述计算机存储介质存储计算机程序,所述计算机程序包括能够由至少一个处理器执行的指令,当所述指令由所述至少一个处理器执行时实现本申请实施例中的方法。
在一些实施例中,该计算机程序产品可应用于本申请实施例中的第一设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。在一些实施例中,该计算机程序产品可应用于本申请实施例中的第二设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
本申请实施例还提供了一种计算机程序所述计算机程序使得计算机执行本申请实施例中的方法。
在一些实施例中,该计算机程序可应用于本申请实施例中的第一设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由第一设备实现的 相应流程,为了简洁,在此不再赘述。
在一些实施例中,该计算机程序可应用于本申请实施例中的第二设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
本申请实施例的处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以包括以下任一个或多个的集成:通用处理器、特定用途集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理装置(Digital Signal Processing Device,DSPD)、可编程逻辑装置(Programmable Logic Device,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)、嵌入式神经网络处理器(neural-network processing units,NPU)、控制器、微控制器、微处理器、可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
可以理解,本申请实施例中的存储器和/或计算机存储介质可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
应理解,上述存储器或计算机存储介质为示例性但不是限制性说明,例如,本申请实施例中的存储器还可以是静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)以及直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)等等。也就是说,本申请实施例中的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认 为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,第一设备或者第二设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,)ROM、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。

Claims (34)

  1. 一种通信方法,所述方法包括:
    第一设备接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
    所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接。
  2. 根据权利要求1所述的方法,其中,所述发布消息是所述第二设备广播的。
  3. 根据权利要求1所述的方法,其中,所述第一设备接收第二设备发送的发布消息之前,所述方法还包括:
    所述第一设备广播订阅消息;所述订阅消息包括或指示第二物联网服务信息,所述订阅消息为邻近感知网络服务发现帧;其中,所述第二物联网服务信息包括所述第一物联网服务信息。
  4. 根据权利要求3所述的方法,其中,所述发布消息是所述第二设备向所述第一设备单播的。
  5. 根据权利要求1至4任一项所述的方法,其中,所述第一设备接收第二设备发送的发布消息之前,所述方法还包括:
    所述第一设备订阅至少一个第一服务;每个所述第一服务包括或指示物联网服务信息;其中,所述至少一个第一服务包括或指示的物联网服务信息,包括所述第一物联网服务信息中的部分或全部。
  6. 根据权利要求1至5任一项所述的方法,其中,所述第一物联网服务信息包括一个或多个物联网服务信息;所述一个或多个物联网服务信息中的每个物联网服务信息包括以下至少一种信息:物联网服务标识、物联网服务名称。
  7. 根据权利要求1至6任一项所述的方法,其中,所述第一物联网服务信息包括或指示Matter协议的标识或名称。
  8. 根据权利要求1至7任一项所述的方法,其中,所述发布消息包括第一邻近感知网络属性信息;所述第一邻近感知网络属性信息包括所述第一物联网服务信息。
  9. 根据权利要求8所述的方法,其中,所述第一邻近感知网络属性信息还包括以下至少一种信息:第一属性标识、第一长度信息;
    其中,所述第一属性标识用于标识所述第一邻近感知网络属性信息的类型;所述第一长度信息用于指示所述第一物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
  10. 根据权利要求3或4所述的方法,其中,所述订阅消息包括第二邻近感知网络属性信息;所述第二邻近感知网络属性信息包括所述第二物联网服务信息。
  11. 根据权利要求10所述的方法,其中,所述第二邻近感知网络属性信息还包括以下至少一种信息:第二属性标识、第二长度信息;
    其中,所述第二属性标识用于标识所述第二邻近感知网络属性信息的类型;所述第二长度信息用于指示所述第二物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
  12. 根据权利要求1至11任一项所述的方法,其中,所述第一物联网服务信息包括一个或多个物联网服务信息,所述一个或多个物联网服务信息包括目标物联网服务信息;
    所述第一设备基于所述第一物联网服务信息,与所述第二设备建立连接,包括:
    在所述第一设备支持与所述目标物联网服务信息对应的目标服务的情况下,所述 第一设备与所述第二设备建立目标服务连接。
  13. 根据权利要求1至12任一项所述的方法,其中,所述第一设备和所述第二设备为同一无线保真感知簇中的设备。
  14. 一种通信方法,所述方法包括:
    第二设备向第一设备发送发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
    其中,所述第一物联网服务信息用于所述第一设备与所述第二设备建立连接。
  15. 根据权利要求14所述的方法,其中,所述发布消息是所述第二设备广播的。
  16. 根据权利要求14所述的方法,其中,所述第二设备向第一设备发送发布消息之前,所述方法还包括:
    所述第二设备接收所述第一设备广播的订阅消息;所述订阅消息包括或指示第二物联网服务信息,所述订阅消息为邻近感知网络服务发现帧;其中,所述第二物联网服务信息包括所述第一物联网服务信息。
  17. 根据权利要求16所述的方法,其中,所述发布消息是所述第二设备向所述第一设备单播的。
  18. 根据权利要求14至17任一项所述的方法,其中,所述第二设备向第一设备发送发布消息之前,所述方法还包括:
    所述第二设备发布至少一个第二服务;每个所述第二服务包括或指示物联网服务信息;其中,所述至少一个第二服务包括或指示的物联网服务信息,包括所述第一物联网服务信息。
  19. 根据权利要求14至18任一项所述的方法,其中,所述第一物联网服务信息包括一个或多个物联网服务信息;所述一个或多个物联网服务信息中的每个物联网服务信息包括以下至少一种信息:物联网服务标识、物联网服务名称。
  20. 根据权利要求14至19任一项所述的方法,其中,所述第一物联网服务信息包括或指示Matter协议的标识或名称。
  21. 根据权利要求14至20任一项所述的方法,其中,所述发布消息包括第一邻近感知网络属性信息;所述第一邻近感知网络属性信息包括所述第一物联网服务信息。
  22. 根据权利要求21所述的方法,其中,所述第一邻近感知网络属性信息还包括以下至少一种信息:第一属性标识、第一长度信息;
    其中,所述第一属性标识用于标识所述第一邻近感知网络属性信息的类型;所述第一长度信息用于指示所述第一物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
  23. 根据权利要求16或17所述的方法,其中,所述订阅消息包括第二邻近感知网络属性信息;所述第二邻近感知网络属性信息包括所述第二物联网服务信息。
  24. 根据权利要求23所述的方法,其中,所述第二邻近感知网络属性信息还包括以下至少一种信息:第二属性标识、第二长度信息;
    其中,所述第二属性标识用于标识所述第二邻近感知网络属性信息的类型;所述第二长度信息用于指示所述第二物联网服务信息中物联网服务标识和/或物联网服务名称的长度信息。
  25. 根据权利要求14至24任一项所述的方法,其中,所述第一物联网服务信息包括一个或多个物联网服务信息,所述一个或多个物联网服务信息包括目标物联网服务信息;
    所述第一设备和所述第二设备均支持与所述目标物联网服务信息对应的目标服务;所述第一设备和所述第二设备建立的连接为所述目标服务连接。
  26. 根据权利要求14至25任一项所述的方法,其中,所述第一设备和所述第二设备为同一无线保真感知簇中的设备。
  27. 一种通信装置,包括:
    收发单元,用于接收第二设备发送的发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
    连接单元,用于基于所述第一物联网服务信息,与所述第二设备建立连接。
  28. 一种通信装置,包括:
    收发单元,用于向第一设备发送发布消息;所述发布消息包括或指示第一物联网服务信息,所述发布消息为邻近感知网络服务发现帧;
    其中,所述第一物联网服务信息用于所述第一设备与第二设备建立连接。
  29. 一种第一设备,包括:收发器、处理器和存储器,所述存储器存储计算机程序,所述计算机程序在由所述处理器执行时使所述处理器经由所述收发器实现如权利要求1至13中任一项所述的方法。
  30. 一种第二设备,包括:收发器、处理器和存储器,所述存储器存储计算机程序,所述计算机程序在由所述处理器执行时使所述处理器经由所述收发器实现如权利要求14至26中任一项所述的方法。
  31. 一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1至13任一项所述方法;或者,
    所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求14至26任一项所述方法。
  32. 一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,以实现如权利要求1至13任一项所述方法;或者,
    用于从存储器中调用并运行计算机程序,以实现如权利要求14至26任一项所述方法。
  33. 一种计算机程序产品,所述计算机程序产品包括计算机存储介质,所述计算机存储介质存储计算机程序,所述计算机程序包括能够由至少一个处理器执行的指令,当所述指令由所述至少一个处理器执行时实现权利要求1至13任一项所述方法;或者,
    所述指令由所述至少一个处理器执行时实现权利要求14至26任一项所述方法。
  34. 一种计算机程序,所述计算机程序使得计算机执行如权利要求1至13任一项所述方法;或者,
    所述计算机程序使得计算机执行如权利要求14至26任一项所述方法。
PCT/CN2021/139248 2021-12-17 2021-12-17 通信方法、装置、设备、存储介质、芯片、产品及程序 WO2023108628A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202180103839.6A CN118176756A (zh) 2021-12-17 2021-12-17 通信方法、装置、设备、存储介质、芯片、产品及程序
PCT/CN2021/139248 WO2023108628A1 (zh) 2021-12-17 2021-12-17 通信方法、装置、设备、存储介质、芯片、产品及程序

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/139248 WO2023108628A1 (zh) 2021-12-17 2021-12-17 通信方法、装置、设备、存储介质、芯片、产品及程序

Publications (1)

Publication Number Publication Date
WO2023108628A1 true WO2023108628A1 (zh) 2023-06-22

Family

ID=86775326

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139248 WO2023108628A1 (zh) 2021-12-17 2021-12-17 通信方法、装置、设备、存储介质、芯片、产品及程序

Country Status (2)

Country Link
CN (1) CN118176756A (zh)
WO (1) WO2023108628A1 (zh)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108293177A (zh) * 2015-12-03 2018-07-17 佳能株式会社 通信装置、控制方法、程序以及存储介质
US20210235255A1 (en) * 2020-01-29 2021-07-29 Qualcomm Incorporated Neighborhood awareness networking (nan) extension to 6 ghz operation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108293177A (zh) * 2015-12-03 2018-07-17 佳能株式会社 通信装置、控制方法、程序以及存储介质
US20210235255A1 (en) * 2020-01-29 2021-07-29 Qualcomm Incorporated Neighborhood awareness networking (nan) extension to 6 ghz operation

Also Published As

Publication number Publication date
CN118176756A (zh) 2024-06-11

Similar Documents

Publication Publication Date Title
US10397970B2 (en) Neighbor awareness networking tree mapping
EP3198947B1 (en) Method of communication and apparatus
US9913109B2 (en) Apparatus, system and method of NAN multicast group
US20110082905A1 (en) Wlan peer-to-peer group owner negotiation
US9998879B2 (en) Apparatus, system and method of communicating traffic to a plurality of wireless devices
US20200015152A1 (en) Interconnection method and system based on wi-fi aware protocol, and master device in nan group
US10873854B2 (en) Method and apparatus for establishing connection of devices
US20180249310A1 (en) Method for transmitting and receiving data, and device therefor
US10827391B2 (en) Method and device for connecting substitute communication means by using bluetooth low energy (LE) technique
TW201210211A (en) Mobile communication device and communicative transmission method
KR20160021869A (ko) 컨텍스트 관리
US20170164186A1 (en) Flexible BTLE TDS Frame Format for Bi-Directional Service Discovery
Kajikawa et al. On availability and energy consumption of the fast connection establishment method by using Bluetooth Classic and Bluetooth Low Energy
US10721611B2 (en) Method and device for controlling device by using Bluetooth technology
WO2016191718A1 (en) Proxy advertisements in a neighbor aware network
WO2017113176A1 (zh) 临近感知网络nan中用于服务发现的方法和终端设备
WO2013091135A1 (en) Method and apparatus for facilitating gateway selection
WO2016191722A1 (en) Proxy advertisements in a neighbor aware network
CN106465238A (zh) 用于在临近感知网络nan中进行服务发现的方法及装置
US10194477B2 (en) Method and apparatus for controlling a device using bluetooth technology
TW202110266A (zh) 在網狀網路中之裝置之間共享之定向轉遞資訊
WO2017041534A1 (zh) 一种电力线网络通信的方法及装置、计算机存储介质
WO2023108628A1 (zh) 通信方法、装置、设备、存储介质、芯片、产品及程序
WO2019141375A1 (en) Method and device for sharing an established connection between a primary device and one of a plurality of secondary devices in a network
US10305771B2 (en) Proximity Wi-Fi

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21967761

Country of ref document: EP

Kind code of ref document: A1