WO2024061034A1 - Communication method and communication apparatus - Google Patents

Communication method and communication apparatus Download PDF

Info

Publication number
WO2024061034A1
WO2024061034A1 PCT/CN2023/117905 CN2023117905W WO2024061034A1 WO 2024061034 A1 WO2024061034 A1 WO 2024061034A1 CN 2023117905 W CN2023117905 W CN 2023117905W WO 2024061034 A1 WO2024061034 A1 WO 2024061034A1
Authority
WO
WIPO (PCT)
Prior art keywords
query request
broadcast
query
information
offset
Prior art date
Application number
PCT/CN2023/117905
Other languages
French (fr)
Chinese (zh)
Inventor
蒋钟寅
周艳
郑博文
茆意伟
王键
程型清
高磊
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024061034A1 publication Critical patent/WO2024061034A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular, to a communication method and a communication device.
  • short-range communication technology is a commonly used method of communication between communication devices, such as Bluetooth or wireless fidelity (WiFi).
  • WiFi wireless fidelity
  • the Sparklink Alliance was established and is committed to promoting a new generation of wireless short-distance communication technology innovation and industrial ecology.
  • the embodiments of the present application provide a communication method and a communication device, which can improve the efficiency of short-range communication of a communication device and give full play to the discovery performance of the communication device.
  • a communication method including: a discovery device receives broadcast information from a broadcast device; the discovery device sends at least one query request frame to the broadcast device based on the broadcast information and filtering indication information of at least one query request, The query request frame corresponds one-to-one to the filtering instruction information of the query request; the discovery device receives at least one query response frame from the broadcast device, and the query response frame corresponds to the filtering instruction information of the query response one-to-one.
  • the broadcast information may be queryable broadcast information, and the queryable broadcast information includes queryable basic broadcast information and queryable extended broadcast information.
  • the filtering instruction information of the query request may also be called the filtering conditions of the query request, and this application does not limit this name.
  • the filtering indication information of the query request may be preconfigured.
  • the discovery device can filter the received broadcast information in order to send filtered query request frames, which improves the accuracy of communication interaction between the discovery device and the broadcast device, and improves the efficiency of communication transmission.
  • the discovery device sends at least one query request frame to the broadcast device based on the broadcast information and the filtering indication information of the at least one query request, including: the discovery device in the first Send at least one query request frame within an offset based on the broadcast information and at least one filtering indication information of the query request.
  • the offset of the query request includes the first offset.
  • the offset of the query request is used to Indicates the starting time of sending the query request frame.
  • the discovery device filters the broadcast information within a certain filtering processing time (first offset) in order to determine the query request frame to request more accurate data content.
  • the filtering instruction information of the query request includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, manufacturer data.
  • the broadcast information can be filtered according to the filtering instruction information of the above query request.
  • the filtering instruction information of the above query request can also be composed of the AND/OR/NOT combination of single or multiple conditions in the device address, device name, service UUID, service data, manufacturer data and other information.
  • the discovery device supports filtering broadcast information and sends corresponding query request frames, thereby improving the efficiency of data content transmission between the discovery device and the broadcast device.
  • the query request frame includes a data type field
  • the data type field includes one of query request information and query response information
  • the query request information includes the requested service UUID.
  • the requested service UUID may be included in the query request information of the query request frame.
  • the query request frame includes a data type field
  • the data type field includes the request service UUID
  • the requested service UUID may be included in the data type field of the query request frame.
  • the broadcast information includes extended broadcast information
  • the extended broadcast information includes at least one of the following: an offset of the query request, an offset of the query response, the The first offset, the offset of the query response is used to indicate the starting moment of receiving the query response frame.
  • the offset of the query request, the offset of the query response and the first offset can be configured to the discovery device through broadcast information.
  • the extended broadcast information may be queryable extended broadcast information.
  • the offset of the query request, the offset of the query response, and the first offset may be system defaults.
  • a communication method including: a broadcast device sends broadcast information to a discovery device; the broadcast device receives at least one query request frame from the discovery device, and the query request frame and the filtering indication information of the query request are one by one. Correspondingly; the broadcast device sends at least one query response frame to the discovery device based on at least one query request frame and at least one query response filtering indication information, and the query response frame corresponds one-to-one with the query response filtering indication information.
  • the broadcast information may be queryable broadcast information, and the queryable broadcast information includes queryable basic broadcast information and queryable extended broadcast information.
  • the filtering instruction information of the query response may also be called the filtering condition of the query response, and this application does not limit this name.
  • the filtering indication information of the query response may be preconfigured.
  • the broadcast device can filter the received query request frame in order to send the filtered query response frame, which improves the accuracy of communication interaction between the discovery device and the broadcast device and improves the efficiency of communication transmission.
  • the broadcasting device sends at least one query response frame to the discovery device based on the filtering indication information of at least one of the query request frames and at least one query response, including: the broadcasting device sends at least one query response frame to the discovery device based on the filtering indication information of the at least one of the query request frames and at least one query response within the second offset, the offset of the query response includes the second offset, and the offset of the query response is used to indicate the starting time of sending the query response frame.
  • the broadcast device filters the query request frame within a certain filtering processing time (the second offset) in order to determine the query response frame to feed back more accurate data content.
  • the filtering instruction information of the query response includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, manufacturer data.
  • the query request frame can be filtered according to the filtering instruction information of the above query response.
  • the filtering instruction information of the above query response can also be composed of the AND/OR/NOT combination of single or multiple conditions in the device address, device name, service UUID, service data, manufacturer data and other information.
  • the broadcast device supports filtering query request frames and sends corresponding query response frames, thereby improving the efficiency of data content transmission between the discovery device and the broadcast device.
  • the query request frame includes a data type field
  • the data type field includes one of query request information and query response information
  • the query request information includes the requested service UUID.
  • the requested service UUID may be included in the query request information of the query request frame.
  • the query request frame includes a data type field
  • the data type field includes the request service UUID
  • the requested service UUID may be included in the data type field of the query request frame.
  • the broadcast information includes extended broadcast information
  • the extended broadcast information includes at least one of the following: an offset of the query request, an offset of the query response, the The second offset, the offset of the query request is used to indicate the starting time of receiving the query request frame.
  • the offset of the query request, the offset of the query response and the second offset can be configured to the discovery device through broadcast information.
  • the extended broadcast information may be queryable extended broadcast information.
  • the offset of the query request, the offset of the query response, and the second offset may be system defaults.
  • a communication system including: a discovery device and a broadcast device.
  • the discovery device receives broadcast information from the broadcast device; the discovery device sends a request to the broadcast device based on the broadcast information and the filtering instruction information of at least one query request.
  • Send at least one query request frame which corresponds one-to-one to the filtering indication information of the query request; the broadcast device sends at least one query to the discovery device based on the at least one query request frame and the filtering indication information of at least one query response.
  • Response frame, the query response frame corresponds to the filtering instruction information of the query response one-to-one.
  • the discovery device sends at least one query request frame to the broadcast device according to the broadcast information and the filtering indication information of the at least one query request, including: the discovery device in the first Send at least one query request frame within an offset based on the broadcast information and at least one filtering indication information of the query request.
  • the offset of the query request includes the first offset. The offset of the query request is used to Indicates the starting time when the discovery device sends the query request frame.
  • the broadcasting device sends at least one query response frame to the discovery device based on the filtering indication information of the at least one query request frame and the at least one query response, including: the broadcasting device sends at least one query response frame to the discovery device based on the filtering indication information of the at least one query request frame and the at least one query response within a second offset, the offset of the query response includes the second offset, and the offset of the query response is used to indicate the starting time when the broadcasting device sends the query response frame.
  • the filtering instruction information of the query request includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, manufacturer Data; the filtering instruction information of the query response includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, and manufacturer data.
  • the query request frame includes a data type field
  • the data type field includes one of query request information and query response information
  • the query request information includes the requested service UUID.
  • the query request frame includes a data type field
  • the data type field includes the request service UUID.
  • the broadcast information includes extended broadcast information
  • the queryable extended broadcast information includes at least one of the following: an offset of the query request, an offset of the query response , the first offset, and the second offset.
  • a communication device including: a module for performing the method in the first aspect and any possible implementation thereof, or a module for performing the method in the second aspect and any possible implementation thereof.
  • Method module including: a module for performing the method in the first aspect and any possible implementation thereof, or a module for performing the method in the second aspect and any possible implementation thereof.
  • a fifth aspect provides a communication device, including: a processor coupled to a memory, the memory is used to store a computer program, and the processor is used to run the computer program, so that the communication device performs the above-mentioned first aspect and any of the above.
  • the device further includes one or more of the memory and a transceiver, the transceiver being used to receive signals and/or send signals.
  • a computer-readable storage medium includes a computer program or instructions.
  • the computer program or instructions When the computer program or instructions are run on a computer, it makes possible as in the first aspect and any of the instructions thereof.
  • the method in the implementation is executed, or the method in the second aspect and any possible implementation thereof is executed.
  • a computer program product includes a computer program or instructions.
  • the computer program or instructions When the computer program or instructions are run on a computer, the computer program or instructions perform as in the first aspect and any possible implementation manner thereof.
  • the method is executed, or causes the method in the second aspect and any possible implementation thereof to be executed.
  • An eighth aspect provides a computer program that, when run on a computer, causes the method in the first aspect and any of its possible implementations to be executed, or causes the method in the second aspect and any of its possible implementations to be executed. Methods in possible implementations are executed.
  • Figure 1 is a schematic diagram of a new star flash short-range protocol architecture provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of a wireless short-range communication scenario application provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of a new short-range star flash protocol architecture provided by an embodiment of the present application.
  • FIG. 4 is a structural diagram of a communication device provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of a communication method provided by an embodiment of the present application.
  • Figure 6 is a schematic flow chart of a communication method 600 provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a discovery process provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of queryable broadcast filtering provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of filtering query request messages provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of a discovery device filtering process provided by an embodiment of the present application.
  • Figure 11 is a schematic diagram of a device disclosure information data structure provided by an embodiment of the present application.
  • Figure 12 is a schematic flow chart of a communication method 1200 provided by an embodiment of the present application.
  • Figure 13 is a schematic block diagram of a communication device 1300 provided by an embodiment of the present application.
  • Figure 14 is a schematic block diagram of a chip system 1400 provided by an embodiment of the present application.
  • the communication method provided by the embodiment of the present application can be used in any communication system, which may include short-range communication systems, cellular communication systems (for example, long term evolution (LTE) systems, new radio access technology, NR)), global interoperability for microwave access (WiMAX) communication systems and various types of next-generation communication systems (such as the sixth generation (the sixth generation, 6G) mobile communication systems), etc., are not allowed limit.
  • the short-range communication system can be a Bluetooth communication system, a low-power Bluetooth communication system, a wireless-fidelity (Wi-Fi) communication system, and various types of next-generation short-range communication systems, etc., without limitation.
  • the communication system can include multiple communication devices, and each communication device can adopt the Star Flash new short-range protocol as shown in Figure 1 to communicate through wireless short-range communication technology to achieve information sharing and wireless transmission of services. It then carries scenario applications such as tablet computer 210, smart screen 220, personal computer 230, smart watch 240, Bluetooth headset 250, smart phone 260 and smart car 270 as shown in Figure 2 and meets the performance requirements of each communication device.
  • scenario applications such as tablet computer 210, smart screen 220, personal computer 230, smart watch 240, Bluetooth headset 250, smart phone 260 and smart car 270 as shown in Figure 2 and meets the performance requirements of each communication device.
  • the communication device can be any device with sending and receiving functions, including but not limited to cellular phones, cordless phones, session initiation protocol (session initiation protocol, SIP) phones, smart phones, wireless local Wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication function, computing device, vehicle-mounted device, wearable device, drone device, Internet of Things or Internet of Vehicles communications equipment, other devices connected to wireless modems, etc.
  • SIP session initiation protocol
  • WLL wireless local Wireless local loop
  • PDA personal digital assistant
  • the communication device can also be a communication device in virtual reality (VR), a communication device in augmented reality (AR), a communication device in industrial control (such as smart manufacturing), or driverless driving Communication equipment in (self driving), communication equipment in remote medical (remote medical), communication equipment in smart grid (smart grid), communication equipment in smart city (smart city), communication equipment in smart home (smart home) Communication equipment, etc.
  • VR virtual reality
  • AR augmented reality
  • industrial control such as smart manufacturing
  • driverless driving Communication equipment in (self driving)
  • communication equipment in remote medical remote medical
  • communication equipment in smart grid smart grid
  • communication equipment in smart city smart city
  • communication equipment in smart home smart home
  • the communication device may also be a personal portable communication device, a computer peripheral device, and various household or industrial electrical devices, including but not limited to a smart phone, a smart screen, a smart speaker (such as an artificial intelligence (AI) speaker, a high fidelity (HiFi) speaker), a smart sensor, a television wireless headset, a VR headset, a tablet computer, a display, a camera, a laptop computer, a vehicle-mounted computer, a vehicle-mounted terminal (such as a microphone, speakers, etc.), projectors, printers, smart wristbands, smart watches, smart glasses, smart cars, smart lathes, smart monitoring equipment, etc.
  • a smart phone such as an artificial intelligence (AI) speaker, a high fidelity (HiFi) speaker
  • AI artificial intelligence
  • HiFi high fidelity
  • the communication device shown in Figure 2 can host a variety of applications, and two-way broadcast communication can be performed between different communication devices to improve the perception of peripheral devices and achieve more efficient information interaction capabilities.
  • application A on the smart phone 260 can request more detailed data information from the application A on the peripheral device PC 230.
  • the peripheral device of the smart phone 260 is changed to the smart car 270, the application on the smart phone 260 A can request more detailed data information from application A on the peripheral smart car 270 . That is to say, when there are a large number of communication devices or the scene in which the communication devices are located is constantly changing, the communication method provided by the embodiments of the present application can more conveniently realize data interaction between the communication device and the application program on the peripheral device.
  • the embodiments of the present application do not place any special restrictions on the specific form of the communication device.
  • the types of each communication device in the communication system can be partially the same, completely identical, or completely different.
  • the communication system may include at least two communication devices.
  • the at least two communication devices may include the discovery device and the broadcast device in the following embodiments. There may be one or more discovery devices, and the broadcast device may also be There may be one or more.
  • a discovery device and a broadcast device are taken as examples to describe the communication method and communication device provided by this application.
  • Star Flash's new short-range protocol architecture can include access layer, host (Host) and application (application, APP).
  • the access layer can support multiple access technologies at the same time.
  • Above the access layer is a normalized host protocol, and the host can dynamically schedule the access technologies supported by the access layer according to the corresponding needs of the application.
  • the host may include a basic application layer and a basic service layer.
  • the basic application layer can be responsible for undertaking different business requirements of upper-layer applications (for example, business requirement 1, business requirement 2,..., business requirement 5, etc.), and based on inter-layer primitives, ports ( One or more of port), application identification (Application Identification, AID), Internet Protocol (Internet Protocol, IP) address completes the routing of data to the basic service layer.
  • upper-layer applications for example, business requirement 1, business requirement 2,..., business requirement 5, etc.
  • ports One or more of port
  • application identification Application Identification, AID
  • Internet Protocol Internet Protocol
  • the port can be a channel of the basic application layer.
  • the basic application layer can register a port for the application's business and send the business data to the basic service layer through the port.
  • the application identifier can be the mapping identifier of the business function set of the application layer and the quality of service (QoS) flow.
  • QoS quality of service
  • Different sets of business functions can be distinguished by business identification (BID).
  • the basic application layer may include multiple different business function sets (or described as business modules or business frameworks), and different business function sets may include classified data processing for the business.
  • the basic application layer may include a basic communication framework, a universal perception framework, a universal video framework, a universal audio framework, a universal data framework, a vehicle control framework, etc.
  • the general perception framework can include the processing of sensory data
  • the general video framework can include the processing of video, such as encoding and decoding
  • the general audio framework can include the processing of audio, such as encoding and decoding
  • the general data framework can include file processing.
  • the vehicle control framework can include the processing of vehicle control data.
  • the basic service layer can include multiple modules or functional units, including but not limited to device discovery module, service discovery module, connection management module, QoS management module, security management module, measurement management module, multi-domain Coordination module, fifth generation mobile communication technology (5G) integration module, etc., to realize the creation, addition, deletion, release, etc. of transmission channel (TC), as well as logical channel (LC) ) control (such as access technology selection) and other functions, and undertake the business requirements of the basic application layer (such as traffic, rate, sound quality, resolution).
  • the basic service layer can be compatible with a variety of access layer technologies supported by the access layer, such as the above-mentioned SLB access technology, SLE access technology and other access technologies, and retains the ability to be compatible with more access technologies in the future.
  • the device discovery module can be used to discover devices when there is no connection to the device.
  • the service discovery module can be used to discover and operate services on the device.
  • the connection management module can be used to manage transmission channels, including creation/addition/deletion/release, etc.
  • the QoS management module can be used to manage and negotiate transmission QoS.
  • the security management module can be responsible for the secure connection of the basic service layer.
  • the measurement management module can be used to configure underlying measurement and scheduling for power control, etc.
  • the multi-domain coordination module can realize information interaction between domains in the scenario where multiple domains (subnets) exist, and achieve interference avoidance and load balancing between multiple domains.
  • the 5G convergence module can be used to establish a channel with cellular 5G remote management capabilities, and implement devices with cellular 5G remote control capabilities through authentication and authentication mechanisms.
  • the transmission channel can be a channel of the basic service layer, and the logical channel (or described as a logical link) can be a channel of the access layer.
  • One logical channel corresponds to one access technology.
  • the basic application layer of the communication device Data can be sent to the basic service layer through the port, the basic service layer can send data to the access layer through the transmission channel, and the access layer can send or broadcast data through the logical channel.
  • the access layer of the communication device can send the received or scanned data to the basic service layer through the logical channel, and the basic service layer can send the data to the basic application through the transmission channel and port. layer.
  • the basic application layer can send non-IP data carrying AID to the basic service layer through the port, or it can send IP data carrying IP quintuples through the port.
  • the basic service layer can be based on the transmission control adaptation protocol and send the data sent by the basic application layer to the access layer through the transmission channel; it can also be based on the IP protocol and send the data sent by the basic application layer to the access layer through the transmission channel; or Data transparent transmission can be used to send data sent by the basic application layer to the access layer through the transmission channel.
  • Data transmission based on the transmission control adaptation protocol can be determined through ultra path interconnect (UPI), or data transmission based on the IP protocol, or data transmission using data transparent transmission.
  • UPI ultra path interconnect
  • the transmission of the basic service layer can be divided into control plane transmission and business plane transmission.
  • the transmission channel of the basic service layer can include a control channel and a business channel.
  • the control channel is used to transmit control plane data
  • the business channel is used to transmit control plane data. For transmitting business side data.
  • the service channels may include unicast service channels, multicast service channels and broadcast service channels.
  • the unicast service channel is a service channel used to transmit unicast services and can realize point-to-point transmission.
  • the multicast service channel is a service channel used to transmit multicast services. It can realize point-to-group transmission. It has feedback (ack) at the bottom layer and has a certain underlying reliability.
  • the broadcast service channel is a service channel used to transmit broadcast services. It can achieve connectionless transmission. There is no feedback (ack) at the bottom layer and requires multiple transmissions to ensure reliability.
  • one or more ports of the basic application layer may correspond to the same transmission channel of the basic service layer, and one or more transmission channels of the basic service layer may correspond to the same logical channel of the access layer.
  • logical channels are the basis for establishing transmission channels in the basic service layer. Only after the logical channels are successfully established can the transmission channels of the basic service layer be available.
  • the access layer can be responsible for the processing of the underlying logical channels, such as the establishment, reconfiguration, deletion, etc. of logical channels, to undertake the business needs of the basic service layer (such as reliable data, real-time data, etc.).
  • logical channels can be used to transmit services between two communication devices.
  • the access layer can include a variety of access technologies, including but not limited to the access technology of Sparklink basic (SLB) short-range wireless communication system, Sparklink low energy (SLE) short-range wireless communication System access technology and other access technologies, such as Bluetooth low energy (BLE) technology, other StarLight Alliance access technologies in the future, etc.
  • SLB Sparklink basic
  • SLE Sparklink low energy
  • BLE Bluetooth low energy
  • the access layer may include a data link layer and a physical layer.
  • the data link layer can be used to implement resource management, access control, data segmentation, cascading, reordering and other functions to ensure reliable transmission of data.
  • the physical layer can use the transmission medium to provide physical connections for the data link layer to achieve transparent transmission of bit streams.
  • the data link layer may also include a link control layer and a media access layer.
  • the link control layer is mainly based on the links established between nodes, and interacts with the link control protocol (LCP) on the control link to perform functions such as physical/logical link management and device behavior control.
  • the media access layer is responsible for allocating wireless resources and providing data transmission services for the link control layer.
  • its access layer can implement SLB access and SLE access respectively through different modules. enter.
  • the host protocol including the basic application layer and the basic service layer can be adapted to the underlying access layer to support the needs of different services.
  • the host protocol can be provided to initiate a set of business functions. business requests, and transmit and control business data.
  • FIG. 4 is a schematic diagram of the composition of a communication device 400 provided by an embodiment of the present application.
  • the communication device 400 can be a basic application layer or a chip or a system-on-chip in the basic application layer; it can also be a basic service layer or a basic service layer.
  • the communication device 400 includes a processor 401 , a transceiver 402 and a communication line 403 .
  • the communication device 400 may also include a memory 404.
  • the processor 401, the memory 404 and the transceiver 402 may be connected through a communication line 403.
  • the processor 401 is a central processing unit (CPU), a general-purpose processor, a network processor (NP), a digital signal processing (DSP), a microprocessor, a microcontroller, Programmable logic device (PLD) or any combination thereof.
  • the processor 401 can also be other devices with processing functions, such as circuits, devices or software modules, without limitation.
  • Transceiver 402 used to communicate with other devices or other communication networks.
  • the other communication network may be Ethernet, wireless access network (radio access network, RAN), wireless local area networks (wireless local area networks, WLAN), etc.
  • Transceiver 402 may be a module, a circuit, a transceiver, or any device capable of communicating.
  • the communication line 403 is used to transmit information between various components included in the communication device 400 .
  • Memory 404 used to store instructions. Wherein, the instructions may be computer programs.
  • the memory 404 can be a read-only memory (ROM) or other types of static storage devices that can store static information and/or instructions, or it can be a random access memory (random access memory, RAM) or other types of static storage devices that can store static information and/or instructions.
  • ROM read-only memory
  • RAM random access memory
  • Other types of dynamic storage devices that store information and/or instructions can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD- ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, etc., are not restricted.
  • EEPROM electrically erasable programmable read-only memory
  • CD- ROM compact disc read-only memory
  • optical disc storage including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • the memory 404 may exist independently of the processor 401 or may be integrated with the processor 401.
  • the memory 404 can be used to store instructions or program codes or some data.
  • the memory 404 may be located within the communication device 400 or outside the communication device 400, without limitation.
  • the processor 401 is configured to execute instructions stored in the memory 404 to implement the communication method provided by the following embodiments of the application.
  • the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4 .
  • the communication device 400 includes multiple processors.
  • the processor 401 in FIG. 4 it may also include a processor 407.
  • the communication device 400 also includes an output device 405 and an input device 406.
  • the input device 406 is a device such as a keyboard, a mouse, a microphone, or a joystick
  • the output device 405 is a device such as a display screen, a speaker, or the like.
  • the communication device 400 may be a desktop computer, a portable computer, a network server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system or a device with a similar structure as shown in Figure 4 .
  • the composition structure shown in Figure 4 does not constitute a limitation of the communication device.
  • the communication device may include more or less components than shown in the figure, or combine certain components. , or a different component arrangement.
  • the chip system may be composed of a chip, or may include a chip and other discrete devices.
  • actions, terms, etc. involved in various embodiments of this application can be referred to each other and are not limited.
  • the name of the message exchanged between the various devices or the name of the parameters in the message is just an example, and other names may also be used in the specific implementation without limitation.
  • embodiments of the present application provide a communication method and a communication device, which can avoid the waste of resources caused by frequent establishment of connections between communication devices and at the same time improve the communication efficiency between applications on the communication devices so as to fully Leverage the discovery capabilities of communication devices.
  • Figure 5 shows a schematic diagram of a communication method.
  • this method can be applied to discovery devices and broadcast devices. This method is described in detail below.
  • Broadcast devices can broadcast basic broadcast frames and extended broadcast frames. Both basic broadcast frames and extended broadcast frames can carry data. Extended broadcast frames include queryable extended broadcast frames and non-queryable extended broadcast frames, and basic broadcast frames include queryable basic broadcast frames and non-queryable basic broadcast frames.
  • the broadcast device first sends the basic broadcast frame and then the extended broadcast frame.
  • Discovery devices can receive basic broadcast frames and extended broadcast frames sent by broadcasting devices. After the discovery device receives the queryable extended broadcast frame, the discovery device can send a query request frame to the broadcast device to request more data. After receiving the query request frame, the broadcast device can reply with a query response frame.
  • the query response frame may include data requested by the discovery device.
  • the discovery device When the discovery device receives a non-queryable extended broadcast frame, the discovery device does not need to send a query request frame.
  • the access layer of the discovery device can report the data content already carried in the basic broadcast frame and the non-queryable extended broadcast frame layer by layer.
  • the broadcast device can receive query request frames within the receiving window.
  • the query request frames can be multiple identical query request frames sent by the same discovery device, or multiple different query request frames sent by the same discovery device, or It can be query request frames sent by multiple different discovery devices.
  • the broadcast device may send a query response frame, which may be one or more query response frames replied to one discovery device, or may be query response frames fed back separately to multiple discovery devices.
  • Queryable extended broadcast frame It can include the offset of the query request configured in advance, the offset of the query response, the maximum length of the request, the number of requested windows, etc.
  • the discovery device can send a query request frame at the start time of the query request window, and the broadcast device can send a query response frame at the start time of the query response window.
  • the query request message may include one or more query request frames, and the query response message may include one or more query response frames.
  • Figure 5 exemplarily shows the discovery process of a broadcast device and a discovery device.
  • the specific process is as follows:
  • the broadcast device sends basic broadcast frames and extended broadcast frames.
  • the time interval between the sending start times of each two adjacent basic broadcast frames is the interval of the basic broadcast frames.
  • the interval between the sending start time of basic broadcast frame 2 and the sending start time of basic broadcast frame 1 is the basic broadcast frame interval.
  • the discovery device receives basic broadcast frames and/or extended broadcast frames.
  • both the basic broadcast frame and the extended broadcast frame include data.
  • the discovery device can first receive the basic broadcast frame. When the data in the basic broadcast frame does not meet the needs of the discovery device, the discovery device can then receive the extended broadcast frame to obtain the data in the extended broadcast frame. For example, the discovery device opens a discovery window and receives basic broadcast frames and extended broadcast frames within the discovery window.
  • the extended broadcast frame may include the offset of the query request and the number of request windows configured in advance.
  • the discovery device can use the offset of the query request configured in the queryable extended broadcast frame.
  • One or more query request windows send one or more query request frames. After the discovery device receives the non-queryable extended broadcast frame, the discovery device will not send a query request frame, and the discovery process ends.
  • the broadcast device receives the query request frame and sends the query response frame.
  • the receiving window will be opened to receive the query request frame sent by the sending device.
  • the extended broadcast frame may include the offset of the query response and the number of query response windows configured in advance. After the broadcast device receives the query request frame within the reception window, it can send the query response frame through one or more query response windows after querying the offset of the query response configured in the extended broadcast.
  • a query response frame may include responses from one or more discovered devices.
  • the discovery device receives the query response frame.
  • the discovery device receives a query response frame sent by the broadcast device, the discovery process is completed.
  • the broadcast device can continue to send the basic broadcast frame 4 as shown in Figure 5.
  • the interval between the start time of sending the basic broadcast frame 1 and the start time of sending the basic broadcast frame 4 is the broadcast cycle interval of the broadcast device.
  • Figure 5 above introduces a mutual discovery process between a broadcast device and a discovery device.
  • the process 500 can realize data transmission without establishing a connection between the discovery device and the broadcast device.
  • the discovery device has a large number of peripheral devices that need to exchange data, or the discovery device is in a mobile state, resource consumption caused by frequent establishment of connections between the discovery device and peripheral devices can be avoided, and the efficiency of data transmission between devices can be improved.
  • Figure 6 shows a communication method provided by the present application. schematic flow chart. Taking a discovery device and a broadcast device as an example, method 600 will be described in detail below.
  • the broadcast device pre-configures the filtering conditions of the query response.
  • S602 Discover that the device pre-configures the filtering conditions of the query request.
  • filtering conditions may also be called filtering instruction information, and this application does not limit this name.
  • Filter conditions can be pre-configured for broadcast devices and discovery devices respectively.
  • the filter conditions can be one or more of the device address, device name, service universal unique identifier (UUID), service data, manufacturer data and other information.
  • UUID service universal unique identifier
  • the basic application layer of the broadcast device can configure a query response filtering policy according to business needs, and convert the query response filtering policy into a query response filtering command that the access layer can understand at the basic service layer.
  • the basic application layer of the discovery device can configure the query request filtering policy according to business needs, and convert the query request filtering policy into query request filtering commands that the access layer can understand at the basic service layer.
  • the discovery device and the broadcast device can respectively pre-configure the filtering conditions of the query request and the filtering conditions of the query response, so that in the subsequent process, the discovery device and the broadcasting device respectively configure the corresponding filtering conditions according to the filtering conditions of the query request and the query response.
  • letter Information is filtered.
  • the filtering conditions of the query request and the filtering conditions of the query response are respectively used to filter the queryable broadcast and to filter the query request message. Therefore, the two filtering conditions may be different. It should be understood that this application does not limit the execution order of steps S601 and S602.
  • the broadcast device sends a queryable broadcast, and accordingly, the discovery device receives the queryable broadcast.
  • queryable broadcasts include queryable basic broadcasts and queryable extended broadcasts.
  • the access layer of the discovery device may initiate scanning, and during the scanning process, may receive queryable broadcasts from the broadcasting device.
  • the discovery device filters the queryable broadcasts according to the filtering conditions of the query request.
  • the queryable broadcast when the discovery device receives a queryable broadcast, the queryable broadcast can be filtered according to the preconfigured filtering conditions of the query request.
  • the queryable broadcast after condition processing can match the corresponding query request frame.
  • the specific process of filtering queryable broadcasts can be found in the description of Figure 8 below.
  • the discovery device sends a query request frame, and accordingly, the broadcast device receives the query request frame.
  • the discovery device after the discovery device matches the query request frame corresponding to the queryable broadcast, it will send a query request frame to the broadcasting device to request more data content.
  • the access layer of the broadcast device receives the query request frame, it can report it to the basic application layer through the basic service layer, and perform analysis and processing on the basic application layer of the broadcast device.
  • the broadcast device filters the query request frame according to the filtering conditions of the query response.
  • the query request frame can be filtered according to the preconfigured filtering conditions of the query response.
  • the query request frame after filtering can match the corresponding query response frame.
  • the specific process of filtering the query request frame can be found in the description of Figure 9 below.
  • the broadcast device sends a query response frame, and accordingly, the discovery device receives the query response frame.
  • the query response frame may include specific data content requested by the discovery device from the broadcast device.
  • the access layer of the discovery device receives the query response frame, it can report it to the basic application layer through the basic service layer, and perform analysis and processing on the basic application layer of the discovery device.
  • the above query request frame and query response frame may be transmitted in message units.
  • method 600 filters the queryable broadcast and query request frames, and can obtain the query request frame matching the queryable broadcast, and the query request frame matching the query request frame.
  • the query response frame improves the accuracy and efficiency of data transmission between communication devices.
  • filtering information requires processing time.
  • Figure 7 shows the discovery process of discovering devices and broadcasting devices on the timeline. The discovery process will be introduced below using the smartphone 360 and the smart car 370 as examples.
  • the smart phone 260 includes two communication devices, a smart phone 260 and a smart car 270.
  • the smart phone 260 is a broadcasting device or can be considered a power consumption sensitive device; the smart car 270 is a discovery device or can be considered a power consumption sensitive device. consumption of insensitive equipment.
  • 701 and 702 represent two timelines. For example, for the smart phone 260, it starts sending queryable broadcasts at time t2, and can send one or more queryable broadcast frames during the time period t2 to t3; it starts receiving query request frames at time t4, and it can send query request frames during the time period t4 ⁇ t7.
  • One or more query request frames can be received; query response frames start to be sent at time t8, and one or more query response frames can be sent within the time period from t8 to t9.
  • scanning starts at time t1 and a certain query request frame is sent at time t5. It should be understood that the smart car 270 can send one or more query request frames.
  • time t5 represents the first query request frame sent by the smart car 270 after receiving the queryable broadcast
  • time t5 coincides with time t4
  • time t5 is the smart car 270. The starting time when car 270 sends the query request frame.
  • the smartphone 260 is a power sensitive device, so the device may send queryable broadcasts periodically. For example, on the timeline 701, during the time period from t0 to t2, the smartphone 260 is in a sleep state to save power consumption, and at time t2, it starts sending queryable broadcasts.
  • the smart car 270 is a power consumption insensitive device and can start scanning at time t1 to ensure that the queryable broadcast sent by the smart phone 260 is received. In addition, the smart car 270 can also receive broadcast messages from other communication devices during the scanning process. .
  • the smart phone 260 can enter the state of receiving the query request frame. For example, at time t4, the smartphone 260 enters a state of receiving a query request frame, and this state requires a certain dwell time. For example, during the time period from t4 to t7, the smartphone 260 is in a state of receiving a query request frame.
  • the smart phone 260 needs to receive the query request frame sent by the smart car 270 within the residence time.
  • the smart car 270 also needs to stay in the scanning state long enough, for example, the time period t1 to t10, in order to receive the query response frame sent by the smart phone 260.
  • the discovery process includes a stage of filtering based on two filtering conditions, respectively.
  • the smart car 270 performs filtering processing on queryable broadcasts, and the smart phone 260 performs filtering processing on query request frames.
  • the filtering processing time can be the system default processing time, or the processing time configured through queryable broadcast.
  • the smart phone 260 and the smart car 270 can agree on time offset #1 and time offset #2.
  • time offset #1 is the time period t3 ⁇ t4, used to represent the processing time of the smart car 270 to filter the queryable broadcast; time offset #2 is the time period t7 ⁇ t8, used to represent the smart phone 270 260 processing time for filtering query request frames.
  • the two time offsets can be standard fixed values, such as an intra-frame space (IFS) length. Different wireless communication media can have different IFS lengths. If the IFS length is not long enough, you can define a new offset length.
  • IFS intra-frame space
  • the time offset not only the above-mentioned filtering processing can be performed, but other wireless tasks can also be processed, such as data transmission and reception, broadcast transmission and reception, scanning, etc.
  • the smart car 270 may continue to scan and receive broadcast messages from multiple communication devices within time offset #1.
  • Figure 8 shows a filtering process flow for queryable broadcasts. This filtering process can be applied to discover devices.
  • the discovery device After the discovery device receives the queryable broadcast, it can match the queryable broadcast with the filtering conditions of the query request.
  • the filter conditions of each query request can have corresponding query request frames. For example, as shown in Figure 8, the filtering condition 1 of the query request corresponds to the query request frame 1, the filtering condition 2 of the query request corresponds to the query request frame 2, the filtering condition 3 of the query request corresponds to the query request frame 3, and the filtering of the query request Condition N corresponds to query request frame N.
  • the discovery device can send a query request frame corresponding to the filtering condition. For example, when the content of the queryable broadcast satisfies the filtering condition 1 of the query request, the discovery device sends the query request frame 1; when the content of the queryable broadcast satisfies the filtering conditions 2 and 3 of the query request, the discovery device sends the query request frame. 2 and 3.
  • the query request message sent by the discovery device may include one or more query request frames.
  • the filtering conditions of the query request may be carried in the query request filtering command sent by the basic service layer of the discovery device to the access layer of the discovery device.
  • the filter condition 1 of the query request, the filter condition 2 of the query request, the filter condition 3 of the query request, and the filter condition N of the query request in Figure 8 belong to the query request filter set elements, and the query request filter set elements can It is understood as a collection of filter conditions for query requests, which can include one or more filter conditions for query requests.
  • options that can be used as filter conditions for the query request may include media access control (MAC) identification, device name, and other public information of the communication device. Each item in the device public information can be used as a filtering condition. All filtering conditions can be configured to the Starflash access layer as required. The Starflash access layer completes the discovery result filtering, or the device discovery functional unit completes the device discovery result filtering. .
  • logical AND, logical OR, and logical negation configurations are provided. Logical AND means that all filtering conditions must be met at the same time to complete the match; logical OR means that matching one of the filtering conditions will result in a successful match; logical negation means that matching one of the filtering conditions will fail.
  • the filter conditions of the query request can be configured as: user A and application B. Then it is found that the query request frame sent by the device is used to request the relevant data content of user A of application B.
  • the filtering conditions of the query request can be composed of the AND/OR/NOT combination of single or multiple conditions in the device address, device name, service UUID, service data, manufacturer data and other information. It is found that the device supports queryable The broadcast is filtered according to the filtering conditions, and a query request frame corresponding to the filtering conditions of the query request is sent. Furthermore, the efficiency of data content transmission between the discovery device and the broadcast device can be improved.
  • Figure 9 shows a filtering process flow for query request messages. This filtering process can be applied to broadcast equipment.
  • Each query response filter condition can have a corresponding query response frame.
  • the query request message may include one or more query request frames.
  • the filter condition 1 of the query response corresponds to the query response frame 1
  • the filter condition 2 of the query response corresponds to the query response frame 2
  • the filter condition 3 of the query response corresponds to the query response frame 3
  • the filtering of the query response Condition N corresponds to query response frame N.
  • the broadcast device can send a query response frame corresponding to the filtering condition. For example, when the content of the query request message meets the filtering condition 1 of the query response, the broadcasting device sends query response frame 1; when the content of the query request message meets the filtering conditions 2 and 3 of the query response, the broadcasting device sends the query Response frames 2 and 3.
  • the query response message sent by the broadcast device may include one or more query response frames.
  • the query response filtering conditions may be carried in the query response filtering command sent by the basic service layer of the broadcasting device to the access layer of the broadcasting device.
  • query response filter condition 1, query response filter condition 2, query response filter condition 3 and query response filter condition N in Figure 9 belong to query response filter set elements, and the query response filter set element can It is understood as a collection of filtering conditions for query responses, which may include one or more filtering conditions for query responses.
  • the filtering conditions of the query response can be composed of the AND/OR/NOT combination of single or multiple conditions in the device address, device name, service UUID, service data, manufacturer data and other information.
  • the broadcast device supports query requests. The frame is filtered according to the filtering conditions, and a query response frame corresponding to the filtering conditions of the query response is sent. Furthermore, the efficiency of data content transmission between the discovery device and the broadcast device can be improved. Among them, the process of the broadcast device filtering the query request frame according to the AND/OR/NOT combination of single or multiple conditions can be found in the above-mentioned related expressions of the discovery device filtering the queryable broadcast, and this application will not go into details here. .
  • Figures 8 and 9 respectively illustrate the process in which the discovery device filters the queryable broadcast information according to the filtering conditions of the query request, and the broadcasting device filters the query request message according to the filtering conditions of the query response.
  • the following takes the filtering processing of queryable broadcasts by the discovery device as an example to introduce the filtering processing mechanism.
  • the filtering process may also be called a filtering matching process, and this application does not limit the specific name of this process.
  • Step 1 Discover the device and receive the message.
  • the discovery device may receive a broadcast message from the broadcast device, and the broadcast message may include a binary data packet (1).
  • Step 2 Discover the device matching the mask.
  • mask (2) is composed of binary 0s and 1s.
  • “1" indicates that the binary data at the location needs to match
  • "0” indicates that the binary data at the location does not need to match.
  • Obtain binary data (3) based on the match between the data message (1) and the binary mask (2). It can be seen that the first position data "0", the third position data "1", the sixth position data “1”, the seventh position data "0” and the eighth position in (3) need to be specifically matched from left to right. Data "1".
  • Step 3 Discover devices and match them based on specific filtering conditions.
  • the filtering conditions of the query request may be formed by AND/OR/NOT logical combination of one or more of the information such as device address, device name, service UUID, requested service UUID, service data, and manufacturer data.
  • Discovery devices can match query request frames based on the combined filter criteria.
  • the filtering conditions of the query response may be formed by AND/OR/NOT logical combinations of one or more of the information such as device address, device name, service UUID, requested service UUID, service data, and manufacturer data.
  • the broadcast device can match query response frames based on the combined filter conditions.
  • the discovery device may match the binary data (3) according to filter condition 1 and/or filter condition 2. If the match is successful, the discovery device determines the corresponding query request frame and sends the query request message.
  • the discovery device can send a query request message to the broadcast device.
  • the query request message can be sent in the form of a query request frame.
  • the query request frame belongs to a broadcast frame.
  • a broadcast frame common to the Star Flash protocol can be used.
  • the structure of the query request frame is specifically introduced below.
  • Table 1 The structure corresponding to the star flash general broadcast frame
  • Broadcast frame structure indication Whether fields used to identify subsequent local media access layer identification, peer media access layer identification, and extended broadcast frame resource configuration information exist.
  • the local end can be understood as a discovery device, and the opposite end can be understood as a broadcast device.
  • the meanings of the 5 bits indicated by the broadcast frame structure are as follows:
  • Bits 1:0 indicate that the peer address does not exist, 1 indicates that the peer address exists;
  • Bit 2 0 indicates that the extended broadcast frame resource configuration information does not exist, and 1 indicates that the extended broadcast frame resource configuration information exists;
  • Bit 3 0 indicates that the data part information does not exist, 1 indicates that the data part information exists;
  • Bit 4:0 indicates that there is no resolution key identifier, and 1 indicates that the local address is a resolvable private address and there is a resolution key identifier.
  • Local media access layer identification type 0 indicates the identification assigned by the Star Flash Alliance, 1 indicates the private identification.
  • Peer media access layer identification type 0 indicates the identification assigned by the Star Flash Alliance, 1 indicates the private identification.
  • Local media access layer identifier Local media access layer identifier (Media Access Control, MAC).
  • Peer media access layer identifier Peer MAC.
  • IRS ID Identity resolving key
  • the privacy management of the StarLight wireless low-power system provides the ability to hide the true identity of the StarLan wireless low-power system, which can avoid malicious monitoring by the server or prevent the monitoring party from collecting private data of the StarLan wireless low-power system. , to prevent being tracked.
  • StarLight wireless low-power device addresses include resolvable random addresses.
  • the format of the resolvable random addresses is shown in Table 3.
  • Table 3 The format of parsable random addresses
  • address hash part HMAC-SM3/AES-CMAC (IRK, rand, len) mod2 ⁇ 16.
  • rand represents the random part of the address.
  • Table 6 shows the field description of the extended broadcast frame resource configuration information.
  • Frequency index used to identify the frequency index number used by the extended broadcast frame pointed to.
  • Offset unit The unit used to identify the offset. 0 indicates that the unit is 1 system basic time slot, and 1 indicates that the unit is 10 system basic time slots.
  • Offset used to indicate the time slot interval from the starting point of the current basic broadcast frame to the starting point of the pointed extended broadcast frame.
  • Wireless frame type indication used to indicate the wireless frame type used by the system management frame.
  • Bandwidth indication used to indicate the bandwidth used by the system management frame. 0 means 1M; 1 means 2M; 2 means 4M; 3 means reserved.
  • the bit width corresponding to the bandwidth indication is 2 bits, and the 2-bit binary number can correspond to the above-mentioned decimal numbers 0 to 3.
  • Pilot density indication used to indicate the pilot density used in the data part of the system management frame. 0 indicates 4:1 pilot, 1 indicates 8:1 pilot, 2 indicates 16:1 pilot, and 3 indicates reserved.
  • the bit width corresponding to the pilot density indication is 2 bits, and the 2-bit binary number can correspond to the above-mentioned decimal number 0 to 3.
  • Clock accuracy Used to indicate the clock accuracy used by the pointed extended broadcast frame.
  • Data type used to indicate the type of broadcast data carried by the extended broadcast frame.
  • 0 means discovery of access resource configuration information; 1 means not to start the transmission instruction information of the system management frame; 2 means to start the basic access information of the system management frame; 3 means access request information; 4 means access response information; 5 means start System management frame information; 6 represents non-linked broadcast link information; 7 represents query request information; 8 represents query response information; 9 to 254 are reserved; the data format of 255 is configured by the basic service layer device discovery and service management.
  • the corresponding bit width of the data type is 1 byte, which is 8 bits.
  • the 8-bit binary number can correspond to the above-mentioned decimal number 0 ⁇ 255. 0 ⁇ 255 can be understood as the index of the data type, which is used to indicate what the data type represents. specific information.
  • Data length used to indicate the length of the broadcast data carried by the extended broadcast frame.
  • Data content used to indicate the content of the broadcast data carried in the extended broadcast frame.
  • Table 7 shows the corresponding meanings of the indexes of the data types in the general broadcast frame.
  • the data type may include query request information and query response information.
  • the length of bytes occupied by the query request information and query response information can be adjusted to a variable length.
  • the index of query request information is 0x07; the index of query response information is 0x08.
  • the discovery access resource configuration information in the data type can be used to indicate the resource information used for discovery or access in the extended broadcast configuration, including information such as request offset, request maximum length, request response offset, and request window number.
  • Resource configuration can support one request information or multiple different request information, where the request can be a query request or an access request. As shown in Table 8, the corresponding structure of the discovery access resource configuration information is shown.
  • Requested offset used to indicate the time slot offset of the discovery device or the connection initiating device from receiving the extended broadcast frame to sending the request frame. It is also the time from the broadcast device sending the extended broadcast frame to starting to receive the request frame. .
  • Maximum length of request used to indicate the maximum data length of a single request frame, in bytes.
  • Offset of request response used to indicate the time slot offset of the broadcast device from sending the extended broadcast frame to sending the request response frame. It is also the time slot offset of the discovery device or the device initiating the connection from receiving the extended broadcast frame to receiving the request. Response frame time.
  • Number of requested windows used to indicate the number of windows for request frames, that is, one or more requests can be supported at the same time.
  • Request type flag Also called request type indication, it is used to indicate whether the resource corresponds to a query request or an access request. 0 indicates query request; 1 indicates access request; 2 indicates no restriction; 3 indicates reservation.
  • the bit width corresponding to the request type flag is 2 bits
  • the 2-bit binary number can correspond to the above-mentioned decimal numbers 0 to 3.
  • Request carrying information indication used to indicate the information content that can be carried in the request frame. 0 means no data information is carried, 1 means the service UUID and manufacturer data are carried, 2 means the device name, service UUID, service data and manufacturer data are carried, and 3 means the data information content is not limited.
  • the bit width corresponding to the request carrying information indication is 2 bits, and the 2-bit binary number can correspond to the above-mentioned decimal numbers 0 to 3.
  • Directional indication used to indicate whether there is a peer address behind.
  • Peer media access layer identifier used to indicate the media access layer identifier of the peer device.
  • the Starflash query request frame sets the request type flag to 0 in the discovery access resource configuration information indication, and adds the query request information with the data type index of 7.
  • the discovery device supports query request information according to the request service UUID indication, and the broadcast device supports filtering the feedback query response frame according to the request service UUID information carried by the query request information.
  • Table 10 shows the structure of the query request information.
  • Number of 16-bit UUIDs Indicates the number of 16-bit UUIDs contained in the query request information.
  • the identification query request information contains the number of 128-bit UUIDs.
  • 16-bit UUID Indicates the 16-bit UUID defined by the Star Flash Alliance.
  • 128-bit UUID Indicates a device-customized 128-bit UUID.
  • the discovery device sends the query request information carrying the service UUID related information to the broadcast device, so that the broadcast device can filter the query request information to obtain the corresponding query response frame.
  • the above data content of data type 255 includes device public information data.
  • the structure of the device public information data is shown in Figure 11.
  • the device public information data includes one or more data substructures.
  • Each data substructure includes data type indication information, data length indication information L and data content part.
  • the bit width of the data type indication information is 1 byte
  • the bit width of the data length indication information L is 1 byte
  • the bit width of the data content part is L bytes.
  • the device information disclosure data may include specific content as described in Table 11.
  • the device public information data includes the requested service UUID.
  • Requesting service UUID includes requesting standard service identification list and requesting customized service data information. It can be understood that the relevant information about the requested service UUID can be carried in the query request information as shown in Table 11 above, or can also be carried in the above data type 255.
  • FIG 12 shows a communication method 1200 provided by this application, which can be applied to discovery devices and broadcast devices. The detailed steps of method 1200 are introduced below.
  • the discovery device receives the broadcast information, and accordingly, the broadcast device sends the broadcast information.
  • the broadcast information includes queryable broadcast information and non-queryable broadcast information
  • the queryable broadcast information includes queryable basic broadcast information or queryable extended broadcast information.
  • the broadcast information in method 1200 of this application may be queryable broadcast information.
  • the discovery device sends at least one query request frame according to the broadcast information and the filtering indication information of the at least one query request.
  • the broadcast device receives at least one query request frame.
  • the discovery device may send at least one query request frame according to the queryable extended broadcast information and the filtering indication information of at least one query request; when the discovery device receives the queryable basic broadcast, The discovery device may send at least one query request frame according to the queryable basic broadcast information and the filtering indication information of the at least one query request.
  • the discovery device may first receive the queryable basic broadcast frame, and then receive the queryable extended broadcast frame.
  • the discovery device can send a query request frame to the broadcast device after receiving the queryable basic broadcast frame.
  • Query request frame to request more data content. It can be seen that after the discovery device receives the queryable basic broadcast, it sends a query request frame to the broadcast device, which can further save the interactive signaling between the discovery device and the broadcast device, save transmission resources, and improve the communication between the discovery device and the broadcast device. Communication efficiency.
  • the query request frame has a one-to-one correspondence with the filtering instruction information of the query request.
  • the specific one-to-one correspondence please refer to the above description of Figure 8 and will not be described again here.
  • the discovery device is within the first offset based on the queryable broadcast information and the filtering indication of the at least one query request.
  • the information sends at least one query request frame to the broadcast device, and the offset of the query request includes a first offset, wherein the offset of the query request is used to indicate a starting time for the discovery device to send the query request frame.
  • the first offset may be the time when the discovery device filters the queryable broadcast.
  • the discovery device determines the query request frame corresponding to the filtering indication information of the query request.
  • the queryable broadcast may include a first offset, and the discovery device may obtain the first offset according to the received queryable broadcast; or the first offset may also be the system default processing time, for example, an IFS.
  • the offset of the query request is the time period t2 ⁇ t7
  • the first offset is the time period t3 ⁇ t4.
  • the filtering indication information of the query request is used to filter the data content that the discovery device is "interested in”, so that the discovery device sends a query request frame corresponding to the filtering indication information of the query request to request the "interesting" data. content.
  • the filtering indication information of the query request includes at least one of the following: device address, device name, service UUID, requested service UUID, service data, and manufacturer data.
  • the requested service UUID is used to request corresponding service data or information on the peer device.
  • the discovery device sends a query request frame filtered according to the requested service UUID to the broadcast device, the discovery device can request the broadcast device for corresponding service data or information on the broadcast device (peer device).
  • one or more pieces of information contained in the filtering indication information of the query request can be logically combined with AND/OR/NOT, and the discovery device can match the query request frame according to the combined filtering indication information.
  • the broadcast device sends at least one query response frame according to at least one query request frame and the filtering indication information of at least one query response.
  • the discovery device receives at least one query response frame.
  • the query response frame has a one-to-one correspondence with the filtering instruction information of the query response.
  • the specific one-to-one correspondence please refer to the above description of Figure 9 and will not be described again here.
  • the broadcast device sends at least one query response frame to the discovery device within the second offset based on at least one query request frame and at least one query response filtering indication information, and the offset of the query response includes the second offset. Offset, where the offset of the query response is used to indicate the starting moment of sending the query response frame.
  • the second offset may be the time when the broadcast device filters the query request message. Within the second offset, the broadcast device determines the query response frame corresponding to the filtering indication information of the query response.
  • the second offset may be the system default processing time, for example, an IFS.
  • the offset of the query response is the time period t2 ⁇ t8, and the second offset is the time period t7 ⁇ t8.
  • the broadcast device sends a query response frame corresponding to the filtering indication information of the query response to ensure that the discovery device receives "interesting" data content.
  • the filtering indication information of the query response includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, and manufacturer data.
  • one or more pieces of information contained in the filtering indication information of the query response can be logically combined with AND/OR/NOT, and the broadcasting device can match the query response frame according to the combined filtering indication information.
  • the query request frame includes a data type field
  • the data type field includes one of query request information and query response information.
  • the information contained in the data type field can be as described in Table 7 above, and will not be described again here.
  • the query request information when the data type field includes query request information, includes the request service UUID.
  • the requested service UUID of the query request information includes the number of 16-bit UUIDs, the number of 128-bit UUIDs, the 16-bit UUID and the 128-bit UUID as described in Table 11 above. Details can be found above and will not be repeated here.
  • the query request frame includes a data type field including the requesting service UUID.
  • the requested service UUID is carried in the data type 255.
  • the requested service UUID may be the requested standard service identification list and the requested customized service data information as described in Table 12. Details can be found above and will not be repeated here.
  • the requested service UUID can be carried in the query request information or in the data type.
  • the offset of the query request, the offset of the query response, the first offset, and the second offset may be sent to the discovery device through a queryable extension broadcast.
  • the queryable extended broadcast information includes at least one of the following: offset of query request, offset of query response, maximum length of request, number of requested windows, first offset, second offset ;
  • the offset of the query request is used to indicate the starting time when the discovery device sends the query request frame, or the starting time when the broadcast device receives the query request frame;
  • the offset of the query response is used Indicates the starting time when the discovery device receives the query response frame, or is used to instruct the broadcasting device to send the starting time of the query response frame;
  • the maximum length of the request is used to indicate the maximum data length of a request frame, and the request frame includes the query request frame;
  • request The number of windows is used to indicate the number of windows for the request frame.
  • a communication method provided by an embodiment of the present application filters broadcast frames (for example, query broadcast and query request frames) interacted between communication devices so that the communication devices can request more detailed or accurate information, such as: media Distribution scenarios such as playback content and status control, distributed database water level detection, device power, computing power and storage load status, authentication and key update.
  • This method allows the communication device to avoid the waste of resources caused by the communication device frequently establishing connections before transmitting data when the peripheral device has a lot of data, or the communication device is constantly moving and the peripheral device is constantly changing, and at the same time improves the efficiency of applications on the communication device. communication efficiency between them in order to give full play to the discovery performance of the communication device.
  • FIG. 13 is a schematic block diagram of a communication device provided by an embodiment of the present application.
  • the device 1300 includes a transceiver unit 1310, which may be used to implement corresponding communication functions.
  • the transceiver unit 1310 may also be called a communication interface or a communication unit.
  • the device 1300 may also include a processing unit 1320, which may be used for data processing.
  • the device 1300 also includes a storage unit, which can be used to store instructions and/or data, and the processing unit 1320 can read the instructions and/or data in the storage unit, so that the device implements the foregoing.
  • Actions of different communication devices in various method embodiments for example, actions of a discovery device or a broadcast device.
  • the device 1300 can be used to perform the actions performed by the discovery device or broadcast device in each of the above method embodiments.
  • the device 1300 can be a discovery device or broadcast device, or a component of the discovery device or broadcast device
  • a transceiver unit 1310 is used to perform operations related to the transmission and reception of the discovery device or broadcast device in the above method embodiment
  • the processing unit 1320 is used to perform operations related to the processing of the discovery device or broadcast device in the above method embodiment.
  • the device 1300 here is embodied in the form of a functional unit.
  • the term "unit” as used herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor, or a group of processors) used to execute one or more software or firmware programs. processor, etc.) and memory, merged logic circuitry, and/or other suitable components to support the described functionality.
  • ASIC application specific integrated circuit
  • the device 1300 can be specifically the discovery device or broadcast device in the above embodiments, and can be used to execute various processes corresponding to the discovery device or broadcast device in the above method embodiments. and/or steps.
  • the above functions can be implemented by hardware, or can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the above functions; for example, the transceiver unit can be replaced by a transceiver (for example, the sending unit in the transceiver unit can be replaced by a transmitter, and the receiving unit in the transceiver unit can (replaced by a receiver), and other units, such as a processing unit, can be replaced by a processor to respectively perform the transceiver operations and related processing operations in each method embodiment.
  • transceiver unit 1310 may also be a transceiver circuit (for example, it may include a receiving circuit and a transmitting circuit), and the processing unit may be a processing circuit.
  • the device in Figure 13 may be the device in the aforementioned embodiment, or it may be a chip or a chip system, such as a system on chip (SoC).
  • the transceiver unit may be an input-output circuit or a communication interface; the processing unit may be a processor, microprocessor, or integrated circuit integrated on the chip. No limitation is made here.
  • a chip system 1400 is provided according to an embodiment of the present application.
  • the chip system 1400 (or can also be called a processing system) includes a logic circuit 1410 and an input/output interface 1420.
  • the logic circuit 1410 may be a processing circuit in the chip system 1400 .
  • the logic circuit 1410 can be coupled to the memory unit and call instructions in the memory unit, so that the chip system 1400 can implement the methods and functions of various embodiments of the present application.
  • the input/output interface 1420 can be an input/output circuit in the chip system 1400, which outputs information processed by the chip system 1400, or inputs data or signaling information to be processed into the chip system 1400 for processing.
  • the chip system 1400 is used to implement the operations performed by the discovery device or the broadcast device in each of the above method embodiments.
  • the logic circuit 1410 is used to implement related operations processed by the discovery device or broadcast device in the above method embodiment; the input/output interface 1420 is used to implement the sending and/or reception by the discovery device or broadcast device in the above method embodiment. related operations.
  • Embodiments of the present application also provide a computer-readable storage medium on which are stored computer instructions for implementing the methods executed by the discovery device or the broadcast device in each of the above method embodiments.
  • the computer program when executed by a computer, the computer can implement the method executed by the discovery device or the broadcast device in each embodiment of the above method.
  • An embodiment of the present application also provides a computer program product, comprising instructions, which, when executed by a computer, implement the methods performed by the discovery device or the broadcasting device in the above-mentioned method embodiments.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be 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 they may be distributed to multiple network units. Some 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, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer may be a personal computer, a server, or a network device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (such as floppy disks, hard disks, magnetic tapes), optical media (such as DVDs), or semiconductor media (such as solid state disks (SSD)), etc.
  • the aforementioned available media include but Not limited to: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code.
  • a component may be, but is not limited to, a process, a processor, an object, an executable file, a thread of execution, a program and/or a computer running on a processor. These components can execute from various computer-readable media having various data structures stored thereon.
  • a component may, for example, be based on a signal having one or more data packets (eg, data from two components interacting with another component, a local system, a distributed system, and/or a network, such as the Internet, which interacts with other systems via signals) Communicate through local and/or remote processes.
  • data packets eg, data from two components interacting with another component, a local system, a distributed system, and/or a network, such as the Internet, which interacts with other systems via signals
  • At least one means one or more
  • plural means two or more.
  • “And/or” describes the relationship between associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character “/” generally indicates that the related objects are in an “or” relationship. "At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
  • At least one item (item) of a, b or c can represent: a, b, c, a-b, a-c, b-c or a-b-c, where a, b, c can be single or multiple.

Landscapes

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

Abstract

Embodiments of the present application provide a communication method and a communication apparatus. The method comprises: a discovery device receives broadcast information from a broadcast device; the discovery device sends at least one query request frame to the broadcast device according to the broadcast information and filtering indication information of at least one query request, the query request frame having one-to-one correspondence to the filtering indication information of the query request; and the discovery device receives at least one query response frame from the broadcast device, the query response frame having one-to-one correspondence to filtering indication information of a query response. According to the communication method and the communication apparatus of the present application, broadcast frames for interaction among communication devices can be filtered to improve the communication efficiency of the communication devices, thereby exerting the discovery performance of the communication devices.

Description

通信方法和通信装置Communication method and communication device
本申请要求于2022年9月21日提交中国专利局、申请号为202211155020.7、申请名称为“通信方法和通信装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on September 21, 2022, with application number 202211155020.7 and application title "Communication Method and Communication Device", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请实施例涉及通信技术领域,尤其涉及一种通信方法和通信装置。The embodiments of the present application relate to the field of communication technology, and in particular, to a communication method and a communication device.
背景技术Background technique
随着互联网和物联网技术的发展,出现了种类丰富的通信装置的应用程序。这些通信设备上的应用程序通常需要与周围设备对应的应用程序进行信息交互。目前,短距离通信技术是一种常用的通信装置之间通信的方式,例如,蓝牙(bluetooth)或无线保真(wireless fidelity,WiFi)。为满足用户的短距离通信技术的需求,星闪联盟(sparklink alliance)成立并致力于推动新一代无线短距离通信技术创新和产业生态。With the development of Internet and IoT technology, a wide variety of communication device applications have emerged. Applications on these communication devices often require information interaction with corresponding applications on surrounding devices. Currently, short-range communication technology is a commonly used method of communication between communication devices, such as Bluetooth or wireless fidelity (WiFi). In order to meet the needs of users for short-distance communication technology, the Sparklink Alliance was established and is committed to promoting a new generation of wireless short-distance communication technology innovation and industrial ecology.
因此,如何提高通信设备上应用程序的短距离通信的效率,充分发挥通信设备的发现性能是目前亟待解决的问题。Therefore, how to improve the efficiency of short-distance communication of applications on communication devices and give full play to the discovery performance of communication devices is an urgent problem that needs to be solved.
发明内容Contents of the invention
本申请实施例提供一种通信方法和通信装置,该方法可以提高通信设备短距离通信的效率,充分发挥通信设备的发现性能。The embodiments of the present application provide a communication method and a communication device, which can improve the efficiency of short-range communication of a communication device and give full play to the discovery performance of the communication device.
第一方面,提供了一种通信方法,包括:发现设备接收来自广播设备的广播信息;该发现设备根据该广播信息和至少一个查询请求的过滤指示信息向该广播设备发送至少一个查询请求帧,该查询请求帧与该查询请求的过滤指示信息一一对应;该发现设备接收来自该广播设备的至少一个查询响应帧,该查询响应帧与查询响应的过滤指示信息一一对应。In a first aspect, a communication method is provided, including: a discovery device receives broadcast information from a broadcast device; the discovery device sends at least one query request frame to the broadcast device based on the broadcast information and filtering indication information of at least one query request, The query request frame corresponds one-to-one to the filtering instruction information of the query request; the discovery device receives at least one query response frame from the broadcast device, and the query response frame corresponds to the filtering instruction information of the query response one-to-one.
示例性的,广播信息可以为可查询广播信息,可查询广播信息包括可查询基础广播信息和可查询扩展广播信息。查询请求的过滤指示信息也可以被称为查询请求的过滤条件,本申请对此名称不作限定。For example, the broadcast information may be queryable broadcast information, and the queryable broadcast information includes queryable basic broadcast information and queryable extended broadcast information. The filtering instruction information of the query request may also be called the filtering conditions of the query request, and this application does not limit this name.
在一些实现方式中,查询请求的过滤指示信息可以是预配置的。In some implementations, the filtering indication information of the query request may be preconfigured.
基于上述方案,发现设备可以对接收到的广播信息进行过滤处理,以便发送过滤处理后的查询请求帧,提高了发现设备与广播设备之间通信交互的准确性,提高了通信传输的效率。Based on the above solution, the discovery device can filter the received broadcast information in order to send filtered query request frames, which improves the accuracy of communication interaction between the discovery device and the broadcast device, and improves the efficiency of communication transmission.
结合第一方面,在第一方面的某些实现方式中,该发现设备根据该广播信息和至少一个查询请求的过滤指示信息向该广播设备发送至少一个查询请求帧,包括:该发现设备在第一偏移量内根据该广播信息和至少一个该查询请求的过滤指示信息发送至少一个该查询请求帧,查询请求的偏移量包括该第一偏移量,该查询请求的偏移量用于指示发送该查询请求帧的起始时刻。With reference to the first aspect, in some implementations of the first aspect, the discovery device sends at least one query request frame to the broadcast device based on the broadcast information and the filtering indication information of the at least one query request, including: the discovery device in the first Send at least one query request frame within an offset based on the broadcast information and at least one filtering indication information of the query request. The offset of the query request includes the first offset. The offset of the query request is used to Indicates the starting time of sending the query request frame.
基于上述方案,发现设备在一定的过滤处理时间(第一偏移量)内对广播信息进行过滤处理,以便确定查询请求帧,以请求更准确的数据内容。Based on the above solution, the discovery device filters the broadcast information within a certain filtering processing time (first offset) in order to determine the query request frame to request more accurate data content.
结合第一方面,在第一方面的某些实现方式中,该查询请求的过滤指示信息包括以下至少一项:设备地址、设备名称、服务通用唯一识别码UUID、请求服务UUID、服务数据、厂商数据。Combined with the first aspect, in some implementations of the first aspect, the filtering instruction information of the query request includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, manufacturer data.
基于上述方案,可以根据上述查询请求的过滤指示信息对广播信息进行过滤处理。上述查询请求的过滤指示信息也可以由设备地址、设备名称、服务UUID、服务数据、厂商数据等信息中的单个或者多个条件的与/或/非组合而成。发现设备支持对广播信息进行过滤处理,发送相应的查询请求帧,进而提高数据内容在发现设备与广播设备之间传输的效率。Based on the above solution, the broadcast information can be filtered according to the filtering instruction information of the above query request. The filtering instruction information of the above query request can also be composed of the AND/OR/NOT combination of single or multiple conditions in the device address, device name, service UUID, service data, manufacturer data and other information. The discovery device supports filtering broadcast information and sends corresponding query request frames, thereby improving the efficiency of data content transmission between the discovery device and the broadcast device.
结合第一方面,在第一方面的某些实现方式中,该查询请求帧包括数据类型字段,该数据类型字段包括查询请求信息和查询响应信息中的其中一种。 In conjunction with the first aspect, in some implementations of the first aspect, the query request frame includes a data type field, and the data type field includes one of query request information and query response information.
结合第一方面,在第一方面的某些实现方式中,该查询请求信息包括该请求服务UUID。In conjunction with the first aspect, in some implementations of the first aspect, the query request information includes the requested service UUID.
示例性的,请求服务UUID可包含在查询请求帧的查询请求信息中。For example, the requested service UUID may be included in the query request information of the query request frame.
结合第一方面,在第一方面的某些实现方式中,该查询请求帧包括数据类型字段,该数据类型字段包括该请求服务UUID。In conjunction with the first aspect, in some implementations of the first aspect, the query request frame includes a data type field, and the data type field includes the request service UUID.
示例性的,请求服务UUID可以包含在查询请求帧的数据类型字段中。For example, the requested service UUID may be included in the data type field of the query request frame.
结合第一方面,在第一方面的某些实现方式中,该广播信息包括扩展广播信息,该扩展广播信息包括以下至少一项:该查询请求的偏移量、查询响应的偏移量、该第一偏移量,该查询响应的偏移量用于指示接收该查询响应帧的起始时刻。With reference to the first aspect, in some implementations of the first aspect, the broadcast information includes extended broadcast information, and the extended broadcast information includes at least one of the following: an offset of the query request, an offset of the query response, the The first offset, the offset of the query response is used to indicate the starting moment of receiving the query response frame.
应理解,查询请求的偏移量、查询响应的偏移量和第一偏移量可以通过广播信息配置给发现设备。其中,扩展广播信息可以是可查询扩展广播信息。It should be understood that the offset of the query request, the offset of the query response and the first offset can be configured to the discovery device through broadcast information. The extended broadcast information may be queryable extended broadcast information.
在一种实现方式中,查询请求的偏移量、查询响应的偏移量和第一偏移量可以是系统默认的。In one implementation, the offset of the query request, the offset of the query response, and the first offset may be system defaults.
第二方面,提供了一种通信方法,包括:广播设备向发现设备发送广播信息;该广播设备接收来自该发现设备的至少一个查询请求帧,该查询请求帧与查询请求的过滤指示信息一一对应;该广播设备根据至少一个该查询请求帧和至少一个查询响应的过滤指示信息向该发现设备发送至少一个查询响应帧,该查询响应帧与该查询响应的过滤指示信息一一对应。In a second aspect, a communication method is provided, including: a broadcast device sends broadcast information to a discovery device; the broadcast device receives at least one query request frame from the discovery device, and the query request frame and the filtering indication information of the query request are one by one. Correspondingly; the broadcast device sends at least one query response frame to the discovery device based on at least one query request frame and at least one query response filtering indication information, and the query response frame corresponds one-to-one with the query response filtering indication information.
示例性的,广播信息可以为可查询广播信息,可查询广播信息包括可查询基础广播信息和可查询扩展广播信息。查询响应的过滤指示信息也可以被称为查询响应的过滤条件,本申请对此名称不作限定。For example, the broadcast information may be queryable broadcast information, and the queryable broadcast information includes queryable basic broadcast information and queryable extended broadcast information. The filtering instruction information of the query response may also be called the filtering condition of the query response, and this application does not limit this name.
在一种实现方式中,查询响应的过滤指示信息可以是预配置的。In one implementation, the filtering indication information of the query response may be preconfigured.
基于上述方案,广播设备可以对接收到的查询请求帧进行过滤处理,以便发送过滤处理后的查询响应帧,提高了发现设备与广播设备之间通信交互的准确性,提高了通信传输的效率。Based on the above solution, the broadcast device can filter the received query request frame in order to send the filtered query response frame, which improves the accuracy of communication interaction between the discovery device and the broadcast device and improves the efficiency of communication transmission.
结合第二方面,在第二方面的某些实现方式中,该广播设备根据至少一个该查询请求帧和至少一个查询响应的过滤指示信息向该发现设备发送至少一个查询响应帧,包括:该广播设备在第二偏移量内根据该至少一个该查询请求帧和至少一个查询响应的过滤指示信息向该发现设备发送至少一个查询响应帧,查询响应的偏移量包括该第二偏移量,该查询响应的偏移量用于指示发送该查询响应帧的起始时刻。In combination with the second aspect, in certain implementations of the second aspect, the broadcasting device sends at least one query response frame to the discovery device based on the filtering indication information of at least one of the query request frames and at least one query response, including: the broadcasting device sends at least one query response frame to the discovery device based on the filtering indication information of the at least one of the query request frames and at least one query response within the second offset, the offset of the query response includes the second offset, and the offset of the query response is used to indicate the starting time of sending the query response frame.
基于上述方案,广播设备在一定的过滤处理时间(第二偏移量)内对查询请求帧进行过滤处理,以便确定查询响应帧,以反馈更准确的数据内容。Based on the above solution, the broadcast device filters the query request frame within a certain filtering processing time (the second offset) in order to determine the query response frame to feed back more accurate data content.
结合第二方面,在第二方面的某些实现方式中,该查询响应的过滤指示信息包括以下至少一项:设备地址、设备名称、服务通用唯一识别码UUID、请求服务UUID、服务数据、厂商数据。Combined with the second aspect, in some implementations of the second aspect, the filtering instruction information of the query response includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, manufacturer data.
基于上述方案,可以根据上述查询响应的过滤指示信息对查询请求帧进行过滤处理。上述查询响应的过滤指示信息也可以由设备地址、设备名称、服务UUID、服务数据、厂商数据等信息中的单个或者多个条件的与/或/非组合而成。广播设备支持对查询请求帧进行过滤处理,发送相应的查询响应帧,进而提高数据内容在发现设备与广播设备之间传输的效率。Based on the above solution, the query request frame can be filtered according to the filtering instruction information of the above query response. The filtering instruction information of the above query response can also be composed of the AND/OR/NOT combination of single or multiple conditions in the device address, device name, service UUID, service data, manufacturer data and other information. The broadcast device supports filtering query request frames and sends corresponding query response frames, thereby improving the efficiency of data content transmission between the discovery device and the broadcast device.
结合第二方面,在第二方面的某些实现方式中,该查询请求帧包括数据类型字段,该数据类型字段包括查询请求信息和查询响应信息中的其中一种。Combined with the second aspect, in some implementations of the second aspect, the query request frame includes a data type field, and the data type field includes one of query request information and query response information.
结合第二方面,在第二方面的某些实现方式中,该查询请求信息包括该请求服务UUID。Combined with the second aspect, in some implementations of the second aspect, the query request information includes the requested service UUID.
示例性的,请求服务UUID可包含在查询请求帧的查询请求信息中。For example, the requested service UUID may be included in the query request information of the query request frame.
结合第二方面,在第二方面的某些实现方式中,该查询请求帧包括数据类型字段,该数据类型字段包括该请求服务UUID。Combined with the second aspect, in some implementations of the second aspect, the query request frame includes a data type field, and the data type field includes the request service UUID.
示例性的,请求服务UUID可以包含在查询请求帧的数据类型字段中。For example, the requested service UUID may be included in the data type field of the query request frame.
结合第二方面,在第二方面的某些实现方式中,该广播信息包括扩展广播信息,该扩展广播信息包括以下至少一项:查询请求的偏移量、该查询响应的偏移量、该第二偏移量,该查询请求的偏移量用于指示接收该查询请求帧的起始时刻。In conjunction with the second aspect, in some implementations of the second aspect, the broadcast information includes extended broadcast information, and the extended broadcast information includes at least one of the following: an offset of the query request, an offset of the query response, the The second offset, the offset of the query request is used to indicate the starting time of receiving the query request frame.
应理解,查询请求的偏移量、查询响应的偏移量和第二偏移量可以通过广播信息配置给发现设备。其中,扩展广播信息可以是可查询扩展广播信息。It should be understood that the offset of the query request, the offset of the query response and the second offset can be configured to the discovery device through broadcast information. The extended broadcast information may be queryable extended broadcast information.
在一种实现方式中,查询请求的偏移量、查询响应的偏移量和第二偏移量可以是系统默认的。 In an implementation manner, the offset of the query request, the offset of the query response, and the second offset may be system defaults.
第三方面,提供了一种通信系统,包括:发现设备与广播设备,该发现设备接收来自广播设备的广播信息;该发现设备根据该广播信息和至少一个查询请求的过滤指示信息向该广播设备发送至少一个查询请求帧,该查询请求帧与该查询请求的过滤指示信息一一对应;该广播设备根据该至少一个查询请求帧和至少一个查询响应的过滤指示信息向该发现设备发送至少一个查询响应帧,该查询响应帧与该查询响应的过滤指示信息一一对应。In a third aspect, a communication system is provided, including: a discovery device and a broadcast device. The discovery device receives broadcast information from the broadcast device; the discovery device sends a request to the broadcast device based on the broadcast information and the filtering instruction information of at least one query request. Send at least one query request frame, which corresponds one-to-one to the filtering indication information of the query request; the broadcast device sends at least one query to the discovery device based on the at least one query request frame and the filtering indication information of at least one query response. Response frame, the query response frame corresponds to the filtering instruction information of the query response one-to-one.
结合第三方面,在第三方面的某些实现方式中,该发现设备根据该广播信息和至少一个查询请求的过滤指示信息向该广播设备发送至少一个查询请求帧,包括:该发现设备在第一偏移量内根据该广播信息和至少一个该查询请求的过滤指示信息发送至少一个该查询请求帧,查询请求的偏移量包括该第一偏移量,该查询请求的偏移量用于指示该发现设备发送该查询请求帧的起始时刻。With reference to the third aspect, in some implementations of the third aspect, the discovery device sends at least one query request frame to the broadcast device according to the broadcast information and the filtering indication information of the at least one query request, including: the discovery device in the first Send at least one query request frame within an offset based on the broadcast information and at least one filtering indication information of the query request. The offset of the query request includes the first offset. The offset of the query request is used to Indicates the starting time when the discovery device sends the query request frame.
结合第三方面,在第三方面的某些实现方式中,该广播设备根据该至少一个查询请求帧和至少一个查询响应的过滤指示信息向该发现设备发送至少一个查询响应帧,包括:该广播设备在第二偏移量内根据该至少一个该查询请求帧和至少一个查询响应的过滤指示信息向该发现设备发送至少一个查询响应帧,查询响应的偏移量包括该第二偏移量,该查询响应的偏移量用于指示该广播设备发送该查询响应帧的起始时刻。In combination with the third aspect, in certain implementations of the third aspect, the broadcasting device sends at least one query response frame to the discovery device based on the filtering indication information of the at least one query request frame and the at least one query response, including: the broadcasting device sends at least one query response frame to the discovery device based on the filtering indication information of the at least one query request frame and the at least one query response within a second offset, the offset of the query response includes the second offset, and the offset of the query response is used to indicate the starting time when the broadcasting device sends the query response frame.
结合第三方面,在第三方面的某些实现方式中,该查询请求的过滤指示信息包括以下至少一项:设备地址、设备名称、服务通用唯一识别码UUID、请求服务UUID、服务数据、厂商数据;该查询响应的过滤指示信息包括以下至少一项:设备地址、设备名称、服务通用唯一识别码UUID、请求服务UUID、服务数据、厂商数据。Combined with the third aspect, in some implementations of the third aspect, the filtering instruction information of the query request includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, manufacturer Data; the filtering instruction information of the query response includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, and manufacturer data.
结合第三方面,在第三方面的某些实现方式中,该查询请求帧包括数据类型字段,该数据类型字段包括查询请求信息和查询响应信息中的其中一种。Combined with the third aspect, in some implementations of the third aspect, the query request frame includes a data type field, and the data type field includes one of query request information and query response information.
结合第三方面,在第三方面的某些实现方式中,该查询请求信息包括该请求服务UUID。Combined with the third aspect, in some implementation manners of the third aspect, the query request information includes the requested service UUID.
结合第三方面,在第三方面的某些实现方式中,该查询请求帧包括数据类型字段,该数据类型字段包括该请求服务UUID。Combined with the third aspect, in some implementations of the third aspect, the query request frame includes a data type field, and the data type field includes the request service UUID.
结合第三方面,在第三方面的某些实现方式中,该广播信息包括扩展广播信息,该可查询扩展广播信息包括以下至少一项:该查询请求的偏移量、查询响应的偏移量、该第一偏移量、该第二偏移量。Combined with the third aspect, in some implementations of the third aspect, the broadcast information includes extended broadcast information, and the queryable extended broadcast information includes at least one of the following: an offset of the query request, an offset of the query response , the first offset, and the second offset.
第四方面,提供了一种通信装置,包括:用于执行如第一方面及其任一种可能实现方式中方法的模块,或者包括用于执行如第二方面及其任一种可能实现方式中方法的模块。In a fourth aspect, a communication device is provided, including: a module for performing the method in the first aspect and any possible implementation thereof, or a module for performing the method in the second aspect and any possible implementation thereof. Method module.
第五方面,提供了一种通信装置,包括:与存储器耦合的处理器,该存储器用于存储计算机程序,该处理器用于运行该计算机程序,使得该通信装置执行如上述第一方面及其任一种可能实现的方式中的方法,或者,使得该通信装置执行如上述第二方面及其任一种可能实现的方式中的方法。A fifth aspect provides a communication device, including: a processor coupled to a memory, the memory is used to store a computer program, and the processor is used to run the computer program, so that the communication device performs the above-mentioned first aspect and any of the above. A method in a possible implementation manner, or causing the communication device to perform the method in the above second aspect and any possible implementation manner thereof.
结合第五方面,在第五方面的某些实现方式中,该装置还包括该存储器和收发器中的一项或多项,该收发器用于接收信号和/或发送信号。In conjunction with the fifth aspect, in some implementations of the fifth aspect, the device further includes one or more of the memory and a transceiver, the transceiver being used to receive signals and/or send signals.
第六方面,提供了一种计算机可读存储介质,该计算机可读存储介质包括计算机程序或指令,当该计算机程序或指令在计算机上运行时,使得如第一方面及其任一种可能的实现方式中的方法被执行,或者使得如第二方面及其任一种可能的实现方式中的方法被执行。In a sixth aspect, a computer-readable storage medium is provided. The computer-readable storage medium includes a computer program or instructions. When the computer program or instructions are run on a computer, it makes possible as in the first aspect and any of the instructions thereof. The method in the implementation is executed, or the method in the second aspect and any possible implementation thereof is executed.
第七方面,提供了一种计算机程序产品,该计算机程序产品包括计算机程序或指令,当该计算机程序或指令在计算机上运行时,使得如第一方面及其任一种可能的实现方式中的方法被执行,或者使得如第二方面及其任一种可能的实现方式中的方法被执行。In a seventh aspect, a computer program product is provided. The computer program product includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer program or instructions perform as in the first aspect and any possible implementation manner thereof. The method is executed, or causes the method in the second aspect and any possible implementation thereof to be executed.
第八方面,提供了一种计算机程序,当其在计算机上运行时,使得如第一方面及其任一种可能的实现方式中的方法被执行,或者使得如第二方面及其任一种可能的实现方式中的方法被执行。An eighth aspect provides a computer program that, when run on a computer, causes the method in the first aspect and any of its possible implementations to be executed, or causes the method in the second aspect and any of its possible implementations to be executed. Methods in possible implementations are executed.
附图说明Description of the drawings
图1是本申请实施例提供的一种星闪新短距协议架构示意图。Figure 1 is a schematic diagram of a new star flash short-range protocol architecture provided by an embodiment of the present application.
图2是本申请实施例提供的一种无线短距通信场景应用的示意图。Figure 2 is a schematic diagram of a wireless short-range communication scenario application provided by an embodiment of the present application.
图3为本申请实施例提供的一种星闪新短距协议架构示意图。Figure 3 is a schematic diagram of a new short-range star flash protocol architecture provided by an embodiment of the present application.
图4为本申请实施例提供的一种通信装置的组成架构图。FIG. 4 is a structural diagram of a communication device provided by an embodiment of the present application.
图5为本申请实施例提供的一种通信方法的示意图。 Figure 5 is a schematic diagram of a communication method provided by an embodiment of the present application.
图6为本申请实施例提供的一种通信方法600的示意性流程图。Figure 6 is a schematic flow chart of a communication method 600 provided by an embodiment of the present application.
图7为本申请实施例提供的一种发现流程的示意图。Figure 7 is a schematic diagram of a discovery process provided by an embodiment of the present application.
图8为本申请实施例提供的一种对可查询广播过滤处理的示意图。Figure 8 is a schematic diagram of queryable broadcast filtering provided by an embodiment of the present application.
图9为本申请实施例提供的一种对查询请求报文过滤处理的示意图。Figure 9 is a schematic diagram of filtering query request messages provided by an embodiment of the present application.
图10为本申请实施例提供的一种发现设备过滤处理过程示意图。Figure 10 is a schematic diagram of a discovery device filtering process provided by an embodiment of the present application.
图11为本申请实施例提供的一种设备公开信息数据结构示意图。Figure 11 is a schematic diagram of a device disclosure information data structure provided by an embodiment of the present application.
图12为本申请实施例提供的一种通信方法1200的示意性流程图。Figure 12 is a schematic flow chart of a communication method 1200 provided by an embodiment of the present application.
图13为本申请实施例提供的一种通信装置1300的示意性框图。Figure 13 is a schematic block diagram of a communication device 1300 provided by an embodiment of the present application.
图14为本申请实施例提供的一种芯片系统1400的示意性框图。Figure 14 is a schematic block diagram of a chip system 1400 provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The terminology used in the following examples is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "the" are intended to also Expressions such as "one or more" are included unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one, two or more than two. The term "and/or" is used to describe the relationship between associated objects, indicating that there can be three relationships; for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, Where A and B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
本申请实施例提供的通信方法可用于任一通信系统,该通信系统可以包括短距通信系统、蜂窝通信系统(例如,长期演进(long term evolution,LTE)系统、新空口(new radio access technology,NR))、全球互联微波接入(worldwide interoperability for microwave access,WiMAX)通信系统以及各种类型的下一代通信系统(例如,第六代(the sixth generation,6G)移动通信系统)等,不予限制。其中,短距通信系统可以为蓝牙通信系统、低功耗蓝牙通信系统、无线保真(wireless-fidelity,Wi-Fi)通信系统以及各种类型的下一代短距通信系统等,不予限制。The communication method provided by the embodiment of the present application can be used in any communication system, which may include short-range communication systems, cellular communication systems (for example, long term evolution (LTE) systems, new radio access technology, NR)), global interoperability for microwave access (WiMAX) communication systems and various types of next-generation communication systems (such as the sixth generation (the sixth generation, 6G) mobile communication systems), etc., are not allowed limit. Among them, the short-range communication system can be a Bluetooth communication system, a low-power Bluetooth communication system, a wireless-fidelity (Wi-Fi) communication system, and various types of next-generation short-range communication systems, etc., without limitation.
其中,该通信系统可以包括多个通信设备,各个通信设备均可以采用如图1所示的星闪新短距协议,以通过无线短距通信技术进行通信,实现信息共享和业务的无线传输,进而承载如图2所示的平板电脑210、智慧屏220、个人电脑230、智能手表240、蓝牙耳机250、智能手机260和智能汽车270等场景应用并满足各通信设备的性能需求。Among them, the communication system can include multiple communication devices, and each communication device can adopt the Star Flash new short-range protocol as shown in Figure 1 to communicate through wireless short-range communication technology to achieve information sharing and wireless transmission of services. It then carries scenario applications such as tablet computer 210, smart screen 220, personal computer 230, smart watch 240, Bluetooth headset 250, smart phone 260 and smart car 270 as shown in Figure 2 and meets the performance requirements of each communication device.
其中,通信设备可以为任意一种具有收发功能的设备,包括但不限于蜂窝电话(cellular phone)、无绳电话、会话启动协议(session initiation protocol,SIP)电话、智能电话(smart phone)、无线本地环路(wireless localloop,WLL)站、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备、车载设备、可穿戴设备、无人机设备、物联网或车联网中的通信设备、连接到无线调制解调器的其它设备等。Among them, the communication device can be any device with sending and receiving functions, including but not limited to cellular phones, cordless phones, session initiation protocol (session initiation protocol, SIP) phones, smart phones, wireless local Wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication function, computing device, vehicle-mounted device, wearable device, drone device, Internet of Things or Internet of Vehicles communications equipment, other devices connected to wireless modems, etc.
通信设备还可以是虚拟现实(virtual reality,VR)中的通信设备、增强现实(augmented reality,AR)中的通信设备、工业控制(industrial control)(例如智能制造)中的通信设备、无人驾驶(self driving)中的通信设备、远程医疗(remote medical)中的通信设备、智能电网(smart grid)中的通信设备、智慧城市(smart city)中的通信设备、智慧家庭(smart home)中的通信设备等。The communication device can also be a communication device in virtual reality (VR), a communication device in augmented reality (AR), a communication device in industrial control (such as smart manufacturing), or driverless driving Communication equipment in (self driving), communication equipment in remote medical (remote medical), communication equipment in smart grid (smart grid), communication equipment in smart city (smart city), communication equipment in smart home (smart home) Communication equipment, etc.
通信设备还可以是个人便携式通信设备、计算机外部设备和各种家用或工业用电气设备,包括但不限于智能手机(smart phone)、智慧屏、智能音箱(如人工智能(artificial intelligence,AI)音箱、高保真(high fidelity,HiFi)音箱)、智能传感器、电视(television)无线耳机、VR头显、平板型电脑、显示器、摄像头、手提电脑、膝上型电脑(laptop computer)、车载电脑、车载终端(如麦克风、 扬声器等)、投影仪、打印机、智能手环(smart wristband)、智能手表(smart watch)、智能眼镜、智能汽车、智能车床、智能监控设备等等。The communication device may also be a personal portable communication device, a computer peripheral device, and various household or industrial electrical devices, including but not limited to a smart phone, a smart screen, a smart speaker (such as an artificial intelligence (AI) speaker, a high fidelity (HiFi) speaker), a smart sensor, a television wireless headset, a VR headset, a tablet computer, a display, a camera, a laptop computer, a vehicle-mounted computer, a vehicle-mounted terminal (such as a microphone, speakers, etc.), projectors, printers, smart wristbands, smart watches, smart glasses, smart cars, smart lathes, smart monitoring equipment, etc.
图2中示出的通信设备上可以承载多种应用程序,不同通信设备之间可以进行双向广播通信,以提升对周边设备的感知能力,实现更高效的信息交互能力。例如,智能手机260上的应用程序A可向周边设备个人电脑230上的应用程序A请求更详细的数据信息,当智能手机260的周边设备变更为智能汽车270时,智能手机260上的应用程序A可向周边设备智能汽车270上的应用程序A请求更详细的数据信息。也就是说,在通信设备数量众多,或者通信设备所处场景不断变化的情况下,本申请实施例提供的通信方法能够更加方便地实现通信设备与周边设备上应用程序的数据交互。The communication device shown in Figure 2 can host a variety of applications, and two-way broadcast communication can be performed between different communication devices to improve the perception of peripheral devices and achieve more efficient information interaction capabilities. For example, application A on the smart phone 260 can request more detailed data information from the application A on the peripheral device PC 230. When the peripheral device of the smart phone 260 is changed to the smart car 270, the application on the smart phone 260 A can request more detailed data information from application A on the peripheral smart car 270 . That is to say, when there are a large number of communication devices or the scene in which the communication devices are located is constantly changing, the communication method provided by the embodiments of the present application can more conveniently realize data interaction between the communication device and the application program on the peripheral device.
本申请实施例对通信设备的具体形式不作特殊限制。通信系统中的各个通信设备的类型可以部分相同,可以完全相同,也可以完全不同。另外,本申请实施例中,通信系统可以包括至少两个通信设备,该至少两个通信设备可以包括下述实施例中的发现设备和广播设备,发现设备可以有一个或者多个,广播设备也可以有一个或者多个,下述实施例中以一个发现设备和一个广播设备为例,对本申请提供的通信方法和通信设备进行描述。The embodiments of the present application do not place any special restrictions on the specific form of the communication device. The types of each communication device in the communication system can be partially the same, completely identical, or completely different. In addition, in the embodiment of the present application, the communication system may include at least two communication devices. The at least two communication devices may include the discovery device and the broadcast device in the following embodiments. There may be one or more discovery devices, and the broadcast device may also be There may be one or more. In the following embodiments, a discovery device and a broadcast device are taken as examples to describe the communication method and communication device provided by this application.
如图1所示,星闪新短距协议架构可以包括接入层、主机(Host)和应用(application,APP)。其中,接入层可以同时支持多种接入技术。接入层之上是归一化的主机协议,主机可以根据应用的相应需求动态调度接入层支持的接入技术。As shown in Figure 1, Star Flash's new short-range protocol architecture can include access layer, host (Host) and application (application, APP). Among them, the access layer can support multiple access technologies at the same time. Above the access layer is a normalized host protocol, and the host can dynamically schedule the access technologies supported by the access layer according to the corresponding needs of the application.
具体的,如图3所示,主机可以包括基础应用层和基础服务层。Specifically, as shown in Figure 3, the host may include a basic application layer and a basic service layer.
其中,如图3所示,基础应用层可以负责承接上层应用的不同业务需求(例如,业务需求1、业务需求2、...、业务需求5等),并基于层间原语、端口(port)、应用标识(application identification,AID)、互联网协议(internet protocol,IP)地址中的一种或多种完成数据到基础服务层的路由。Among them, as shown in Figure 3, the basic application layer can be responsible for undertaking different business requirements of upper-layer applications (for example, business requirement 1, business requirement 2,..., business requirement 5, etc.), and based on inter-layer primitives, ports ( One or more of port), application identification (Application Identification, AID), Internet Protocol (Internet Protocol, IP) address completes the routing of data to the basic service layer.
其中,端口可以是基础应用层的通道。基础应用层可以为应用的业务注册端口,并通过该端口将业务的数据发送给基础服务层。Among them, the port can be a channel of the basic application layer. The basic application layer can register a port for the application's business and send the business data to the basic service layer through the port.
其中,应用标识可以为应用层的业务功能集合和服务质量(quality of service,QoS)流的映射标识。不同的业务功能集合可以通过业务标识(business identification,BID)进行区分。根据业务的不同分类,基础应用层可以包括多个不同的业务功能集合(或者描述为业务模块或业务框架),不同的业务功能集合可以包含对业务的分类数据处理。Among them, the application identifier can be the mapping identifier of the business function set of the application layer and the quality of service (QoS) flow. Different sets of business functions can be distinguished by business identification (BID). According to different classifications of services, the basic application layer may include multiple different business function sets (or described as business modules or business frameworks), and different business function sets may include classified data processing for the business.
示例性的,如图3所示,基础应用层可以包括基础通信框架、通用感知框架、通用视频框架、通用音频框架、通用数据框架、车载控制框架等。其中,通用感知框架可以包含对感知数据的处理;通用视频框架可以包含对视频的处理,例如编解码处理;通用音频框架可以包含对音频的处理,例如编解码处理;通用数据框架可以包含对文件数据的处理,如加密压缩等;车载控制框架可以包含对车载控制数据的处理。For example, as shown in Figure 3, the basic application layer may include a basic communication framework, a universal perception framework, a universal video framework, a universal audio framework, a universal data framework, a vehicle control framework, etc. Among them, the general perception framework can include the processing of sensory data; the general video framework can include the processing of video, such as encoding and decoding; the general audio framework can include the processing of audio, such as encoding and decoding; and the general data framework can include file processing. Data processing, such as encryption and compression; the vehicle control framework can include the processing of vehicle control data.
其中,如图3所示,基础服务层可以包括多个模块或功能单元,包括但不限于设备发现模块、服务发现模块、连接管理模块、QoS管理模块、安全管理模块、测量管理模块、多域协调模块、第五代移动通信技术(fifth generation mobile communication technology,5G)融合模块等,以实现传输通道(transmission channel,TC)的创建、添加、删除、释放等,以及逻辑通道(logical channel,LC)的控制(例如接入技术的选择)等功能,并承接基础应用层的业务需求(例如流量、速率、音质、分辨率)。基础服务层可以兼容接入层支持的多种接入层技术,例如兼容上述SLB接入技术、SLE接入技术等多种接入技术,并保留兼容未来更多接入技术的能力。Among them, as shown in Figure 3, the basic service layer can include multiple modules or functional units, including but not limited to device discovery module, service discovery module, connection management module, QoS management module, security management module, measurement management module, multi-domain Coordination module, fifth generation mobile communication technology (5G) integration module, etc., to realize the creation, addition, deletion, release, etc. of transmission channel (TC), as well as logical channel (LC) ) control (such as access technology selection) and other functions, and undertake the business requirements of the basic application layer (such as traffic, rate, sound quality, resolution). The basic service layer can be compatible with a variety of access layer technologies supported by the access layer, such as the above-mentioned SLB access technology, SLE access technology and other access technologies, and retains the ability to be compatible with more access technologies in the future.
具体的,设备发现模块可以用于在没有与设备进行连接的时候发现设备。服务发现模块可以用于对设备上的服务进行发现与操作。连接管理模块可以用于对传输通道进行管理,包括创建/添加/删除/释放等。QoS管理模块可以用于对传输的QoS进行管理与协商。安全管理模块可以负责基础服务层的安全连接。测量管理模块可以用于配置底层的测量与调度,用以进行功率控制等。多域协调模块可以在存在多个域(子网)的场景下,实现域之间的信息交互,实现多域间的干扰避免,负载平衡。5G融合模块可以用于建立具有蜂窝5G远端管理能力的通道,通过鉴权和认证机制,实现具有蜂窝5G远端控制功能的设备。Specifically, the device discovery module can be used to discover devices when there is no connection to the device. The service discovery module can be used to discover and operate services on the device. The connection management module can be used to manage transmission channels, including creation/addition/deletion/release, etc. The QoS management module can be used to manage and negotiate transmission QoS. The security management module can be responsible for the secure connection of the basic service layer. The measurement management module can be used to configure underlying measurement and scheduling for power control, etc. The multi-domain coordination module can realize information interaction between domains in the scenario where multiple domains (subnets) exist, and achieve interference avoidance and load balancing between multiple domains. The 5G convergence module can be used to establish a channel with cellular 5G remote management capabilities, and implement devices with cellular 5G remote control capabilities through authentication and authentication mechanisms.
其中,传输通道可以为基础服务层的通道,逻辑通道(或者描述为逻辑链路)可以为接入层的通道,一个逻辑通道对应一种接入技术。当通信设备需要发送或广播数据时,该通信设备的基础应用层 可以通过端口将数据发送给基础服务层,基础服务层可以通过传输通道将数据发送给接入层,接入层可以通过逻辑通道发送或广播数据。当通信设备需要接收或扫描数据时,该通信设备的接入层可以通过逻辑通道将接收到或扫描到的数据发送给基础服务层,基础服务层可以通过传输通道和端口将数据发送给基础应用层。Among them, the transmission channel can be a channel of the basic service layer, and the logical channel (or described as a logical link) can be a channel of the access layer. One logical channel corresponds to one access technology. When a communication device needs to send or broadcast data, the basic application layer of the communication device Data can be sent to the basic service layer through the port, the basic service layer can send data to the access layer through the transmission channel, and the access layer can send or broadcast data through the logical channel. When a communication device needs to receive or scan data, the access layer of the communication device can send the received or scanned data to the basic service layer through the logical channel, and the basic service layer can send the data to the basic application through the transmission channel and port. layer.
示例性的,如图3所示,基础应用层可以通过端口将携带有AID的非IP(non-IP)数据发送给基础服务层,也可以通过端口将携带有IP五元组的IP数据发送给基础服务层。基础服务层可以基于传输控制适配协议,将基础应用层发送的数据通过传输通道发送给接入层;也可以基于IP协议,将基础应用层发送的数据通过传输通道发送给接入层;也可以采用数据透传的方式,将基础应用层发送的数据通过传输通道发送给接入层。可以通过超路径互连(ultra path inter connect,UPI)确定基于传输控制适配协议进行数据传输,或者基于IP协议进行数据传输,或者采用数据透传的方式进行数据传输。For example, as shown in Figure 3, the basic application layer can send non-IP data carrying AID to the basic service layer through the port, or it can send IP data carrying IP quintuples through the port. To the basic service layer. The basic service layer can be based on the transmission control adaptation protocol and send the data sent by the basic application layer to the access layer through the transmission channel; it can also be based on the IP protocol and send the data sent by the basic application layer to the access layer through the transmission channel; or Data transparent transmission can be used to send data sent by the basic application layer to the access layer through the transmission channel. Data transmission based on the transmission control adaptation protocol can be determined through ultra path interconnect (UPI), or data transmission based on the IP protocol, or data transmission using data transparent transmission.
另外,基础服务层的传输可以分为控制面的传输和业务面的传输,相应地,基础服务层的传输通道可以包括控制通道和业务通道,控制通道用于传输控制面的数据,业务通道用于传输业务面的数据。In addition, the transmission of the basic service layer can be divided into control plane transmission and business plane transmission. Correspondingly, the transmission channel of the basic service layer can include a control channel and a business channel. The control channel is used to transmit control plane data, and the business channel is used to transmit control plane data. For transmitting business side data.
其中,业务通道可以包括单播业务通道、组播业务通道和广播业务通道。单播业务通道是用于传输单播业务的业务通道,可以实现点对点传输。组播业务通道是用于传输组播业务的业务通道,可以实现点对组传输,其底层有反馈(ack),具有一定底层可靠性。广播业务通道是用于传输广播业务的业务通道,可以实现无连接传输,其底层无反馈(ack),需要通过多次发送保障可靠性。The service channels may include unicast service channels, multicast service channels and broadcast service channels. The unicast service channel is a service channel used to transmit unicast services and can realize point-to-point transmission. The multicast service channel is a service channel used to transmit multicast services. It can realize point-to-group transmission. It has feedback (ack) at the bottom layer and has a certain underlying reliability. The broadcast service channel is a service channel used to transmit broadcast services. It can achieve connectionless transmission. There is no feedback (ack) at the bottom layer and requires multiple transmissions to ensure reliability.
需要说明的是,基础应用层的一个或多个端口可以对应基础服务层的同一个传输通道,基础服务层的一个或多个传输通道可以对应接入层的同一个逻辑通道。另外,逻辑通道是基础服务层中的传输通道的建立的基础,在逻辑通道建立成功后,基础服务层的传输通道才可用。It should be noted that one or more ports of the basic application layer may correspond to the same transmission channel of the basic service layer, and one or more transmission channels of the basic service layer may correspond to the same logical channel of the access layer. In addition, logical channels are the basis for establishing transmission channels in the basic service layer. Only after the logical channels are successfully established can the transmission channels of the basic service layer be available.
其中,如图3所示,接入层可以负责底层逻辑通道的处理,例如逻辑通道的建立、重配置、删除等,以承接基础服务层的业务需求(如可靠数据、实时数据等)。其中,逻辑通道可以用于在两个通信设备之间传输业务。接入层可以包括多种接入技术,包括但不限于星闪基础(sparklink basic,SLB)短距无线通信系统的接入技术、星闪低功耗(sparklink low energy,SLE)短距无线通信系统的接入技术以及其他的接入技术,例如蓝牙低功耗(bluetooth low energy,BLE)技术、未来其他的星闪联盟接入技术等等。Among them, as shown in Figure 3, the access layer can be responsible for the processing of the underlying logical channels, such as the establishment, reconfiguration, deletion, etc. of logical channels, to undertake the business needs of the basic service layer (such as reliable data, real-time data, etc.). Among them, logical channels can be used to transmit services between two communication devices. The access layer can include a variety of access technologies, including but not limited to the access technology of Sparklink basic (SLB) short-range wireless communication system, Sparklink low energy (SLE) short-range wireless communication System access technology and other access technologies, such as Bluetooth low energy (BLE) technology, other StarLight Alliance access technologies in the future, etc.
示例性的,如图3所示,接入层可以包括数据链路层和物理层。数据链路层可以用于实现资源管理、访问控制、数据分段、级联、重排序等功能,以保障数据的可靠传递。物理层可以利用传输介质为数据链路层提供物理连接,以实现比特流的透明传输。在一些实施例中,数据链路层还可以包括链路控制层和媒体接入层。链路控制层主要是基于节点间建立的链路,在控制链路上交互链路控制协议(link control protocol,LCP),起到物理/逻辑链路管理、设备行为的控制等功能。媒体接入层负责进行无线资源分配,并为链路控制层提供数据传输服务。For example, as shown in Figure 3, the access layer may include a data link layer and a physical layer. The data link layer can be used to implement resource management, access control, data segmentation, cascading, reordering and other functions to ensure reliable transmission of data. The physical layer can use the transmission medium to provide physical connections for the data link layer to achieve transparent transmission of bit streams. In some embodiments, the data link layer may also include a link control layer and a media access layer. The link control layer is mainly based on the links established between nodes, and interacts with the link control protocol (LCP) on the control link to perform functions such as physical/logical link management and device behavior control. The media access layer is responsible for allocating wireless resources and providing data transmission services for the link control layer.
可选的,对于一个同时支持两种接入技术(如同时支持SLB接入技术和SLE接入技术)的通信设备来说,其接入层可以通过不同的模块分别实现SLB接入和SLE接入。Optionally, for a communication device that supports two access technologies at the same time (such as supporting both SLB access technology and SLE access technology), its access layer can implement SLB access and SLE access respectively through different modules. enter.
基于上述描述,包括基础应用层和基础服务层的主机协议(或者描述为上层协议)可以适配底层的接入层,以支撑不同业务的需求,具体地,主机协议可以提供给业务功能集合发起业务的请求,并对业务数据进行传输和控制。Based on the above description, the host protocol including the basic application layer and the basic service layer (or described as an upper layer protocol) can be adapted to the underlying access layer to support the needs of different services. Specifically, the host protocol can be provided to initiate a set of business functions. business requests, and transmit and control business data.
具体实现时,采用图1或图3所示协议架构的通信设备的各层架构,如:基础应用层、基础服务层、接入层均可以采用图4所示的组成结构,或者包括图4所示的部件。图4为本申请实施例提供的一种通信装置400的组成示意图,该通信装置400可以为基础应用层或者基础应用层中的芯片或者片上系统;也可以为基础服务层或者基础服务层中的芯片或者片上系统;也可以为接入层或者接入层中的芯片或者片上系统。如图4所示,该通信装置400包括处理器401,收发器402以及通信线路403。During specific implementation, the various layers of the communication device using the protocol architecture shown in Figure 1 or Figure 3, such as the basic application layer, basic service layer, and access layer, can adopt the composition structure shown in Figure 4, or include Figure 4 parts shown. Figure 4 is a schematic diagram of the composition of a communication device 400 provided by an embodiment of the present application. The communication device 400 can be a basic application layer or a chip or a system-on-chip in the basic application layer; it can also be a basic service layer or a basic service layer. A chip or a system on a chip; it may also be an access layer or a chip or a system on a chip in the access layer. As shown in FIG. 4 , the communication device 400 includes a processor 401 , a transceiver 402 and a communication line 403 .
进一步的,该通信装置400还可以包括存储器404。其中,处理器401,存储器404以及收发器402之间可以通过通信线路403连接。Further, the communication device 400 may also include a memory 404. The processor 401, the memory 404 and the transceiver 402 may be connected through a communication line 403.
其中,处理器401是中央处理器(central processing unit,CPU)、通用处理器网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任意组合。处理器401还可以是其它具有处理功能的装置,例如电路、器件或软件模块,不予限制。 Among them, the processor 401 is a central processing unit (CPU), a general-purpose processor, a network processor (NP), a digital signal processing (DSP), a microprocessor, a microcontroller, Programmable logic device (PLD) or any combination thereof. The processor 401 can also be other devices with processing functions, such as circuits, devices or software modules, without limitation.
收发器402,用于与其他设备或其它通信网络进行通信。该其它通信网络可以为以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。收发器402可以是模块、电路、收发器或者任何能够实现通信的装置。Transceiver 402, used to communicate with other devices or other communication networks. The other communication network may be Ethernet, wireless access network (radio access network, RAN), wireless local area networks (wireless local area networks, WLAN), etc. Transceiver 402 may be a module, a circuit, a transceiver, or any device capable of communicating.
通信线路403,用于在通信装置400所包括的各部件之间传送信息。The communication line 403 is used to transmit information between various components included in the communication device 400 .
存储器404,用于存储指令。其中,指令可以是计算机程序。Memory 404, used to store instructions. Wherein, the instructions may be computer programs.
其中,存储器404可以是只读存储器(read-only memory,ROM)或可存储静态信息和/或指令的其他类型的静态存储设备,也可以是随机存取存储器(random access memory,RAM)或可存储信息和/或指令的其他类型的动态存储设备,还可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或其他磁存储设备等,不予限制。Among them, the memory 404 can be a read-only memory (ROM) or other types of static storage devices that can store static information and/or instructions, or it can be a random access memory (random access memory, RAM) or other types of static storage devices that can store static information and/or instructions. Other types of dynamic storage devices that store information and/or instructions can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD- ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, etc., are not restricted.
需要指出的是,存储器404可以独立于处理器401存在,也可以和处理器401集成在一起。存储器404可以用于存储指令或者程序代码或者一些数据等。存储器404可以位于通信装置400内,也可以位于通信装置400外,不予限制。处理器401,用于执行存储器404中存储的指令,以实现本申请下述实施例提供的通信方法。It should be noted that the memory 404 may exist independently of the processor 401 or may be integrated with the processor 401. The memory 404 can be used to store instructions or program codes or some data. The memory 404 may be located within the communication device 400 or outside the communication device 400, without limitation. The processor 401 is configured to execute instructions stored in the memory 404 to implement the communication method provided by the following embodiments of the application.
在一种示例中,处理器401可以包括一个或多个CPU,例如图4中的CPU0和CPU1。In one example, the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4 .
作为一种可选的实现方式,通信装置400包括多个处理器,例如,除图4中的处理器401之外,还可以包括处理器407。As an optional implementation manner, the communication device 400 includes multiple processors. For example, in addition to the processor 401 in FIG. 4, it may also include a processor 407.
作为一种可选的实现方式,通信装置400还包括输出设备405和输入设备406。示例性地,输入设备406是键盘、鼠标、麦克风或操作杆等设备,输出设备405是显示屏、扬声器(speaker)等设备。As an optional implementation manner, the communication device 400 also includes an output device 405 and an input device 406. For example, the input device 406 is a device such as a keyboard, a mouse, a microphone, or a joystick, and the output device 405 is a device such as a display screen, a speaker, or the like.
需要指出的是,通信装置400可以是台式机、便携式电脑、网络服务器、移动手机、平板电脑、无线终端、嵌入式设备、芯片系统或有图4中类似结构的设备。此外,图4中示出的组成结构并不构成对该通信装置的限定,除图4所示部件之外,该通信装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the communication device 400 may be a desktop computer, a portable computer, a network server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system or a device with a similar structure as shown in Figure 4 . In addition, the composition structure shown in Figure 4 does not constitute a limitation of the communication device. In addition to the components shown in Figure 4, the communication device may include more or less components than shown in the figure, or combine certain components. , or a different component arrangement.
本申请实施例中,芯片系统可以由芯片构成,也可以包括芯片和其他分立器件。In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices.
此外,本申请的各实施例之间涉及的动作、术语等均可以相互参考,不予限制。本申请的实施例中各个设备之间交互的消息名称或消息中的参数名称等只是一个示例,具体实现中也可以采用其他的名称,不予限制。In addition, actions, terms, etc. involved in various embodiments of this application can be referred to each other and are not limited. In the embodiments of this application, the name of the message exchanged between the various devices or the name of the parameters in the message is just an example, and other names may also be used in the specific implementation without limitation.
随着科学技术的发展,通信设备上可承载多种应用程序,而不同通信设备上的应用程序需要进行信息或者数据的交换,在这一场景下,通常需要先建立通信连接,才能实现数据的交互。而当通信设备需要交互的周边设备数量较多,或者通信设备所在场景不断变化时,数据交互的效率将会大打折扣。因此,针对上述问题,本申请实施例提供一种通信方法和通信装置,能够避免通信设备之间频繁建立连接所导致的资源浪费的同时,提高通信设备上应用程序之间的通信效率,以便充分发挥通信设备的发现性能。With the development of science and technology, communication devices can host a variety of applications, and applications on different communication devices need to exchange information or data. In this scenario, a communication connection usually needs to be established first before data can be exchanged. Interaction. When there are a large number of peripheral devices that the communication device needs to interact with, or the scene where the communication device is located is constantly changing, the efficiency of data interaction will be greatly reduced. Therefore, in response to the above problems, embodiments of the present application provide a communication method and a communication device, which can avoid the waste of resources caused by frequent establishment of connections between communication devices and at the same time improve the communication efficiency between applications on the communication devices so as to fully Leverage the discovery capabilities of communication devices.
为方便理解,图5示出了一种通信方法的示意图。示例性的,该方法可应用于发现设备与广播设备。下面对该方法进行具体描述。To facilitate understanding, Figure 5 shows a schematic diagram of a communication method. For example, this method can be applied to discovery devices and broadcast devices. This method is described in detail below.
广播设备可以广播基础广播帧与扩展广播帧。基础广播帧与扩展广播帧都可以携带数据。扩展广播帧包括可查询扩展广播帧和不可查询扩展广播帧,基础广播帧包括可查询基础广播帧和不可查询基础广播帧。广播设备先发送基础广播帧,再发送扩展广播帧。发现设备可以接收广播设备发送的基础广播帧和扩展广播帧。当发现设备接收到可查询扩展广播帧后,发现设备可以向该广播设备发送查询请求帧,以请求更多数据。广播设备接收到查询请求帧后,可以回复查询响应帧。查询响应帧中可以包括发现设备所请求的数据。当发现设备接收的是不可查询扩展广播帧时,发现设备可以不发送查询请求帧。发现设备的接入层可以逐层上报基础广播帧和不可查询扩展广播帧中已经携带的数据内容。Broadcast devices can broadcast basic broadcast frames and extended broadcast frames. Both basic broadcast frames and extended broadcast frames can carry data. Extended broadcast frames include queryable extended broadcast frames and non-queryable extended broadcast frames, and basic broadcast frames include queryable basic broadcast frames and non-queryable basic broadcast frames. The broadcast device first sends the basic broadcast frame and then the extended broadcast frame. Discovery devices can receive basic broadcast frames and extended broadcast frames sent by broadcasting devices. After the discovery device receives the queryable extended broadcast frame, the discovery device can send a query request frame to the broadcast device to request more data. After receiving the query request frame, the broadcast device can reply with a query response frame. The query response frame may include data requested by the discovery device. When the discovery device receives a non-queryable extended broadcast frame, the discovery device does not need to send a query request frame. The access layer of the discovery device can report the data content already carried in the basic broadcast frame and the non-queryable extended broadcast frame layer by layer.
广播设备可以在接收窗口内接收查询请求帧,该查询请求帧可以是同一个发现设备发送的多个相同的查询请求帧、也可以是同一个发现设备发送的多个不同的查询请求帧,也可以是多个不同发现设备发送的查询请求帧。广播设备可以发送查询响应帧,该查询响应帧可以是针对一个发现设备回复的一个或者多个查询响应帧,也可以是针对多个发现设备分别反馈的查询响应帧。可查询扩展广播帧中 可以包括提前配置好的查询请求的偏移量、查询响应的偏移量、请求的最大长度、请求的窗口个数等。发现设备可以在查询请求窗口的起始时间发送查询请求帧,广播设备可以在查询响应窗口的起始时间发送查询响应帧。查询请求报文可以包括一个或者多个查询请求帧,查询响应报文可以包括一个或者多个查询响应帧。The broadcast device can receive query request frames within the receiving window. The query request frames can be multiple identical query request frames sent by the same discovery device, or multiple different query request frames sent by the same discovery device, or It can be query request frames sent by multiple different discovery devices. The broadcast device may send a query response frame, which may be one or more query response frames replied to one discovery device, or may be query response frames fed back separately to multiple discovery devices. Queryable extended broadcast frame It can include the offset of the query request configured in advance, the offset of the query response, the maximum length of the request, the number of requested windows, etc. The discovery device can send a query request frame at the start time of the query request window, and the broadcast device can send a query response frame at the start time of the query response window. The query request message may include one or more query request frames, and the query response message may include one or more query response frames.
图5示例性地示出了一个广播设备与一个发现设备的发现流程。具体过程如下:Figure 5 exemplarily shows the discovery process of a broadcast device and a discovery device. The specific process is as follows:
1、广播设备发送基础广播帧和扩展广播帧。1. The broadcast device sends basic broadcast frames and extended broadcast frames.
示例性的,基础广播帧可以有一个或者多个,每相邻两个基础广播帧的发送起始时间的时间间隔为基础广播帧的间隔。例如图5中基础广播帧2的发送起始时间与基础广播帧1的发送起始时间之间的间隔为基础广播帧间隔。For example, there may be one or more basic broadcast frames, and the time interval between the sending start times of each two adjacent basic broadcast frames is the interval of the basic broadcast frames. For example, in Figure 5, the interval between the sending start time of basic broadcast frame 2 and the sending start time of basic broadcast frame 1 is the basic broadcast frame interval.
2、发现设备接收基础广播帧和/或扩展广播帧。2. The discovery device receives basic broadcast frames and/or extended broadcast frames.
示例性的,基础广播帧和扩展广播帧中都包括数据。发现设备可以先接收基础广播帧,当基础广播帧中的数据不满足发现设备的需求时,发现设备可再接收扩展广播帧,以获取扩展广播帧中的数据。示例性的,发现设备开启发现窗口,在发现窗口内接收基础广播帧和扩展广播帧。For example, both the basic broadcast frame and the extended broadcast frame include data. The discovery device can first receive the basic broadcast frame. When the data in the basic broadcast frame does not meet the needs of the discovery device, the discovery device can then receive the extended broadcast frame to obtain the data in the extended broadcast frame. For example, the discovery device opens a discovery window and receives basic broadcast frames and extended broadcast frames within the discovery window.
示例性的,扩展广播帧中可以包括提前配置好的查询请求的偏移量和请求窗口的个数。当发现设备接收到可查询扩展广播帧后,可查询扩展广播帧中的数据仍不满足发现设备的需求时,发现设备可以在可查询扩展广播帧中配置的查询请求的偏移量之后,使用一个或者多个查询请求窗口,发送一个或者多个查询请求帧。当发现设备接收到不可查询扩展广播帧后,发现设备不会发送查询请求帧,该发现过程结束。For example, the extended broadcast frame may include the offset of the query request and the number of request windows configured in advance. When the discovery device receives the queryable extended broadcast frame and the data in the queryable extended broadcast frame still does not meet the needs of the discovery device, the discovery device can use the offset of the query request configured in the queryable extended broadcast frame. One or more query request windows, send one or more query request frames. After the discovery device receives the non-queryable extended broadcast frame, the discovery device will not send a query request frame, and the discovery process ends.
3、广播设备接收查询请求帧,发送查询响应帧。3. The broadcast device receives the query request frame and sends the query response frame.
示例性的,当广播设备发送的是可查询扩展广播帧时,会开启接收窗口,以接收发送设备发送的查询请求帧。扩展广播帧中可以包括提前配置好的查询响应的偏移量和查询响应窗口的个数。当广播设备在接收窗口内接收到查询请求帧后,在可查询扩展广播中配置的查询响应的偏移量之后,可以通过一个或者多个查询响应窗口发送查询响应帧。一个查询响应帧中可以包括一个或者多个发现设备的响应。For example, when the broadcast device sends a queryable extended broadcast frame, the receiving window will be opened to receive the query request frame sent by the sending device. The extended broadcast frame may include the offset of the query response and the number of query response windows configured in advance. After the broadcast device receives the query request frame within the reception window, it can send the query response frame through one or more query response windows after querying the offset of the query response configured in the extended broadcast. A query response frame may include responses from one or more discovered devices.
4、发现设备接收查询响应帧。4. The discovery device receives the query response frame.
示例性的,当发现设备接收到广播设备发送的查询响应帧时,该发现过程完成。广播设备可以继续发送如图5所示的基础广播帧4,基础广播帧1发送的起始时间与基础广播帧4发送的起始时间之间的间隔为该广播设备的广播周期间隔。For example, when the discovery device receives a query response frame sent by the broadcast device, the discovery process is completed. The broadcast device can continue to send the basic broadcast frame 4 as shown in Figure 5. The interval between the start time of sending the basic broadcast frame 1 and the start time of sending the basic broadcast frame 4 is the broadcast cycle interval of the broadcast device.
上文中图5介绍了一种广播设备与发现设备相互发现的流程。流程500可以实现在发现设备与广播设备没有建立连接的前提下,便可进行数据传输。当发现设备需要交互数据的周边设备数量较多,或者发现设备处于移动状态时,可以避免发现设备与周边设备频繁建立连接所导致的资源消耗,提高设备之间数据传输的效率。Figure 5 above introduces a mutual discovery process between a broadcast device and a discovery device. The process 500 can realize data transmission without establishing a connection between the discovery device and the broadcast device. When the discovery device has a large number of peripheral devices that need to exchange data, or the discovery device is in a mobile state, resource consumption caused by frequent establishment of connections between the discovery device and peripheral devices can be avoided, and the efficiency of data transmission between devices can be improved.
当发现设备需要获取更多的数据时,发现设备可以通过向广播设备发送查询请求帧,以请求更多的数据内容。但由于通信设备上可承载有多种应用程序,使得可查询广播中的信息也是十分复杂的,为了进一步提高通信设备之间数据传输的效率,图6示出了本申请提供的一种通信方法的示意性流程图。以一个发现设备和一个广播设备为例,下面对方法600进行详细说明。When the discovery device needs to obtain more data, the discovery device can request more data content by sending a query request frame to the broadcast device. However, since communication devices can carry multiple applications, querying the information in the broadcast is also very complicated. In order to further improve the efficiency of data transmission between communication devices, Figure 6 shows a communication method provided by the present application. schematic flow chart. Taking a discovery device and a broadcast device as an example, method 600 will be described in detail below.
S601,广播设备预配置查询响应的过滤条件。S601: The broadcast device pre-configures the filtering conditions of the query response.
S602,发现设备预配置查询请求的过滤条件。S602: Discover that the device pre-configures the filtering conditions of the query request.
示例性的,上述过滤条件也可被称为过滤指示信息,本申请对此名称不作限定。广播设备与发现设备可以分别预配置过滤条件。过滤条件可以为设备地址、设备名称、服务通用唯一识别码(universally unique identifier,UUID)、服务数据、厂商数据等信息中的一个或者多个。For example, the above filtering conditions may also be called filtering instruction information, and this application does not limit this name. Filter conditions can be pre-configured for broadcast devices and discovery devices respectively. The filter conditions can be one or more of the device address, device name, service universal unique identifier (UUID), service data, manufacturer data and other information.
示例性的,对于广播设备,广播设备的基础应用层可以根据业务需要,配置查询响应的过滤策略,并在基础服务层将查询响应的过滤策略转换成接入层能够理解的查询响应的过滤命令。对于发现设备,发现设备的基础应用层可以根据业务需要,配置查询请求的过滤策略,并在基础服务层将查询请求的过滤策略转换成接入层能够理解的查询请求的过滤命令。For example, for a broadcast device, the basic application layer of the broadcast device can configure a query response filtering policy according to business needs, and convert the query response filtering policy into a query response filtering command that the access layer can understand at the basic service layer. . For discovery devices, the basic application layer of the discovery device can configure the query request filtering policy according to business needs, and convert the query request filtering policy into query request filtering commands that the access layer can understand at the basic service layer.
示例性的,发现设备和广播设备可以分别预先配置查询请求的过滤条件和查询响应的过滤条件,以便后续过程中发现设备与广播设备分别根据查询请求的过滤条件和查询响应的过滤条件对相应的信 息进行过滤处理。查询请求的过滤条件与查询响应的过滤条件分别用于对可查询广播的过滤处理与对查询请求报文的过滤处理,因此,这两种过滤条件可以不相同。应理解,本申请对步骤S601和S602的执行先后顺序不做限制。For example, the discovery device and the broadcast device can respectively pre-configure the filtering conditions of the query request and the filtering conditions of the query response, so that in the subsequent process, the discovery device and the broadcasting device respectively configure the corresponding filtering conditions according to the filtering conditions of the query request and the query response. letter Information is filtered. The filtering conditions of the query request and the filtering conditions of the query response are respectively used to filter the queryable broadcast and to filter the query request message. Therefore, the two filtering conditions may be different. It should be understood that this application does not limit the execution order of steps S601 and S602.
S603,广播设备发送可查询广播,相应地,发现设备接收可查询广播。S603: The broadcast device sends a queryable broadcast, and accordingly, the discovery device receives the queryable broadcast.
示例性的,可查询广播包括可查询基础广播和可查询扩展广播。Exemplarily, queryable broadcasts include queryable basic broadcasts and queryable extended broadcasts.
示例性的,发现设备的接入层可以启动扫描,在扫描过程中可以接收来自广播设备的可查询广播。Exemplarily, the access layer of the discovery device may initiate scanning, and during the scanning process, may receive queryable broadcasts from the broadcasting device.
S604,发现设备根据查询请求的过滤条件对可查询广播进行过滤处理。S604: The discovery device filters the queryable broadcasts according to the filtering conditions of the query request.
示例性的,当发现设备接收到可查询广播时,可以根据预配置的查询请求的过滤条件对可查询广播进行过滤处理。经过条件处理之后的可查询广播,可以匹配相应的查询请求帧。具体对可查询广播进行过滤处理的过程可详见下文对图8的描述。For example, when the discovery device receives a queryable broadcast, the queryable broadcast can be filtered according to the preconfigured filtering conditions of the query request. The queryable broadcast after condition processing can match the corresponding query request frame. The specific process of filtering queryable broadcasts can be found in the description of Figure 8 below.
S605,发现设备发送查询请求帧,相应地,广播设备接收查询请求帧。S605: The discovery device sends a query request frame, and accordingly, the broadcast device receives the query request frame.
示例性的,发现设备匹配到与可查询广播对应的查询请求帧后,会向广播设备发送查询请求帧,用于请求更多数据内容。Exemplarily, after the discovery device matches the query request frame corresponding to the queryable broadcast, it will send a query request frame to the broadcasting device to request more data content.
示例性的,广播设备的接入层接收到查询请求帧后,可经过基础服务层上报至基础应用层,在广播设备的基础应用层做解析处理。For example, after the access layer of the broadcast device receives the query request frame, it can report it to the basic application layer through the basic service layer, and perform analysis and processing on the basic application layer of the broadcast device.
S606,广播设备根据查询响应的过滤条件对查询请求帧进行过滤处理。S606: The broadcast device filters the query request frame according to the filtering conditions of the query response.
示例性的,当广播设备接收到发现设备发送的查询请求帧时,可以根据预先配置的查询响应的过滤条件对查询请求帧进行过滤处理。经过过滤处理之后的查询请求帧,可以匹配相应的查询响应帧。具体对查询请求帧进行过滤处理的过程可详见下文对图9的描述。For example, when the broadcast device receives the query request frame sent by the discovery device, the query request frame can be filtered according to the preconfigured filtering conditions of the query response. The query request frame after filtering can match the corresponding query response frame. The specific process of filtering the query request frame can be found in the description of Figure 9 below.
S607,广播设备发送查询响应帧,相应地,发现设备接收查询响应帧。S607: The broadcast device sends a query response frame, and accordingly, the discovery device receives the query response frame.
示例性的,查询响应帧中可以包括发现设备向广播设备请求的具体数据内容。For example, the query response frame may include specific data content requested by the discovery device from the broadcast device.
示例性的,发现设备的接入层接收到查询响应帧后,可经过基础服务层上报至基础应用层,在发现设备的基础应用层做解析处理。For example, after the access layer of the discovery device receives the query response frame, it can report it to the basic application layer through the basic service layer, and perform analysis and processing on the basic application layer of the discovery device.
示例性的,上文中的查询请求帧和查询响应帧可以是以报文为单元进行传输的。For example, the above query request frame and query response frame may be transmitted in message units.
可见,在方法500的通信设备的发现流程基础上,方法600对其中的可查询广播和查询请求帧进行了过滤处理,能够获得与可查询广播匹配的查询请求帧,和与查询请求帧匹配的查询响应帧,提高了通信设备之间数据传输的准确性和传输效率。但,对信息进行过滤处理是需要处理时间的,为方便理解,图7示出了在时间轴上发现设备与广播设备的发现流程。下面以智能手机360和智能汽车370为例对发现流程进行介绍。It can be seen that based on the communication device discovery process of method 500, method 600 filters the queryable broadcast and query request frames, and can obtain the query request frame matching the queryable broadcast, and the query request frame matching the query request frame. The query response frame improves the accuracy and efficiency of data transmission between communication devices. However, filtering information requires processing time. To facilitate understanding, Figure 7 shows the discovery process of discovering devices and broadcasting devices on the timeline. The discovery process will be introduced below using the smartphone 360 and the smart car 370 as examples.
如图7所示,包括智能手机260和智能汽车270这两个通信设备,智能手机260为广播设备,或者可以被认为是功耗敏感设备;智能汽车270为发现设备,或者可以被认为是功耗不敏感设备。701和702表示两个时间轴。示例性的,对于智能手机260,在t2时刻开始发送可查询广播,t2~t3时间段内可以发送一个或者多个可查询广播帧;在t4时刻开始接收查询请求帧,t4~t7时间段内可以接收一个或者多个查询请求帧;在t8时刻开始发送查询响应帧,t8~t9时间段内可以发送一个或者多个查询响应帧。对于智能汽车270,在t1时刻开始扫描,在t5时刻发送某一查询请求帧。应理解,智能汽车270可以发送一个或者多个查询请求帧,当t5时刻表示智能汽车270在接收到可查询广播之后首次发送的查询请求帧时,t5时刻与t4时刻重合,t5时刻也就是智能汽车270发送查询请求帧的起始时刻。As shown in Figure 7, it includes two communication devices, a smart phone 260 and a smart car 270. The smart phone 260 is a broadcasting device or can be considered a power consumption sensitive device; the smart car 270 is a discovery device or can be considered a power consumption sensitive device. consumption of insensitive equipment. 701 and 702 represent two timelines. For example, for the smart phone 260, it starts sending queryable broadcasts at time t2, and can send one or more queryable broadcast frames during the time period t2 to t3; it starts receiving query request frames at time t4, and it can send query request frames during the time period t4~t7. One or more query request frames can be received; query response frames start to be sent at time t8, and one or more query response frames can be sent within the time period from t8 to t9. For the smart car 270, scanning starts at time t1 and a certain query request frame is sent at time t5. It should be understood that the smart car 270 can send one or more query request frames. When time t5 represents the first query request frame sent by the smart car 270 after receiving the queryable broadcast, time t5 coincides with time t4, and time t5 is the smart car 270. The starting time when car 270 sends the query request frame.
智能手机260是功耗敏感设备,因此该设备可以周期性发送可查询广播。例如,在时间轴701上,t0~t2时间段,智能手机260处于休眠状态,以节省功耗,在t2时刻,开始发送可查询广播。而智能汽车270是功耗不敏感设备,可以在t1时刻开始扫描,以确保接收到智能手机260发送的可查询广播,另外,智能汽车270在扫描过程中还可以接收来自其他通信设备的广播消息。The smartphone 260 is a power sensitive device, so the device may send queryable broadcasts periodically. For example, on the timeline 701, during the time period from t0 to t2, the smartphone 260 is in a sleep state to save power consumption, and at time t2, it starts sending queryable broadcasts. The smart car 270 is a power consumption insensitive device and can start scanning at time t1 to ensure that the queryable broadcast sent by the smart phone 260 is received. In addition, the smart car 270 can also receive broadcast messages from other communication devices during the scanning process. .
智能手机260在发送完可查询广播之后,可进入接收查询请求帧的状态。例如,在t4时刻,智能手机260进入接收查询请求帧的状态,该状态需要具有一定的停留时间。例如t4~t7时间段,智能手机260处于接收查询请求帧的状态。智能手机260需要在该停留时间内接收到智能汽车270发送的查询请求帧。对于智能汽车270,也需要停留足够长的扫描状态,例如,t1~t10时间段,以便接收到智能手机260发送的查询响应帧。After sending the queryable broadcast, the smart phone 260 can enter the state of receiving the query request frame. For example, at time t4, the smartphone 260 enters a state of receiving a query request frame, and this state requires a certain dwell time. For example, during the time period from t4 to t7, the smartphone 260 is in a state of receiving a query request frame. The smart phone 260 needs to receive the query request frame sent by the smart car 270 within the residence time. The smart car 270 also needs to stay in the scanning state long enough, for example, the time period t1 to t10, in order to receive the query response frame sent by the smart phone 260.
根据上文对方法600的描述可知,该发现流程存在根据两个过滤条件进行过滤处理的阶段,分别 为智能汽车270对可查询广播的过滤处理,以及智能手机260对查询请求帧的过滤处理。根据通信设备硬件能力和性能的不同,需要不同的过滤处理时间,该过滤处理时间可以是系统默认的处理时间,也可以是通过可查询广播配置的处理时间。如图7所示,智能手机260和智能汽车270可约定时间偏移量#1,与时间偏移量#2。例如,时间偏移量#1为t3~t4时间段,用来表示智能汽车270对可查询广播进行过滤处理的处理时间;时间偏移量#2为t7~t8时间段,用来表示智能手机260对查询请求帧进行过滤处理的处理时间。这两个时间偏移量可以为标准固定值,例如一个帧内部间隔(inter frame space,IFS)长度。不同的无线通信介质可以有不同的IFS长度。如果IFS长度不够长,可以定义一个新的偏移量长度。示例性的,在时间偏移量中,不仅可以做上述的过滤处理,还可以处理其他无线任务,例如数据收发、广播收发、扫描等。示例性的,智能汽车270在时间偏移量#1内可继续扫描,接收来自多个通信设备的广播消息。According to the above description of method 600, it can be seen that the discovery process includes a stage of filtering based on two filtering conditions, respectively. The smart car 270 performs filtering processing on queryable broadcasts, and the smart phone 260 performs filtering processing on query request frames. Depending on the hardware capabilities and performance of the communication equipment, different filtering processing times are required. The filtering processing time can be the system default processing time, or the processing time configured through queryable broadcast. As shown in FIG. 7 , the smart phone 260 and the smart car 270 can agree on time offset #1 and time offset #2. For example, time offset #1 is the time period t3 ~ t4, used to represent the processing time of the smart car 270 to filter the queryable broadcast; time offset #2 is the time period t7 ~ t8, used to represent the smart phone 270 260 processing time for filtering query request frames. The two time offsets can be standard fixed values, such as an intra-frame space (IFS) length. Different wireless communication media can have different IFS lengths. If the IFS length is not long enough, you can define a new offset length. For example, in the time offset, not only the above-mentioned filtering processing can be performed, but other wireless tasks can also be processed, such as data transmission and reception, broadcast transmission and reception, scanning, etc. For example, the smart car 270 may continue to scan and receive broadcast messages from multiple communication devices within time offset #1.
为了便于理解,图8示出了一种对可查询广播的过滤处理流程。该过滤处理流程可应用于发现设备。For ease of understanding, Figure 8 shows a filtering process flow for queryable broadcasts. This filtering process can be applied to discover devices.
当发现设备接收到可查询广播之后,可以将可查询广播与查询请求的过滤条件进行匹配判断。每个查询请求的过滤条件可以存在与之对应的查询请求帧。示例性的,如图8所示,查询请求的过滤条件1对应查询请求帧1,查询请求的过滤条件2对应查询请求帧2,查询请求的过滤条件3对应查询请求帧3,查询请求的过滤条件N对应查询请求帧N。After the discovery device receives the queryable broadcast, it can match the queryable broadcast with the filtering conditions of the query request. The filter conditions of each query request can have corresponding query request frames. For example, as shown in Figure 8, the filtering condition 1 of the query request corresponds to the query request frame 1, the filtering condition 2 of the query request corresponds to the query request frame 2, the filtering condition 3 of the query request corresponds to the query request frame 3, and the filtering of the query request Condition N corresponds to query request frame N.
当可查询广播的内容满足某一查询请求的过滤条件时,则发现设备可以发送与该过滤条件对应的查询请求帧。示例性的,当可查询广播的内容满足查询请求的过滤条件1时,发现设备发送查询请求帧1;当可查询广播的内容满足查询请求的过滤条件2和3时,发现设备发送查询请求帧2和3。示例性的,发现设备发送的查询请求报文中可以包括一个或者多个查询请求帧。When the queryable broadcast content satisfies the filtering condition of a certain query request, the discovery device can send a query request frame corresponding to the filtering condition. For example, when the content of the queryable broadcast satisfies the filtering condition 1 of the query request, the discovery device sends the query request frame 1; when the content of the queryable broadcast satisfies the filtering conditions 2 and 3 of the query request, the discovery device sends the query request frame. 2 and 3. For example, the query request message sent by the discovery device may include one or more query request frames.
示例性的,查询请求的过滤条件可以携带于发现设备的基础服务层向发现设备的接入层发送的查询请求过滤命令中。For example, the filtering conditions of the query request may be carried in the query request filtering command sent by the basic service layer of the discovery device to the access layer of the discovery device.
示例性的,图8中的查询请求的过滤条件1、查询请求的过滤条件2、查询请求的过滤条件3和查询请求的过滤条件N属于查询请求过滤器集合元素,查询请求过滤器集合元素可以理解为是查询请求的过滤条件的集合,可以包括一个或者多个查询请求的过滤条件。For example, the filter condition 1 of the query request, the filter condition 2 of the query request, the filter condition 3 of the query request, and the filter condition N of the query request in Figure 8 belong to the query request filter set elements, and the query request filter set elements can It is understood as a collection of filter conditions for query requests, which can include one or more filter conditions for query requests.
示例性的,可作为查询请求的过滤条件的选项可以包括媒体接入层(media access control,MAC)标识、设备名称,以及通信设备的其他公开信息。设备公开信息中的每一项可作为一个过滤条件,所有过滤条件可以按照需求向星闪接入层配置,由星闪接入层完成发现结果过滤,或者由设备发现功能单元完成设备发现结果过滤。对于多项过滤条件,提供逻辑与、逻辑或、逻辑非的配置。逻辑与是指需要同时符合各项过滤条件才能完成匹配;逻辑或是指符合其中一项过滤条件就能成功匹配;逻辑非是指符合其中一项过滤条件则匹配失败。例如,查询请求的过滤条件可以被配置为:用户A且应用程序B。则发现设备发送的查询请求帧用于请求应用程序B的用户A的相关数据内容。For example, options that can be used as filter conditions for the query request may include media access control (MAC) identification, device name, and other public information of the communication device. Each item in the device public information can be used as a filtering condition. All filtering conditions can be configured to the Starflash access layer as required. The Starflash access layer completes the discovery result filtering, or the device discovery functional unit completes the device discovery result filtering. . For multiple filter conditions, logical AND, logical OR, and logical negation configurations are provided. Logical AND means that all filtering conditions must be met at the same time to complete the match; logical OR means that matching one of the filtering conditions will result in a successful match; logical negation means that matching one of the filtering conditions will fail. For example, the filter conditions of the query request can be configured as: user A and application B. Then it is found that the query request frame sent by the device is used to request the relevant data content of user A of application B.
示例性的,查询请求的过滤条件可以由设备地址、设备名称、服务UUID、服务数据、厂商数据等信息中的单个或者多个条件的与/或/非组合而成,发现设备支持对可查询广播根据过滤条件进行过滤处理,发送与查询请求的过滤条件相对应的查询请求帧。进而,能够提高数据内容在发现设备与广播设备之间传输的效率。For example, the filtering conditions of the query request can be composed of the AND/OR/NOT combination of single or multiple conditions in the device address, device name, service UUID, service data, manufacturer data and other information. It is found that the device supports queryable The broadcast is filtered according to the filtering conditions, and a query request frame corresponding to the filtering conditions of the query request is sent. Furthermore, the efficiency of data content transmission between the discovery device and the broadcast device can be improved.
为了便于理解,图9示出了一种对查询请求报文的过滤处理流程。该过滤处理流程可应用于广播设备。For ease of understanding, Figure 9 shows a filtering process flow for query request messages. This filtering process can be applied to broadcast equipment.
当广播设备接收到查询请求报文之后,可以将查询请求报文与查询响应的过滤条件进行匹配判断。每个查询响应的过滤条件可以存在与之对应的查询响应帧。其中,查询请求报文中可以包括一个或者多个查询请求帧。示例性的,如图9所示,查询响应的过滤条件1对应查询响应帧1,查询响应的过滤条件2对应查询响应帧2,查询响应的过滤条件3对应查询响应帧3,查询响应的过滤条件N对应查询响应帧N。After the broadcast device receives the query request message, it can match the query request message with the filtering conditions of the query response. Each query response filter condition can have a corresponding query response frame. The query request message may include one or more query request frames. For example, as shown in Figure 9, the filter condition 1 of the query response corresponds to the query response frame 1, the filter condition 2 of the query response corresponds to the query response frame 2, the filter condition 3 of the query response corresponds to the query response frame 3, and the filtering of the query response Condition N corresponds to query response frame N.
当查询请求报文的内容满足某一查询响应的过滤条件时,则广播设备可以发送与该过滤条件对应的查询响应帧。示例性的,当查询请求报文的内容满足查询响应的过滤条件1时,广播设备发送查询响应帧1;当查询请求报文的内容满足查询响应的过滤条件2和3时,广播设备发送查询响应帧2和3。示例性的,广播设备发送的查询响应报文中可以包括一个或者多个查询响应帧。 When the content of the query request message meets the filtering condition of a certain query response, the broadcast device can send a query response frame corresponding to the filtering condition. For example, when the content of the query request message meets the filtering condition 1 of the query response, the broadcasting device sends query response frame 1; when the content of the query request message meets the filtering conditions 2 and 3 of the query response, the broadcasting device sends the query Response frames 2 and 3. For example, the query response message sent by the broadcast device may include one or more query response frames.
示例性的,查询响应的过滤条件可以携带于广播设备的基础服务层向广播设备的接入层发送的查询响应过滤命令中。For example, the query response filtering conditions may be carried in the query response filtering command sent by the basic service layer of the broadcasting device to the access layer of the broadcasting device.
示例性的,图9中的查询响应的过滤条件1、查询响应的过滤条件2、查询响应的过滤条件3和查询响应的过滤条件N属于查询响应过滤器集合元素,查询响应过滤器集合元素可以理解为是查询响应的过滤条件的集合,可以包括一个或者多个查询响应的过滤条件。For example, query response filter condition 1, query response filter condition 2, query response filter condition 3 and query response filter condition N in Figure 9 belong to query response filter set elements, and the query response filter set element can It is understood as a collection of filtering conditions for query responses, which may include one or more filtering conditions for query responses.
示例性的,查询响应的过滤条件可以由设备地址、设备名称、服务UUID、服务数据、厂商数据等信息中的单个或者多个条件的与/或/非组合而成,广播设备支持对查询请求帧根据过滤条件进行过滤处理,发送与查询响应的过滤条件相对应的查询响应帧。进而,能够提高数据内容在发现设备与广播设备之间传输的效率。其中,广播设备按照单个或多个条件的与/或/非组合对查询请求帧进行过滤处理的过程,可以参见上述发现设备对可查询广播进行过滤处理的相关表述,本申请在此不再赘述。For example, the filtering conditions of the query response can be composed of the AND/OR/NOT combination of single or multiple conditions in the device address, device name, service UUID, service data, manufacturer data and other information. The broadcast device supports query requests. The frame is filtered according to the filtering conditions, and a query response frame corresponding to the filtering conditions of the query response is sent. Furthermore, the efficiency of data content transmission between the discovery device and the broadcast device can be improved. Among them, the process of the broadcast device filtering the query request frame according to the AND/OR/NOT combination of single or multiple conditions can be found in the above-mentioned related expressions of the discovery device filtering the queryable broadcast, and this application will not go into details here. .
应理解,图8和图9中分别示出了发现设备根据查询请求的过滤条件对可查询广播信息进行过滤处理,以及广播设备根据查询响应的过滤条件对查询请求报文进行过滤处理的过程。下面以发现设备对可查询广播的过滤处理为例,介绍过滤处理的机制。其中,过滤处理过程也可以被称为过滤匹配过程,本申请对该过程的具体名称不作限定。It should be understood that Figures 8 and 9 respectively illustrate the process in which the discovery device filters the queryable broadcast information according to the filtering conditions of the query request, and the broadcasting device filters the query request message according to the filtering conditions of the query response. The following takes the filtering processing of queryable broadcasts by the discovery device as an example to introduce the filtering processing mechanism. The filtering process may also be called a filtering matching process, and this application does not limit the specific name of this process.
如图10所示,示出了发现设备的过滤处理过程示意图。As shown in Figure 10, a schematic diagram of the filtering process of the discovery device is shown.
步骤一:发现设备接收报文。Step 1: Discover the device and receive the message.
示例性的,发现设备可以接收来自广播设备的广播消息,该广播消息可以包括二进制的数据报文(1)。For example, the discovery device may receive a broadcast message from the broadcast device, and the broadcast message may include a binary data packet (1).
步骤二:发现设备匹配掩码。Step 2: Discover the device matching the mask.
示例性的,掩码(2)是由二进制的0和1组成。“1”表示所在位置的二进制数据需要匹配,“0”表示所在位置的二进制数据不需要匹配。根据数据报文(1)与二进制掩码(2)匹配获得二进制数据(3)。可见,需要具体匹配(3)中从左到右顺序的第一位置数据“0”、第三位置数据“1”、第六位置数据“1”、第七位置数据“0”和第八位置数据“1”。For example, mask (2) is composed of binary 0s and 1s. "1" indicates that the binary data at the location needs to match, "0" indicates that the binary data at the location does not need to match. Obtain binary data (3) based on the match between the data message (1) and the binary mask (2). It can be seen that the first position data "0", the third position data "1", the sixth position data "1", the seventh position data "0" and the eighth position in (3) need to be specifically matched from left to right. Data "1".
步骤三:发现设备根据具体的过滤条件进行匹配。Step 3: Discover devices and match them based on specific filtering conditions.
示例性的,查询请求的过滤条件可以由设备地址、设备名称、服务UUID、请求服务UUID、服务数据和厂商数据等信息中的一个或者多个进行与/或/非逻辑组合形成。发现设备可以根据组合形成的过滤条件匹配查询请求帧。For example, the filtering conditions of the query request may be formed by AND/OR/NOT logical combination of one or more of the information such as device address, device name, service UUID, requested service UUID, service data, and manufacturer data. Discovery devices can match query request frames based on the combined filter criteria.
相应地,查询响应的过滤条件可以由设备地址、设备名称、服务UUID、请求服务UUID、服务数据和厂商数据等信息中的一个或者多个进行与/或/非逻辑组合形成。广播设备可以根据组合形成的过滤条件匹配查询响应帧。Accordingly, the filtering conditions of the query response may be formed by AND/OR/NOT logical combinations of one or more of the information such as device address, device name, service UUID, requested service UUID, service data, and manufacturer data. The broadcast device can match query response frames based on the combined filter conditions.
示例性的,发现设备可以根据过滤条件1和/或过滤条件2对二进制数据(3)进行匹配。匹配成功,则发现设备确定对应的查询请求帧,发送查询请求报文。For example, the discovery device may match the binary data (3) according to filter condition 1 and/or filter condition 2. If the match is successful, the discovery device determines the corresponding query request frame and sends the query request message.
由上文可知,发现设备可向广播设备发送查询请求报文,示例性的,可以以查询请求帧的形式发送查询请求报文。其中,查询请求帧属于广播帧,在本申请实施例中,可以采用星闪协议通用的广播帧。下面对查询请求帧的结构进行具体介绍。As can be seen from the above, the discovery device can send a query request message to the broadcast device. Exemplarily, the query request message can be sent in the form of a query request frame. Among them, the query request frame belongs to a broadcast frame. In the embodiment of the present application, a broadcast frame common to the Star Flash protocol can be used. The structure of the query request frame is specifically introduced below.
如表1所示,示出了星闪通用广播帧对应的结构。As shown in Table 1, the corresponding structure of the starlight universal broadcast frame is shown.
表1星闪通用广播帧对应的结构

Table 1 The structure corresponding to the star flash general broadcast frame

如表2所示,示出了星闪通用广播帧中各个字段所表示的信息内容。As shown in Table 2, the information content represented by each field in the starlight universal broadcast frame is shown.
表2星闪通用广播帧中的信息内容
Table 2 Information content in star flash general broadcast frame
下面对表2中各个字段进行说明:The following describes each field in Table 2:
1、广播帧结构指示:用于标识后续的本端媒体接入层标识、对端媒体接入层标识和扩展广播帧资源配置信息的字段是否存在。其中本端可以理解为发现设备,对端可以理解为广播设备。其中,广播帧结构指示的5比特的含义分别如下:1. Broadcast frame structure indication: Whether fields used to identify subsequent local media access layer identification, peer media access layer identification, and extended broadcast frame resource configuration information exist. The local end can be understood as a discovery device, and the opposite end can be understood as a broadcast device. Among them, the meanings of the 5 bits indicated by the broadcast frame structure are as follows:
(1)比特0:0表示本端地址不存在,1表示本端地址存在;(1) Bit 0: 0 indicates that the local address does not exist, 1 indicates that the local address exists;
(2)比特1:0表示对端地址不存在,1表示对端地址存在;(2) Bits 1:0 indicate that the peer address does not exist, 1 indicates that the peer address exists;
(3)比特2:0表示扩展广播帧资源配置信息不存在,1表示扩展广播帧资源配置信息存在;(3) Bit 2: 0 indicates that the extended broadcast frame resource configuration information does not exist, and 1 indicates that the extended broadcast frame resource configuration information exists;
(4)比特3:0表示数据部分信息不存在,1表示数据部分信息存在;(4) Bit 3: 0 indicates that the data part information does not exist, 1 indicates that the data part information exists;
(5)比特4:0表示不存在解析密钥标识,1表示本端地址是可解析私有地址并存在解析密钥标识。(5) Bit 4:0 indicates that there is no resolution key identifier, and 1 indicates that the local address is a resolvable private address and there is a resolution key identifier.
2、本端媒体接入层标识类型:0表示星闪联盟分配标识,1表示私有标识。2. Local media access layer identification type: 0 indicates the identification assigned by the Star Flash Alliance, 1 indicates the private identification.
3、对端媒体接入层标识类型:0表示星闪联盟分配标识,1表示私有标识。3. Peer media access layer identification type: 0 indicates the identification assigned by the Star Flash Alliance, 1 indicates the private identification.
4、本端媒体接入层标识:本端媒体接入层标识(Media Access Control,MAC)。 4. Local media access layer identifier: Local media access layer identifier (Media Access Control, MAC).
5、对端媒体接入层标识:对端MAC。5. Peer media access layer identifier: Peer MAC.
6、身份解析密钥标识(identity resolving key,IRK ID):用于星闪无线低功耗系统的隐私管理。6. Identity resolving key (IRK ID): used for privacy management of the Star Flash wireless low-power system.
示例性的,星闪无线低功耗系统的隐私管理提供对星闪无线低功耗系统真实身份的隐藏,能够避免服务器的恶意监听,或者避免监听方收集星闪无线低功耗系统的私有数据,防止被跟踪。For example, the privacy management of the StarLight wireless low-power system provides the ability to hide the true identity of the StarLan wireless low-power system, which can avoid malicious monitoring by the server or prevent the monitoring party from collecting private data of the StarLan wireless low-power system. , to prevent being tracked.
星闪无线低功耗设备地址包括可解析随机地址,可解析随机地址的格式如表3所示。StarLight wireless low-power device addresses include resolvable random addresses. The format of the resolvable random addresses is shown in Table 3.
表3可解析随机地址的格式
Table 3 The format of parsable random addresses
其中,地址哈希部分的生成算法为:地址哈希部分=HMAC-SM3/AES-CMAC(IRK,rand,len)mod2^16。Among them, the generation algorithm of the address hash part is: address hash part = HMAC-SM3/AES-CMAC (IRK, rand, len) mod2^16.
其中,rand表示地址随机部分。Among them, rand represents the random part of the address.
当通信设备(例如,节点)收到一个包含可解析随机地址和身IRK ID的消息后,先根据该IRK ID在解析列表中的对端IRK ID列表中找到对应的IRK ID,然后使用该IRK ID对应的对端IRK进行计算:localHash=HMAC-SM3/AES-CMAC(IRK,rand,len)mod 2^16(其中,rand从可解析随机地址中提取),然后将结果localHash与可解析随机地址中包含的hash比对。如果两者相同,那么地址解析成功。之后再找到与对端IRK对应的对端设备地址就可发起连接。When a communication device (for example, a node) receives a message containing a resolvable random address and an IRK ID, it first finds the corresponding IRK ID in the peer IRK ID list in the parsing list based on the IRK ID, and then uses the IRK Calculate the peer IRK corresponding to the ID: localHash=HMAC-SM3/AES-CMAC(IRK, rand, len) mod 2^16 (where rand is extracted from the resolvable random address), and then compare the result localHash with the resolvable random address Hash comparison contained in the address. If both are the same, the address resolution is successful. Then find the peer device address corresponding to the peer IRK and initiate the connection.
如果解析列表中的对端IRK ID中有多个对应的IRK,每个IRK ID对应的IRK重复上述过程,以确定接收到的可解析私有地址是否与存储的IRK相关联,直到其中一个IRK的标识解析成功或所有对应的IRK都已尝试。其中,表4示出了解析列表的主要内容。If there are multiple corresponding IRKs in the peer IRK ID in the resolution list, the above process is repeated for each IRK ID corresponding to determine whether the received resolvable private address is associated with the stored IRK until one of the IRKs is Identity resolution was successful or all corresponding IRKs were tried. Among them, Table 4 shows the main contents of the parsing list.
表4解析列表的主要内容
Table 4 Main contents of parsing list
7、扩展广播帧资源配置信息7. Extend broadcast frame resource configuration information
扩展广播帧资源配置信息对应的结构如表5所示。The corresponding structure of the extended broadcast frame resource configuration information is shown in Table 5.
表5扩展广播帧资源配置信息对应的结构
Table 5 Structure corresponding to extended broadcast frame resource configuration information
进一步地,表6示出了扩展广播帧资源配置信息的字段说明。Furthermore, Table 6 shows the field description of the extended broadcast frame resource configuration information.
表6扩展广播帧资源配置信息的字段说明
Table 6 Field description of extended broadcast frame resource configuration information
下面对表5中各个字段进行说明: The following describes each field in Table 5:
(1)频点索引:用于标识指向的扩展广播帧所使用的频点索引号。(1) Frequency index: used to identify the frequency index number used by the extended broadcast frame pointed to.
(2)偏移量单位:用于标识偏移量的单位,0表示以1个系统基础时隙为单位,1表示以10个系统基础时隙为单位。(2) Offset unit: The unit used to identify the offset. 0 indicates that the unit is 1 system basic time slot, and 1 indicates that the unit is 10 system basic time slots.
(3)偏移量:用于指示从当前基础广播帧的起始点到指向的扩展广播帧的起始点之间的时隙间隔。(3) Offset: used to indicate the time slot interval from the starting point of the current basic broadcast frame to the starting point of the pointed extended broadcast frame.
(4)无线帧类型指示:用于指示系统管理帧使用的无线帧类型。(4) Wireless frame type indication: used to indicate the wireless frame type used by the system management frame.
(5)带宽指示:用于指示系统管理帧使用的带宽。0表示1M;1表示2M;2表示4M;3表示预留。(5) Bandwidth indication: used to indicate the bandwidth used by the system management frame. 0 means 1M; 1 means 2M; 2 means 4M; 3 means reserved.
其中,带宽指示对应的位宽为2比特,2比特二进制的数可以对应上述十进制的数0~3。The bit width corresponding to the bandwidth indication is 2 bits, and the 2-bit binary number can correspond to the above-mentioned decimal numbers 0 to 3.
(6)导频密度指示:用于指示系统管理帧数据部分使用的导频密度。0表示4:1导频,1表示8:1导频,2表示16:1导频,3表示预留。(6) Pilot density indication: used to indicate the pilot density used in the data part of the system management frame. 0 indicates 4:1 pilot, 1 indicates 8:1 pilot, 2 indicates 16:1 pilot, and 3 indicates reserved.
其中,导频密度指示对应的位宽为2比特,2比特二进制的数可以对应上述十进制的数0~3。The bit width corresponding to the pilot density indication is 2 bits, and the 2-bit binary number can correspond to the above-mentioned decimal number 0 to 3.
(7)时钟精度:用于指示指向的扩展广播帧所使用的时钟精度。(7) Clock accuracy: Used to indicate the clock accuracy used by the pointed extended broadcast frame.
8、数据类型:用于指示扩展广播帧携带的广播数据的类型。0表示发现接入资源配置信息;1表示不启动系统管理帧的传输指示信息;2表示启动系统管理帧的接入基本信息;3表示接入请求信息;4表示接入响应信息;5表示启动系统管理帧信息;6表示非链接态广播链路信息;7表示查询请求信息;8表示查询响应信息;9~254预留;255的数据格式由基础服务层设备发现与服务管理配置。8. Data type: used to indicate the type of broadcast data carried by the extended broadcast frame. 0 means discovery of access resource configuration information; 1 means not to start the transmission instruction information of the system management frame; 2 means to start the basic access information of the system management frame; 3 means access request information; 4 means access response information; 5 means start System management frame information; 6 represents non-linked broadcast link information; 7 represents query request information; 8 represents query response information; 9 to 254 are reserved; the data format of 255 is configured by the basic service layer device discovery and service management.
其中,数据类型对应的位宽为1字节即8比特,8比特二进制的数可以对应上述十进制的数0~255,0~255可理解为数据类型的索引,用于指示数据类型所表示的具体信息。Among them, the corresponding bit width of the data type is 1 byte, which is 8 bits. The 8-bit binary number can correspond to the above-mentioned decimal number 0~255. 0~255 can be understood as the index of the data type, which is used to indicate what the data type represents. specific information.
9、数据长度:用于指示扩展广播帧携带的广播数据的长度。9. Data length: used to indicate the length of the broadcast data carried by the extended broadcast frame.
10、数据内容:用于指示扩展广播帧携带的广播数据的内容。10. Data content: used to indicate the content of the broadcast data carried in the extended broadcast frame.
为便于理解,表7中示出了通用广播帧中数据类型的索引对应的含义。To facilitate understanding, Table 7 shows the corresponding meanings of the indexes of the data types in the general broadcast frame.
表7数据类型的索引
Table 7 Indexes of data types
具体的,数据类型中可以包括查询请求信息和查询响应信息。查询请求信息和查询响应信息所占用的字节长度可适应性变长。查询请求信息的索引为0x07;查询响应信息的索引为0x08。Specifically, the data type may include query request information and query response information. The length of bytes occupied by the query request information and query response information can be adjusted to a variable length. The index of query request information is 0x07; the index of query response information is 0x08.
数据类型中的发现接入资源配置信息可以用于指示扩展广播配置的用于发现或者接入的资源信息,包括请求偏移量、请求最大长度、请求响应偏移量和请求窗口个数等信息。资源配置可以支持一个请求信息或者多个不同的请求信息,其中,请求可以是查询请求也可以是接入请求。如表8所示,示出了发现接入资源配置信息对应结构。The discovery access resource configuration information in the data type can be used to indicate the resource information used for discovery or access in the extended broadcast configuration, including information such as request offset, request maximum length, request response offset, and request window number. . Resource configuration can support one request information or multiple different request information, where the request can be a query request or an access request. As shown in Table 8, the corresponding structure of the discovery access resource configuration information is shown.
表8发现接入资源配置信息对应的结构

Table 8 Discovery access resource configuration information corresponding structure

如表9所示,示出了发现接入资源配置信息中各个字段所表示的信息内容。As shown in Table 9, the information content represented by each field in the discovery access resource configuration information is shown.
表9发现接入资源配置信息的信息内容
Table 9 Discovery access resource configuration information content
下面对表9中主要字段进行说明:The main fields in Table 9 are explained below:
1、请求的偏移量:用于指示发现设备或连接发起的设备从接收到扩展广播帧到发出请求帧的时隙偏移量,也是广播设备从发出扩展广播帧到开始接收请求帧的时间。1. Requested offset: used to indicate the time slot offset of the discovery device or the connection initiating device from receiving the extended broadcast frame to sending the request frame. It is also the time from the broadcast device sending the extended broadcast frame to starting to receive the request frame. .
2、请求的最大长度:用于指示单个请求帧的最大数据长度,以字节为单位。2. Maximum length of request: used to indicate the maximum data length of a single request frame, in bytes.
3、请求响应的偏移量:用于指示广播设备从发出扩展广播帧到发出请求响应帧的时隙偏移量,也是发现设备或连接发起的设备端从接收到扩展广播帧到接收到请求响应帧的时间。3. Offset of request response: used to indicate the time slot offset of the broadcast device from sending the extended broadcast frame to sending the request response frame. It is also the time slot offset of the discovery device or the device initiating the connection from receiving the extended broadcast frame to receiving the request. Response frame time.
4、GT协商指示:用于指示是否可协商成为资源调度(grant,G)角色或终端(terminal,T)角色。可接入的扩展广播帧携带该字段有效,可查询的扩展广播帧携带该字段无效。比特0=0表示协商为T节点,比特0=1表示协商为G节点。比特1=0表示节点可以协商,比特1=1表示节点不可以协商。4. GT negotiation indication: used to indicate whether it can negotiate to become a resource scheduling (grant, G) role or a terminal (terminal, T) role. Accessible extended broadcast frames carrying this field are valid, and queryable extended broadcast frames carrying this field are invalid. Bit 0=0 indicates negotiation as a T node, bit 0=1 indicates negotiation as a G node. Bit 1 = 0 indicates that the node can negotiate, and bit 1 = 1 indicates that the node cannot negotiate.
5、请求的窗口个数:用于表示请求帧的窗口个数,即同时支持一个或多个请求。5. Number of requested windows: used to indicate the number of windows for request frames, that is, one or more requests can be supported at the same time.
6、请求类型标志:又称请求类型指示,用于指示该资源对应的是查询请求还是接入请求。0表示查询请求;1表示接入请求;2表示不限制;3表示预留。6. Request type flag: Also called request type indication, it is used to indicate whether the resource corresponds to a query request or an access request. 0 indicates query request; 1 indicates access request; 2 indicates no restriction; 3 indicates reservation.
其中,请求类型标志对应的位宽为2比特,2比特二进制的数可以对应上述十进制的数0~3。Among them, the bit width corresponding to the request type flag is 2 bits, and the 2-bit binary number can correspond to the above-mentioned decimal numbers 0 to 3.
7、请求携带信息指示:用于指示请求帧中可以携带的信息内容。0表示不携带数据信息,1表示携带服务UUID和厂商数据,2表示携带设备名称、服务UUID、服务数据和厂商数据,3表示不限定数据信息内容。7. Request carrying information indication: used to indicate the information content that can be carried in the request frame. 0 means no data information is carried, 1 means the service UUID and manufacturer data are carried, 2 means the device name, service UUID, service data and manufacturer data are carried, and 3 means the data information content is not limited.
其中,请求携带信息指示对应的位宽为2比特,2比特二进制的数可以对应上述十进制的数0~3。The bit width corresponding to the request carrying information indication is 2 bits, and the 2-bit binary number can correspond to the above-mentioned decimal numbers 0 to 3.
8、标识类型:0表示星闪联盟分配标识,1表示私有标识。8. Identity type: 0 indicates the identification assigned by the Star Flash Alliance, 1 indicates the private identification.
9、定向指示:用于指示后面是否存在对端地址。9. Directional indication: used to indicate whether there is a peer address behind.
10、对端媒体接入层标识:用于指示对端设备的媒体接入层标识。 10. Peer media access layer identifier: used to indicate the media access layer identifier of the peer device.
示例性的,星闪查询请求帧在发现接入资源配置信息指示中设置请求类型标志为0,同时添加数据类型索引为7的查询请求信息。发现设备支持按照请求服务UUID指示查询请求信息,广播设备支持按照查询请求信息携带的请求服务UUID信息过滤反馈的查询响应帧。表10示出了查询请求信息的结构。Exemplarily, the Starflash query request frame sets the request type flag to 0 in the discovery access resource configuration information indication, and adds the query request information with the data type index of 7. The discovery device supports query request information according to the request service UUID indication, and the broadcast device supports filtering the feedback query response frame according to the request service UUID information carried by the query request information. Table 10 shows the structure of the query request information.
表10查询请求信息
Table 10 Query request information
如表11所示,示出了查询请求信息各个字段所表示的信息内容。As shown in Table 11, the information content represented by each field of the query request information is shown.
表11查询请求信息的字段说明
Table 11 Field description of query request information
下面对表11中的字段进行说明。The fields in Table 11 are described below.
1、16比特UUID个数:表示查询请求信息包含的16比特UUID的个数。1. Number of 16-bit UUIDs: Indicates the number of 16-bit UUIDs contained in the query request information.
2、128比特UUID个数:标识查询请求信息包含128比特UUID的个数。2. Number of 128-bit UUIDs: The identification query request information contains the number of 128-bit UUIDs.
3、16比特UUID:表示星闪联盟定义的16比特UUID。3. 16-bit UUID: Indicates the 16-bit UUID defined by the Star Flash Alliance.
4、128比特UUID:表示设备自定义的128比特UUID。4. 128-bit UUID: Indicates a device-customized 128-bit UUID.
可见,发现设备将携带有服务UUID相关信息的查询请求信息发送至广播设备,便于广播设备对查询请求信息进行过滤,以获得相应的查询响应帧。It can be seen that the discovery device sends the query request information carrying the service UUID related information to the broadcast device, so that the broadcast device can filter the query request information to obtain the corresponding query response frame.
在上文数据类型为255的数据内容中,包括有设备公开信息数据。设备公开信息数据的结构如图11所示,设备公开信息数据包括有一个或者多个数据子结构,每个数据子结构中包括数据类型指示信息、数据长度指示信息L和数据内容部分。示例性的,数据类型指示信息的位宽为1字节,数据长度指示信息L的位宽为1字节,数据内容部分的位宽为L字节。The above data content of data type 255 includes device public information data. The structure of the device public information data is shown in Figure 11. The device public information data includes one or more data substructures. Each data substructure includes data type indication information, data length indication information L and data content part. For example, the bit width of the data type indication information is 1 byte, the bit width of the data length indication information L is 1 byte, and the bit width of the data content part is L bytes.
具体的,设备信息公开数据可以包括如表11中所述的具体内容。Specifically, the device information disclosure data may include specific content as described in Table 11.
表12设备公开信息数据的具体内容

Table 12 Specific contents of equipment public information data

示例性的,设备公开信息数据中包括有请求服务UUID。请求服务UUID包括请求标准服务标识列表和请求自定义服务数据信息。可以理解为,关于请求服务UUID的相关信息可以携带于如上文中表11所示的查询请求信息中,也可以携带于上文数据类型255中。For example, the device public information data includes the requested service UUID. Requesting service UUID includes requesting standard service identification list and requesting customized service data information. It can be understood that the relevant information about the requested service UUID can be carried in the query request information as shown in Table 11 above, or can also be carried in the above data type 255.
图12示出了本申请提供的一种通信方法1200,该方法可应用于发现设备和广播设备。下面具体介绍方法1200的详细步骤。Figure 12 shows a communication method 1200 provided by this application, which can be applied to discovery devices and broadcast devices. The detailed steps of method 1200 are introduced below.
S1210,发现设备接收广播信息,相应地,广播设备发送广播信息。S1210: The discovery device receives the broadcast information, and accordingly, the broadcast device sends the broadcast information.
示例性的,广播信息包括可查询广播信息和不可查询广播信息,可查询广播信息包括可查询基础广播信息或可查询扩展广播信息。示例性的,本申请方法1200中的广播信息可以是可查询广播信息。For example, the broadcast information includes queryable broadcast information and non-queryable broadcast information, and the queryable broadcast information includes queryable basic broadcast information or queryable extended broadcast information. For example, the broadcast information in method 1200 of this application may be queryable broadcast information.
S1220,发现设备根据广播信息和至少一个查询请求的过滤指示信息发送至少一个查询请求帧,相应地,广播设备接收至少一个查询请求帧。S1220: The discovery device sends at least one query request frame according to the broadcast information and the filtering indication information of the at least one query request. Correspondingly, the broadcast device receives at least one query request frame.
示例性的,当发现设备接收可查询扩展广播信息时,发现设备可以根据可查询扩展广播信息和至少一个查询请求的过滤指示信息发送至少一个查询请求帧;当发现设备接收可查询基础广播时,发现设备可以根据可查询基础广播信息和至少一个查询请求的过滤指示信息发送至少一个查询请求帧。For example, when the discovery device receives the queryable extended broadcast information, the discovery device may send at least one query request frame according to the queryable extended broadcast information and the filtering indication information of at least one query request; when the discovery device receives the queryable basic broadcast, The discovery device may send at least one query request frame according to the queryable basic broadcast information and the filtering indication information of the at least one query request.
其中,发现设备可以先接收可查询基础广播帧,再接收可查询扩展广播帧。发现设备可以在接收到可查询基础广播帧后,便向广播设备发送查询请求帧,无需类似上文图5中示出的发现设备在接收到可查询扩展广播信息后,才会向广播设备发送查询请求帧以请求更多数据内容。可见,当发现设备接收可查询基础广播后,便向广播设备发送查询请求帧,可以进一步节省发现设备与广播设备之间交互信令,节省了传输资源,提高了发现设备与广播设备之间的通信效率。Among them, the discovery device may first receive the queryable basic broadcast frame, and then receive the queryable extended broadcast frame. The discovery device can send a query request frame to the broadcast device after receiving the queryable basic broadcast frame. There is no need for the discovery device to send the query request frame to the broadcast device after receiving the queryable extended broadcast information as shown in Figure 5 above. Query request frame to request more data content. It can be seen that after the discovery device receives the queryable basic broadcast, it sends a query request frame to the broadcast device, which can further save the interactive signaling between the discovery device and the broadcast device, save transmission resources, and improve the communication between the discovery device and the broadcast device. Communication efficiency.
示例性的,查询请求帧与查询请求的过滤指示信息一一对应。具体的一一对应关系可参考上文对图8的描述,此处不再赘述。For example, the query request frame has a one-to-one correspondence with the filtering instruction information of the query request. For the specific one-to-one correspondence, please refer to the above description of Figure 8 and will not be described again here.
在一些实施例中,发现设备在第一偏移量内根据可查询广播信息和至少一个查询请求的过滤指示 信息向广播设备发送至少一个查询请求帧,查询请求的偏移量包括第一偏移量,其中,查询请求的偏移量用于指示发现设备发送查询请求帧的起始时刻。In some embodiments, the discovery device is within the first offset based on the queryable broadcast information and the filtering indication of the at least one query request. The information sends at least one query request frame to the broadcast device, and the offset of the query request includes a first offset, wherein the offset of the query request is used to indicate a starting time for the discovery device to send the query request frame.
示例性的,第一偏移量可以为发现设备对可查询广播进行过滤处理的时间。在第一偏移量内,发现设备确定与查询请求的过滤指示信息对应的查询请求帧。可查询广播中可以包括第一偏移量,发现设备可根据接收到的可查询广播获取第一偏移量;或者,第一偏移量也可以是系统默认的处理时间,例如,一个IFS。示例性的,根据上文对图7的描述,查询请求的偏移量为t2~t7时间段,第一偏移量为t3~t4时间段。For example, the first offset may be the time when the discovery device filters the queryable broadcast. Within the first offset, the discovery device determines the query request frame corresponding to the filtering indication information of the query request. The queryable broadcast may include a first offset, and the discovery device may obtain the first offset according to the received queryable broadcast; or the first offset may also be the system default processing time, for example, an IFS. For example, according to the above description of Figure 7, the offset of the query request is the time period t2~t7, and the first offset is the time period t3~t4.
可以理解的是,查询请求的过滤指示信息用于筛选发现设备所“感兴趣”的数据内容,使得发现设备发送与查询请求的过滤指示信息对应的查询请求帧,以请求“感兴趣”的数据内容。It can be understood that the filtering indication information of the query request is used to filter the data content that the discovery device is "interested in", so that the discovery device sends a query request frame corresponding to the filtering indication information of the query request to request the "interesting" data. content.
在一些实施例中,查询请求的过滤指示信息包括以下至少一项:设备地址、设备名称、服务UUID、请求服务UUID、服务数据、厂商数据。In some embodiments, the filtering indication information of the query request includes at least one of the following: device address, device name, service UUID, requested service UUID, service data, and manufacturer data.
示例性的,请求服务UUID用于请求对端设备上相应的服务数据或信息。当发现设备向广播设备发送根据请求服务UUID过滤后的查询请求帧时,发现设备可以向广播设备请求广播设备(对端设备)上相应的服务数据或信息。For example, the requested service UUID is used to request corresponding service data or information on the peer device. When the discovery device sends a query request frame filtered according to the requested service UUID to the broadcast device, the discovery device can request the broadcast device for corresponding service data or information on the broadcast device (peer device).
示例性的,查询请求的过滤指示信息中包含的一个或者多个信息可以进行与/或/非逻辑组合,发现设备可以根据组合成的过滤指示信息匹配查询请求帧。For example, one or more pieces of information contained in the filtering indication information of the query request can be logically combined with AND/OR/NOT, and the discovery device can match the query request frame according to the combined filtering indication information.
S1230,广播设备根据至少一个查询请求帧和至少一个查询响应的过滤指示信息发送至少一个查询响应帧,相应地,发现设备接收至少一个查询响应帧。S1230: The broadcast device sends at least one query response frame according to at least one query request frame and the filtering indication information of at least one query response. Correspondingly, the discovery device receives at least one query response frame.
示例性的,查询响应帧与查询响应的过滤指示信息一一对应。具体的一一对应关系可参考上文对图9的描述,此处不再赘述。For example, the query response frame has a one-to-one correspondence with the filtering instruction information of the query response. For the specific one-to-one correspondence, please refer to the above description of Figure 9 and will not be described again here.
在一些实施例中,广播设备在第二偏移量内根据至少一个查询请求帧和至少一个查询响应的过滤指示信息向发现设备发送至少一个查询响应帧,查询响应的偏移量包括第二偏移量,其中,查询响应的偏移量用于指示发送查询响应帧的起始时刻。In some embodiments, the broadcast device sends at least one query response frame to the discovery device within the second offset based on at least one query request frame and at least one query response filtering indication information, and the offset of the query response includes the second offset. Offset, where the offset of the query response is used to indicate the starting moment of sending the query response frame.
示例性的,第二偏移量可以为广播设备对查询请求报文进行过滤处理的时间。在第二偏移量内,广播设备确定与查询响应的过滤指示信息对应的查询响应帧。第二偏移量可以是系统默认的处理时间例如,一个IFS。示例性的,根据上文对图7的描述,查询响应的偏移量为t2~t8时间段,第二偏移量为t7~t8时间段。For example, the second offset may be the time when the broadcast device filters the query request message. Within the second offset, the broadcast device determines the query response frame corresponding to the filtering indication information of the query response. The second offset may be the system default processing time, for example, an IFS. For example, according to the above description of Figure 7, the offset of the query response is the time period t2~t8, and the second offset is the time period t7~t8.
可以理解的是,广播设备发送与查询响应的过滤指示信息对应的查询响应帧,以确保发现设备接收到“感兴趣”的数据内容。It can be understood that the broadcast device sends a query response frame corresponding to the filtering indication information of the query response to ensure that the discovery device receives "interesting" data content.
在一些实施例中,查询响应的过滤指示信息包括以下至少一项:设备地址、设备名称、服务通用唯一识别码UUID、请求服务UUID、服务数据、厂商数据。In some embodiments, the filtering indication information of the query response includes at least one of the following: device address, device name, service universal unique identifier UUID, requested service UUID, service data, and manufacturer data.
示例性的,查询响应的过滤指示信息中包含一个或者多个信息可以进行与/或/非逻辑组合,广播设备可以根据组合成的过滤指示信息匹配查询响应帧。For example, one or more pieces of information contained in the filtering indication information of the query response can be logically combined with AND/OR/NOT, and the broadcasting device can match the query response frame according to the combined filtering indication information.
在一些实施例中,查询请求帧包括数据类型字段,数据类型字段包括查询请求信息和查询响应信息中的其中一种。数据类型字段中所包含的信息可如上文对表7的描述,此处不再赘述。In some embodiments, the query request frame includes a data type field, and the data type field includes one of query request information and query response information. The information contained in the data type field can be as described in Table 7 above, and will not be described again here.
在一些实施例中,当数据类型字段包括查询请求信息时,查询请求信息包括请求服务UUID。In some embodiments, when the data type field includes query request information, the query request information includes the request service UUID.
具体地,查询请求信息的请求服务UUID包括如上文中表11所述的16比特UUID个数、128比特UUID个数、16比特UUID和128比特UUID。详细内容可见上文,此处不再赘述。Specifically, the requested service UUID of the query request information includes the number of 16-bit UUIDs, the number of 128-bit UUIDs, the 16-bit UUID and the 128-bit UUID as described in Table 11 above. Details can be found above and will not be repeated here.
在一些实施例中,查询请求帧包括数据类型字段,数据类型字段包括请求服务UUID。In some embodiments, the query request frame includes a data type field including the requesting service UUID.
具体地,在数据类型255中携带请求服务UUID,该请求服务UUID可以为如表12所述请求标准服务标识列表和请求自定义服务数据信息。详细内容可见上文,此处不再赘述。Specifically, the requested service UUID is carried in the data type 255. The requested service UUID may be the requested standard service identification list and the requested customized service data information as described in Table 12. Details can be found above and will not be repeated here.
示例性的,请求服务UUID可以携带在查询请求信息中,也可携带在数据类型中。For example, the requested service UUID can be carried in the query request information or in the data type.
在一些实施例方式中,查询请求的偏移量、查询响应的偏移量、第一偏移量和第二偏移量可以通过可查询扩展广播发送至发现设备。In some embodiments, the offset of the query request, the offset of the query response, the first offset, and the second offset may be sent to the discovery device through a queryable extension broadcast.
具体地,可查询扩展广播信息包括以下至少一项:查询请求的偏移量、查询响应的偏移量、请求的最大长度、请求的窗口个数、第一偏移量、第二偏移量;查询请求的偏移量用于指示发现设备发送查询请求帧的起始时刻,或者用于指示广播设备接收查询请求帧的起始时刻;查询响应的偏移量用于 指示发现设备接收查询响应帧的起始时刻,或者用于指示广播设备发送查询响应帧的起始时刻;请求的最大长度用于指示一个请求帧的最大数据长度,请求帧包括查询请求帧;请求的窗口个数用于指示请求帧的窗口个数。Specifically, the queryable extended broadcast information includes at least one of the following: offset of query request, offset of query response, maximum length of request, number of requested windows, first offset, second offset ;The offset of the query request is used to indicate the starting time when the discovery device sends the query request frame, or the starting time when the broadcast device receives the query request frame; the offset of the query response is used Indicates the starting time when the discovery device receives the query response frame, or is used to instruct the broadcasting device to send the starting time of the query response frame; the maximum length of the request is used to indicate the maximum data length of a request frame, and the request frame includes the query request frame; request The number of windows is used to indicate the number of windows for the request frame.
本申请实施例提供的一种通信方法,通过对通信设备之间交互的广播帧(例如,可查询广播和查询请求帧)进行过滤处理,以便通信设备请求更加详尽或准确的信息,例如:媒体播放内容和状态控制、分布式数据库水位检测、设备电量、算力和存储负载状态、认证和密钥更新等分布场景。该方法使得通信设备在周边设备数据较多,或者通信设备不断移动导致周边设备不断变化时,避免了通信设备频繁建立连接后才进行数据传输所导致的资源浪费,同时提高了通信设备上应用程序之间的通信效率,以便充分发挥通信设备的发现性能。A communication method provided by an embodiment of the present application filters broadcast frames (for example, query broadcast and query request frames) interacted between communication devices so that the communication devices can request more detailed or accurate information, such as: media Distribution scenarios such as playback content and status control, distributed database water level detection, device power, computing power and storage load status, authentication and key update. This method allows the communication device to avoid the waste of resources caused by the communication device frequently establishing connections before transmitting data when the peripheral device has a lot of data, or the communication device is constantly moving and the peripheral device is constantly changing, and at the same time improves the efficiency of applications on the communication device. communication efficiency between them in order to give full play to the discovery performance of the communication device.
图13是本申请实施例提供的通信装置的示意性框图。该装置1300包括收发单元1310,收发单元1310可以用于实现相应的通信功能。收发单元1310还可以称为通信接口或通信单元。Figure 13 is a schematic block diagram of a communication device provided by an embodiment of the present application. The device 1300 includes a transceiver unit 1310, which may be used to implement corresponding communication functions. The transceiver unit 1310 may also be called a communication interface or a communication unit.
在一种可能的设计中,该装置1300还可以包括处理单元1320,处理单元1320可以用于进行数据处理。In a possible design, the device 1300 may also include a processing unit 1320, which may be used for data processing.
在一种可能的设计中,该装置1300还包括存储单元,该存储单元可以用于存储指令和/或数据,处理单元1320可以读取存储单元中的指令和/或数据,以使得装置实现前述各个方法实施例中不同的通信设备的动作,例如,发现设备或广播设备的动作。In a possible design, the device 1300 also includes a storage unit, which can be used to store instructions and/or data, and the processing unit 1320 can read the instructions and/or data in the storage unit, so that the device implements the foregoing. Actions of different communication devices in various method embodiments, for example, actions of a discovery device or a broadcast device.
该装置1300可以用于执行上文各个方法实施例中发现设备或广播设备所执行的动作,这时,该装置1300可以为发现设备或广播设备,或者发现设备或广播设备的组成部件,收发单元1310用于执行上文方法实施例中发现设备或广播设备的收发相关的操作,处理单元1320用于执行上文方法实施例中发现设备或广播设备的处理相关的操作。The device 1300 can be used to perform the actions performed by the discovery device or broadcast device in each of the above method embodiments. In this case, the device 1300 can be a discovery device or broadcast device, or a component of the discovery device or broadcast device, a transceiver unit 1310 is used to perform operations related to the transmission and reception of the discovery device or broadcast device in the above method embodiment, and the processing unit 1320 is used to perform operations related to the processing of the discovery device or broadcast device in the above method embodiment.
还应理解,这里的装置1300以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,装置1300可以具体为上述实施例中的发现设备或广播设备,可以用于执行上述各方法实施例中与发现设备或广播设备对应的各个流程和/或步骤。It should also be understood that the device 1300 here is embodied in the form of a functional unit. The term "unit" as used herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor, or a group of processors) used to execute one or more software or firmware programs. processor, etc.) and memory, merged logic circuitry, and/or other suitable components to support the described functionality. In an optional example, those skilled in the art can understand that the device 1300 can be specifically the discovery device or broadcast device in the above embodiments, and can be used to execute various processes corresponding to the discovery device or broadcast device in the above method embodiments. and/or steps.
上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块或单元;例如收发单元可以由收发机替代(例如,收发单元中的发送单元可以由发送机替代,收发单元中的接收单元可以由接收机替代),其它单元,如处理单元等可以由处理器替代,分别执行各个方法实施例中的收发操作以及相关的处理操作。The above functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions; for example, the transceiver unit can be replaced by a transceiver (for example, the sending unit in the transceiver unit can be replaced by a transmitter, and the receiving unit in the transceiver unit can (replaced by a receiver), and other units, such as a processing unit, can be replaced by a processor to respectively perform the transceiver operations and related processing operations in each method embodiment.
此外,上述收发单元1310还可以是收发电路(例如可以包括接收电路和发送电路),处理单元可以是处理电路。In addition, the above-mentioned transceiver unit 1310 may also be a transceiver circuit (for example, it may include a receiving circuit and a transmitting circuit), and the processing unit may be a processing circuit.
需要指出的是,图13中的装置可以是前述实施例中的设备,也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。其中,收发单元可以是输入输出电路、通信接口;处理单元为该芯片上集成的处理器或者微处理器或者集成电路。在此不做限定。It should be pointed out that the device in Figure 13 may be the device in the aforementioned embodiment, or it may be a chip or a chip system, such as a system on chip (SoC). The transceiver unit may be an input-output circuit or a communication interface; the processing unit may be a processor, microprocessor, or integrated circuit integrated on the chip. No limitation is made here.
如图14,示出了本申请实施例提供一种芯片系统1400。该芯片系统1400(或者也可以称为处理系统)包括逻辑电路1410以及输入/输出接口(input/output interface)1420。As shown in FIG. 14 , a chip system 1400 is provided according to an embodiment of the present application. The chip system 1400 (or can also be called a processing system) includes a logic circuit 1410 and an input/output interface 1420.
其中,逻辑电路1410可以为芯片系统1400中的处理电路。逻辑电路1410可以耦合连接存储单元,调用存储单元中的指令,使得芯片系统1400可以实现本申请各实施例的方法和功能。输入/输出接口1420,可以为芯片系统1400中的输入输出电路,将芯片系统1400处理好的信息输出,或将待处理的数据或信令信息输入芯片系统1400进行处理。The logic circuit 1410 may be a processing circuit in the chip system 1400 . The logic circuit 1410 can be coupled to the memory unit and call instructions in the memory unit, so that the chip system 1400 can implement the methods and functions of various embodiments of the present application. The input/output interface 1420 can be an input/output circuit in the chip system 1400, which outputs information processed by the chip system 1400, or inputs data or signaling information to be processed into the chip system 1400 for processing.
作为一种方案,该芯片系统1400用于实现上文各个方法实施例中由发现设备或广播设备执行的操作。As a solution, the chip system 1400 is used to implement the operations performed by the discovery device or the broadcast device in each of the above method embodiments.
例如,逻辑电路1410用于实现上文方法实施例中由发现设备或广播设备处理相关操作;输入/输出接口1420用于实现上文方法实施例中由发现设备或广播设备的发送和/或接收相关的操作。For example, the logic circuit 1410 is used to implement related operations processed by the discovery device or broadcast device in the above method embodiment; the input/output interface 1420 is used to implement the sending and/or reception by the discovery device or broadcast device in the above method embodiment. related operations.
本申请实施例还提供一种计算机可读存储介质,其上存储有用于实现上述各方法实施例中由发现设备或广播设备执行的方法的计算机指令。 Embodiments of the present application also provide a computer-readable storage medium on which are stored computer instructions for implementing the methods executed by the discovery device or the broadcast device in each of the above method embodiments.
例如,该计算机程序被计算机执行时,使得该计算机可以实现上述方法各实施例中由发现设备或广播设备执行的方法。For example, when the computer program is executed by a computer, the computer can implement the method executed by the discovery device or the broadcast device in each embodiment of the above method.
本申请实施例还提供一种计算机程序产品,包含指令,该指令被计算机执行时以实现上述各方法实施例中由发现设备或广播设备执行的方法。An embodiment of the present application also provides a computer program product, comprising instructions, which, when executed by a computer, implement the methods performed by the discovery device or the broadcasting device in the above-mentioned method embodiments.
上述提供的任一种装置中相关内容的解释及有益效果均可参考上文提供的对应的方法实施例,此处不再赘述。For explanations of relevant content and beneficial effects of any of the devices provided above, please refer to the corresponding method embodiments provided above, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。此外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be 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 they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。例如,所述计算机可以是个人计算机,服务器,或者网络设备等。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD)等。例如,前述的可用介质包括但不限于:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. For example, the computer may be a personal computer, a server, or a network device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (such as floppy disks, hard disks, magnetic tapes), optical media (such as DVDs), or semiconductor media (such as solid state disks (SSD)), etc. For example, the aforementioned available media include but Not limited to: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可以例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system", etc. used in this specification are used to refer to computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to, a process, a processor, an object, an executable file, a thread of execution, a program and/or a computer running on a processor. These components can execute from various computer-readable media having various data structures stored thereon. A component may, for example, be based on a signal having one or more data packets (eg, data from two components interacting with another component, a local system, a distributed system, and/or a network, such as the Internet, which interacts with other systems via signals) Communicate through local and/or remote processes.
在本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or" describes the relationship between associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one item (item) of a, b or c can represent: a, b, c, a-b, a-c, b-c or a-b-c, where a, b, c can be single or multiple.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各种说明性逻辑块(illustrative logical block)和步骤(step),能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or a combination of computer software and electronic hardware. accomplish. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领 域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. A person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, which should be included in the protection scope of this application. Therefore, the protection scope of this application should be based on the protection scope of the claims.

Claims (27)

  1. 一种通信方法,其特征在于,包括:A communication method, characterized by including:
    发现设备接收来自广播设备的广播信息;The discovery device receives broadcast information from the broadcast device;
    所述发现设备根据所述广播信息和至少一个查询请求的过滤指示信息向所述广播设备发送至少一个查询请求帧,所述查询请求帧与所述查询请求的过滤指示信息一一对应;The discovery device sends at least one query request frame to the broadcast device according to the broadcast information and the filtering indication information of at least one query request, and the query request frame corresponds one-to-one with the filtering indication information of the query request;
    所述发现设备接收来自所述广播设备的至少一个查询响应帧,所述查询响应帧与查询响应的过滤指示信息一一对应。The discovery device receives at least one query response frame from the broadcast device, and the query response frame corresponds one-to-one to the filtering indication information of the query response.
  2. 根据权利要求1所述的方法,其特征在于,所述发现设备根据所述广播信息和至少一个查询请求的过滤指示信息向所述广播设备发送至少一个查询请求帧,包括:The method according to claim 1, characterized in that the discovery device sends at least one query request frame to the broadcast device according to the broadcast information and the filtering indication information of at least one query request, including:
    所述发现设备在第一偏移量内根据所述广播信息和至少一个所述查询请求的过滤指示信息发送至少一个所述查询请求帧,查询请求的偏移量包括所述第一偏移量,所述查询请求的偏移量用于指示发送所述查询请求帧的起始时刻。The discovery device sends at least one query request frame within a first offset according to the broadcast information and at least one filtering indication information of the query request, and the offset of the query request includes the first offset. , the offset of the query request is used to indicate the starting time of sending the query request frame.
  3. 根据权利要求1或2所述的方法,其特征在于,所述查询请求的过滤指示信息包括以下至少一项:The method according to claim 1 or 2, characterized in that the filtering indication information of the query request includes at least one of the following:
    设备地址、设备名称、服务通用唯一识别码UUID、请求服务UUID、服务数据、厂商数据。Device address, device name, service universal unique identifier UUID, requested service UUID, service data, and manufacturer data.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,The method according to any one of claims 1 to 3, characterized in that,
    所述查询请求帧包括数据类型字段,所述数据类型字段包括查询请求信息和查询响应信息中的其中一种。The query request frame includes a data type field, and the data type field includes one of query request information and query response information.
  5. 根据权利要求4所述的方法,其特征在于,所述查询请求信息包括所述请求服务UUID。The method according to claim 4, characterized in that the query request information includes the requested service UUID.
  6. 根据权利要求1至3中任一项所述的方法,其特征在于,The method according to any one of claims 1 to 3, characterized in that
    所述查询请求帧包括数据类型字段,所述数据类型字段包括所述请求服务UUID。The query request frame includes a data type field, and the data type field includes the request service UUID.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述广播信息包括扩展广播信息,所述扩展广播信息包括以下至少一项:The method according to any one of claims 1 to 6, characterized in that the broadcast information includes extended broadcast information, and the extended broadcast information includes at least one of the following:
    所述查询请求的偏移量、查询响应的偏移量、所述第一偏移量,The offset of the query request, the offset of the query response, and the first offset,
    所述查询响应的偏移量用于指示接收所述查询响应帧的起始时刻。The offset of the query response is used to indicate the starting time of receiving the query response frame.
  8. 一种通信方法,其特征在于,包括:A communication method, characterized by including:
    广播设备向发现设备发送广播信息;The broadcast device sends broadcast information to the discovery device;
    所述广播设备接收来自所述发现设备的至少一个查询请求帧,所述查询请求帧与查询请求的过滤指示信息一一对应;The broadcast device receives at least one query request frame from the discovery device, and the query request frame corresponds one-to-one with the filtering indication information of the query request;
    所述广播设备根据至少一个所述查询请求帧和至少一个查询响应的过滤指示信息向所述发现设备发送至少一个查询响应帧,所述查询响应帧与所述查询响应的过滤指示信息一一对应。The broadcast device sends at least one query response frame to the discovery device according to at least one of the query request frame and at least one filtering indication information of the query response, and the query response frame corresponds one-to-one to the filtering indication information of the query response. .
  9. 根据权利要求8所述的方法,其特征在于,所述广播设备根据至少一个所述查询请求帧和至少一个查询响应的过滤指示信息向所述发现设备发送至少一个查询响应帧,包括:The method according to claim 8, characterized in that the broadcast device sends at least one query response frame to the discovery device according to at least one query request frame and at least one query response filtering indication information, including:
    所述广播设备在第二偏移量内根据所述至少一个所述查询请求帧和至少一个查询响应的过滤指示信息向所述发现设备发送至少一个查询响应帧,查询响应的偏移量包括所述第二偏移量,所述查询响应的偏移量用于指示发送所述查询响应帧的起始时刻。The broadcasting device sends at least one query response frame to the discovery device within a second offset according to the filtering indication information of the at least one query request frame and the at least one query response, the offset of the query response includes the second offset, and the offset of the query response is used to indicate the starting time of sending the query response frame.
  10. 根据权利要求8或9所述的方法,其特征在于,所述查询响应的过滤指示信息包括以下至少一项:The method according to claim 8 or 9, characterized in that the filtering indication information of the query response includes at least one of the following:
    设备地址、设备名称、服务通用唯一识别码UUID、请求服务UUID、服务数据、厂商数据。Device address, device name, service universal unique identifier UUID, requested service UUID, service data, and manufacturer data.
  11. 根据权利要求8至10中任一项所述的方法,其特征在于,The method according to any one of claims 8 to 10, characterized in that,
    所述查询请求帧包括数据类型字段,所述数据类型字段包括查询请求信息和查询响应信息中的其中一种。The query request frame includes a data type field, and the data type field includes one of query request information and query response information.
  12. 根据权利要求11所述的方法,其特征在于,所述查询请求信息包括所述请求服务UUID。The method according to claim 11, characterized in that the query request information includes the requested service UUID.
  13. 根据权利要求8至10中任一项所述的方法,其特征在于,The method according to any one of claims 8 to 10, characterized in that,
    所述查询请求帧包括数据类型字段,所述数据类型字段包括所述请求服务UUID。 The query request frame includes a data type field, and the data type field includes the request service UUID.
  14. 根据权利要求8至13中任一项所述的方法,其特征在于,所述广播信息包括扩展广播信息,所述扩展广播信息包括以下至少一项:The method according to any one of claims 8 to 13, characterized in that the broadcast information includes extended broadcast information, and the extended broadcast information includes at least one of the following:
    查询请求的偏移量、所述查询响应的偏移量、所述第二偏移量,The offset of the query request, the offset of the query response, and the second offset,
    所述查询请求的偏移量用于指示接收所述查询请求帧的起始时刻。The offset of the query request is used to indicate the starting time of receiving the query request frame.
  15. 一种通信系统,其特征在于,包括:发现设备与广播设备,A communication system, characterized by including: a discovery device and a broadcast device,
    所述发现设备接收来自广播设备的广播信息;The discovery device receives broadcast information from the broadcast device;
    所述发现设备根据所述广播信息和至少一个查询请求的过滤指示信息向所述广播设备发送至少一个查询请求帧,所述查询请求帧与所述查询请求的过滤指示信息一一对应;The discovery device sends at least one query request frame to the broadcast device according to the broadcast information and the filtering indication information of at least one query request, and the query request frame corresponds one-to-one with the filtering indication information of the query request;
    所述广播设备根据所述至少一个查询请求帧和至少一个查询响应的过滤指示信息向所述发现设备发送至少一个查询响应帧,所述查询响应帧与所述查询响应的过滤指示信息一一对应。The broadcasting device sends at least one query response frame to the discovery device according to the at least one query request frame and the filtering indication information of the at least one query response, and the query response frame corresponds to the filtering indication information of the query response in a one-to-one manner.
  16. 根据权利要求15所述的系统,其特征在于,所述发现设备根据所述广播信息和至少一个查询请求的过滤指示信息向所述广播设备发送至少一个查询请求帧,包括:The system according to claim 15, characterized in that the discovery device sends at least one query request frame to the broadcast device according to the broadcast information and the filtering indication information of at least one query request, including:
    所述发现设备在第一偏移量内根据所述广播信息和至少一个所述查询请求的过滤指示信息发送至少一个所述查询请求帧,查询请求的偏移量包括所述第一偏移量,所述查询请求的偏移量用于指示所述发现设备发送所述查询请求帧的起始时刻。The discovery device sends at least one query request frame within a first offset according to the broadcast information and at least one filtering indication information of the query request, and the offset of the query request includes the first offset. , the offset of the query request is used to indicate the starting time when the discovery device sends the query request frame.
  17. 根据权利要求15或16所述的系统,其特征在于,所述广播设备根据所述至少一个查询请求帧和至少一个查询响应的过滤指示信息向所述发现设备发送至少一个查询响应帧,包括:The system according to claim 15 or 16, characterized in that the broadcast device sends at least one query response frame to the discovery device according to the at least one query request frame and the filtering indication information of at least one query response, including:
    所述广播设备在第二偏移量内根据所述至少一个所述查询请求帧和至少一个查询响应的过滤指示信息向所述发现设备发送至少一个查询响应帧,查询响应的偏移量包括所述第二偏移量,所述查询响应的偏移量用于指示所述广播设备发送所述查询响应帧的起始时刻。The broadcast device sends at least one query response frame to the discovery device within a second offset according to the at least one query request frame and the filtering indication information of at least one query response, and the offset of the query response includes the The second offset, the offset of the query response is used to indicate the starting time when the broadcast device sends the query response frame.
  18. 根据权利要求15至17中任一项所述的系统,其特征在于,所述查询请求的过滤指示信息包括以下至少一项:The system according to any one of claims 15 to 17, characterized in that the filtering indication information of the query request includes at least one of the following:
    设备地址、设备名称、服务通用唯一识别码UUID、请求服务UUID、服务数据、厂商数据;Device address, device name, service universal unique identifier UUID, requested service UUID, service data, manufacturer data;
    所述查询响应的过滤指示信息包括以下至少一项:The filtering instruction information of the query response includes at least one of the following:
    所述设备地址、所述设备名称、所述服务UUID、所述请求服务UUID、所述服务数据、所述厂商数据。The device address, the device name, the service UUID, the requested service UUID, the service data, and the manufacturer data.
  19. 根据权利要求15至18中任一项所述的系统,其特征在于,The system according to any one of claims 15 to 18, characterized in that,
    所述查询请求帧包括数据类型字段,所述数据类型字段包括查询请求信息和查询响应信息中的其中一种。The query request frame includes a data type field, and the data type field includes one of query request information and query response information.
  20. 根据权利要求19所述的系统,其特征在于,所述查询请求信息包括所述请求服务UUID。The system according to claim 19, wherein the query request information includes the requested service UUID.
  21. 根据权利要求15至18中任一项所述的系统,其特征在于,The system according to any one of claims 15 to 18, characterized in that
    所述查询请求帧包括数据类型字段,所述数据类型字段包括所述请求服务UUID。The query request frame includes a data type field, and the data type field includes the request service UUID.
  22. 根据权利要求15至21中任一项所述的系统,其特征在于,所述广播信息包括扩展广播信息,所述扩展广播信息包括以下至少一项:The system according to any one of claims 15 to 21, wherein the broadcast information includes extended broadcast information, and the extended broadcast information includes at least one of the following:
    所述查询请求的偏移量、查询响应的偏移量、所述第一偏移量、所述第二偏移量。The offset of the query request, the offset of the query response, the first offset, and the second offset.
  23. 一种通信装置,其特征在于,包括:用于执行如权利要求1至7中任一项所述方法的模块,或者包括用于执行如权利要求8至14中任一项所述方法的模块。A communication device, characterized by comprising: a module for performing the method as described in any one of claims 1 to 7, or a module for performing the method as described in any one of claims 8 to 14 .
  24. 一种通信装置,其特征在于,包括:与存储器耦合的处理器,所述存储器用于存储计算机程序,所述处理器用于运行所述计算机程序,使得所述通信装置执行如权利要求1至7中任一项所述的方法,或者,使得所述通信装置执行如权利要求8至14中任一项所述的方法。A communication device, characterized in that it includes: a processor coupled to a memory, the memory is used to store a computer program, and the processor is used to run the computer program, so that the communication device executes claims 1 to 7 The method according to any one of claims 8 to 14, or causing the communication device to perform the method according to any one of claims 8 to 14.
  25. 根据权利要求24所述的通信装置,其特征在于,所述装置还包括所述存储器和收发器中的一项或多项,所述收发器用于接收信号和/或发送信号。The communication device according to claim 24, characterized in that the device further includes one or more of the memory and a transceiver, the transceiver is used for receiving signals and/or transmitting signals.
  26. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序或指令,当所述计算机程序或指令在计算机上运行时,使得如权利要求1至7中任一项所述的方法被执行,或者使得如权利要求8至14中任一项所述的方法被执行。A computer-readable storage medium, characterized in that the computer-readable storage medium includes a computer program or instructions, and when the computer program or instructions are run on a computer, the computer-readable storage medium causes the computer-readable storage medium to perform as claimed in any one of claims 1 to 7. The method described in any one of claims 8 to 14 is performed.
  27. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序或指令,当所述计算机程序或指令在计算机上运行时,使得如权利要求1至7中任一项所述的方法被执行,或者使得如权 利要求8至14中任一项所述的方法被执行。 A computer program product, characterized in that the computer program product includes a computer program or instructions, and when the computer program or instructions are run on a computer, the method according to any one of claims 1 to 7 is performed. execute, or cause to be enforced The method of any one of claims 8 to 14 is performed.
PCT/CN2023/117905 2022-09-21 2023-09-11 Communication method and communication apparatus WO2024061034A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211155020.7 2022-09-21
CN202211155020.7A CN117793675A (en) 2022-09-21 2022-09-21 Communication method and communication device

Publications (1)

Publication Number Publication Date
WO2024061034A1 true WO2024061034A1 (en) 2024-03-28

Family

ID=90389713

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117905 WO2024061034A1 (en) 2022-09-21 2023-09-11 Communication method and communication apparatus

Country Status (2)

Country Link
CN (1) CN117793675A (en)
WO (1) WO2024061034A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874047A (en) * 2012-12-17 2014-06-18 华为终端有限公司 Service information finding method and equipment
WO2014201641A1 (en) * 2013-06-19 2014-12-24 华为终端有限公司 Information query method and device
CN104754642A (en) * 2013-12-30 2015-07-01 华为终端有限公司 Service query method, device and system and site
CN110598085A (en) * 2018-05-24 2019-12-20 华为技术有限公司 Information query method for terminal and terminal
CN111385746A (en) * 2018-12-28 2020-07-07 华为技术有限公司 Communication method and communication equipment
WO2021155201A1 (en) * 2020-01-31 2021-08-05 Interdigital Patent Holdings, Inc. Systems and methods related to enhanced broadcast services in a multi-acces point system
CN113965889A (en) * 2020-07-03 2022-01-21 阿里巴巴集团控股有限公司 Data processing, filtering information quantity determining and configuring method, equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874047A (en) * 2012-12-17 2014-06-18 华为终端有限公司 Service information finding method and equipment
WO2014201641A1 (en) * 2013-06-19 2014-12-24 华为终端有限公司 Information query method and device
CN104754642A (en) * 2013-12-30 2015-07-01 华为终端有限公司 Service query method, device and system and site
CN110598085A (en) * 2018-05-24 2019-12-20 华为技术有限公司 Information query method for terminal and terminal
CN111385746A (en) * 2018-12-28 2020-07-07 华为技术有限公司 Communication method and communication equipment
WO2021155201A1 (en) * 2020-01-31 2021-08-05 Interdigital Patent Holdings, Inc. Systems and methods related to enhanced broadcast services in a multi-acces point system
CN113965889A (en) * 2020-07-03 2022-01-21 阿里巴巴集团控股有限公司 Data processing, filtering information quantity determining and configuring method, equipment and medium

Also Published As

Publication number Publication date
CN117793675A (en) 2024-03-29

Similar Documents

Publication Publication Date Title
US10225098B2 (en) Methods, devices and systems for supporting wireless communication
US7882238B2 (en) Using bluetooth to establish ad-hoc connections between non-bluetooth wireless communication modules
EP3005822B1 (en) Mac layer transport for wi-fi direct services application service platform without internet protocol
US11172530B2 (en) Communication establishment method and terminal
US20200274934A1 (en) Device management services based on restful messaging
KR101995546B1 (en) Method and apparatus for discovering wireless devices
JP2006190280A (en) Bus abstraction
WO2022143071A1 (en) Connection establishment method and electronic device
US10863559B2 (en) Method and apparatus for communicating in a wireless communication network
US20230379705A1 (en) Electronic device and method for setting up a data path
Joh et al. The internet of everything based on energy efficient P2P transmission technology with Bluetooth low energy
CN114697879A (en) Bluetooth pairing method, electronic device, chip and storage medium
US20240224300A1 (en) Channel configuration method, and apparatus
CN108684021B (en) Bluetooth low-power-consumption communication method and device
WO2024067757A1 (en) Cross-terminal-communication device management method, system and apparatus based on bus, and medium
WO2022151420A1 (en) Method, apparatus, and system for transmitting data packet
WO2024061034A1 (en) Communication method and communication apparatus
WO2023273533A1 (en) Network management method and apparatus
US20150223157A1 (en) Seamless connectivity across devices with heterogeneous transports
JP2024537662A (en) Channel configuration method and device
WO2023246601A1 (en) Device discovery method, apparatus and system
WO2023071567A1 (en) Transmission channel reconfiguration method and apparatus, and electronic device
WO2024067360A1 (en) Communication method and communication apparatus
WO2024149146A1 (en) Networking device communication method and electronic device
WO2023011231A1 (en) Method and apparatus for configuring channel used for service transmission

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: 23867323

Country of ref document: EP

Kind code of ref document: A1