Data transmission method and data transmission apparatus
By using a low-power first communication protocol to transmit control information between the terminal device and the access device to carry the data of the second communication protocol, the problems of high power consumption and air interface resource occupation caused by the frequent sending of heartbeat packets by the terminal device are solved, and more efficient data transmission and resource optimization are achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-07-10
- Publication Date
- 2026-05-21
AI Technical Summary
Terminal devices need to frequently send heartbeat packets to maintain link activity when in wireless connection mode, resulting in high power consumption and occupation of air interface resources, affecting the coexistence and interference of air interface resources.
The first communication protocol transmits control information to carry the data of the second communication protocol, reducing the direct transmission of heartbeat packets through the second communication protocol, and using the first communication protocol with lower power consumption, such as StarFlash or Bluetooth, to maintain link activity.
It reduces the power consumption of terminal devices, reduces the occupation of antenna air interface resources, reduces interference between different communication protocols, optimizes air interface resource utilization, and improves data transmission efficiency.
Smart Images

Figure CN2025107922_21052026_PF_FP_ABST
Abstract
Description
A data transmission method and a data transmission device
[0001] This application claims priority to Chinese Patent Application No. 202411642923.7, filed on November 15, 2024, entitled "A Data Transmission Method and Data Transmission Device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of data transmission technology, and in particular to a data transmission method and a data transmission apparatus. Background Technology
[0003] Terminal devices can connect to access devices via a wireless fidelity (WiFi) network. When there is no data to be transmitted between the terminal device and the access device via the WiFi link, the terminal device can enter a sleep state. After entering sleep state, the terminal device can periodically wake up to transmit heartbeat packets with the access device. The heartbeat packets are used to maintain the WiFi link between the terminal device and the access device. Therefore, the power consumption of the terminal device in the keep-alive state is relatively high. Summary of the Invention
[0004] This application provides a data transmission method and a data transmission device, which solves the problem of high power consumption for keeping terminal devices alive in the prior art.
[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, a data transmission method is provided, applied to a terminal device, the data transmission method comprising: receiving control information via a first communication protocol; and transmitting data for a second communication protocol to an access device based on the control information.
[0007] In the above technical solution, the access device and the terminal device transmit control information via a first communication protocol, and under the instruction of the control information, transmit data for the second communication protocol. Control information that would normally be transmitted via the second communication protocol is instead transmitted on the link of the first communication protocol. There is no need to transmit heartbeat packets via the second communication protocol to maintain the link. This reduces the number of heartbeat packets transmitted via the second communication protocol. On the one hand, the reduced number of heartbeat packets means fewer times the terminal device needs to wake up periodically. This reduces power consumption and the occupation of antenna air interface resources. On the other hand, transmitting control plane signaling of the second communication protocol via the link of the first communication protocol reduces interference between the air interfaces of the first and second communication protocols. Furthermore, it reduces the coexistence pressure of the first and second communication protocols and optimizes air interface resources.
[0008] In one possible implementation of the first aspect, the control information is a first heartbeat packet, which is used to maintain the link of the second communication protocol. The data used for the second communication protocol is the response to the first heartbeat packet. In the above possible implementation, the terminal device and the access device transmit the first heartbeat packet through the link of the first communication protocol to maintain the link of the second communication protocol. This eliminates the need to transmit heartbeat packets through the second communication protocol. This reduces the interference of a large number of WiFi heartbeat packets on the StarSpark air interface, reduces the pressure of coexistence of WiFi and StarSpark links, and optimizes air interface resources. Furthermore, the first heartbeat packet can be used to maintain both the link of the first and second communication protocols. Maintaining the links of the two communication protocols does not require transmitting heartbeat packets through the links of the two communication protocols separately. This reduces the number of heartbeat packet transmission processes. This also improves air interface utilization, enabling more terminal devices to communicate with the access device, and enabling the access device to perform more services and send and receive more data.
[0009] In one possible implementation of the first aspect, the control information includes time information for transmitting data for the second communication protocol, and the data for the second communication protocol includes service data. In this possible implementation, the terminal device and the access device transmit control information through the link of the first communication protocol, instructing the terminal device and the access device to transmit service data for the second communication protocol. Thus, to transmit service data for the second communication protocol, it is unnecessary to maintain the keep-alive of the second communication protocol link by transmitting heartbeat packets. This reduces interference from a large number of WiFi heartbeat packets on the Wi-Fi air interface, reduces the pressure of coexistence of WiFi and Wi-Fi links, and optimizes air interface resources. Furthermore, since the control information includes time information, the terminal device and the access device can transmit service data for the second communication protocol at an agreed-upon time. This enables orderly transmission of service data. For example, if the second communication protocol is WiFi, when multiple terminal devices transmit WiFi protocol data to the access device, multiple terminal devices may simultaneously send data to the access device, causing data loss. Therefore, there is a problem of disordered collisions. In this embodiment, by agreeing on a time, the disordered collision time of the WiFi link can be reduced.
[0010] In one possible implementation of the first aspect, control information is carried in the first heartbeat packet. In this possible implementation, the control information can be carried in the first heartbeat packet, which can be used to maintain both the link for the first communication protocol and the link for the second communication protocol. Maintaining the links for both communication protocols eliminates the need to transmit heartbeat packets separately through each protocol's link. This reduces the amount of heartbeat packet transmission. It also improves air interface utilization, enabling more terminal devices to communicate with access devices, and allowing access devices to perform more services and send / receive more data.
[0011] In one possible implementation of the first aspect, the data used for the second communication protocol further includes notification information and a response of service data, wherein the notification information indicates that a switch to a connected state has been made. Based on control information, data for the second communication protocol is transmitted with the access device, including: sending notification information to the access device based on time information; receiving service data sent by the access device based on time information; and sending a response of the service data to the access device. In the above possible implementation, service data is transmitted using unicast or multicast. The terminal device sends notification information to the access device, and the access device sends service data to the terminal device based on the notification information and time information. The terminal device sends a response of the service data to the access device. In this way, service data can be sent to terminal devices that require service data with high accuracy.
[0012] In one possible implementation of the first aspect, data for the second communication protocol is transmitted to the access device according to control information, including: receiving service data broadcast by the access device according to time information. In the above possible implementation, service data is transmitted via broadcast. The terminal device initiates scanning according to time information, and the access device broadcasts service data according to time information. The interaction between the access device and the terminal device is relatively simple.
[0013] In one possible implementation of the first aspect, before receiving control information via the first communication protocol, the method further includes: receiving a second heartbeat packet via the first communication protocol, the second heartbeat packet being used to maintain the link of the first communication protocol. In the above possible implementation, the access device and the terminal device can maintain the link of the first communication protocol via the second heartbeat packet. Since the link of the first communication protocol is alive, control information can be transmitted via the link of the first communication protocol to maintain the link of the second communication protocol. This eliminates the need to transmit heartbeat packets via the second communication protocol. Thus, a large number of heartbeat packets transmitted via the second communication protocol can be reduced, thereby reducing power consumption, reducing the occupation of antenna air interface resources, and reducing interference between air interfaces.
[0014] In one possible implementation of the first aspect, the first communication protocol includes a StarScan protocol or a Bluetooth protocol. In the above possible implementations, the StarScan protocol or Bluetooth protocol has lower power consumption; transmitting control information through a link using the lower-power first communication protocol can reduce power consumption.
[0015] In one possible implementation of the first aspect, the second communication protocol includes the Wi-Fi protocol. In the above possible implementations, power consumption of the Wi-Fi protocol link can be reduced.
[0016] Secondly, a data transmission method is provided, applied to an access device. The data transmission method includes: sending control information via a first communication protocol, the control information indicating the transmission of data for a second communication protocol; and transmitting data for the second communication protocol to a terminal device according to the control information.
[0017] In the above technical solution, the access device and the terminal device transmit control information via a first communication protocol, and under the instruction of the control information, transmit data for the second communication protocol. Control information that would normally be transmitted via the second communication protocol is instead transmitted on the link of the first communication protocol. There is no need to transmit heartbeat packets via the second communication protocol to maintain the link. This reduces the number of heartbeat packets transmitted via the second communication protocol. On the one hand, the reduced number of heartbeat packets means fewer times the terminal device needs to wake up periodically. This reduces power consumption and the occupation of antenna air interface resources. On the other hand, transmitting control plane signaling of the second communication protocol via the link of the first communication protocol reduces interference between the air interfaces of the first and second communication protocols. Furthermore, it reduces the coexistence pressure of the first and second communication protocols and optimizes air interface resources.
[0018] In one possible implementation of the second aspect, the control information is a first heartbeat packet, which is used to maintain the link of the second communication protocol. The data used for the second communication protocol is the response to the first heartbeat packet. In the above possible implementation, the terminal device and the access device transmit the first heartbeat packet through the link of the first communication protocol to maintain the link of the second communication protocol. This eliminates the need to transmit heartbeat packets through the second communication protocol. This reduces the interference of a large number of WiFi heartbeat packets on the StarSpark air interface, reduces the pressure of coexistence of WiFi and StarSpark links, and optimizes air interface resources. Furthermore, the first heartbeat packet can be used to maintain both the link of the first and second communication protocols. Maintaining the links of the two communication protocols does not require transmitting heartbeat packets through the links of the two communication protocols separately. This reduces the number of heartbeat packet transmission processes. This also improves air interface utilization, enabling more terminal devices to communicate with the access device, and enabling the access device to perform more services and send and receive more data.
[0019] In one possible implementation of the second aspect, the control information includes time information for transmitting data for the second communication protocol, and the data for the second communication protocol includes service data. In the above possible implementation, the terminal device and the access device transmit control information through the link of the first communication protocol, instructing the terminal device and the access device to transmit service data for the second communication protocol. Thus, to transmit service data for the second communication protocol, it is not necessary to maintain the keep-alive of the second communication protocol link by transmitting heartbeat packets. This reduces interference from a large number of WiFi heartbeat packets on the Wi-Fi air interface, reduces the pressure of coexistence of WiFi and Wi-Fi links, and optimizes air interface resources. Furthermore, since the control information includes time information, the terminal device and the access device can transmit service data for the second communication protocol at an agreed-upon time. This enables orderly transmission of service data. For example, if the second communication protocol is WiFi, when multiple terminal devices transmit WiFi protocol data to the access device, multiple terminal devices may simultaneously send data to the access device, causing data loss. Therefore, there is a problem of disordered collisions. In this embodiment, by agreeing on a time, the disordered collision time of the WiFi link can be reduced.
[0020] In one possible implementation of the second aspect, control information is carried in the first heartbeat packet. In this possible implementation, the control information can be carried in the first heartbeat packet, which can be used to maintain both the link for the first communication protocol and the link for the second communication protocol. Maintaining the links for both communication protocols eliminates the need to transmit heartbeat packets separately through each protocol's link. This reduces the amount of heartbeat packet transmission. It also improves air interface utilization, enabling more terminal devices to communicate with access devices, and allowing access devices to perform more services and send / receive more data.
[0021] In one possible implementation of the second aspect, the data used for the second communication protocol further includes notification information and a response of service data. The notification information indicates that the terminal device has switched to a connected state. Based on control information, data for the second communication protocol is transmitted to the terminal device, including: receiving notification information sent by the terminal device; sending service data to the terminal device based on the notification information and time information; and receiving a response of the service data sent by the terminal device. In the above possible implementations, service data is transmitted using unicast or multicast. The terminal device sends notification information to the access device, and the access device sends service data to the terminal device based on the notification information and time information. The terminal device sends a response of the service data to the access device. In this way, service data can be sent to terminal devices that require it with high accuracy.
[0022] In one possible implementation of the second aspect, transmitting data for the second communication protocol to the terminal device includes: broadcasting service data based on time information. In the above possible implementation, service data is transmitted via broadcast. The terminal device initiates scanning based on time information, and the access device broadcasts service data based on time information. The interaction between the access device and the terminal device is relatively simple.
[0023] In one possible implementation of the second aspect, before sending control information via the first communication protocol, the method further includes sending a second heartbeat packet via the first communication protocol. The second heartbeat packet is used to maintain the link of the first communication protocol. In the above possible implementation, the access device and the terminal device can maintain the link of the first communication protocol via the second heartbeat packet. Since the link of the first communication protocol is alive, control information can be transmitted via the link of the first communication protocol to maintain the link of the second communication protocol. This eliminates the need to transmit heartbeat packets via the second communication protocol. Thus, a large number of heartbeat packets transmitted via the second communication protocol can be reduced, thereby reducing power consumption, reducing the occupation of antenna air interface resources, and reducing interference between air interfaces.
[0024] In one possible implementation of the second aspect, the first communication protocol includes a StarScan protocol or a Bluetooth protocol. In the above possible implementations, the StarScan protocol or Bluetooth protocol has lower power consumption; transmitting control information through a link using the lower-power first communication protocol can reduce power consumption.
[0025] In one possible implementation of the second aspect, the second communication protocol includes the WiFi protocol. In the above possible implementations, power consumption of the WiFi protocol link can be reduced.
[0026] Thirdly, a data transmission apparatus is provided, comprising a processor and a communication circuit, wherein the processor is configured to control the communication circuit to execute the method provided by the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0027] Fourthly, a data transmission apparatus is provided, comprising a module for performing the method provided by the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0028] Fifthly, a computer-readable storage medium is provided, wherein program code is stored therein, and the program code can be invoked by a processor to execute the methods provided by the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0029] Sixthly, a computer program product is provided that, when the computer program product is run on a computer, causes the computer to perform the method provided by the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0030] Understandably, the apparatus, computer storage medium, or computer program product of any of the data transmission methods provided above are used to execute the corresponding data transmission methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here. Attached Figure Description
[0031] Figure 1 is a schematic diagram of a communication system provided in an embodiment of this application;
[0032] Figure 2 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0033] Figure 3 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0034] Figure 4 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0035] Figure 5 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0036] Figure 6 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0037] Figure 7 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0038] Figure 8 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0039] Figure 9 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0040] Figure 10 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0041] Figure 11 is a schematic diagram of a data transmission method provided in an embodiment of this application;
[0042] Figure 12 is a schematic diagram of a data transmission device provided in an embodiment of this application;
[0043] Figure 13 is a schematic diagram of a data transmission device provided in an embodiment of this application;
[0044] Figure 14 is a schematic diagram of a data transmission device provided in an embodiment of this application. Detailed Implementation
[0045] It should be noted that the terms "first," "second," etc., used in the embodiments of this application are only used to distinguish features of the same type and should not be construed as indicating relative importance, quantity, order, etc. In the 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 the embodiments of this application.
[0046] The terms "exemplary" or "for example" used in the embodiments of this application are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0047] The terms "coupling" and "connection" used in the embodiments of this application should be interpreted broadly. For example, they can refer to a direct physical connection or an indirect connection achieved through electronic devices, such as a connection achieved through resistors, inductors, capacitors, or other electronic devices. "Connection" can also refer to a wireless connection achieved through a network.
[0048] First, some basic concepts involved in the embodiments of this application will be explained:
[0049] 1. Wireless Fidelity (WiFi) Network Technology
[0050] WiFi (Wi-Fi) technology is a wireless local area network (WLAN) technology that allows electronic devices such as smartphones, laptops, and smart home devices to connect to each other and access the internet via radio waves. Based on the IEEE 802.11 standard, it provides high-speed data transmission, enabling users to enjoy convenient network services without physical cables. Communication devices in a WiFi network can include wireless access points (APs) and stations (STAs).
[0051] 2. Bluetooth technology
[0052] Bluetooth is a wireless communication standard based on a short-range, low-power communication mode that allows data exchange between devices, making it suitable for indoor environments and connections between personal devices.
[0053] 3. Spark Link Low Energy (SLE) technology
[0054] Compared to traditional short-range wireless communication technologies, StarSpeed technology boasts six major advantages: low latency, interference resistance, high speed, precise positioning, multi-connectivity, and high reliability. Currently, in low-power mode, StarSpeed products can achieve peak speeds several times higher than traditional technologies, enabling a lossless studio-quality audio experience. Furthermore, StarSpeed products support parallel connections for multiple devices and concurrent uplink and downlink services, allowing simultaneous access to multiple mobile phones, tablets, TVs, and other devices. StarSpeed technology is currently applied in smart terminals, smart homes, smart cars, and smart manufacturing, and will continue to be compatible with Bluetooth and Wi-Fi ecosystems in the future, facilitating pairing and connection with various new and old devices.
[0055] 4. Heartbeat Pack
[0056] In network communication, heartbeats are used to maintain communication links between multiple devices. A heartbeat can be a short message containing no actual data (null data or null packet). Heartbeats can be sent from a terminal device (such as a STA device, or grand node, G node) to an access device (such as an AP device, or terminal node, T node) or vice versa. If the device sending the heartbeat receives an ACK (acknowledgment) response, it confirms that the communication link is still functioning correctly. If the device sending the heartbeat does not receive an ACK, it may attempt to re-establish the communication link or assume the link has been broken.
[0057] 5. Network data packet encapsulation and decapsulation processes
[0058] Taking the Open Systems Interconnection (OSI) reference model as an example, the OSI reference model, from top to bottom, includes: Application Layer, Presentation Layer, Session Layer, Transport Layer, Network Layer, Data Link Layer, and Physical Layer. When an upper-layer application generates data, the data needs to be encapsulated before being sent. At each subsequent layer, a protocol header is added to the data. Only when the data reaches the Physical Layer is it actually sent out through the network medium. For example, during the data encapsulation process, from top to bottom, the Transmission Control Protocol (TCP) header, Internet Protocol (IP) header, Logical Link Control (LLC) header, and Medium Access Control (MAC) header are added sequentially.
[0059] Terminal devices and access devices can transmit data over communication links using a communication protocol. Different communication protocols require different protocol headers during data encapsulation. For example, data transmitted over a WiFi link (hereinafter referred to as a WiFi link) can be encapsulated using the WiFi protocol. Data transmitted over a StarScan link (hereinafter referred to as a StarScan link) can be encapsulated using the StarScan protocol. Data transmitted over a Bluetooth link (hereinafter referred to as a Bluetooth link) can be encapsulated using the Bluetooth protocol.
[0060] After introducing the basic concepts involved in the embodiments of this application, the application scenarios of the embodiments of this application will be described. The embodiments of this application can be applied to communication systems including terminal devices and access devices.
[0061] In one possible implementation, the communication system may include a cloud server, access devices, and terminal devices. There may be multiple terminal devices. Both the terminal devices and the access devices may support WiFi, Bluetooth, and Starlink protocols.
[0062] In one example, as shown in Figure 1, the communication system 1000 can have multiple access devices, which can be configured in a distributed network. For example, the multiple access devices may include a main device 210 and multiple distribution devices, which may be the first distribution device 220 and the second distribution device 230 in Figure 1. Multiple terminal devices may include a first terminal 310 and a second terminal 320. The cloud server 100 and the main device 210 can be connected via a passive optical network (PON). The main device 210 and the first distribution device 220 can be connected via PON, a WiFi link, a strobe link, or a Bluetooth link. The main device 210 and the second distribution device 230 can be connected via PON, a WiFi link, a strobe link, or a Bluetooth link. Each of the multiple terminal devices can choose to connect with one of the distribution devices, the first distribution device 220 and the second distribution device 230, via a PON, WiFi link, a strobe link, or a Bluetooth link.
[0063] In another example, the communication system may not require a distribution device, and the number of access devices may be only one. Each of the multiple terminal devices can connect to the access device via a WiFi link, Bluetooth link, or Starlink link.
[0064] In some possible implementations, the access device can be a router, set-top box, or television. The terminal device can be a mobile phone, tablet, laptop, computer, camera, wearable device, in-vehicle device, smart home device (such as smart air conditioner and smart refrigerator), etc.
[0065] In some possible implementations, the access device can connect to the terminal device via a Starlink and a WiFi link. When there is no data transmission between the terminal device and the access device via the WiFi link, the terminal device needs to periodically switch to a connected state and send WiFi heartbeat packets via the WiFi link. The WiFi heartbeat packets are used to maintain the WiFi link.
[0066] In one example, as shown in Figure 2, the terminal device can scan to detect if there are any connectable access devices. Both the access device and the terminal device support the Starlink protocol and the WiFi protocol. The terminal device can establish a Starlink connection with the access device, allowing data transmission between them via the Starlink link. The terminal device can also establish a WiFi connection with the access device, enabling data transmission between them via the WiFi link. The access device sends a broadcast beacon to the terminal device. The broadcast beacon can be used for functions such as clock synchronization, device location, or device wake-up.
[0067] When there is no data to be transmitted between the terminal device and the access device via the WiFi link, the terminal device can switch to a sleep state or a low-power state. The terminal device can send a WiFi heartbeat packet to the access device via the WiFi link during the data traffic indication message interval (DTIM). The access device can respond to the WiFi heartbeat packet by sending a response to the terminal device via the WiFi link.
[0068] When there is no data to be transmitted between the terminal device and the access device via the StarLink, the terminal device can switch to a sleep state or a low-power state. The access device can send a StarLink heartbeat packet to the terminal device at a preset time. The StarLink heartbeat packet is used to maintain the StarLink. In response to the StarLink heartbeat packet, the terminal device can send a reply to the access device via the StarLink.
[0069] When a terminal device requests to receive service data, it switches to a connected state and sends a notification message to the access device via the WiFi link. This notification message indicates that the terminal device has switched to a connected state. For example, the notification message could be a network control frame (poll signaling protocol, PS poll), which is used to detect the communication link status and request data. Based on the notification message, the access device sends the service data to the terminal device via the WiFi link. The terminal device then sends a response to the access device based on the received service data.
[0070] In this implementation, the terminal device and the access device need to transmit a large number of heartbeat packets to maintain the WiFi link keep-alive. A large number of heartbeat packets increases the power consumption of the terminal device and occupies the antenna's air interface resources. Furthermore, a large number of heartbeat packets can cause interference between the WiFi air interface and the satellite air interface, affecting their coexistence, and can also interfere with other terminal devices connected to the access device.
[0071] In other possible implementations, the access device can connect to the terminal device via links using multiple communication protocols. The access device and the terminal device can transmit control information for maintaining a link using one communication protocol while simultaneously transmitting control information for another communication protocol. For example, the access device can connect to the terminal device via a strobe link and a WiFi link. The access device and the terminal device can transmit control information for maintaining the WiFi link via the strobe link, without transmitting WiFi heartbeat packets via the WiFi link.
[0072] In this implementation, control information for maintaining another communication protocol link can be transmitted through a link of one communication protocol, thereby reducing the amount of heartbeat packet transmission. This reduces the power consumption of the terminal device and the occupation of air interface resources for the antenna. It also reduces air interface interference between multiple communication protocol links.
[0073] Based on the above embodiments, this application provides a data transmission method that can be applied to the access device and terminal device shown in FIG1. As shown in FIG3, the data transmission method may include at least the following steps:
[0074] S300: The access device sends control information through the first communication protocol, and the control information is used to instruct the transmission of data for the second communication protocol.
[0075] S400: The terminal device receives control information through the first communication protocol.
[0076] For example, transmitting data via a first communication protocol means that the data may be encapsulated according to the first communication protocol, and the data may be transmitted via a link of the first communication protocol. Transmitting data via a link of a second communication protocol means that the data may be encapsulated according to the second communication protocol, and the data may be transmitted via a link of the second communication protocol. Transmission includes sending and receiving.
[0077] For example, the power consumption of transmitting data via a link using a first communication protocol can be less than the power consumption of transmitting data via a link using a second communication protocol. For instance, the first communication protocol could be a StarFlash protocol or a Bluetooth protocol. The second communication protocol could be a WiFi protocol.
[0078] S500: The terminal device and the access device transmit data for the second communication protocol according to the control information.
[0079] For example, the data used for the second communication protocol may be data used to maintain the link liveness of the second communication protocol. The terminal device and the access device transmit data for the second communication protocol, thereby establishing a link connection for the second communication protocol between the terminal device and the access device.
[0080] For example, the data used for the second communication protocol may be business data, which can be processed within the device via the second communication protocol.
[0081] For example, the terminal device transmitting data for the second communication protocol to the access device based on control information can be achieved by the terminal device transmitting data for the second communication protocol to the access device via a link of the first communication protocol, based on the control information. In this case, the data for the second communication protocol can be data encapsulated by both the first and second communication protocols. Alternatively, the terminal device transmitting data for the second communication protocol to the access device based on control information can be achieved by the terminal device transmitting data for the second communication protocol to the access device via a link of the second communication protocol, based on the control information. In this case, the data for the second communication protocol can be data encapsulated by the second communication protocol.
[0082] In this embodiment, the access device and the terminal device transmit control information via a first communication protocol, and, under the instruction of the control information, transmit data for a second communication protocol. Control information that would normally be transmitted via the second communication protocol is instead carried over the link of the first communication protocol. There is no need to transmit heartbeat packets via the second communication protocol to maintain the link. This significantly reduces the number of heartbeat packets transmitted via the second communication protocol.
[0083] On the one hand, the number of heartbeat packets is reduced, and the number of times the terminal device wakes up at regular intervals is reduced. This can reduce power consumption and reduce the occupation of antenna air interface resources.
[0084] On the other hand, transmitting control plane signaling of the second communication protocol through the link of the first communication protocol can reduce interference between the air interfaces of the first and second communication protocols. Furthermore, it can reduce the coexistence pressure of the first and second communication protocols and optimize air interface resources.
[0085] On the other hand, the first communication protocol can be either the StarFlash protocol or the Bluetooth protocol. The second communication protocol can be the WiFi protocol. Transmitting control information through a link using the lower-power first communication protocol can further reduce power consumption.
[0086] In some possible implementations, as shown in FIG3, prior to S300, the data transmission method may further include the following steps:
[0087] S100: The access device sends a second heartbeat packet via the first communication protocol. The second heartbeat packet is used to maintain the link of the first communication protocol.
[0088] S200: The terminal device receives the second heartbeat packet through the first communication protocol.
[0089] For example, the data transmission method may further include: in response to a received second heartbeat packet, the terminal device sends a response of the second heartbeat packet to the access device via a first communication protocol. The terminal device and the access device may transmit the second heartbeat packet and the response of the second heartbeat packet at multiple preset times.
[0090] In this embodiment, the access device and the terminal device can maintain the link of the first communication protocol through the second heartbeat packet. Since the link of the first communication protocol is alive, link transmission control information of the first communication protocol can be provided to maintain the link of the second communication protocol. This eliminates the need to transmit heartbeat packets through the second communication protocol. Thus, a large number of heartbeat packets transmitted through the second communication protocol can be reduced, thereby reducing power consumption, reducing the occupation of antenna air interface resources, and reducing interference between air interfaces.
[0091] In some possible implementations, the function of the control information can be link keep-alive. For example, the control information can be used to maintain a link for a second communication protocol.
[0092] In some examples, as shown in Figure 4, the control information is a first heartbeat packet, which is used to maintain the link of the second communication protocol. The data used for the second communication protocol is the response to the first heartbeat packet.
[0093] The response to the first heartbeat packet is used to maintain the link life of the second communication protocol.
[0094] Furthermore, the data transmission method may further include: the completion of a link connection using a first communication protocol between the terminal device and the access device; and the completion of a link connection using a second communication protocol between the terminal device and the access device.
[0095] Furthermore, the terminal device and the access device can transmit a second heartbeat packet via the first communication protocol at a preset time. Therefore, the link of the first communication protocol between the terminal device and the access device remains active. The access device can send a first heartbeat packet to the terminal device via the first communication protocol, thereby maintaining the link of the second communication protocol between the access device and the terminal device. The terminal device sends a response to the first heartbeat packet to the access device. When the access device receives the response to the first heartbeat packet, the access device determines that the link of the second communication protocol is active.
[0096] Furthermore, the timing of transmitting the first heartbeat packet can coincide with the timing of transmitting the second heartbeat packet. The access device can send both the first and second heartbeat packets to the terminal device simultaneously. Alternatively, the first heartbeat packet can also perform the function of the second heartbeat packet. The first heartbeat packet can be used to maintain the link for the first communication protocol and to maintain the link for the second communication protocol. The access device does not need to send the second heartbeat packet when it sends the first heartbeat packet.
[0097] In this embodiment, the terminal device and the access device transmit a first heartbeat packet through a link using the first communication protocol to maintain the link using the second communication protocol. This eliminates the need to transmit heartbeat packets via the second communication protocol. This reduces interference from a large number of WiFi heartbeat packets on the StarSpark air interface, reduces the pressure on the coexistence of WiFi and StarSpark links, and optimizes air interface resources.
[0098] Furthermore, the first heartbeat packet can be used to maintain the link for both the first and second communication protocols. Maintaining links for both protocols eliminates the need to transmit heartbeat packets separately across each protocol's link. This reduces the amount of heartbeat packet transmission. It also improves air interface utilization, enabling more terminal devices to communicate with access devices, and allowing access devices to perform more services and send / receive more data.
[0099] In other possible implementations, the function of the control information may be to instruct the transmission of service data. For example, the control information may be used to instruct the transmission of service data for a second communication protocol.
[0100] In some examples, as shown in Figure 5, the control information includes timing information for transmitting data for the second communication protocol, which includes service data.
[0101] Control information can be carried in the first heartbeat packet. This control information can be used to maintain the link for the second communication protocol and to instruct the transmission of service data for the second communication protocol. Timing information is used to instruct the terminal device or access device to transmit data for the second communication protocol at a target time. The service data for the second communication protocol can be processed internally by the second communication protocol.
[0102] Furthermore, the data transmission method may further include: the completion of a link connection using a first communication protocol between the terminal device and the access device; and the completion of a link connection using a second communication protocol between the terminal device and the access device.
[0103] Furthermore, the terminal device and the access device can transmit a second heartbeat packet via the first communication protocol at a preset time. Therefore, the link of the first communication protocol between the terminal device and the access device is alive. When there is no data to be transmitted via the link of the second communication protocol, the terminal device and the access device do not need to transmit a heartbeat packet via the link of the second communication protocol. When the terminal device and the access device need to transmit data via the link of the second communication protocol, the access device can send control information to the terminal device via the first communication protocol. If the control information is carried in the first heartbeat packet, the terminal device also sends a response to the first heartbeat packet to the access device. Based on the control information, the terminal device determines that the link of the second communication protocol is alive, and at the target time indicated by the time information, the terminal device transmits service data for the second communication protocol with the access device.
[0104] Furthermore, the timing of transmitting control information can coincide with the timing of transmitting the second heartbeat packet. The access device can send the control information and the second heartbeat packet to the terminal device simultaneously. Alternatively, the control information can also perform the function of the second heartbeat packet. The control information can be used to maintain the link of the first communication protocol and to indicate the transmission of service data for the second communication protocol. When the access device sends the control information, it does not need to send the second heartbeat packet.
[0105] In this embodiment, the terminal device and the access device transmit control information through the link of the first communication protocol, instructing the terminal device and the access device to transmit service data for the second communication protocol. Thus, to transmit service data for the second communication protocol, it is unnecessary to maintain the keep-alive status of the second communication protocol link by transmitting heartbeat packets. This reduces interference from a large number of WiFi heartbeat packets on the StarSpark air interface, reduces the pressure on the coexistence of WiFi and StarSpark links, and optimizes air interface resources.
[0106] Furthermore, the control information includes time information, allowing terminal devices and access devices to transmit service data for the second communication protocol at agreed-upon times. This enables orderly transmission of service data. For example, if the second communication protocol is WiFi, in some cases, multiple terminal devices may not agree on a WiFi data transmission time with the access device. When multiple terminal devices transmit WiFi protocol data to the access device, they may simultaneously send data to the access device, resulting in data loss. Therefore, there is a problem of disordered collisions. In this embodiment, by agreeing on a time, the disordered collision time of the WiFi link can be reduced.
[0107] Furthermore, control information can be carried in the first heartbeat packet, which can be used to maintain both the link for the first communication protocol and the link for the second communication protocol. Maintaining links for both protocols eliminates the need to transmit heartbeat packets separately across each protocol's link. This reduces the amount of heartbeat packet transmission. It also improves air interface utilization, enabling more terminal devices to communicate with access devices, and allowing access devices to perform more services and send / receive more data.
[0108] For example, service data can be transmitted using unicast or multicast. As shown in Figure 6, the data used for the second communication protocol may further include notification information and responses to the service data. The notification information can be used to indicate that the terminal device has switched to a connected state. S500 may include the following sub-steps:
[0109] S510: The terminal device sends a notification message to the access device based on the time information.
[0110] S520: The access device receives notification information sent by the terminal device.
[0111] Prior to S510, terminal devices could switch to a connected state before a target time based on time information and send notification information to the access device.
[0112] S530: The access device sends service data to the terminal device based on the notification information and time information.
[0113] S540: The terminal device receives service data sent by the access device based on time information.
[0114] The access device, based on the notification information, determines that the terminal device is ready to receive service data. After the terminal device is ready to receive service data, the access device can send the service data to the terminal device at the target time, based on the time information. The terminal device can then receive the service data at the target time, based on the time information.
[0115] S550: The response from the terminal device to the access device for sending service data.
[0116] S560: The response of the access device to receiving service data sent by the terminal device.
[0117] The access device can determine whether the terminal device has received the service data based on the response of the service data.
[0118] In some cases, notification information, business data, and responses to business data may be sent via a first communication protocol. In this case, the notification information, business data, and responses to business data may be encapsulated using both the first and second communication protocols. In other cases, notification information, business data, and responses to business data may be sent via a second communication protocol. In this case, the notification information, business data, and responses to business data may be encapsulated using the second communication protocol.
[0119] The following example, using the StarLight protocol as the first communication protocol and the WiFi protocol as the second, illustrates a possible process for transmitting service data via unicast, in conjunction with Figures 7 and 8. The terminal device includes a first StarLight circuit and a first WiFi circuit. The access device includes a second StarLight circuit and a second WiFi circuit. Both the first and second StarLight circuits are used to process and transmit data via the StarLight protocol. Both the first and second WiFi circuits are used to process and transmit data via the WiFi protocol.
[0120] The star link connection between the first and second star lightning paths is complete. The WiFi link connection between the first and second WiFi circuits is complete.
[0121] When there is no service data to be transmitted on the Starlink link, the second Starlink circuit sends a Starlink heartbeat packet to the first Starlink circuit via the Starlink link, and the first Starlink circuit sends a Starlink heartbeat packet response to the second Starlink circuit via the Starlink link. This keeps the Starlink link alive. When there is no service data to be transmitted on the WiFi link, neither the first nor the second WiFi circuit needs to transmit WiFi heartbeat packets via the WiFi link.
[0122] In one scenario, as shown in Figure 7, when there is service data to be transmitted on the WiFi link, the second WiFi circuit sends control information to the second satellite flash circuit. The control information instructs the transmission of service data using the WiFi protocol via the WiFi link. This service data is encapsulated using the WiFi protocol. The control information includes time information, indicating the target time for transmitting the service data. Based on the control information, the second satellite flash circuit sends a first heartbeat packet to the first satellite flash circuit via the satellite flash link. The first heartbeat packet carries the control information. The first satellite flash circuit sends a response to the first heartbeat packet to the second satellite flash circuit. The first satellite flash circuit outputs the control information to the first WiFi circuit through methods such as writing to registers. Based on the control information, the first WiFi circuit switches to a connected state and sends notification information to the second WiFi circuit via the WiFi link. Based on the time information and the notification information, the second WiFi circuit sends service data to the first WiFi circuit via the WiFi link at the target time. Based on the time information, the first WiFi circuit receives the service data sent by the first WiFi circuit via the WiFi link at the target time. The first WiFi circuit sends a response to the service data to the second WiFi circuit via the WiFi link. The first WiFi circuit unpacks the service data using the WiFi protocol.
[0123] In another scenario, as shown in Figure 8, when there is service data to be transmitted on the WiFi link, the second WiFi circuit sends control information and service data encapsulated at the lower level using the WiFi protocol to the second StarLightning circuit. The control information instructs the transmission of the service data via the StarLightning link. The second StarLightning circuit encapsulates the service data at a higher level using the StarLightning protocol. The control information includes time information, indicating the target time for transmitting the service data. Based on the control information, the second StarLightning circuit sends a first heartbeat packet to the first StarLightning circuit via the StarLightning link. The first heartbeat packet carries the control information. The first StarLightning circuit sends a response to the first heartbeat packet to the second StarLightning circuit. Based on the control information, the first StarLightning circuit switches to a connected state and sends notification information to the second StarLightning circuit via the StarLightning link. Based on the time information and the notification information, the second StarLightning circuit transmits the service data to the first StarLightning circuit via the StarLightning link at the target time. Based on the time information, the first StarLightning circuit receives the service data sent by the first StarLightning circuit via the StarLightning link at the target time. The first StarLightning circuit then sends a response to the service data to the second StarLightning circuit via the StarLightning link. The first StarLightning circuit unpacks the service data using the StarLightning protocol. After the first WiFi circuit switches to connected mode, it outputs the unpacked service data to the first WiFi circuit. The first WiFi circuit then further unpacks the service data using the WiFi protocol.
[0124] In this example, service data can be transmitted using unicast or multicast. The terminal device sends a notification message to the access device, and the access device sends service data to the terminal device based on the notification message and time information. The terminal device then sends a response to the access device regarding the service data. This method allows service data to be sent to terminal devices that require it with high accuracy.
[0125] As another example, business data can be transmitted via broadcast. As shown in Figure 9, S500 may include the following sub-steps:
[0126] S570: Access devices broadcast service data based on time information.
[0127] S580: The terminal device receives service data broadcast by the access device based on time information.
[0128] Terminal devices can initiate scanning before the target time based on time information. Access devices can broadcast service data at the target time based on time information.
[0129] In some cases, service data may be broadcast via a first communication protocol. In this case, the service data may be encapsulated using both the first and second communication protocols. In other cases, service data may be broadcast via a second communication protocol. In this case, the service data may be encapsulated using the second communication protocol.
[0130] The following example, using the StarLight protocol as the first communication protocol and the WiFi protocol as the second, illustrates a possible process for transmitting service data via broadcast, in conjunction with Figures 10 and 11. The terminal device includes a first StarLight circuit and a first WiFi circuit. The access device includes a second StarLight circuit and a second WiFi circuit. Both the first and second StarLight circuits are used to process and transmit data via the StarLight protocol. Both the first and second WiFi circuits are used to process and transmit data via the WiFi protocol.
[0131] The star link connection between the first and second star lightning paths is complete. The WiFi link connection between the first and second WiFi circuits is complete.
[0132] When there is no service data to be transmitted on the Starlink link, the second Starlink circuit sends a Starlink heartbeat packet to the first Starlink circuit via the Starlink link, and the first Starlink circuit sends a Starlink heartbeat packet response to the second Starlink circuit via the Starlink link. This keeps the Starlink link alive. When there is no service data to be transmitted on the WiFi link, neither the first nor the second WiFi circuit needs to transmit WiFi heartbeat packets via the WiFi link.
[0133] In one scenario, as shown in Figure 10, when there is service data to be transmitted on the WiFi link, the second WiFi circuit sends control information to the second satellite flash circuit. The control information instructs the broadcast of service data for the WiFi protocol via the WiFi link. This service data is encapsulated using the WiFi protocol. The control information includes time information, indicating the target time for transmitting the service data. Based on the control information, the second satellite flash circuit sends a first heartbeat packet to the first satellite flash circuit via the satellite flash link. The first heartbeat packet carries the control information. The first satellite flash circuit sends a response to the first heartbeat packet to the second satellite flash circuit. The first satellite flash circuit outputs the control information to the first WiFi circuit through methods such as writing to registers. Based on the time information, the first WiFi circuit switches to connected mode and begins scanning before the target time. Based on the time information, the second WiFi circuit broadcasts service data via the WiFi link at the target time. Based on the time information, the first WiFi circuit receives the service data broadcast by the first WiFi circuit via the WiFi link at the target time. The first WiFi circuit unpacks the service data using the WiFi protocol.
[0134] In another scenario, as shown in Figure 11, when there is service data to be transmitted on the WiFi link, the second WiFi circuit sends control information and service data encapsulated at the lower level using the WiFi protocol to the second StarSpark link. The control information instructs the broadcast of the service data via the StarSpark link. The second StarSpark link encapsulates the service data at a higher level using the StarSpark protocol. The control information includes time information, indicating the target time for broadcasting the service data. Based on the control information, the second StarSpark link sends a first heartbeat packet to the first StarSpark link via the StarSpark link. The first heartbeat packet carries the control information. The first StarSpark link responds to the first heartbeat packet sent to the second StarSpark link. Based on the time information, the first StarSpark link switches to a connected state and begins scanning before the target time. Based on the time information, the second StarSpark link broadcasts the service data via the StarSpark link at the target time. Based on the time information, the first StarSpark link receives the service data broadcast by the first StarSpark link via the StarSpark link at the target time. The first StarSpark link unpacks the service data using the StarSpark protocol, and after the first WiFi circuit switches to a connected state, outputs the unpacked service data to the first WiFi circuit. The first WiFi circuit further depackets the service data using the WiFi protocol.
[0135] In this example, service data can be transmitted via broadcast. The terminal device initiates scanning based on time information, and the access device broadcasts service data based on the same time information. The interaction between the access device and the terminal device is relatively simple.
[0136] As can be seen from the above embodiments, the present application's embodiments rationally schedule the links of the second communication protocol through the first communication protocol. Operations such as interference avoidance, authentication, access, and heartbeat of the second communication protocol link are handled by the first communication protocol link. When data needs to be transmitted via the second communication protocol, the relevant circuits of the second communication protocol are then activated. This reduces the power consumption of the terminal device, reduces the occupation of antenna air interface resources, and reduces interference between air interfaces.
[0137] The foregoing mainly describes the terminal device, access device, and data transmission method. It is understood that, in order to achieve the above functions, the terminal device and access device include corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the structures and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, 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, but such implementation should not be considered beyond the scope of this application.
[0138] This application embodiment can divide functional modules according to the terminal device and access device corresponding to the above method examples. 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 or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0139] Figure 12 illustrates a possible structural diagram of the data transmission device involved in the above embodiments, where each functional module is divided according to its corresponding function. The first data transmission device 400 includes a first transmission module 410 and a second transmission module 420. The first transmission module 410 is used to receive control information via a first communication protocol. The second transmission module 420 is used to transmit data for a second communication protocol to the access device based on the control information input from the first transmission module 410.
[0140] In some possible implementations, the control information is a first heartbeat packet, which is used to maintain the link of the second communication protocol; the data used for the second communication protocol is the response to the first heartbeat packet.
[0141] In another possible implementation, the control information includes timing information for transmitting data for a second communication protocol, the data of which includes service data. For example, the control information is carried in the first heartbeat packet.
[0142] In some examples, the data used for the second communication protocol also includes notification information and responses to service data, with the notification information indicating a switch to a connected state. Specifically, the second transmission module 420 is used to send notification information to the access device based on time information input from the first transmission module 410. The second transmission module 420 is also specifically used to receive service data sent by the access device based on time information input from the first transmission module 410. The second transmission module 420 is also specifically used to send responses to the access device for the service data.
[0143] In other examples, the second transmission module 420 is specifically used to receive service data broadcast by the access device based on time information input from the first transmission module 410.
[0144] In some possible implementations, the first transmission module 410 is also configured to receive a second heartbeat packet via a first communication protocol, the second heartbeat packet being used to maintain the link of the first communication protocol.
[0145] In some possible implementations, the first communication protocol includes the StarFlash protocol or the Bluetooth protocol.
[0146] In some possible implementations, the second communication protocol includes the Wi-Fi protocol.
[0147] Figure 13 illustrates another possible structural diagram of the data transmission device involved in the above embodiments, where each functional module is divided according to its corresponding function. The second data transmission device 500 includes a third transmission module 510 and a fourth transmission module 520. The third transmission module 510 is used to send control information input from the fourth transmission module 520 via a first communication protocol. The control information is used to instruct the transmission of data for a second communication protocol. The fourth transmission module 520 is used to transmit data for the second communication protocol to the terminal device according to the control information.
[0148] In some possible implementations, the control information is a first heartbeat packet, which is used to maintain the link of the second communication protocol; the data used for the second communication protocol is the response to the first heartbeat packet.
[0149] In another possible implementation, the control information includes timing information for transmitting data for a second communication protocol, the data of which includes service data. For example, the control information is carried in the first heartbeat packet.
[0150] In some examples, the data used for the second communication protocol also includes notification information and responses to service data, with the notification information indicating that the terminal device has switched to a connected state. The fourth transmission module 520 is specifically used to receive the notification information sent by the terminal device. The fourth transmission module 520 is also specifically used to send service data to the terminal device based on the notification information and time information. The fourth transmission module 520 is also specifically used to receive responses to the service data sent by the terminal device.
[0151] In other examples, the fourth transmission module 520 is specifically used to broadcast service data based on time information.
[0152] In some possible implementations, the third transmission module 510 is also used to send a second heartbeat packet via the first communication protocol, the second heartbeat packet being used to maintain the link of the first communication protocol.
[0153] In some possible implementations, the first communication protocol includes the StarFlash protocol or the Bluetooth protocol.
[0154] In some possible implementations, the second communication protocol includes the Wi-Fi protocol.
[0155] It is understood that each component of the first data transmission device 400 and the second data transmission device 500 can be used to implement the corresponding steps in the aforementioned method embodiments. Since each step and its effects have been described in detail in the aforementioned data transmission method embodiments, they will not be repeated here.
[0156] The above describes a data transmission device in the embodiments of this application from the perspective of modular functional entities. The following describes the data transmission device in the embodiments of this application from the perspective of hardware processing.
[0157] This application also provides a data transmission device, the structure of which can be as shown in FIG14. The third data transmission device 600 includes a processor 610 and a communication circuit 620. The processor 610 is used to control the communication circuit 620 to execute one or more steps in the above-described data transmission method embodiments. The third data transmission device 600 may further include a memory for storing data and information to be transmitted.
[0158] The processor 610 can be a chip. For example, it can be a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0159] Furthermore, the memory can be volatile or non-volatile, or a combination of both. 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. Volatile memory can be random access memory (RAM), which serves 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 dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0160] Furthermore, the communication circuit 620 can be a circuit for performing communication functions, such as a WiFi circuit for communicating via the WiFi protocol, a Starlight circuit for communicating via the Bluetooth protocol, or a Bluetooth circuit for communicating via the Starlight protocol.
[0161] It is understood that each component of the third data transmission device 600 can be used to implement the corresponding steps in the aforementioned method embodiments. Since each step and its effects have been described in detail in the aforementioned data transmission method embodiments, they will not be repeated here.
[0162] This application also provides a computer-readable storage medium storing program code. When the medium is run on a device (e.g., a microcontroller, chip, computer, or processor), the program code can be invoked by the processor to execute one or more steps in the above method embodiments.
[0163] Based on this understanding, this application also provides a computer program product containing instructions. The technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or its processor to execute all or part of the steps of the methods described in the various embodiments of this application.
[0164] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data transmission method, characterized by, The data transmission method is applied to a terminal device, and the data transmission method includes: Receive control information via the first communication protocol; Based on the control information, data for the second communication protocol is transmitted with the access device.
2. The data transmission method of claim 1, wherein, The control information is a first heartbeat packet, which is used to maintain the link of the second communication protocol; the data used for the second communication protocol is the response to the first heartbeat packet.
3. The data transmission method of claim 1, wherein, The control information includes time information for transmitting the data used in the second communication protocol, and the data used in the second communication protocol includes service data.
4. The data transmission method of claim 3, wherein, The control information is carried in the first heartbeat packet.
5. The data transmission method according to claim 3 or 4, characterized in that, The data used for the second communication protocol also includes notification information and a response to the service data, wherein the notification information is used to indicate that a switch to a connected state has been made. The step of transmitting data for the second communication protocol with the access device according to the control information includes: The notification information is sent to the access device based on the time information. Based on the time information, receive the service data sent by the access device; A response to sending the service data to the access device.
6. The data transmission method according to claim 3 or 4, characterized by, The step of transmitting data for the second communication protocol with the access device according to the control information includes: Based on the time information, the service data broadcast by the access device is received.
7. The data transmission method according to any one of claims 1-6, characterized by, Before receiving control information via the first communication protocol, the method further includes: The second heartbeat packet is received through the first communication protocol, and the second heartbeat packet is used to maintain the link of the first communication protocol.
8. The data transmission method according to any one of claims 1-7, characterized by, The first communication protocol includes the StarFlash protocol or the Bluetooth protocol.
9. The data transmission method according to any one of claims 1-8, characterized by, The second communication protocol includes the Wi-Fi protocol.
10. A data transmission method, characterized by, The data transmission method is applied to an access device, and the data transmission method includes: Control information is sent via a first communication protocol, the control information being used to instruct the transmission of data for a second communication protocol; Based on the control information, the data used for the second communication protocol is transmitted to the terminal device.
11. The data transmission method of claim 10, wherein, The control information is a first heartbeat packet, which is used to maintain the link of the second communication protocol; the data used for the second communication protocol is the response to the first heartbeat packet.
12. The data transmission method of claim 10, wherein, The control information includes time information for transmitting the data used in the second communication protocol, and the data used in the second communication protocol includes service data.
13. The data transmission method of claim 12, wherein, The control information is carried in the first heartbeat packet.
14. The data transmission method of claim 12 or 13, characterized by, The data used for the second communication protocol also includes notification information and a response to the service data, wherein the notification information is used to indicate that the terminal device has switched to a connected state; The step of transmitting the data for the second communication protocol to the terminal device according to the control information includes: Receive the notification information sent by the terminal device; Based on the notification information and the time information, the service data is sent to the terminal device; The response to receiving the service data sent by the terminal device.
15. The data transmission method of claim 12 or 13, characterized by, The transmission of the data for the second communication protocol to the terminal device includes: The service data is broadcast based on the time information.
16. The data transmission method according to any one of claims 11-15, characterized by, Before sending control information via the first communication protocol, the method further includes: A second heartbeat packet is sent via the first communication protocol, and the second heartbeat packet is used to maintain the link of the first communication protocol.
17. The data transmission method according to any of claims 11-16, characterized by, The first communication protocol includes the StarFlash protocol or the Bluetooth protocol.
18. The data transmission method of any of claims 11-17, wherein, The second communication protocol includes the Wi-Fi protocol.
19. A data transmission apparatus, characterized by comprising: The data transmission device includes a processor and a communication circuit, wherein the processor is configured to control the communication circuit to perform the method as described in any one of claims 1-18.
20. A data transmission apparatus, characterized by comprising: The data transmission device includes a module for performing the method as described in any one of claims 1-18.
21. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code that can be invoked by a processor to execute the method described in any one of claims 1 to 18.
22. A computer program product, characterised in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-18.