Near field communication method and apparatus
Patent Information
- Application Number
- CN202510339230.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2026-09-22
AI Technical Summary
对于小型数据(如100字节),传输时间虽短,但建立通信连接的过程耗时较长,导致用户在多设备间传输小型数据时感受到明显延迟,进而影响用户体验
[0070]在一种可能的实现方式中,计算机可读存储介质为非瞬时计算机可读介质。
Smart Images

Figure CN122802881A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to near-field communication methods and apparatus. Background Technology
[0002] Multi-device collaboration has become one of the core highlights in the consumer electronics field, with major manufacturers supporting collaborative operation and task sharing across various devices such as smartphones, tablets, personal computers (PCs), and automobiles. With multi-device collaboration technology, users can easily achieve cross-device clipboard sharing, meaning content copied on one device can be pasted onto any other device. They can also enjoy seamless cross-device interoperability; for example, when editing a document on a tablet, they can directly access the phone's camera or gallery as image material.
[0003] Currently, multi-device collaboration mainly relies on two communication methods: one is low-power communication (such as Bluetooth), used for device discovery and status synchronization. Due to its low power consumption, it is suitable for long-term background operation; the other is high-bandwidth communication (such as Wireless Fidelity (WiFi)), which is suitable for large data transmission. Although it has high bandwidth and fast speed, it takes a certain amount of time to establish a connection.
[0004] Multi-device collaboration requires establishing high-bandwidth communication connections to transmit data. For small data (such as 100 bytes), although the transmission time is short, the process of establishing a communication connection takes a long time, resulting in users experiencing significant delays when transmitting small data between multiple devices, thus affecting the user experience. Summary of the Invention
[0005] This application provides near-field communication methods and apparatus, relating to the field of communication technology, for reducing data transmission latency in multi-device collaboration. To achieve the above objective, this application adopts the following technical solution:
[0006] In a first aspect, embodiments of this application provide a near-field communication method, the method comprising: sending a first message through a first communication channel; receiving a request frame through a main channel of a second communication channel based on transmit / receive parameters; and sending a response frame through the second communication channel based on the transmit / receive parameters. The first message is used to indicate the sharing of first data, the first message includes transmit / receive parameters of the second communication channel, the first and second communication channels use different near-field communication technologies, the request frame is used to request the first data, the request frame supports connectionless communication, and the response frame carries the first data, the response frame also supports connectionless communication.
[0007] In the solution provided in this application embodiment, the sending device sends (broadcasts) a first message to surrounding receiving devices through a first communication channel, indicating the sharing of first data. This triggers the surrounding receiving devices to send a request frame through the main channel of the second communication channel to obtain the first data, based on the communication information of the second communication channel carried in the first message. Subsequently, the sending device responds to the request frame by sending a response frame containing the first data to the receiving device through the main channel of the second communication channel. Since both the request frame and the response frame support connectionless communication, data can be transmitted directly based on the request frame and the response frame without establishing a connection, avoiding the time spent on connection establishment. This reduces the total data transmission time for multi-device collaboration and effectively lowers the data transmission latency for multi-device collaboration.
[0008] In one possible implementation, the method further includes: receiving repeated request frames through the main channel of the second communication channel based on the aforementioned transmit / receive parameters; and responding to the repeated request frames by sending response frames through the second communication channel based on the aforementioned transmit / receive parameters.
[0009] It's understandable that repeatedly sending a request frame significantly improves the success rate compared to sending it only once. This approach increases the probability of the request frame being correctly received through multiple attempts, thus ensuring communication reliability to a certain extent. During data transmission, various potential interferences and errors exist, making a single transmission often risky. Therefore, adopting a strategy of repeatedly sending request frames effectively addresses these uncertainties, thereby improving overall communication efficiency and stability.
[0010] In one possible implementation, the method further includes sending a second message through a first communication channel. The second message indicates the sharing of second data. In this implementation, the request frame is also used to request the second data, and the response frame further carries the second data.
[0011] Understandably, sending devices may share multiple data sets over a period of time. In this scenario, the sending device will send different messages to share different data sets. If the receiving device needs to request multiple data sets, it doesn't need to send multiple request frames one by one; instead, it can use a single request frame to request multiple data sets, thereby reducing communication overhead and improving communication efficiency. For example, the sending device may be sharing both first and second data sets simultaneously, and the receiving device is interested in both. In this scenario, the receiving device can request both data sets using a single request frame. After receiving this request frame, the sending device can construct a response frame containing both the first and second data sets and send it to the receiving device through a second communication channel. This design not only simplifies the communication process but also significantly enhances the efficiency of data sharing.
[0012] In one possible implementation, the second message includes the aforementioned send and receive parameters.
[0013] Understandably, some receiving devices may ignore or fail to receive the first message, thus failing to obtain the transmit / receive parameters of the second communication channel contained within it. In this case, if the receiving device is interested in the second data, it will be unable to directly request the second data through the second communication channel due to the lack of these transmit / receive parameters. Therefore, transmit / receive parameters of the second communication channel can be added to the second message to ensure that even if the receiving device misses the first message, it can still successfully obtain the necessary information to request the second data. In this way, even if the receiving device fails to receive the first message, it can still send a request frame to the sending device through the second communication channel based on the transmit / receive parameters contained in the second message to obtain the required second data. This design effectively improves the flexibility and reliability of the near-field communication method, ensuring that the receiving device can efficiently obtain the required data under various circumstances.
[0014] In one possible implementation, the method further includes: simultaneously or after sending the first message, initiating an auxiliary channel scan and putting the first communication chip into sleep mode, the first communication chip being used to implement communication of the main channel of the second communication channel; receiving a third message through the auxiliary channel of the second communication channel based on the transmit / receive parameters, the third message being used to wake up the first communication chip; responding to the third message, waking up the first communication chip and switching the auxiliary channel scan to the main channel scan of the second communication channel.
[0015] Understandably, this solution uses an ultra-low power wake-up transceiver mechanism. Based on the wake-up feature, when the sending device has data to transmit and informs surrounding devices through the first communication channel, it does not need to keep the main channel scanning of the second communication channel running for a long time. Instead, it starts the auxiliary channel scanning. The power consumption of the auxiliary channel scanning is much lower than that of the main channel scanning of the second communication channel, and it can maintain long-term scanning without increasing power consumption.
[0016] In one possible implementation, the method further includes: initiating a main channel scan of the second communication channel at the same time as or after sending the first message.
[0017] It is entirely understandable that, compared to continuously maintaining the main channel scan of the second communication channel, initiating the main channel scan of the second communication channel simultaneously with or after sending the first message significantly reduces the power consumption of the second communication channel, thereby extending the device's standby time. Furthermore, this strategy still ensures the timeliness and effectiveness of data transmission. When the sending device needs to transmit data, it first sends the first message through the first communication channel, and then initiates the main channel scan of the second communication channel, ensuring that the receiving device can respond quickly and receive the data. This flexible control mechanism not only effectively optimizes power management but also fully guarantees the reliability and efficiency of communication.
[0018] In one possible implementation, the aforementioned transmit / receive parameters include at least one of the following: channel number, frequency band, mapping value, Media Access Control Address (MAC) address, and transmit / receive time. The mapping value is used to map at least one of the following: channel number, frequency band, MAC address, and transmit / receive time.
[0019] Understandably, by configuring and setting the send and receive parameters, the receiving device has the ability to send request frames to the sending device in order to request the required data.
[0020] In one possible implementation, the first communication channel is a Bluetooth communication channel, a Purple Bee communication channel, or a Spark Link Low Energy (SLE) communication channel.
[0021] Understandably, Bluetooth, ZigBee, and SLE have relatively low communication power, making them suitable as the primary communication channel in this solution to achieve low-power information exchange. Furthermore, these communication technologies offer broad device compatibility, ensuring stable and efficient communication between the sending and receiving devices in diverse scenarios.
[0022] In one possible implementation, the second communication channel is either WiFi or Spark Link Basic (SLB) communication channel.
[0023] Understandably, WiFi and SLB offer relatively high communication bandwidth, making them suitable as a second communication channel in this solution to achieve high-speed data transmission. Furthermore, these communication technologies boast broad device compatibility, ensuring stable and efficient communication between the sending and receiving devices in diverse scenarios.
[0024] In one possible implementation, at least one of the aforementioned request frame or response frame is a WiFi action frame.
[0025] It is understandable that, since the WiFiAction frame supports connectionless communication, the WiFiAction frame can be used as either the request frame or the response frame mentioned above.
[0026] Secondly, embodiments of this application provide another near-field communication method, the method comprising: receiving a first message through a first communication channel, the first message being used to indicate sharing first data, the first message including transmit and receive parameters of a second communication channel, the first communication channel and the second communication channel using different near-field communication technologies; sending a request frame through the main channel of the second communication channel based on the transmit and receive parameters, the request frame being used to request the first data, the request frame supporting connectionless communication; and receiving a response frame through the second communication channel based on the transmit and receive parameters, the response frame carrying the first data, the response frame supporting connectionless communication.
[0027] In one possible implementation, the method further includes: repeatedly sending the request frame through the second communication channel based on the aforementioned send and receive parameters.
[0028] In one possible implementation, the method further includes: receiving a second message through a first communication channel, the second message indicating the sharing of second data. The request frame is further used to request the second data, and the response frame further carries the second data.
[0029] In one possible implementation, the second message includes the aforementioned send and receive parameters.
[0030] In one possible implementation, the method further includes: sending a third message through an auxiliary channel of the second communication channel based on the aforementioned transmit / receive parameters, wherein the third message is used to wake up the first communication chip, and the first communication chip is used to implement communication through the main channel.
[0031] In one possible implementation, the aforementioned transmit / receive parameters include at least one of channel number, frequency band, mapping value, MAC address, and transmit / receive time, wherein the mapping value is used to map at least one of channel number, frequency band, MAC address, and transmit / receive time.
[0032] In one possible implementation, the first communication channel is a Bluetooth communication channel, a Zifeng communication channel, or an SLE communication channel.
[0033] In one possible implementation, the second communication channel is either a WiFi or SLB communication channel.
[0034] In one possible implementation, at least one of the above request frame or the above response frame is a WiFiAction frame.
[0035] Thirdly, embodiments of this application provide a near-field communication device, which may be a device, a module applied to a device (such as a processor, chip, or chip system), or a logic node, logic module, or software capable of implementing all or part of the device functions. The device includes a transmitting unit and a receiving unit.
[0036] The aforementioned sending unit is used to send a first message through a first communication channel. The first message is used to indicate the sharing of first data. The first message includes the transmission and reception parameters of a second communication channel. The first communication channel and the second communication channel use different near-field communication technologies.
[0037] The receiving unit is configured to receive a request frame through the main channel of the second communication channel based on the aforementioned transmit / receive parameters. The request frame is used to request the aforementioned first data, and the request frame supports connectionless communication.
[0038] The aforementioned sending unit is further configured to respond to the aforementioned request frame by sending a response frame through the aforementioned main channel based on the aforementioned transmit and receive parameters. The aforementioned response frame carries the aforementioned first data and supports connectionless communication.
[0039] In one possible implementation, the sending unit is further configured to: receive repeated request frames through the main channel based on the aforementioned transmit / receive parameters.
[0040] In one possible implementation, the receiving unit is further configured to: respond to repeated request frames and send response frames through the main channel based on the transmit / receive parameters.
[0041] In one possible implementation, the sending unit is further configured to: send a second message through a first communication channel. The second message indicates the sharing of second data, the request frame is further configured to request the second data, and the response frame further carries the second data.
[0042] In one possible implementation, the second message includes the aforementioned send and receive parameters.
[0043] In one possible implementation, the receiving unit is further configured to: initiate an auxiliary channel scan of the second communication channel and put the first communication chip into sleep mode when or after sending the first message, the first communication chip being used to implement communication of the main channel; receive a third message through the auxiliary channel of the second communication channel based on the transmit / receive parameters, the third message being used to wake up the first communication chip; and, in response to the third message, wake up the first communication chip and switch the auxiliary channel scan to the main channel scan of the second communication channel, the power consumption of the auxiliary channel scan being lower than that of the main channel scan.
[0044] In one possible implementation, the receiving unit is further configured to: initiate a main channel scan of the second communication channel when or after sending the first message.
[0045] In one possible implementation, the aforementioned transmit / receive parameters include at least one of channel number, frequency band, mapping value, MAC address, and transmit / receive time, wherein the mapping value is used to map at least one of channel number, frequency band, MAC address, and transmit / receive time.
[0046] In one possible implementation, the first communication channel is a Bluetooth communication channel, a Zifeng communication channel, or an SLE communication channel.
[0047] In one possible implementation, the second communication channel is either Wi-Fi or SLB communication channel.
[0048] In one possible implementation, at least one of the above request frame or the above response frame is a WiFiAction frame.
[0049] Fourthly, embodiments of this application provide another near-field communication device, which may be a device, a module applied to a device (such as a processor, chip, or chip system), or a logic node, logic module, or software capable of implementing all or part of the device functions. The device includes a receiving unit and a transmitting unit.
[0050] The receiving unit is configured to receive a first message through a first communication channel. The first message is used to indicate the sharing of first data. The first message includes transmit and receive parameters of a second communication channel. The first communication channel and the second communication channel use different near-field communication technologies.
[0051] The aforementioned sending unit is configured to send a request frame through the main channel of the aforementioned second communication channel based on the aforementioned transmit and receive parameters. The request frame is used to request the aforementioned first data, and the request frame supports connectionless communication.
[0052] The receiving unit is further configured to receive a response frame through the second communication channel based on the transmission and reception parameters. The response frame carries the first data and supports connectionless communication.
[0053] In one possible implementation, the sending unit is further configured to: repeatedly send the request frame through the second communication channel based on the sending and receiving parameters.
[0054] In one possible implementation, the receiving unit is further configured to: receive a second message through a first communication channel, the second message indicating the sharing of second data; the request frame is further configured to request the second data, and the response frame further carries the second data.
[0055] In one possible implementation, the second message includes the aforementioned send and receive parameters.
[0056] In one possible implementation, the sending unit is further configured to: send a third message through the auxiliary channel of the second communication channel based on the aforementioned transmit / receive parameters, wherein the third message is used to wake up the first communication chip, and the first communication chip is used to implement communication through the main channel.
[0057] In one possible implementation, the aforementioned transmit / receive parameters include at least one of channel number, frequency band, mapping value, MAC address, and transmit / receive time, wherein the mapping value is used to map at least one of channel number, frequency band, MAC address, and transmit / receive time.
[0058] In one possible implementation, the first communication channel is a Bluetooth communication channel, a Zifeng communication channel, or an SLE communication channel.
[0059] In one possible implementation, the second communication channel is either a WiFi or SLB communication channel.
[0060] In one possible implementation, at least one of the above request frame or the above response frame is a WiFiAction frame.
[0061] Fifthly, embodiments of this application also provide a near-field communication device, the device comprising: at least one processor, which, when the at least one processor executes program code or instructions, implements the method in the first aspect or any possible implementation thereof.
[0062] Optionally, the device may further include at least one memory for storing the program code or instructions.
[0063] In one possible implementation, the near-field communication device is a chip or chip system.
[0064] Sixthly, embodiments of this application also provide a communication system, which includes a first near-field communication device and a second near-field communication device. The first near-field communication device is used to execute the method in the first aspect or any possible implementation thereof, and the second near-field communication device is used to execute the method in the second aspect or any possible implementation thereof.
[0065] In one possible implementation, the first near-field communication device can be the near-field communication device in the third aspect.
[0066] In one possible implementation, the second near-field communication device can be the near-field communication device in the fourth aspect.
[0067] In a seventh aspect, embodiments of this application also provide a chip, including: an input interface, an output interface, and at least one processor. Optionally, the chip further includes a memory. The at least one processor is used to execute code in the memory, and when the at least one processor executes the code, the chip implements the method in the first aspect or any possible implementation thereof described above.
[0068] Alternatively, the chip described above can also be an integrated circuit.
[0069] Eighthly, embodiments of this application also provide a computer-readable storage medium for storing a computer program, the computer program including methods for implementing the first aspect above or any possible implementation thereof.
[0070] In one possible implementation, the computer-readable storage medium is a non-transitory computer-readable medium.
[0071] Ninthly, embodiments of this application also provide a computer program product containing instructions that, when run on a computer, cause the computer to implement the method described in the first aspect or any possible implementation thereof.
[0072] The near-field communication device, computer-readable storage medium, computer program product, and chip provided in this embodiment are all used to execute the near-field communication method provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the near-field communication method provided above, and will not be repeated here. Attached Figure Description
[0073] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0074] Figure 1 This application provides a schematic diagram of the structure of a communication system according to an embodiment of the present application.
[0075] Figure 2 This is a schematic diagram of another communication system provided in an embodiment of this application;
[0076] Figure 3 A flowchart illustrating a near-field communication method provided in an embodiment of this application;
[0077] Figure 4 A flowchart illustrating another near-field communication method provided in an embodiment of this application;
[0078] Figure 5A flowchart illustrating yet another near-field communication method provided in an embodiment of this application;
[0079] Figure 6 A schematic diagram of one embodiment provided in this application;
[0080] Figure 7 A schematic diagram of another embodiment provided in this application;
[0081] Figure 8 This is a schematic diagram of the structure of a near-field communication device provided in an embodiment of this application;
[0082] Figure 9 A schematic diagram of another near-field communication device provided in the embodiments of this application;
[0083] Figure 10 This is a schematic diagram of the structure of a chip provided in an embodiment of this application;
[0084] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0085] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the embodiments of this application.
[0086] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0087] The terms "first" and "second," etc., in the specification and drawings of the embodiments of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0088] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0089] It should be noted that in the description of the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0090] The following explains the terminology used in the solutions provided in the embodiments of this application:
[0091] Full-scenario collaborative services refer to the use of different types of terminal devices in different business scenarios to achieve higher efficiency than using a single device, thereby improving the efficiency of completing a single task. For example, when using a mobile phone and a tablet together, the mobile phone can act as an external document scanner or a provider of auxiliary documents while the user is editing a document on the tablet.
[0092] WiFi Action Frames: WiFi Action frames are a special type of management frame in the Institute of Electrical and Electronics Engineers (IEEE) 802.11 protocol. In WiFi networks, data is transmitted through a series of different types of frames, including management frames, control frames, and data frames. Action frames, as a type of management frame, are used to execute specific control operation instructions or coordinate information in the WiFi network and are one of the core mechanisms for implementing advanced WiFi functions such as spectrum management, Quality of Service (QoS), and fast roaming.
[0093] WiFi Direct allows devices that support this technology (such as smartphones and tablets) to establish point-to-point communication links directly without relying on traditional wireless access points (routers). This mode simplifies the intermediate steps in data transmission between devices.
[0094] Wake-Up Radio (WUR) scanning is a low-power wireless communication technology designed to periodically detect network signals while a device is in sleep mode, thereby reducing power consumption and extending battery life. Its core principle is as follows: the device uses a dedicated WUR module to scan its environment, while the main communication module (such as WiFi or Bluetooth) remains dormant when inactive. The WUR module is only responsible for monitoring wake-up signals on specific frequency bands (such as WUR discovery frames or WUR wake-up messages), and its power consumption is far lower than that of the main module.
[0095] Connectionless communication is a data transmission method in computer networks. Its characteristic is that the communicating parties do not need to establish a connection before transmitting data. Each data unit (such as a data packet or message) is transmitted independently and is independent of the state of preceding and subsequent data. The core of this communication method is "send-as-you-go," where the sender directly sends data to the network without needing to confirm whether the receiver is ready to receive it. Connectionless communication features no connection establishment and low overhead.
[0096] No connection required: The sender and receiver do not need to handshake or negotiate before transmitting data; they can directly send data packets.
[0097] Low overhead: Because there is no connection establishment and maintenance process, less resources are consumed and transmission latency is lower.
[0098] Currently, in multi-device collaborative scenarios, one related technology for sharing data between sending devices and receiving devices includes the following steps:
[0099] Step 1: The collaborative service information on the sending device changes, and this information change event needs to be synchronized to the surrounding devices;
[0100] Step 2: The sending device broadcasts a message via BLE to notify surrounding devices that the service information on this device has changed, that is, to notify surrounding devices that the sending device can share certain data (images, text, videos, etc.).
[0101] Step 3: The user operates any nearby receiving device (other than the sending device). This device has detected changes in the service data on the sending device through BLE scanning. Therefore, this device wants to obtain the data shared by the sending device.
[0102] Step 4: The receiving device sends a BLE broadcast frame to the sending device, requesting that the sending device and the receiving device establish a WiFi Direct connection.
[0103] Step 5: Establish an actual WiFi Direct connection data channel between the sending and receiving devices.
[0104] Step Six: The receiving device requests the shared data from the sending device. The sending device then transmits the shared data to the receiving device through the newly established data channel, and the receiving device provides it to the user.
[0105] Another related technology changes the user operation in step three above to not waiting for user operation, but directly triggering the WiFi connection establishment process after receiving the BLE broadcast of the change in service information, thereby effectively reducing the connection establishment latency.
[0106] As can be seen, both of the aforementioned technologies require establishing a communication connection (such as a Wi-Fi connection) to transmit data. For small data (such as 100 bytes), although the transmission time is short, the process of establishing a communication connection takes a long time, resulting in users experiencing significant delays when transmitting small data between multiple devices, thus affecting the user experience.
[0107] To this end, embodiments of this application provide a near-field communication method and apparatus for reducing data transmission latency in multi-device collaboration.
[0108] The technical solutions provided in this application can be applied to communication systems. Figure 1 A schematic diagram of one possible, non-limiting communication system described above is shown. Communication system 100 may include multiple devices.
[0109] For example, such as Figure 1 The communication system 100 shown may include seven devices, namely a first device 101, a second device 102, a third device 103, a fourth device 104, a fifth device 105, a sixth device 106, and a seventh device 107.
[0110] The communication system 100 allows any one of the multiple devices to act as a transmitting device, while the remaining devices can act as receiving devices.
[0111] For example, such as Figure 1 As shown, the first device 101 can be used as a transmitting device, and the other devices (the second device 102, the third device 103, the fourth device 104, the fifth device 105, the sixth device 106 and the seventh device 107) can be receiving devices.
[0112] The aforementioned equipment may be a device, equipment, module, chip, or chip system with transceiver functions. This equipment may also be referred to as a terminal, user equipment (UE), terminal equipment, access terminal, user unit (subscriber unit), user station, mobile station (MS), mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user equipment.
[0113] The devices in the embodiments of this application can be mobile phones, personal computers (PCs), cellular phones, smartphones, tablets, mice, remote controls, styluses, set-top boxes, routers, cameras, screens, smart screens, wireless data cards, personal digital assistant computers (PDAs), wireless modems, handsets, laptop computers, smartwatches, smart bracelets, wireless headphones, electronic whiteboards, machine-type communication (MTC) terminals, computers with wireless transceiver capabilities, virtual reality (VR) terminals, augmented reality (AR) terminals, smart home devices (e.g., refrigerators, televisions, air conditioners, washing machines, rice cookers, table lamps, electricity meters, etc.), smart robots, robotic arms, workshop equipment, wireless terminals in autonomous driving, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical care, and smart grids. Wireless terminals in various applications include those related to transportation safety, smart cities, and smart homes, as well as in-vehicle terminals, in-vehicle screens, in-vehicle audio systems, car keys, roadside units (RSUs) with terminal functions, and flying equipment (e.g., intelligent robots, hot air balloons, drones, and airplanes). The devices in this application embodiment can also be embedded as one or more components or units within a vehicle, within an in-vehicle module, module, component, chip, or unit. The devices can also be other devices with terminal functions; for example, they can serve as terminal devices in device-to-device (D2D) communication.
[0114] It needs to be explained that, Figure 1 The communication system 100 shown is merely one implementation of the embodiments of this application. In actual applications, the communication system 100 may include more or fewer components, which is not limited here.
[0115] For example, in some scenarios, the communication system 100 may also include fewer devices, such as 2, 3, 4, 5, 6 or 7 devices.
[0116] For example, in some scenarios, the communication system 100 may also include more devices, such as 9, 10, 11, 12, 13 or more devices.
[0117] Figure 2 A schematic diagram of a possible, non-limiting communication system described above is shown, such as... Figure 2 As shown, the communication system 200 includes a first device 300 and a second device 400.
[0118] like Figure 2 As shown, both the first and second devices include an upper-layer application, a WiFi connection-free message protocol layer, a Bluetooth host module, a Bluetooth controller module, a WiFi software stack module, a Bluetooth and WiFi transceiver module, and a Bluetooth and WiFi transceiver antenna.
[0119] The upper-layer application, the WiFi connectionless message protocol layer, the Bluetooth host module, the Bluetooth controller module, and the WiFi software stack module are software modules, while the Bluetooth and WiFi transceiver modules and the Bluetooth and WiFi transceiver antennas are hardware modules. The Bluetooth host module and the Bluetooth controller module share a Host Controller Interface (HCI), which is used for command, data, and event transmission between them.
[0120] This application embodiment adds a WiFi connection-free message protocol software module between the device's Bluetooth host module and the WiFi software stack, mainly to realize the communication between the upper-layer application of the dual-end device and the Bluetooth / WiFi protocol stack.
[0121] The Bluetooth controller module controls the Bluetooth transceiver module to send BLE broadcast frames and scan for BLE signals, while the WiFi software stack controls the WiFi transceiver module to send and receive wireless frames via the WiFi driver.
[0122] Figure 3 This application illustrates a near-field communication method provided by an embodiment of the present application. This method can be executed by a device in the aforementioned communication system, such as... Figure 3 As shown, the method includes:
[0123] S301, The sending device sends a first message to the receiving device through the first communication channel.
[0124] Accordingly, the receiving device receives the first message sent by the sending device through the first communication channel.
[0125] The first message is used to indicate the sharing of first data, and the first message includes the transmit and receive parameters of the second communication channel.
[0126] For example, the sending device sends a first message to the receiving device via a Bluetooth communication channel.
[0127] Accordingly, the receiving device receives the first message sent by the sending device through the Bluetooth communication channel.
[0128] The above example is only used to illustrate the use of Bluetooth as the first communication channel and does not constitute any limitation. The first communication channel can be a Bluetooth communication channel, a Beehive communication channel, an SLE communication channel, or other low-power communication channels.
[0129] Understandably, Bluetooth, ZigBee, and SLE have relatively low communication power, making them suitable as the primary communication channel in this solution to achieve low-power information exchange. Furthermore, these communication technologies offer broad device compatibility, ensuring stable and efficient communication between the sending and receiving devices in diverse scenarios.
[0130] The Bluetooth mentioned above can be Bluetooth Low Energy (BLE), and the first message can be a BLE broadcast message or a BLE broadcast frame.
[0131] For example, when triggered by an application or a user, the first device sends a BLE broadcast frame carrying the aforementioned transmit and receive parameters and used to indicate shared data (Image A) to the second device via a Bluetooth Low Energy (BLE) communication channel.
[0132] Accordingly, the second device receives the BLE broadcast frames sent by the first device through the BLE communication channel.
[0133] The aforementioned application triggering refers to the automatic initiation of an operation or process driven by internal application logic or events, without direct user intervention. Specifically, when certain preset conditions are met, the application will automatically detect and execute the corresponding action.
[0134] For example, in a distributed clipboard scenario, when a user copies text on the sending device, the application automatically detects this action by monitoring clipboard changes and triggers the aforementioned process to share the text. This triggering relies entirely on the application's code logic and is typically handled automatically in the background, requiring no additional user intervention.
[0135] The aforementioned user-triggered behavior refers to a user actively initiating a function or process by directly interacting with controls on the device interface (such as buttons, menus, etc.). This method relies on the user's explicit intent and actions.
[0136] For example, a user opens an application on the sending device, clicks the "Share" button, and then selects to send a picture to another device. In this case, the data sharing process is triggered by the user's active action of clicking the button. The triggering process is driven by the user's interactive behavior, usually completed through a graphical user interface.
[0137] In one possible implementation, the aforementioned transmit / receive parameters include at least one of the following: Channel Number, Frequency Band, Mapping Value, MAC Address, and Transmit / Receive Time.
[0138] The above mapping value is used to map at least one of the following: channel number, frequency band, MAC address, and transmit / receive time.
[0139] For example, taking the first message as a Bluetooth broadcast message, the Bluetooth broadcast message includes a Length field, an ADType field, and an AD Data field. The aforementioned send and receive parameters can be embedded in the AD Data field of the Bluetooth broadcast message.
[0140] For example, the MAC address of the above-mentioned transmit / receive parameters can be identified by 6 bytes in the AD Data field, and other parameters of the above-mentioned transmit / receive parameters (such as the channel number) can be represented by 1 byte in the AD Data field.
[0141] Understandably, by configuring and setting the send and receive parameters, the receiving device has the ability to send request frames to the sending device in order to request the required data.
[0142] In one possible implementation, the first message may also include at least one of an event identifier, an application identifier, or a data type identifier.
[0143] The event identifier is used to indicate the event corresponding to the first message, such as an event indicating shared data.
[0144] The application identifier is used to indicate the application corresponding to the first message. For example, it can indicate applications such as clipboard, camera, photo album, video editor, and text editor.
[0145] The data type identifier is used to indicate the data type corresponding to the first message, such as indicating data such as images, text, and videos.
[0146] For example, an event identifier, application identifier, and data type identifier can be used to indicate that the first message is used to share image data in the clipboard.
[0147] In the embodiments of this application, event identifiers, application identifiers, and data type identifiers can be combined with each other or mapped to each other.
[0148] S302, The receiving device sends a request frame to the sending device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0149] Accordingly, the sending device receives the request frame sent by the receiving device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0150] The request frame is used to request the first data. The request frame supports connectionless communication. The first communication channel and the second communication channel use different near-field communication technologies.
[0151] If a certain type of frame (such as a request frame or a response frame) supports connectionless communication, it means that the sending and receiving devices can directly transmit such frames without negotiation or handshake.
[0152] For example, if the second communication channel is a WiFi communication channel and the request frame supports connectionless communication, then the request frame can be sent before the negotiation phase.
[0153] In this application, different near-field communication technologies refer to communication technologies with different protocol frameworks. Communication technologies with the same protocol framework but different operating frequency bands are considered the same communication technology. For example, WiFi operates in different frequency bands (2.4GHz and 5GHz), but both are based on the IEEE 802.11 protocol framework. Therefore, WiFi 2.4GHz and 5GHz are considered the same near-field communication technology in this application.
[0154] For example, the receiving device sends a request frame to the sending device through the main channel of the WiFi communication channel based on the above-mentioned transmit and receive parameters, requesting the data shared in the first message (Figure A).
[0155] Accordingly, the sending device receives the request frame sent by the receiving device through the main channel of the WiFi communication channel based on the aforementioned transmit and receive parameters.
[0156] The above example is only used to illustrate the use of a WiFi communication channel as the second communication channel and does not constitute any limitation. The second communication channel can be a WiFi communication channel, an SLB communication channel, or other high-bandwidth communication channels.
[0157] Understandably, WiFi and SLB offer relatively high communication bandwidth, making them suitable as a second communication channel in this solution to achieve high-speed data transmission. Furthermore, these communication technologies boast broad device compatibility, ensuring stable and efficient communication between the sending and receiving devices in diverse scenarios.
[0158] In one possible implementation, the above request frame is a WiFiAction frame.
[0159] For example, the second device sends a WiFi Action request frame to the first device through the main channel of the WiFi communication channel based on the above-mentioned transmit and receive parameters.
[0160] Accordingly, the first device receives the WiFi Action request frame sent by the second device through the main channel of the WiFi communication channel based on the aforementioned transmit and receive parameters.
[0161] It is understandable that, since the WiFi Action frame supports connectionless communication, the WiFi Action frame can be used as the aforementioned request frame.
[0162] In one possible implementation, the aforementioned request frame can also be a configured frame (such as a control frame, data frame, or management frame).
[0163] For example, the receiving device address of control frames, data frames, or management frames that do not support connectionless communication can be set to Address1 as the receiving device address to achieve connectionless communication without restricting the frame type.
[0164] In one possible implementation, the aforementioned request frame includes at least one of an application identifier or a broadcast (frame) type.
[0165] The broadcast (frame) type is used to indicate that the current frame is a request frame, used to request data.
[0166] The combination of application identifier and broadcast (frame) type can be used to indicate a request for application data.
[0167] For example, data in a photo album application can be requested using an application identifier and a broadcast (frame) type indicator.
[0168] S303. The sending device sends a response frame to the receiving device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0169] Accordingly, the receiving device receives the response frame sent by the sending device through the second communication channel based on the transmit and receive parameters of the second communication channel.
[0170] The response frame carries the first data and supports connectionless communication.
[0171] For example, the sending device responds to the request frame's request for shared data by sending a response frame to the receiving device via a WiFi communication channel.
[0172] Accordingly, the receiving device receives the request frame sent by the sending device through the WiFi communication channel in order to obtain the shared data carried in the request frame.
[0173] In one possible implementation, the above response frame is a WiFiAction frame.
[0174] For example, the first device determines that the received frame is a request frame indicating that picture A in the request album application is requested based on the application identifier and frame type in the request frame, and responds to the request frame by sending a WiFiAction response frame to the second device through the WiFi communication channel.
[0175] Accordingly, the second device receives the WiFi Action request frame sent by the first device through the WiFi communication channel to obtain image A carried in the WiFi Action request frame.
[0176] It is understandable that, since the WiFiAction frame supports connectionless communication, the WiFiAction frame can be used as the aforementioned response frame.
[0177] In one feasible implementation, the response frame and the request frame can be the same type of frame with different frame types. For example, both the response frame and the request frame can be WiFiAction frames.
[0178] In one possible implementation, the response frame described above can also be a configured frame (such as a control frame, data frame, or management frame).
[0179] For example, the receiving device address of control frames, data frames, or management frames that do not support connectionless communication can be set to Address1 as the receiving device address to achieve connectionless communication without restricting the frame type.
[0180] pass Figure 3 As can be seen, in the solution provided in this application embodiment, the sending device sends (broadcasts) a first message to the surrounding receiving device through the first communication channel, indicating the sharing of the first data. This triggers the surrounding receiving device to send a request frame through the second communication channel to obtain the first data, based on the communication information of the second communication channel carried in the first message. Subsequently, the sending device responds to the request frame by sending a response frame containing the first data to the receiving device through the second communication channel. Since both the request frame and the response frame support connectionless communication, data can be transmitted directly based on the request frame and the response frame without establishing a connection, avoiding the time spent on connection establishment. This reduces the total data transmission time for multi-device collaboration and effectively lowers the data transmission latency for multi-device collaboration.
[0181] In addition, compared to the existing technology where one device needs to request connection establishment in parallel through BLE broadcast + Wi-Fi direct connection when pushing service data to surrounding devices, which limits the use of services in scenarios with a large number of devices, the solution provided in this application embodiment can transmit data directly based on request frames and response frames without establishing a connection. Therefore, there is no connection scale limitation problem, and the service data transmission requirements are still met in scenarios with a large number of devices.
[0182] In one possible implementation, the method further includes:
[0183] The receiving device repeatedly sends the aforementioned request frame to the sending device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0184] Accordingly, the sending device receives repeated request frames from the receiving device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0185] Among them, the retransmitted request frame received by the sending device includes the first request frame received by the sending device.
[0186] In one possible implementation, the sending device can respond to all of the repeatedly sent request frames.
[0187] For example, the receiving device repeatedly sends 10 request frames to the sending device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0188] Accordingly, the sending device receives 10 request frames repeatedly sent by the receiving device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel, and responds by sending 10 response frames through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0189] In one possible implementation, for repeatedly sent request frames, the sending device may respond partially.
[0190] For example, the receiving device repeatedly sends 10 request frames to the sending device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0191] Accordingly, the sending device receives 10 request frames repeatedly sent by the receiving device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel, and responds with 1 request frame of the 10 repeatedly sent request frames. Based on the transmit and receive parameters of the second communication channel, the sending device sends 1 response frame through the main channel of the second communication channel.
[0192] For example, the receiving device repeatedly sends 10 request frames to the sending device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0193] Accordingly, the sending device receives 10 request frames repeatedly sent by the receiving device through the main channel of the second communication channel based on the transmit and receive parameters of the second communication channel, and responds with 5 request frames that are repeatedly sent. Based on the transmit and receive parameters of the second communication channel, the sending device sends 5 response frames through the main channel of the second communication channel.
[0194] The sending device can select the request frame that needs to be responded to from all repeatedly sent request frames based on the order in which the request frames are received, the order in which the request frames are sent, or other methods.
[0195] The order in which request frames are sent can be determined based on the sequence number configured within the request frame. The sequence number can also ensure that the other end can distinguish whether a frame is a duplicate.
[0196] It's understandable that repeatedly sending a request frame significantly improves the success rate compared to sending it only once. This approach increases the probability of the request frame being correctly received through multiple attempts, thus ensuring communication reliability to a certain extent. During data transmission, various potential interferences and errors exist, making a single transmission often risky. Therefore, adopting a strategy of repeatedly sending request frames effectively addresses these uncertainties, thereby improving overall communication efficiency and stability.
[0197] In one possible implementation, the method further includes:
[0198] The sending device sends a second message to the receiving device through the first communication channel.
[0199] Accordingly, the receiving device receives the second message sent by the sending device through the first communication channel.
[0200] The second message mentioned above indicates the sharing of second data.
[0201] In the scenario where the sending device sends a second message, if the receiving device needs the first data and the second data, the aforementioned request frame is also used to request the aforementioned second data, and the aforementioned response frame also carries the aforementioned second data.
[0202] For example, the sending device sends a second message to the receiving device through the first communication channel at the same time as or after sending the first message.
[0203] For example, a few seconds after sending a message instructing the sharing of image A, the first device continues to send a second message instructing the sharing of video B to the second device through the first communication channel.
[0204] Accordingly, the second device receives the first message and the second message sent by the first device.
[0205] The second device can send a request frame through the second communication channel to request image A and video B.
[0206] Accordingly, the first device receives the request frame sent by the second device, and responds by sending a response frame carrying image A and video B to the second device.
[0207] The second device receives the response frame to obtain image A and video B.
[0208] Understandably, sending devices may share multiple data sets over a period of time. In this scenario, the sending device will send different messages to share different data sets. If the receiving device needs to request multiple data sets, it doesn't need to send multiple request frames one by one; instead, it can use a single request frame to request multiple data sets, thereby reducing communication overhead and improving communication efficiency. For example, the sending device may be sharing both first and second data sets simultaneously, and the receiving device is interested in both. In this scenario, the receiving device can request both data sets using a single request frame. After receiving this request frame, the sending device can construct a response frame containing both the first and second data sets and send it to the receiving device through a second communication channel. This design not only simplifies the communication process but also significantly enhances the efficiency of data sharing.
[0209] In one possible implementation, the second message includes the aforementioned send and receive parameters.
[0210] Understandably, some receiving devices may ignore or fail to receive the first message, thus failing to obtain the transmit / receive parameters of the second communication channel contained within it. In this case, if the receiving device is interested in the second data, it will be unable to directly request the second data through the second communication channel due to the lack of these transmit / receive parameters. Therefore, transmit / receive parameters of the second communication channel can be added to the second message to ensure that even if the receiving device misses the first message, it can still successfully obtain the necessary information to request the second data. In this way, even if the receiving device fails to receive the first message, it can still send a request frame to the sending device through the second communication channel based on the transmit / receive parameters contained in the second message to obtain the required second data. This design effectively improves the flexibility and reliability of the near-field communication method, ensuring that the receiving device can efficiently obtain the required data under various circumstances.
[0211] In one possible implementation, the above method may further include:
[0212] At the same time as or after sending the first message, the sending device initiates an auxiliary channel scan of the second communication channel and puts the first communication chip into sleep mode.
[0213] The first communication chip mentioned above is used to realize the communication of the main channel of the second communication channel.
[0214] For example, such as Figure 4 As shown, the sending device starts secondary channel scanning and puts the first communication chip into sleep mode while sending the first message.
[0215] This can be understood as starting the secondary channel scan simultaneously with sending the first message, without requiring the execution times of these two events to be exactly the same. In practical applications, as long as the time interval between sending the first message and starting the secondary channel scan is less than a specific threshold (e.g., 5 seconds), the two events can be considered to be executed simultaneously.
[0216] Optionally, the secondary channel scan can be a WUR scan.
[0217] For example, the first device initiates a WUR scan and puts the WiFi chip to sleep during the process of sending the aforementioned first message.
[0218] In one possible implementation, the main channel of the second communication channel and the auxiliary channel of the second communication channel use the same near-field communication technology, but use different subcarriers to transmit data.
[0219] For example, if the second communication channel is a WiFi communication channel, both the main channel and the auxiliary channel use WiFi communication technology, but the auxiliary channel uses specific subcarriers within the WiFi frequency band (such as reserved low-frequency subcarriers) to transmit data (such as wake-up messages).
[0220] In one possible implementation, the above method may further include:
[0221] The receiving device sends a third message to the sending device through the auxiliary channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0222] Accordingly, the sending device receives the third message sent by the receiving device through the auxiliary channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0223] In one possible implementation, the above method may further include:
[0224] For example, such as Figure 4As shown, before sending the request frame, the receiving device sends a third message to the sending device through the auxiliary channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0225] Accordingly, the sending device receives the third message sent by the receiving device through the auxiliary channel of the second communication channel based on the transmit and receive parameters of the second communication channel.
[0226] For example, before sending the WiFiAction request frame, the second device sends a WUR wake-up message to the first device through the auxiliary channel of the aforementioned WiFi communication channel based on the transmit and receive parameters of the second communication channel.
[0227] Accordingly, the first device receives the WUR wake-up message sent by the second device through the auxiliary channel of the aforementioned WiFi communication channel based on the transmit and receive parameters of the second communication channel.
[0228] In one possible implementation, the above method may further include:
[0229] The sending device responds to the third message, wakes up the first communication chip, and switches the auxiliary channel scan of the second communication channel to the main channel scan of the second communication channel.
[0230] For example, such as Figure 4 As shown, after receiving the third message, the transmitting device responds to the third message by waking up the first communication chip and switching the auxiliary channel scan to the main channel scan of the second communication channel.
[0231] For example, after receiving the WUR wake-up message, the first device responds to the WUR wake-up message, wakes up the WiFi chip, and switches the WUR scan to WiFi scan or WiFiAction scan.
[0232] The power consumption of the auxiliary channel scan is lower than that of the main channel scan. For example, the power consumption of WUR scan is only one-tenth that of WiFi scan.
[0233] It is understood that the solution provided in this application uses an ultra-low power wake-up transceiver mechanism. Based on the wake-up feature, when the sending device has data to transmit and informs the surrounding devices through the first communication channel, it does not need to keep the main channel scanning running for a long time but starts the auxiliary channel scanning. The power consumption of the auxiliary channel scanning is much lower than that of the main channel scanning, and it can maintain long-term scanning without increasing power consumption.
[0234] In one possible implementation, the above method may further include:
[0235] The sending device initiates the main channel scan of the second communication channel at the same time as or after sending the first message.
[0236] This can be understood as starting the main channel scan simultaneously with sending the first message, without requiring the execution times of these two events to be exactly the same. In practical applications, as long as the time interval between sending the first message and starting the main channel scan is less than a specific threshold (e.g., 5 seconds), the two events can be considered to be executed simultaneously.
[0237] For example, such as Figure 5 As shown, the sending device initiates the main channel scan of the second communication channel while sending the first message.
[0238] For example, the first device initiates a WiFi scan or WiFiAction scan while sending the aforementioned first message.
[0239] It is understandable that, compared to continuously maintaining the main channel scan of the second communication channel, initiating the main channel scan of the second communication channel simultaneously with or after sending the first message can significantly reduce the power consumption of the second communication channel, thereby extending the device's standby time. Furthermore, this strategy still ensures the timeliness and effectiveness of data transmission. When the sending device needs to transmit data, it first sends the first message through the first communication channel, and then initiates the main channel scan of the second communication channel, thus ensuring that the receiving device can respond and receive the data quickly. This flexible control mechanism not only effectively optimizes power management but also fully guarantees the reliability and efficiency of communication.
[0240] In one possible implementation, the above method may further include:
[0241] The sending device stops scanning the main channel of the second communication channel.
[0242] For example, the sending device may stop the main channel scanning of the second communication channel at the same time as or after sending the response frame.
[0243] For example, the first device can stop the main channel scanning of the second communication channel while sending the aforementioned response frame.
[0244] As another example, the sending device may stop the main channel scanning of the second communication channel if it does not receive a request frame.
[0245] For example, the sending device may stop the main channel scanning of the second communication channel if the running time of the main channel scanning of the second communication channel exceeds the first time threshold and no request frame is received.
[0246] For example, if the power consumption of the main channel scan of the second communication channel exceeds the first power consumption threshold and no request frame is received, the sending device may stop the main channel scan of the second communication channel.
[0247] As another example, the sending device may stop the main channel scanning of the second communication channel at the same time as or after stopping the sharing of data.
[0248] Understandably, stopping the primary channel scanning of the second communication channel not only saves power consumption for the transmitting device but also avoids unnecessary waste of communication resources. When the transmitting device stops scanning the primary channel of the second communication channel, it can focus on processing the current communication task or enter a low-power mode, waiting for the next data sharing task to be triggered. This design significantly improves the overall efficiency and energy utilization of the communication system. Furthermore, stopping the primary channel scanning of the second communication channel can reduce interference for the transmitting device, thereby improving communication quality. In complex communication environments, multiple communication channels may exist simultaneously. If the transmitting device continuously scans all channels, it may interfere with the communication of other devices. Therefore, the primary channel scanning of the second communication channel can be stopped when appropriate.
[0249] The following is combined with Figure 6 This application provides one embodiment, such as... Figure 6 As shown, this embodiment includes:
[0250] Step 1: The first device initiates a data transmission process triggered by the service, starting WiFi scanning (i.e., the main channel scanning mentioned above) and sending BLE broadcast messages (i.e., the first message mentioned above). The BLE broadcast message carries the channel information for sending and receiving WiFi Action frames (i.e., the transmit and receive parameters of the second communication channel mentioned above). The second device has also started the BLE scanning function.
[0251] Step 2: When the second device detects the BLE broadcast frame sent by the first device, it initiates a WiFi Action scan on the corresponding channel and simultaneously sends a WiFi Action frame (i.e., the aforementioned request frame) to the first device. The Action frame contains the application ID, frame type flag, and service payload data (if any). The frame type flag is a request frame. Optionally, the Action frame may also carry a frame sequence number and be sent multiple times when sending the request frame.
[0252] Step 3: The first device receives a WiFi Action frame sent by the second device via WiFi scanning. It identifies the frame as a request frame by parsing the frame content and further parses the application ID and service payload data (if any). The first device prepares a response Action frame, filling in the application ID and service payload data of the response Action frame based on the parsed application ID, and marking the frame type as a response frame. If the second device does not receive the Action frame from the first device within the specified time, it will stop scanning, report the timeout, and will not proceed to Step 4. Optionally, the Action frame can carry a frame sequence number and be sent multiple times.
[0253] Step 4: The second device receives the WiFi Action frame (i.e., the response frame mentioned above) sent by the first device via Wi-Fi scanning, parses it to confirm it is a response frame, and obtains the corresponding application ID and service data payload. The data payload is then distributed to the corresponding upper-layer application for processing. If the first device does not receive the Action frame from the second device within the specified time, it will also report a timeout.
[0254] The following is combined with Figure 7 This application provides one embodiment, such as... Figure 7 As shown, this embodiment includes:
[0255] Step 1: The first device triggers a data transmission process via a service call, sending a BLE broadcast message (i.e., the first message mentioned above). Instead of initiating WiFi scanning (i.e., the main channel scan mentioned above), it uses WUR scanning instead of WiFi scanning and puts the WiFi chip into sleep mode to further save power. The BLE broadcast message carries the channel information for sending and receiving WiFi Action frames (i.e., the transmit and receive parameters of the second communication channel mentioned above). The second device has also started the BLE scanning function.
[0256] Step 2: When the second device detects the BLE broadcast frame sent by the first device, it first wakes up the first device via a WUR wake-up message and causes the first device's WiFi chip to exit sleep mode. Then, it initiates WiFi Action scanning on the corresponding channel and simultaneously sends a WiFi Action frame (i.e., the aforementioned request frame) to the first device. The Action frame contains the application ID, frame type flag, and service payload data (if any). The frame type flag is a request frame. Optionally, the Action frame can also carry a frame sequence number and be sent multiple times when sending the request frame.
[0257] Step 3: The first device receives a WiFi Action frame sent by the second device via WiFi scanning. It identifies the frame as a request frame by parsing the frame content and further parses the application ID and service payload data (if any). The first device prepares a response Action frame, filling in the application ID and service payload data of the response Action frame based on the parsed application ID, and marking the frame type as a response frame. If the second device does not receive the Action frame from the first device within the specified time, it will stop scanning, report the timeout, and will not proceed to Step 4. Optionally, the Action frame can carry a frame sequence number and be sent multiple times.
[0258] Step 4: The second device receives the WiFi Action frame (i.e., the response frame mentioned above) sent by the first device via Wi-Fi scanning, parses it to confirm it is a response frame, and obtains the corresponding application ID and service data payload. The data payload is then distributed to the corresponding upper-layer application for processing. If the first device does not receive the Action frame from the second device within the specified time, it will also report a timeout.
[0259] The following describes a near-field communication device for performing the above near-field communication method.
[0260] It is understood that, in order to achieve the above-mentioned functions, the near-field communication device includes hardware and / or software modules that perform the respective functions. Based on the algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of the embodiments of this application.
[0261] This application embodiment can divide the near-field communication device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0262] When dividing each function into modules according to its corresponding function. Figure 8The diagram illustrates a possible composition of the near-field communication device involved in the above embodiments. The device can be a device (such as a transmitting device), a module applied to the device (such as a processor, chip, or chip system), or a logic node, logic module, or software that can implement all or part of the device functions.
[0263] like Figure 8 As shown, the near-field communication device 600 may include a transmitting unit 601 and a receiving unit 602.
[0264] The aforementioned sending unit 601 sends a first message through a first communication channel. The first message is used to indicate the sharing of first data. The first message includes the transmission and reception parameters of a second communication channel. The first communication channel and the second communication channel use different near-field communication technologies.
[0265] The receiving unit 602 is configured to receive a request frame through the main channel of the second communication channel based on the transmission and reception parameters. The request frame is used to request the first data and supports connectionless communication.
[0266] The aforementioned sending unit 601 is further configured to respond to the aforementioned request frame by sending a response frame through the aforementioned main channel based on the aforementioned transmit and receive parameters. The response frame carries the aforementioned first data and supports connectionless communication.
[0267] For example, the sending unit 601 described above can be used to perform... Figure 3 S301 and S303 in the method shown.
[0268] For example, the receiving unit 602 described above can be used to perform Figure 3 S302 in the method shown.
[0269] In one possible implementation, the sending unit 601 is further configured to: receive repeated request frames through the main channel based on the aforementioned transmit / receive parameters.
[0270] In one possible implementation, the receiving unit 602 is further configured to: respond to repeated request frames and send response frames through the main channel based on the transmit / receive parameters.
[0271] In one possible implementation, the sending unit 601 is further configured to: send a second message through a first communication channel. The second message indicates the sharing of second data, the request frame is further configured to request the second data, and the response frame further carries the second data.
[0272] In one possible implementation, the second message includes the aforementioned send and receive parameters.
[0273] In one possible implementation, the receiving unit 602 is further configured to: initiate an auxiliary channel scan of the second communication channel and put the first communication chip into sleep mode when or after sending the first message, the first communication chip being used to implement communication of the main channel; receive a third message through the auxiliary channel of the second communication channel based on the transmit / receive parameters, the third message being used to wake up the first communication chip; and, in response to the third message, wake up the first communication chip and switch the auxiliary channel scan to the main channel scan of the second communication channel, the power consumption of the auxiliary channel scan being lower than that of the main channel scan.
[0274] In one possible implementation, the receiving unit 602 is further configured to: initiate a main channel scan of the second communication channel when or after sending the first message.
[0275] In one possible implementation, the aforementioned transmit / receive parameters include at least one of channel number, frequency band, mapping value, MAC address, and transmit / receive time, wherein the mapping value is used to map at least one of channel number, frequency band, MAC address, and transmit / receive time.
[0276] In one possible implementation, the first communication channel is a Bluetooth communication channel, a Zifeng communication channel, or an SLE communication channel.
[0277] In one possible implementation, the second communication channel is either Wi-Fi or SLB communication channel.
[0278] In one possible implementation, at least one of the above request frame or the above response frame is a WiFiAction frame.
[0279] When dividing each function into modules according to its corresponding function. Figure 9 The diagram illustrates a possible composition of the near-field communication device involved in the above embodiments. The device can be a device (such as a receiving device), a module applied to the device (such as a processor, chip, or chip system), or a logic node, logic module, or software that can implement all or part of the device functions.
[0280] like Figure 9 As shown, the near-field communication device 700 may include a receiving unit 701 and a transmitting unit 702.
[0281] The receiving unit 701 is configured to receive a first message through a first communication channel. The first message is used to indicate the sharing of first data. The first message includes transmit and receive parameters of a second communication channel. The first communication channel and the second communication channel use different near-field communication technologies.
[0282] The aforementioned sending unit 702 is used to send a request frame through the main channel of the aforementioned second communication channel based on the aforementioned transmit and receive parameters. The request frame is used to request the aforementioned first data, and the request frame supports connectionless communication.
[0283] The receiving unit 701 is further configured to receive a response frame through the second communication channel based on the transmission and reception parameters. The response frame carries the first data and supports connectionless communication.
[0284] For example, the receiving unit 701 described above can be used to perform... Figure 3 S301 and S303 in the method shown.
[0285] For example, the sending unit 702 described above can be used to perform... Figure 3 S302 in the method shown.
[0286] In one possible implementation, the sending unit 702 is further configured to: repeatedly send the request frame through the second communication channel based on the sending and receiving parameters.
[0287] In one possible implementation, the receiving unit 701 is further configured to: receive a second message through a first communication channel, the second message indicating the sharing of second data; the request frame is further configured to request the second data, and the response frame further carries the second data.
[0288] In one possible implementation, the second message includes the aforementioned send and receive parameters.
[0289] In one possible implementation, the sending unit 702 is further configured to: send a third message through the auxiliary channel of the second communication channel based on the aforementioned transmit / receive parameters, wherein the third message is used to wake up the first communication chip, and the first communication chip is used to implement communication through the main channel.
[0290] In one possible implementation, the aforementioned transmit / receive parameters include at least one of channel number, frequency band, mapping value, MAC address, and transmit / receive time, wherein the mapping value is used to map at least one of channel number, frequency band, MAC address, and transmit / receive time.
[0291] In one possible implementation, the first communication channel is a Bluetooth communication channel, a Zifeng communication channel, or an SLE communication channel.
[0292] In one possible implementation, the second communication channel is either a WiFi or SLB communication channel.
[0293] In one possible implementation, at least one of the above request frame or the above response frame is a WiFiAction frame.
[0294] This application also provides a chip, which can be the chip of the aforementioned near-field communication device. Figure 10 A schematic diagram of a chip 800 is shown. The chip 800 includes one or more processors 801 and interface circuitry 802. Optionally, the chip 800 may also include a bus 803.
[0295] The processor 801 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the aforementioned near-field communication method can be completed through integrated logic circuits in the processor 801 or through software instructions.
[0296] Optionally, the processor 801 described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods and steps disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0297] The interface circuit 802 can be used to send or receive data, instructions or information. The processor 801 can use the data, instructions or other information received by the interface circuit 802 to process the data, instructions or other information, and can send the processed information out through the interface circuit 802.
[0298] Optionally, the chip may also include memory, which may include read-only memory and random access memory, providing operation instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (NVRAM).
[0299] Optionally, the memory stores executable software modules or data structures, and the processor can execute corresponding operations by calling the operation instructions stored in the memory (which may be stored in the operating system).
[0300] Optionally, the chip can be used in the near-field communication device or near-field communication device involved in the embodiments of this application. Optionally, the interface circuit 802 can be used to output the execution result of the processor 801. For near-field communication methods provided by one or more embodiments of the embodiments of this application, please refer to the foregoing embodiments, which will not be repeated here.
[0301] It should be noted that the functions of the processor 801 and the interface circuit 802 can be implemented through hardware design, software design, or a combination of hardware and software; no restrictions are imposed here.
[0302] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be a near-field communication device, a chip within the near-field communication device, or a functional module. For example... Figure 11 As shown, the electronic device 900 includes a processor 901, a transceiver 902, and a communication line 903.
[0303] The processor 901 is used to execute any step of the near-field communication method provided in the embodiments of this application, and in the process of executing any step of the near-field communication method provided in the embodiments of this application, the transceiver 902 and the communication line 903 may be called to complete the corresponding operation.
[0304] Furthermore, the electronic device 900 may also include a memory 904. The processor 901, memory 904, and transceiver 902 can be connected via a communication line 903.
[0305] The processor 901 can be a processor, a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 901 can also be other devices with processing capabilities, such as circuits, devices, or software modules, without limitation.
[0306] Transceiver 902 is used to communicate with other devices or other communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. Transceiver 902 can be a module, circuit, transceiver, or any device capable of enabling communication.
[0307] The transceiver 902 is mainly used for sending and receiving commands and information, and may include a transmitter and a receiver to send and receive commands and information, respectively; operations other than sending and receiving commands and information are implemented by the processor.
[0308] Communication line 903 is used to transmit information between the various components included in electronic device 900.
[0309] In one design, the processor can be viewed as a logic circuit, and the transceiver as an interface circuit.
[0310] Memory 904 is used to store instructions. These instructions can be computer programs.
[0311] The memory 904 can be volatile memory or non-volatile memory, or both. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus DRAM (DRRAM). Memory 904 can also be a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed discs, laser discs, optical discs, digital universal discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices. It should be noted that the memory in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0312] It should be noted that the memory 904 can exist independently of the processor 901, or it can be integrated with the processor 901. The memory 904 can be used to store instructions, program code, or some data, etc. The memory 904 can be located inside or outside the electronic device 900, without limitation. The processor 901 is used to execute the instructions stored in the memory 904 to implement the methods provided in the embodiments of this application.
[0313] In one example, processor 901 may include one or more processor cores, for example Figure 11 The processor cores are 0 and 1.
[0314] As an optional implementation, the electronic device 900 includes multiple processors, for example, besides Figure 11 In addition to processor 901, it may also include processor 907.
[0315] As an optional implementation, the electronic device 900 also includes an output device 905 and an input device 906. For example, the input device 906 is a device such as a keyboard, mouse, microphone, or joystick, and the output device 905 is a device such as a display screen or speaker.
[0316] It should be noted that the electronic device 900 can be a chip system or... Figure 11 Devices with similar structures. The chip system can be composed of chips or include chips and other discrete components. Actions, terminology, etc., involved in the various embodiments of this application can be referenced interchangeably without limitation. The message names or parameter names in the messages used for interaction between devices in the embodiments of this application are merely examples; other names can be used in specific implementations without limitation. Furthermore, Figure 11 The structural composition shown does not constitute a limitation on the electronic device 900, except... Figure 11 In addition to the components shown, the electronic device 900 may include more than Figure 11 This may indicate more or fewer components, or combinations of certain components, or different component arrangements.
[0317] The processor and transceiver described in this application embodiment can be implemented on integrated circuits (ICs), analog ICs, radio frequency integrated circuits, mixed-signal ICs, application-specific integrated circuits (ASICs), printed circuit boards (PCBs), electronic devices, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal-oxide-semiconductor (CMOS), n-type metal-oxide-semiconductor (NMOS), p-type metal-oxide-semiconductor (PMOS), bipolar junction transistors (BJTs), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
[0318] This application also provides a near-field communication device, which includes at least one processor. When the at least one processor executes program code or instructions, it implements the aforementioned method steps to achieve the near-field communication method in the above embodiments.
[0319] Optionally, the device may further include at least one memory for storing the program code or instructions.
[0320] This application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on a near-field communication device, the near-field communication device performs the aforementioned related method steps to implement the near-field communication method in the above embodiments.
[0321] In one possible implementation, the computer-readable storage medium is a non-transitory computer-readable medium.
[0322] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the near-field communication method described in the above embodiments.
[0323] This application also provides a near-field communication device, which may specifically be a chip, integrated circuit, component, or module. Specifically, the device may include a connected processor and a memory for storing instructions, or the device may include at least one processor for fetching instructions from external memory. When the device is running, the processor can execute instructions to cause the chip to perform the near-field communication methods in the above-described method embodiments.
[0324] This application also provides a communication system, which includes a first near-field communication device and a second near-field communication device. The first near-field communication device is used to perform the steps related to the transmitting end device in the above-described method embodiments, and the second near-field communication device is used to perform the steps related to the receiving end device in the above-described method embodiments.
[0325] It should be understood that in various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application.
[0326] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.
[0327] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0328] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0329] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0330] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0331] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of this application, essentially, or the parts that contribute to the prior art, or parts of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0332] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.
Claims
1. A near-field communication method, characterized in that, include: A first message is sent through a first communication channel. The first message is used to indicate the sharing of first data. The first message includes the transmit and receive parameters of a second communication channel. The first communication channel and the second communication channel use different near-field communication technologies. Based on the transmit and receive parameters, a request frame is received through the main channel of the second communication channel. The request frame is used to request the first data and supports connectionless communication. The response frame is sent through the main channel based on the send / receive parameters in response to the request frame. The response frame carries the first data and supports connectionless communication.
2. The method according to claim 1, characterized in that, The method further includes: Based on the transmit and receive parameters, the system receives repeated request frames through the main channel. In response to repeated request frames, the response frame is sent through the main channel based on the transmit and receive parameters.
3. The method according to claim 1 or 2, characterized in that, The method further includes: A second message is sent through the first communication channel, the second message indicating the sharing of second data; The request frame is also used to request the second data, and the response frame also carries the second data.
4. The method according to claim 3, characterized in that, The second message includes the send and receive parameters.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When or after sending the first message, the auxiliary channel scan of the second communication channel is initiated and the first communication chip is put into sleep mode. The first communication chip is used to realize the communication of the main channel. Based on the transmit and receive parameters, a third message is received through the auxiliary channel of the second communication channel, and the third message is used to wake up the first communication chip; In response to the third message, the first communication chip is woken up and the auxiliary channel scan is switched to the main channel scan of the second communication channel. The power consumption of the auxiliary channel scan is lower than that of the main channel scan.
6. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When or after sending the first message, initiate a main channel scan of the second communication channel.
7. The method according to any one of claims 1 to 6, characterized in that, The transmit / receive parameters include at least one of the following: channel number, frequency band, mapping value, media access control (MAC) address, and transmit / receive time. The mapping value is used to map at least one of the following: channel number, frequency band, MAC address, and transmit / receive time.
8. The method according to any one of claims 1 to 7, characterized in that, The first communication channel is a Bluetooth communication channel, a Purple Bee communication channel, or a low-power Star Flash SLE communication channel.
9. The method according to any one of claims 1 to 8, characterized in that, The second communication channel is either Wi-Fi or a basic SLB communication channel.
10. The method according to any one of claims 1 to 9, characterized in that, At least one of the request frame or the response frame is a WiFi Action frame.
11. A near-field communication method, characterized in that, include: A first message is received through a first communication channel. The first message is used to indicate the sharing of first data. The first message includes transmit and receive parameters of a second communication channel. The first communication channel and the second communication channel use different near-field communication technologies. Based on the transmit and receive parameters, a request frame is sent through the main channel of the second communication channel. The request frame is used to request the first data and supports connectionless communication. Based on the transmit and receive parameters, a response frame is received through the second communication channel. The response frame carries the first data and supports connectionless communication.
12. The method according to claim 11, characterized in that, The method further includes: Based on the transmit and receive parameters, the request frame is repeatedly sent through the second communication channel.
13. The method according to claim 11 or 12, characterized in that, The method further includes: A second message is received through the first communication channel, the second message indicating the sharing of second data; The request frame is also used to request the second data, and the response frame also carries the second data.
14. The method according to claim 13, characterized in that, The second message includes the send and receive parameters.
15. The method according to any one of claims 11 to 14, characterized in that, The method further includes: Based on the transmit and receive parameters, a third message is sent through the auxiliary channel of the second communication channel. The third message is used to wake up the first communication chip, and the first communication chip is used to realize the communication of the main channel.
16. The method according to any one of claims 11 to 15, characterized in that, The transmit / receive parameters include at least one of the following: channel number, frequency band, mapping value, MAC address, and transmit / receive time. The mapping value is used to map at least one of the following: channel number, frequency band, MAC address, and transmit / receive time.
17. The method according to any one of claims 11 to 16, characterized in that, The first communication channel is a Bluetooth communication channel, a Purple Bee communication channel, or an SLE communication channel.
18. The method according to any one of claims 11 to 17, characterized in that, The second communication channel is a WiFi or SLB communication channel.
19. The method according to any one of claims 11 to 18, characterized in that, At least one of the request frame or the response frame is a WiFiAction frame.
20. A near-field communication device, characterized in that, include: Transmitting unit and receiving unit; The sending unit is configured to send a first message through a first communication channel. The first message is used to indicate the sharing of first data. The first message includes transmit and receive parameters of a second communication channel. The first communication channel and the second communication channel use different near-field communication technologies. The receiving unit is configured to receive a request frame through the main channel of the second communication channel based on the transmit and receive parameters. The request frame is used to request the first data and supports connectionless communication. The sending unit is further configured to respond to the request frame by sending a response frame through the main channel based on the transmit and receive parameters. The response frame carries the first data and supports connectionless communication.
21. The apparatus according to claim 20, characterized in that, The sending unit is further configured to receive repeated request frames through the main channel based on the sending and receiving parameters; The receiving unit is also configured to respond to repeated request frames and send the response frame through the main channel based on the transmit and receive parameters.
22. The apparatus according to claim 20 or 21, characterized in that, The transmitting unit is further configured to: A second message is sent through the first communication channel, the second message indicating the sharing of second data; The request frame is also used to request the second data, and the response frame also carries the second data.
23. The apparatus according to claim 22, characterized in that, The second message includes the send and receive parameters.
24. The apparatus according to any one of claims 20 to 23, characterized in that, The receiving unit is also used for: When or after sending the first message, the auxiliary channel scan of the second communication channel is initiated and the first communication chip is put into sleep mode. The first communication chip is used to realize the communication of the main channel. Based on the transmit and receive parameters, a third message is received through the auxiliary channel of the second communication channel, and the third message is used to wake up the first communication chip; In response to the third message, the first communication chip is woken up and the auxiliary channel scan is switched to the main channel scan of the second communication channel. The power consumption of the auxiliary channel scan is lower than that of the main channel scan.
25. The apparatus according to any one of claims 20 to 23, characterized in that, The receiving unit is also used for: When or after sending the first message, initiate a main channel scan of the second communication channel.
26. The apparatus according to any one of claims 20 to 25, characterized in that, The transmit / receive parameters include at least one of the following: channel number, frequency band, mapping value, MAC address, and transmit / receive time. The mapping value is used to map at least one of the following: channel number, frequency band, MAC address, and transmit / receive time.
27. The apparatus according to any one of claims 20 to 26, characterized in that, The first communication channel is a Bluetooth communication channel, a Purple Bee communication channel, or an SLE communication channel.
28. The apparatus according to any one of claims 20 to 27, characterized in that, The second communication channel is a Wi-Fi or SLB communication channel.
29. The apparatus according to any one of claims 20 to 28, characterized in that, At least one of the request frame or the response frame is a WiFiAction frame.
30. A near-field communication device, characterized in that, include: Receiving unit and transmitting unit; The receiving unit is configured to receive a first message through a first communication channel. The first message is used to indicate the sharing of first data. The first message includes transmit and receive parameters of a second communication channel. The first communication channel and the second communication channel use different near-field communication technologies. The sending unit is configured to send a request frame through the main channel of the second communication channel based on the transmit and receive parameters. The request frame is used to request the first data and supports connectionless communication. The receiving unit is further configured to receive a response frame through the second communication channel based on the transmit and receive parameters. The response frame carries the first data and supports connectionless communication.
31. The apparatus according to claim 30, characterized in that, The transmitting unit is further configured to: Based on the transmit and receive parameters, the request frame is repeatedly sent through the second communication channel.
32. The apparatus according to claim 30 or 31, characterized in that, The receiving unit is also used for: A second message is received through the first communication channel, the second message indicating the sharing of second data; The request frame is also used to request the second data, and the response frame also carries the second data.
33. The apparatus according to claim 32, characterized in that, The second message includes the send and receive parameters.
34. The apparatus according to claim 33, characterized in that, The transmitting unit is further configured to: Based on the transmit and receive parameters, a third message is sent through the auxiliary channel of the second communication channel. The third message is used to wake up the first communication chip, and the first communication chip is used to realize the communication of the main channel.
35. The apparatus according to any one of claims 30 to 34, characterized in that, The transmit / receive parameters include at least one of the following: channel number, frequency band, mapping value, MAC address, and transmit / receive time. The mapping value is used to map at least one of the following: channel number, frequency band, MAC address, and transmit / receive time.
36. The apparatus according to any one of claims 30 to 35, characterized in that, The first communication channel is a Bluetooth communication channel, a Purple Bee communication channel, or an SLE communication channel.
37. The apparatus according to any one of claims 30 to 36, characterized in that, The second communication channel is a WiFi or SLB communication channel.
38. The apparatus according to any one of claims 30 to 37, characterized in that, At least one of the request frame or the response frame is a WiFiAction frame.
39. A near-field communication device, comprising at least one processor and a memory, characterized in that, The at least one processor executes a program or instructions stored in a memory to cause the near-field communication device to implement the method of any one of claims 1 to 10 or any one of claims 11 to 19.
40. A communication system comprising a first near-field communication device and a second near-field communication device, characterized in that, The first near-field communication device is used to perform the method of any one of claims 1 to 10, and the second near-field communication device is used to perform the method of any one of claims 11 to 19.
41. A computer-readable storage medium for storing a computer program, characterized in that, When the computer program is run on a computer or processor, it causes the computer or processor to perform the method of any one of claims 1 to 10 or any one of claims 11 to 19.
42. A computer program product, the computer program product comprising instructions, characterized in that, When the instructions are executed on a computer or processor, they cause the computer or processor to perform the method of any one of claims 1 to 10 or any one of claims 11 to 19.