WO2020015573A1 - Data transmission method and system - Google Patents

Data transmission method and system Download PDF

Info

Publication number
WO2020015573A1
WO2020015573A1 PCT/CN2019/095532 CN2019095532W WO2020015573A1 WO 2020015573 A1 WO2020015573 A1 WO 2020015573A1 CN 2019095532 W CN2019095532 W CN 2019095532W WO 2020015573 A1 WO2020015573 A1 WO 2020015573A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless
frame
control device
wireless device
response frame
Prior art date
Application number
PCT/CN2019/095532
Other languages
French (fr)
Chinese (zh)
Inventor
陶震
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020015573A1 publication Critical patent/WO2020015573A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/28Discontinuous transmission [DTX]; Discontinuous reception [DRX]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of the Internet, and in particular, to a data transmission method and system.
  • a wireless device for example, a WiFi device
  • a wireless access device for example, a wireless access point AP
  • the wireless device After the wireless device successfully connects to the wireless access device, it will periodically be in a low-power sleep state. At this time, if the configurator of the wireless device sends a wireless frame to the wireless device, there is no guarantee The wireless device received a wireless frame.
  • the embodiments of the present application provide a data transmission method and system to solve at least the technical problem of poor data transmission reliability between a wireless device and a control device in the prior art.
  • a data transmission method including: a control device determining whether a wireless device exits a low-power sleep state, wherein the wireless device is connected to a wireless access device; In the sleep-consuming state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device; if the wireless device exits the low-power sleep state, the control device sends the wireless frame To the wireless device, and receive the response frame returned by the wireless device.
  • a data transmission method including: a control device sends a wireless frame to the wireless device through a wireless access device, wherein the wireless device is connected to the wireless access device; the control device receives The response frame corresponding to the wireless frame returned by the wireless device.
  • a data transmission method includes: controlling the device to send a wireless frame to the wireless device, wherein the wireless device is connected to the wireless access device, and the wireless device exits the low-power sleep state ; The control device receives a response frame corresponding to the wireless frame returned by the wireless device.
  • a data transmission system including: a wireless device connected to the wireless access device; and a control device for determining whether the wireless device exits the low-power sleep state. If the low-power sleep state is not exited, the wireless frame is sent to the wireless device through the wireless access device. If the wireless device exits the low-power sleep state, the wireless frame is sent to the wireless device; the wireless device is used to In the power consumption sleep state, the response frame corresponding to the wireless frame is sent to the control device through the wireless access device. If the low power consumption sleep state is exited, the response frame is sent to the control device.
  • a storage medium includes a stored program, and when the program runs, the device where the storage medium is located performs the following steps: the control device determines whether the wireless device exits low power consumption Sleep state; if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device and receives a response frame corresponding to the wireless frame returned by the wireless device, where the wireless device and the wireless connection If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device.
  • a processor is further provided for running a program.
  • the program executes the following steps when the program runs: the control device determines whether the wireless device exits the low-power sleep state; if the wireless device is not Exiting the low-power sleep state, the control device sends a wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, where the wireless device is connected to the wireless access device; if the wireless device Exiting the low-power sleep state, the control device sends a wireless frame to the wireless device and receives a response frame returned by the wireless device.
  • a data transmission system including: a processor; and a memory connected to the processor and configured to provide the processor with instructions for processing the following processing steps: the control device determines the wireless device Whether to exit the low-power sleep state; if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, wherein, The wireless device is connected to the wireless access device; if the wireless device exits the low-power sleep state, the control device sends a wireless frame to the wireless device and receives a response frame returned by the wireless device.
  • a data transmission method is further provided, which includes: controlling the device to determine whether the wireless device is in a low-power sleep state, wherein the wireless device is connected to the wireless access device; In the sleep state of power consumption, the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device; if the wireless device is not in the low-power sleep state, the control device will wirelessly The frame is sent to the wireless device and receives the response frame returned by the wireless device.
  • the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends a wireless frame to the wireless device through the wireless access device, and Receive the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device and the wireless device. data transmission.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
  • the solution of the embodiment of the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • FIG. 1 is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a data transmission method according to an embodiment of the present application;
  • FIG. 2 is a schematic diagram of an optional computer terminal as a transmitting end according to an embodiment of the present application
  • FIG. 3 is a flowchart of a data transmission method according to Embodiment 1 of the present application.
  • FIG. 4 is a flowchart of a first optional data transmission method according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a second optional data transmission method according to an embodiment of the present application.
  • FIG. 6 is a flowchart of a third optional data transmission method according to an embodiment of the present application.
  • FIG. 7 is a flowchart of a fourth optional data transmission method according to an embodiment of the present application.
  • FIG. 9 is a flowchart of a data transmission method according to Embodiment 3 of the present application.
  • FIG. 10 is a schematic diagram of a data transmission device according to Embodiment 4 of the present application.
  • FIG. 11 is a schematic diagram of a data transmission device according to Embodiment 5 of the present application.
  • FIG. 12 is a schematic diagram of a data transmission device according to Embodiment 6 of the present application.
  • FIG. 13 is a schematic diagram of a data transmission system according to an embodiment of the present application.
  • FIG. 14 is a flowchart of a data transmission method according to Embodiment 8 of the present application.
  • FIG. 15 is a structural block diagram of a computer terminal according to an embodiment of the present application.
  • WiFi DPP Device network configuration protocol specified by the WiFi Alliance.
  • Wireless access point AP It can be the most commonly used device in the component small wireless local area network, which is equivalent to a bridge connecting the wired network and the wireless network. Its main role is to connect the wireless network clients together, and then connect the wireless network. Ethernet.
  • an embodiment of a data transmission method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. The logical order is shown in the flowchart, but in some cases the steps shown or described may be performed in a different order than here.
  • FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a data transmission method.
  • the computer terminal 10 may include one or more (shown with 102a, 102b, ..., 102n in the figure) a processor 102 (the processor 102 may include but is not limited to a microcomputer).
  • a processing device such as a processor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for a communication function.
  • the computer terminal 10 can also include: display, input / output interface (I / O interface), universal serial bus (USB) port (can be included as one of the ports of I / O interface), network interface, power supply And / or camera.
  • I / O interface input / output interface
  • USB universal serial bus
  • FIG. 1 is only schematic, and it does not limit the structure of the electronic device.
  • the computer terminal 10 may further include more or fewer components than those shown in FIG. 1, or have a configuration different from that shown in FIG. 1.
  • the aforementioned one or more processors 102 and / or other data processing circuits may generally be referred to herein as "data processing circuits.”
  • the data processing circuit may be fully or partially embodied as software, hardware, firmware, or any other combination.
  • the data processing circuit may be a single independent processing module, or may be wholly or partially incorporated into any one of other elements in the computer terminal 10 (or mobile device).
  • the data processing circuit is controlled as a processor (for example, selection of a variable resistance terminal path connected to an interface).
  • the memory 104 may be used to store software programs and modules of application software, such as a program instruction / data storage device corresponding to the data transmission method in the embodiment of the present application.
  • the processor 102 executes the software programs and modules stored in the memory 104 to execute Various functional applications and data processing, that is, the above-mentioned data transmission method is realized.
  • the memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memory remotely disposed with respect to the processor 102, and these remote memories may be connected to the computer terminal 10 through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the transmission device 106 is used for receiving or transmitting data via a network.
  • a specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10.
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF radio frequency
  • the display may be, for example, a touch screen liquid crystal display (LCD), which may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
  • LCD liquid crystal display
  • FIG. 1 The hardware structure block diagram shown in FIG. 1 is not only an exemplary block diagram of the computer terminal 10 (or mobile device) described above.
  • FIG. 2 shows a block diagram using the computer shown in FIG. 1 above.
  • the terminal 10 (or mobile device) is an embodiment of the transmitting end.
  • the computer terminal 10 (or mobile device) may be connected via a data network or electronically to one or more wireless devices.
  • the computer terminal 10 (or mobile device) may be any mobile computing device or the like.
  • the data network connection can be a local area network connection.
  • FIG. 3 is a flowchart of a data transmission method according to Embodiment 1 of the present application. As shown in FIG. 3, the method may include the following steps:
  • Step S32 The control device determines whether the wireless device exits the low-power sleep state, where the wireless device is connected to the wireless access device.
  • the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc.
  • the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc.
  • a wireless access point AP is taken as an example for detailed description; the foregoing wireless device may be a WiFi device, Bluetooth
  • the device and the like are described in detail in the embodiment of the present application by using a WiFi device as an example.
  • the WiFi device is already connected to the AP.
  • the user can use the "out-of-band" method to bring the wireless device out of the low-power sleep state, so that the wireless device is in wireless In the listening state, you can directly receive the wireless frame sent by the control device.
  • step S34 if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device.
  • the foregoing wireless frame may be a DPP wireless frame
  • the foregoing response frame may be a DPP response frame
  • the wireless device if it is determined that the wireless device has not exited the low-power sleep state, that is, it is determined that the user has not used the "out-of-band" manner to bring the wireless device out of the low-power sleep state, and the wireless device is not in the wireless detection state. Listening status.
  • data can be forwarded through the wireless access device connected to the wireless device.
  • the control device can forward the wireless frame to the wireless device through the wireless access device.
  • the wireless device receives a response frame from the wireless device.
  • step S36 if the wireless device exits the low-power sleep state, the control device sends a wireless frame to the wireless device and receives a response frame returned by the wireless device.
  • the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
  • the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
  • the control device can directly send the wireless frame to the wireless device and receive the response frame returned by the wireless device.
  • FIG. 4 is a flowchart of a first optional data transmission method according to an embodiment of the present application
  • FIG. 5 is a flowchart of a second optional data transmission method according to an embodiment of the present application
  • FIG. 6 is based on A flowchart of a third optional data transmission method according to an embodiment of the present application
  • FIG. 7 is a flowchart of a fourth optional data transmission method according to an embodiment of the present application. The following describes the preferred embodiment of the present application with reference to FIG. 4 to FIG. 7 using the control device as the configurator 10, the wireless device as the WiFi device 20, and the wireless access device as the AP 30.
  • the method may include the following steps:
  • step S41 the configurator 10 sends a DPP wireless frame to the AP 30 on the working channel of the AP 30, and the destination address of the wireless frame is the address of the AP 30.
  • step S42 after receiving the DPP wireless frame, the AP 30 broadcasts or unicasts the DPP wireless frame on the working channel of the AP 30.
  • the destination address of the wireless frame may be the broadcast address or the address of the WiFi device 20.
  • step S43 the WiFi device 20 sends a DPP response frame on the working channel of the AP 30, so that the configurator 10 can receive the response frame.
  • the method may include the following steps:
  • step S51 the configurator 10 connects to the AP 30.
  • step S52 the configurator 10 sends a data frame in a specific format to the AP 30.
  • the data frame encapsulates the content of the DPP wireless frame, and the data frame may be a broadcast frame or a unicast frame.
  • step S53 the WiFi device 20 receives the data frame in the specific format, and analyzes the DPP wireless frame therein.
  • step S54 the WiFi device 20 sends a DPP response frame on the working channel of the AP 30, so that the configurator 10 receives the DPP response frame.
  • the type of the data frame sent by the configurator 10 is the same as the type of the data response frame sent by the WiFi device 20. If the received data frame is a broadcast frame, the AP 30 broadcasts the data frame to the WiFi device 20; if the received data frame is a unicast frame, the AP 30 unicasts the data frame to the WiFi device 20.
  • the method may include the following steps:
  • step S61 the configurator 10 connects to the AP 30.
  • step S62 the configurator 10 sends a data frame in a specific format to the AP 30.
  • the data frame encapsulates the content of the DPP wireless frame, and the data frame may be a broadcast frame or a unicast frame.
  • step S63 the WiFi device 20 receives the data frame in the specific format and analyzes the DPP wireless frame therein.
  • Step S64 the WiFi device 20 sends a data response frame in a specific format to the AP.
  • the data response frame encapsulates the content of the DPP response frame, and the data frame may be a broadcast frame or a unicast frame.
  • step S65 the configurator 10 receives the data response frame in the specific format, and analyzes the DPP response frame encapsulated therein.
  • the type of the data frame sent by the configurator 10 is the same as the type of the data response frame sent by the WiFi device 20. If the received data frame is a broadcast frame, the AP 30 broadcasts the data frame to the WiFi device 20; if the received data frame is a unicast frame, the AP 30 unicasts the data frame to the WiFi device 20.
  • the WiFi device 20 is always in a low-power sleep state and is not in a wireless listening state.
  • the method may include the following steps:
  • step S71 the user uses the "out-of-band" mode to cause the WiFi device 20 to stop the low-power sleep state for a period of time and be in a wireless listening state.
  • step S72 the configurator 10 sends a DPP wireless frame to the WiFi device 20 on the working channel of the AP 30.
  • the WiFi device 20 directly receives the DPP wireless frame.
  • step S73 the WiFi device 20 sends a DPP response frame on the working channel of the AP 30, so that the configurator 10 receives the response frame.
  • step S74 the WiFi device 20 resumes the low-power sleep state after a period of time.
  • the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless access device through The wireless device receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device. Data transmission with wireless devices.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
  • the solution of the first embodiment provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • step S34 the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device, including:
  • Step S342 The control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device.
  • the target working channel is the working channel of the wireless access device.
  • the wireless frame may be forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
  • the control device may use the address of the wireless access device as the destination address of the wireless frame.
  • the wireless access device In order for the wireless access device to forward the wireless frame to the wireless device, when the wireless access device broadcasts the wireless frame, the broadcast address can be used as the destination address of the wireless frame; when the wireless access device unicasts the wireless frame, it can use the The address of the wireless device is used as the destination address of the wireless frame.
  • Step S344 The control device receives a response frame through the target working channel.
  • the control device may send a wireless frame to the wireless access device on the working channel of the wireless access device.
  • the working channel broadcasts or unicasts the wireless frame, the wireless device accesses the wireless frame, and sends a response frame on the working channel of the wireless access device, so that the control device can receive the response frame on the working channel of the wireless access device.
  • step S34 the control device sends the wireless frame to the wireless device through the wireless access device, including:
  • Step S346, the control device is connected to the wireless access device.
  • Step S348 The control device sends the data frame carrying the wireless frame to the wireless access device, and forwards the data frame to the wireless device through the wireless access device.
  • the foregoing data frame may be a broadcast frame or may be a unicast frame
  • the wireless access device may determine whether to broadcast the data frame or unicast the data frame according to the format of the data frame.
  • the control device can be connected to the wireless access device. After the connection is successful, the wireless device can send a data frame encapsulated with the wireless frame to the wireless access device. The wireless access device forwards the data to the wireless device according to the type of the data frame, so that the wireless device can receive the wireless frame sent by the control device.
  • step S34 the control device receives the response frame corresponding to the wireless frame returned by the wireless device, including one of the following:
  • Step S3402 the control device receives a response frame through the target working channel.
  • the wireless device may parse the data frame to obtain a wireless frame, and directly convert the corresponding wireless frame.
  • the response frame is sent to the control device on the working channel of the wireless access device, so that the control device receives the response frame on the working channel of the wireless access device.
  • Step S3404 The control device receives a data response frame carrying a response frame sent by the wireless access device, where the data response frame is sent by the wireless device to the wireless access device.
  • the wireless device may parse the data frame to obtain a wireless frame and send the encapsulated data.
  • the data response frame of the response frame is transmitted to the wireless access device, and is forwarded by the wireless access device to the control device, so that the control device accesses the data response frame, and analyzes the data response frame to obtain a response frame.
  • the method before step S348, before the control device sends the data frame carrying the wireless frame to the wireless access device, the method further includes:
  • Step S38 The control device encapsulates the wireless frame according to a preset format to obtain a data frame.
  • the data response frame is obtained by encapsulating the response frame by the wireless device according to a preset format.
  • the foregoing preset format may be a format of a broadcast frame or a format of a unicast frame, and a format in which a control device encapsulates a wireless frame is the same as a format in which a wireless device encapsulates a response frame.
  • the control device before sending the wireless frame, may encapsulate the wireless frame according to a preset format, obtain a data frame, and pass the data frame through wireless access.
  • the device sends to the wireless device; before sending the response frame, the wireless device may encapsulate the response frame in a preset format to obtain a data response frame, and send the data response frame to the control device through the wireless access device.
  • step S36 the control device sends the wireless frame to the wireless device and receives a response frame returned by the wireless device, including:
  • Step S362 The control device sends the wireless frame to the wireless access device through the target working channel.
  • Step S364 The control device receives a response frame through the target working channel.
  • the user uses the "out-of-band" mode to bring the wireless device out of the low-power sleep state, and the control device can switch the wireless device on the working channel of the wireless access device.
  • the frame is sent directly to the wireless device, and the wireless device can directly send the response frame to the control device on the working channel of the wireless access device, so that the control device can receive the response frame on the working channel of the wireless access device.
  • the method according to the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is Better implementation.
  • the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.
  • an embodiment of a data transmission method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
  • FIG. 8 is a flowchart of a data transmission method according to Embodiment 2 of the present application. As shown in FIG. 8, the method may include the following steps:
  • Step S82 The control device sends the wireless frame to the wireless device through the wireless access device, where the wireless device is connected to the wireless access device.
  • the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc.
  • the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc.
  • a wireless access point AP is taken as an example for detailed description
  • the foregoing wireless device may be a WiFi device, Bluetooth
  • a WiFi device is taken as an example for detailed description.
  • the WiFi device is connected to the AP.
  • the foregoing wireless frame may be a DPP wireless frame.
  • Step S84 The control device receives a response frame corresponding to the wireless frame returned by the wireless device.
  • the above response frame may be a DPP response frame.
  • the wireless device after the wireless device is connected to the wireless access device, when the wireless device is in a low-power sleep state, in order to ensure the data transmission between the control device and the wireless device, the wireless device The wireless access device performs data forwarding. Specifically, the control device may forward the wireless frame to the wireless device through the wireless access device, and receives a response frame returned by the wireless device.
  • the control device sends a wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, thereby implementing data transmission between the control device and the wireless device.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device.
  • the wireless device can receive the control device transmission when the wireless device is in a low-power sleep state
  • the wireless frame achieves the technical effect of improving the reliability of data transmission between the wireless device and the control device, and improving the user's experience and favorability.
  • Embodiment 2 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • step S82 the control device sends the wireless frame to the wireless device through the wireless access device, including:
  • Step S822 The control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device.
  • the target working channel is the working channel of the wireless access device.
  • the wireless frame may be forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
  • the control device may use the address of the wireless access device as the destination address of the wireless frame.
  • the wireless access device In order for the wireless access device to forward the wireless frame to the wireless device, when the wireless access device broadcasts the wireless frame, the broadcast address can be used as the destination address of the wireless frame; when the wireless access device unicasts the wireless frame, it can use The address of the wireless device is used as the destination address of the wireless frame.
  • Step S84 The control device receiving the response frame corresponding to the wireless frame returned by the wireless device includes:
  • Step S842 The control device receives a response frame through the target working channel.
  • the control device may send a wireless frame to the wireless access device on the working channel of the wireless access device.
  • the working channel broadcasts or unicasts the wireless frame, the wireless device accesses the wireless frame, and sends a response frame on the working channel of the wireless access device, so that the control device can receive the response frame on the working channel of the wireless access device.
  • step S82 the control device sends the wireless frame to the wireless device through the wireless access device, including:
  • Step S824 the control device is connected to the wireless access device.
  • Step S826 The control device sends the data frame carrying the wireless frame to the wireless access device, and forwards the data frame to the wireless device through the wireless access device.
  • the foregoing data frame may be a broadcast frame or may be a unicast frame
  • the wireless access device may determine whether to broadcast the data frame or unicast the data frame according to the format of the data frame.
  • the control device can be connected to the wireless access device. After the connection is successful, the wireless device can send a data frame encapsulated with the wireless frame to the wireless access device. The wireless access device forwards the data to the wireless device according to the type of the data frame, so that the wireless device can receive the wireless frame sent by the control device.
  • step S84 the control device receives the response frame corresponding to the wireless frame returned by the wireless device, including one of the following:
  • Step S844 The control device receives a response frame through the target working channel.
  • the wireless device may parse the data frame to obtain a wireless frame, and directly convert the corresponding wireless frame.
  • the response frame is sent to the control device on the working channel of the wireless access device, so that the control device receives the response frame on the working channel of the wireless access device.
  • Step S846 The control device receives a data response frame carrying a response frame sent by the wireless access device, where the data response frame is sent by the wireless device to the wireless access device.
  • the wireless device may parse the data frame to obtain a wireless frame and send the encapsulated data.
  • the data response frame of the response frame is transmitted to the wireless access device, and is forwarded by the wireless access device to the control device, so that the control device accesses the data response frame, and analyzes the data response frame to obtain a response frame.
  • the method according to the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is Better implementation.
  • the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.
  • an embodiment of a data transmission method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
  • FIG. 9 is a flowchart of a data transmission method according to Embodiment 3 of the present application. As shown in FIG. 9, the method may include the following steps:
  • Step S92 The control device sends the wireless frame to the wireless device, wherein the wireless device is connected to the wireless access device, and the wireless device exits the low-power sleep state.
  • the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc.
  • the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc.
  • a wireless access point AP is taken as an example for detailed description
  • the foregoing wireless device may be a WiFi device, Bluetooth
  • a WiFi device is taken as an example for detailed description.
  • the WiFi device is connected to the AP.
  • the foregoing wireless frame may be a DPP wireless frame.
  • the user can use the "out-of-band" method to bring the wireless device out of the low-power sleep state, so that the wireless device is in wireless In the listening state, you can directly receive the wireless frame sent by the control device.
  • the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
  • the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
  • Step S94 The control device receives a response frame corresponding to the wireless frame returned by the wireless device.
  • the above response frame may be a DPP response frame.
  • the control device can directly send the wireless frame to the wireless device and receive the response frame returned by the wireless device.
  • the control device when the wireless device exits the low-power sleep state, the control device sends a wireless frame to the wireless device, and the control device receives a response frame corresponding to the wireless frame returned by the wireless device, thereby achieving Controls data transmission between the device and the wireless device.
  • the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless frame sent by the control device can be received, thereby improving the wireless device.
  • Embodiment 3 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • step S92 the control device sends the wireless frame to the wireless device, including:
  • Step S922 The control device sends the wireless frame to the wireless access device through a target working channel, where the target working channel is a working channel of the wireless access device.
  • Step S94 The control device receives a response frame returned by the wireless device, including:
  • Step S942 The control device receives a response frame through the target working channel.
  • the user uses the "out-of-band" mode to bring the wireless device out of the low-power sleep state, and the control device can switch the wireless device on the working channel of the wireless access device.
  • the frame is sent directly to the wireless device, and the wireless device can directly send the response frame to the control device on the working channel of the wireless access device, so that the control device can receive the response frame on the working channel of the wireless access device.
  • the method according to the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is Better implementation.
  • the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.
  • the device 1000 includes a determination module 1002, a first transmission module 1004, and a second transmission module 1006.
  • the determining module 1002 is configured to determine whether the wireless device exits the low-power sleep state, wherein the wireless device is connected to the wireless access device; and the first transmission module 1004 is configured to pass the wireless device if the wireless device does not exit the low-power sleep state.
  • the access device sends the wireless frame to the wireless device, and receives a response frame corresponding to the wireless frame returned by the wireless device;
  • the second transmission module 1006 is configured to send the wireless frame to the wireless device if the wireless device exits the low-power sleep state, And receive the response frame returned by the wireless device.
  • the foregoing device may be a device for data transmission in a control device
  • the foregoing control device may be a device configured by a configurator of a wireless device, for example, a smart phone (including an Android phone and an IOS phone), a tablet Computers, IPADs, PDAs, laptops, etc. are not specifically limited in this application;
  • the above wireless access devices may be wireless access points AP, routers, gateways, etc.
  • the wireless access point AP is used as
  • the above wireless device may be a WiFi device, a Bluetooth device, etc.
  • a WiFi device is taken as an example for detailed description.
  • the WiFi device is connected to an AP.
  • the above wireless frame may be a DPP wireless device.
  • Frame the above response frame may be a DPP response frame.
  • the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
  • the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
  • the above-mentioned judgment module 1002, the first transmission module 1004, and the second transmission module 1006 correspond to steps S32 to S36 in Embodiment 1. Examples and application scenarios implemented by the three modules and corresponding steps The same, but not limited to the content disclosed in the first embodiment. It should be noted that, as part of the device, the above modules can be run in the computer terminal 10 provided in Embodiment 1.
  • the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless access device through The wireless device receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device. Data transmission with wireless devices.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
  • Embodiment 4 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • the first transmission module includes: a first sending unit, configured to send a wireless frame to a wireless access device through a target working channel, and forward the wireless frame to the wireless device through the wireless access device, where:
  • the target working channel is a working channel of the wireless access device;
  • the first receiving unit is configured to receive a response frame through the target working channel.
  • the first transmission module includes: a connecting unit for a wireless access device; and a second sending unit for sending a data frame carrying a wireless frame to the wireless access device, and the wireless access The device forwards the data frame to the wireless device.
  • the first transmission module includes one of the following: a second receiving unit configured to receive a response frame through a target working channel; or a third receiving unit configured to receive a response frame sent by a wireless access device.
  • a data response frame where the data response frame is sent by the wireless device to the wireless access device.
  • the device further includes: a packaging module for packaging the wireless frame according to a preset format to obtain a data frame, wherein the data response frame is obtained by packaging the response frame by the wireless device according to the preset format.
  • the second transmission module includes: a third sending unit for sending a wireless frame to the wireless access device through a target working channel; and a fourth receiving unit for receiving a response frame through the target working channel.
  • the device 1100 includes a first sending module 1102 and a first receiving module 1104.
  • the first sending module 1102 is configured to send a wireless frame to the wireless device through the wireless access device, wherein the wireless device is connected to the wireless access device; the first receiving module 1104 is configured to receive a response corresponding to the wireless frame returned by the wireless device. frame.
  • the foregoing device may be a device for data transmission in a control device
  • the control device may be a device configured by a configurator of a wireless device, for example, a smart phone (including an Android phone and an IOS phone), a tablet computer , IPAD, palmtop computer, notebook computer, etc.
  • the above wireless access device may be a wireless access point AP, router, gateway, etc.
  • a wireless access point AP is used as an example.
  • the above wireless device may be a WiFi device, a Bluetooth device, etc.
  • a WiFi device is taken as an example to describe in detail that the WiFi device is connected to an AP; for a WiFi device, the above wireless frame may be a DPP wireless frame
  • the above response frame may be a DPP response frame.
  • first sending module 1102 and first receiving module 1104 correspond to steps S82 to S84 in Embodiment 2.
  • the examples and application scenarios implemented by the two modules and the corresponding steps are the same, but not It is limited to the content disclosed in the second embodiment.
  • the above modules can be run in the computer terminal 10 provided in Embodiment 1.
  • the control device sends a wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, thereby implementing data transmission between the control device and the wireless device.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device.
  • the wireless device can receive the control device transmission when the wireless device is in a low-power sleep state
  • the wireless frame achieves the technical effect of improving the reliability of data transmission between the wireless device and the control device, and improving the user's experience and favorability.
  • Embodiment 5 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • the first sending module includes: a first sending unit, configured to send a wireless frame to a wireless access device through a target working channel, and forward the wireless frame to the wireless device through the wireless access device.
  • the target working channel is a working channel of the wireless access device.
  • the first receiving module includes a first receiving unit configured to receive a response frame through the target working channel.
  • the wireless frame may be forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
  • the first sending module includes: a connecting unit for connecting a wireless access device; and a second sending unit for sending a data frame carrying a wireless frame to the wireless access device, and the wireless receiving device The incoming device forwards the data frame to the wireless device.
  • the first receiving module includes one of the following: a second receiving unit configured to receive a response frame through a target working channel; and a third receiving unit configured to receive a response frame sent by a wireless access device.
  • a data response frame where the data response frame is sent by the wireless device to the wireless access device.
  • the device 1200 includes a second sending module 1202 and a second receiving module 1204.
  • the second sending module 1202 is configured to send the wireless frame to the wireless device.
  • the wireless device is connected to the wireless access device, and the wireless device exits the low-power sleep state.
  • the second receiving module 1204 is configured to receive the wireless returned by the wireless device.
  • the response frame corresponding to the frame.
  • the foregoing device may be a device for data transmission in a control device
  • the control device may be a device configured by a configurator of a wireless device, for example, a smart phone (including an Android phone and an IOS phone), a tablet computer , IPAD, palmtop computer, notebook computer, etc.
  • the above wireless access device may be a wireless access point AP, router, gateway, etc.
  • a wireless access point AP is used as an example.
  • the above wireless device may be a WiFi device, a Bluetooth device, etc.
  • a WiFi device is taken as an example to describe in detail that the WiFi device is connected to an AP; for a WiFi device, the above wireless frame may be a DPP wireless frame
  • the above response frame may be a DPP response frame.
  • the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
  • the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
  • the above-mentioned second sending module 1202 and second receiving module 1204 correspond to steps S92 to S94 in Embodiment 3.
  • the two modules and the corresponding steps implement the same instances and application scenarios, but not It is limited to the content disclosed in the third embodiment.
  • the above-mentioned module can be run in the computer terminal 10 provided in the first embodiment as a part of the device.
  • the control device when the wireless device exits the low-power sleep state, the control device sends a wireless frame to the wireless device, and the control device receives a response frame corresponding to the wireless frame returned by the wireless device, thereby achieving Controls data transmission between the device and the wireless device.
  • the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless frame sent by the control device can be received, thereby improving the wireless device.
  • Embodiment 6 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • the second sending module includes: a third sending unit, configured to send a wireless frame to the wireless access device through a target working channel, where the target working channel is a working channel of the wireless access device; a fourth The receiving unit is configured to receive a response frame through a target working channel.
  • a data transmission system is also provided.
  • FIG. 13 is a schematic diagram of a data transmission system according to an embodiment of the present application. As shown in FIG. 13, the system includes a wireless device 132, a wireless access device connection 134, and a control device 136.
  • the wireless device 132 is connected to the wireless access device 134; the control device 136 is used to determine whether the wireless device exits the low-power sleep state. If the wireless device does not exit the low-power sleep state, the wireless frame is sent by the wireless access device. To the wireless device, if the wireless device exits the low-power sleep state, the wireless frame is sent to the wireless device; if the wireless device does not exit the low-power sleep state, the wireless device sends a response frame corresponding to the wireless frame through the wireless access device. To the control device, if it exits the low-power sleep state, it sends a response frame to the control device.
  • the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc.
  • the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc.
  • a wireless access point AP is taken as an example for detailed description
  • the foregoing wireless device may be a WiFi device, Bluetooth
  • a WiFi device is taken as an example for detailed description.
  • the WiFi device is connected to an AP.
  • the foregoing wireless frame may be a DPP wireless frame
  • the foregoing response frame may be a DPP response frame.
  • the user can use the "out-of-band" method to bring the wireless device out of the low-power sleep state, so that the wireless device is in wireless In the listening state, you can directly receive the wireless frame sent by the control device.
  • the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
  • the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
  • the wireless device if it is determined that the wireless device has not exited the low-power sleep state, that is, it is determined that the user has not used the "out-of-band" manner to bring the wireless device out of the low-power sleep state, and the wireless device is not in the wireless detection state. Listening status.
  • data can be forwarded through the wireless access device connected to the wireless device.
  • the control device can forward the wireless frame to the wireless device through the wireless access device.
  • the wireless device receives a response frame from the wireless device.
  • the control device may directly The wireless frame is sent to the wireless device and receives the response frame returned by the wireless device.
  • the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless access device through The wireless device receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device. Data transmission with wireless devices.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
  • Embodiment 7 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • an embodiment of a data transmission method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
  • FIG. 14 is a flowchart of a data transmission method according to Embodiment 8 of the present application. As shown in FIG. 8, the method may include the following steps:
  • step S142 the control device determines whether the wireless device is in a low-power sleep state, where the wireless device is connected to the wireless access device.
  • the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc.
  • the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc.
  • a wireless access point AP is taken as an example for detailed description; the foregoing wireless device may be a WiFi device, Bluetooth
  • the device and the like are described in detail in the embodiment of the present application by using a WiFi device as an example.
  • the WiFi device is already connected to the AP.
  • the user can use the "out-of-band" method to bring the wireless device out of the low-power sleep state, so that the wireless device is in wireless In the listening state, you can directly receive the wireless frame sent by the control device.
  • Step S144 If the wireless device is in a low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device.
  • the foregoing wireless frame may be a DPP wireless frame
  • the foregoing response frame may be a DPP response frame
  • data can be forwarded through the wireless access device connected to the wireless device.
  • the control device can forward the wireless frame to the wireless through the wireless access device.
  • Device receives a response frame from the wireless device.
  • Step S146 if the wireless device is not in a low-power sleep state, the control device sends the wireless frame to the wireless device and receives a response frame returned by the wireless device.
  • the wireless device may be controlled in a preset manner not to be in a low-power sleep state within a preset period of time, that is, the wireless device may be controlled to exit the low-power sleep state within a preset period of time.
  • the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
  • the control device can directly send the wireless frame to the wireless device and receive the response frame returned by the wireless device.
  • the control device determines whether the wireless device is in a low-power sleep state, if the wireless device is in a low-power sleep state, the control device sends a wireless frame to the wireless device through the wireless access device. Device, and receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device is not in a low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device Data transmission with wireless devices.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
  • Embodiment 8 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • step S144 the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device, including:
  • Step S1442 The control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device.
  • the target working channel is the working channel of the wireless access device.
  • the wireless frame may be forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
  • Step S1444 the control device receives a response frame through the target working channel.
  • step S144 the control device sends the wireless frame to the wireless device through the wireless access device, including:
  • Step S1446, the control device is connected to the wireless access device.
  • Step S1448 The control device sends the data frame carrying the wireless frame to the wireless access device, and forwards the data frame to the wireless device through the wireless access device.
  • step S144 the control device receives the response frame corresponding to the wireless frame returned by the wireless device, including one of the following:
  • Step S1402 The control device receives a response frame through the target working channel.
  • Step S1404 The control device receives a data response frame carrying a response frame sent by the wireless access device, where the data response frame is sent by the wireless device to the wireless access device.
  • the method before step S1448, before the control device sends the data frame carrying the wireless frame to the wireless access device, the method further includes:
  • Step S148 The control device encapsulates the wireless frame according to a preset format to obtain a data frame.
  • the data response frame is obtained by encapsulating the response frame by the wireless device according to a preset format.
  • step S146 the control device sends the wireless frame to the wireless device and receives a response frame returned by the wireless device, including:
  • Step S1462 the control device sends the wireless frame to the wireless access device through the target working channel.
  • Step S1464 The control device receives a response frame through the target working channel.
  • a data transmission system including:
  • the memory is connected to the processor and provides instructions for the processor to process the following processing steps: the control device determines whether the wireless device exits the low-power sleep state; if the wireless device does not exit the low-power sleep state, the control device wirelessly The incoming device sends the wireless frame to the wireless device and receives the response frame corresponding to the wireless frame returned by the wireless device, where the wireless device is connected to the wireless access device; if the wireless device exits the low-power sleep state, the control device sends the wireless frame Send to the wireless device and receive the response frame returned by the wireless device.
  • the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless access device through The wireless device receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device. Data transmission with wireless devices.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
  • Embodiment 8 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • An embodiment of the present application may provide a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group.
  • the computer terminal described above may also be replaced with a terminal device such as a mobile terminal.
  • the computer terminal may be located in at least one network device among multiple network devices in a computer network.
  • the computer terminal may execute the program code of the following steps in the data transmission method: the control device determines whether the wireless device exits the low-power sleep state, wherein the wireless device is connected to the wireless access device; if the wireless device does not exit In the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device; if the wireless device exits the low-power sleep state, the control device will wirelessly The frame is sent to the wireless device and receives the response frame returned by the wireless device.
  • FIG. 15 is a structural block diagram of a computer terminal according to an embodiment of the present application.
  • the computer terminal A may include: one or more processors (only one is shown in the figure) a processor 152 and a memory 154.
  • the memory may be used to store software programs and modules, such as program instructions / modules corresponding to the data transmission method and device in the embodiments of the present application.
  • the processor executes various functional applications by running the software programs and modules stored in the memory. And data processing, that is, the above-mentioned data transmission method is implemented.
  • the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory.
  • the memory may further include a memory remotely set with respect to the processor, and these remote memories may be connected to the terminal A through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the processor may call the information and application stored in the memory through the transmission device to perform the following steps: the control device determines whether the wireless device exits the low-power sleep state, wherein the wireless device is connected to the wireless access device; In the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device and receives the response frame corresponding to the wireless frame returned by the wireless device; if the wireless device exits the low-power sleep state, the control device will The frame is sent to the wireless device and receives the response frame returned by the wireless device.
  • the processor may further execute the program code of the following steps: the control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device, where the target works The channel is the working channel of the wireless access device; the control device receives the response frame through the target working channel.
  • the processor may further execute the program code of the following steps: the wireless frame is forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
  • the processor may further execute the program code of the following steps: the control device is connected to the wireless access device; the control device sends the data frame carrying the wireless frame to the wireless access device, and the data frame is transmitted by the wireless access device Forward to wireless device.
  • the processor may further execute the program code of the following steps: the control device receives a response frame through the target working channel; the control device receives a data response frame carrying a response frame sent by the wireless access device, where the data response frame is The wireless device sends to the wireless access device.
  • the processor may further execute the program code of the following steps: before the control device sends the data frame carrying the wireless frame to the wireless access device, the control device encapsulates the wireless frame according to a preset format to obtain a data frame The data response frame is obtained by encapsulating the response frame by the wireless device according to a preset format.
  • the processor may further execute the program code of the following steps: the control device sends the wireless frame to the wireless access device through the target working channel; and the control device receives the response frame through the target working channel.
  • the processor may further execute the program code of the following steps: controlling the wireless device to exit the low-power sleep state within a preset time period in a preset manner.
  • the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device and receives The response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the data of the control device and the wireless device. transmission.
  • the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped.
  • the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
  • the solution of the embodiment of the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
  • FIG. 15 is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (Mobile Internet Devices ), PAD and other terminal equipment.
  • FIG. 15 does not limit the structure of the electronic device.
  • the computer terminal A may further include more or less components (such as a network interface, a display device, etc.) than those shown in FIG. 15, or have a configuration different from that shown in FIG. 15.
  • the program may be stored in a computer-readable storage medium, and the storage medium may Including: flash disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
  • An embodiment of the present application further provides a storage medium.
  • the storage medium may be used to store program code executed by the data transmission method provided in the first embodiment.
  • the foregoing storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
  • the storage medium is configured to store program code for performing the following steps: the control device determines whether the wireless device exits the low-power sleep state, where the wireless device is connected to the wireless access device; if If the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, then The control device sends a wireless frame to the wireless device and receives a response frame returned by the wireless device.
  • the above storage medium is further configured to store program code for performing the following steps: the control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device
  • the target working channel is the working channel of the wireless access device; the control device receives the response frame through the target working channel.
  • the storage medium is further configured to store program code for performing the following steps: the wireless frame is forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
  • the storage medium is further configured to store program code for performing the following steps: the control device is connected to the wireless access device; the control device sends a data frame carrying the wireless frame to the wireless access device, and the wireless access device is The incoming device forwards the data frame to the wireless device.
  • the storage medium is further configured to store program code for performing the following steps: the control device receives a response frame through a target working channel; the control device receives a data response frame carrying a response frame sent by the wireless access device, where The data response frame is sent by the wireless device to the wireless access device.
  • the storage medium is further configured to store program code for performing the following steps: before the control device sends the data frame carrying the wireless frame to the wireless access device, the control device performs the wireless frame according to a preset format.
  • the data frame is obtained by encapsulation.
  • the data response frame is obtained by encapsulating the response frame by the wireless device according to a preset format.
  • the storage medium is further configured to store program code for performing the following steps: the control device sends a wireless frame to the wireless access device through a target working channel; and the control device receives a response frame through the target working channel.
  • the storage medium is further configured to store program code for performing the following steps: controlling the wireless device to exit the low-power sleep state within a preset time period in a preset manner.
  • the disclosed technical content can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be combined. Integration into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium. , Including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
  • the foregoing storage media include: U disks, Read-Only Memory (ROM), Random Access Memory (RAM), mobile hard disks, magnetic disks, or optical disks, and other media that can store program codes .

Landscapes

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

Abstract

Disclosed are a data transmission method and system. The method comprises: a control device determining whether a wireless device exits from low-power-consumption dormancy, wherein the wireless device is connected to a wireless access device; if the wireless device does not exit from low-power-consumption dormancy, the control device sending a wireless frame to the wireless device through the wireless access device, and receiving a response frame that corresponds to the wireless frame and is returned by the wireless device; and if the wireless device exits from low-power-consumption dormancy, the control device sending the wireless frame to the wireless device, and receiving the response frame returned by the wireless device. The present application solves the technical problem in the prior art of poor reliability of data transmission between a wireless device and a control device.

Description

数据传输方法和系统Data transmission method and system
本申请要求2018年07月19日递交的申请号为201810798730.9、发明名称为“数据传输方法和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed on July 19, 2018 with an application number of 201810798730.9 and an invention name of "Data Transmission Method and System", the entire contents of which are incorporated herein by reference.
技术领域Technical field
本申请涉及互联网领域,具体而言,涉及一种数据传输方法和系统。The present application relates to the field of the Internet, and in particular, to a data transmission method and system.
背景技术Background technique
无线设备(例如WiFi设备)可以接入无线接入设备(例如无线接入点AP),从而实现无线设备接入无线网络。为了降低无线设备的功耗,无线设备在成功接入无线接入设备之后,会周期性地处于低功耗休眠状态,此时,如果无线设备的配置者向无线设备发送无线帧,则无法保证无线设备接收到无线帧。A wireless device (for example, a WiFi device) can access a wireless access device (for example, a wireless access point AP), thereby enabling the wireless device to access a wireless network. In order to reduce the power consumption of wireless devices, after the wireless device successfully connects to the wireless access device, it will periodically be in a low-power sleep state. At this time, if the configurator of the wireless device sends a wireless frame to the wireless device, there is no guarantee The wireless device received a wireless frame.
针对现有技术中无线设备和控制设备之间的数据传输可靠性差的问题,目前尚未提出有效的解决方案。Aiming at the problem of poor reliability of data transmission between the wireless device and the control device in the prior art, no effective solution has been proposed at present.
发明内容Summary of the invention
本申请实施例提供了一种数据传输方法和系统,以至少解决现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。The embodiments of the present application provide a data transmission method and system to solve at least the technical problem of poor data transmission reliability between a wireless device and a control device in the prior art.
根据本申请实施例的一个方面,提供了一种数据传输方法,包括:控制设备判断无线设备是否退出低功耗休眠状态,其中,无线设备与无线接入设备连接;如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧;如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。According to an aspect of the embodiments of the present application, a data transmission method is provided, including: a control device determining whether a wireless device exits a low-power sleep state, wherein the wireless device is connected to a wireless access device; In the sleep-consuming state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device; if the wireless device exits the low-power sleep state, the control device sends the wireless frame To the wireless device, and receive the response frame returned by the wireless device.
根据本申请实施例的另一方面,还提供了一种数据传输方法,包括:控制设备通过无线接入设备将无线帧发送至无线设备,其中,无线设备与无线接入设备连接;控制设备接收无线设备返回的无线帧对应的响应帧。According to another aspect of the embodiments of the present application, a data transmission method is further provided, including: a control device sends a wireless frame to the wireless device through a wireless access device, wherein the wireless device is connected to the wireless access device; the control device receives The response frame corresponding to the wireless frame returned by the wireless device.
根据本申请实施例的另一方面,还提供了一种数据传输方法,包括:控制设备将无线帧发送至无线设备,其中,无线设备与无线接入设备连接,无线设备退出低功耗休眠状态;控制设备接收无线设备返回的无线帧对应的响应帧。According to another aspect of the embodiments of the present application, a data transmission method is further provided, which includes: controlling the device to send a wireless frame to the wireless device, wherein the wireless device is connected to the wireless access device, and the wireless device exits the low-power sleep state ; The control device receives a response frame corresponding to the wireless frame returned by the wireless device.
根据本申请实施例的另一方面,还提供了一种数据传输系统,包括:无线设备,与 无线接入设备连接;控制设备,用于判断无线设备是否退出低功耗休眠状态,如果无线设备未退出低功耗休眠状态,则通过无线接入设备将无线帧发送至无线设备,如果无线设备退出低功耗休眠状态,则将无线帧发送至无线设备;无线设备,用于如果未退出低功耗休眠状态,则通过无线接入设备将无线帧对应的响应帧发送至控制设备,如果退出低功耗休眠状态,则将响应帧发送至控制设备。According to another aspect of the embodiments of the present application, a data transmission system is further provided, including: a wireless device connected to the wireless access device; and a control device for determining whether the wireless device exits the low-power sleep state. If the low-power sleep state is not exited, the wireless frame is sent to the wireless device through the wireless access device. If the wireless device exits the low-power sleep state, the wireless frame is sent to the wireless device; the wireless device is used to In the power consumption sleep state, the response frame corresponding to the wireless frame is sent to the control device through the wireless access device. If the low power consumption sleep state is exited, the response frame is sent to the control device.
根据本申请实施例的另一方面,还提供了一种存储介质,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行如下步骤:控制设备判断无线设备是否退出低功耗休眠状态;如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,其中,无线设备与无线接入设备连接;如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。According to another aspect of the embodiments of the present application, a storage medium is also provided. The storage medium includes a stored program, and when the program runs, the device where the storage medium is located performs the following steps: the control device determines whether the wireless device exits low power consumption Sleep state; if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device and receives a response frame corresponding to the wireless frame returned by the wireless device, where the wireless device and the wireless connection If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device.
根据本申请实施例的另一方面,还提供了一种处理器,处理器用于运行程序,其中,程序运行时执行如下步骤:控制设备判断无线设备是否退出低功耗休眠状态;如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,其中,无线设备与无线接入设备连接;如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。According to another aspect of the embodiments of the present application, a processor is further provided for running a program. The program executes the following steps when the program runs: the control device determines whether the wireless device exits the low-power sleep state; if the wireless device is not Exiting the low-power sleep state, the control device sends a wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, where the wireless device is connected to the wireless access device; if the wireless device Exiting the low-power sleep state, the control device sends a wireless frame to the wireless device and receives a response frame returned by the wireless device.
根据本申请实施例的另一方面,还提供了一种数据传输系统,包括:处理器;以及存储器,与处理器连接,用于为处理器提供处理以下处理步骤的指令:控制设备判断无线设备是否退出低功耗休眠状态;如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,其中,无线设备与无线接入设备连接;如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。According to another aspect of the embodiments of the present application, a data transmission system is further provided, including: a processor; and a memory connected to the processor and configured to provide the processor with instructions for processing the following processing steps: the control device determines the wireless device Whether to exit the low-power sleep state; if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, wherein, The wireless device is connected to the wireless access device; if the wireless device exits the low-power sleep state, the control device sends a wireless frame to the wireless device and receives a response frame returned by the wireless device.
根据本申请实施例的另一方面,还提供了一种数据传输方法,包括:控制设备判断无线设备是否处于低功耗休眠状态,其中,无线设备与无线接入设备连接;如果无线设备处于低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧;如果无线设备未处于低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。According to another aspect of the embodiments of the present application, a data transmission method is further provided, which includes: controlling the device to determine whether the wireless device is in a low-power sleep state, wherein the wireless device is connected to the wireless access device; In the sleep state of power consumption, the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device; if the wireless device is not in the low-power sleep state, the control device will wirelessly The frame is sent to the wireless device and receives the response frame returned by the wireless device.
在本申请实施例中,在控制设备判断无线设备是否退出低功耗休眠状态之后,如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设 备,并接收无线设备返回的无线帧对应的响应帧,如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧,从而实现控制设备与无线设备的数据传输。In the embodiment of the present application, after the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends a wireless frame to the wireless device through the wireless access device, and Receive the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device and the wireless device. data transmission.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,或者可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
由此,本申请实施例的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of the embodiment of the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present application and constitute a part of the present application. The schematic embodiments of the present application and the description thereof are used to explain the present application, and do not constitute an improper limitation on the present application. In the drawings:
图1是根据本申请实施例的一种用于实现数据传输方法的计算机终端(或移动设备)的硬件结构框图;1 is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a data transmission method according to an embodiment of the present application;
图2是根据本申请实施例的一种可选的计算机终端作为发送端的示意图;2 is a schematic diagram of an optional computer terminal as a transmitting end according to an embodiment of the present application;
图3是根据本申请实施例1的一种数据传输方法的流程图;3 is a flowchart of a data transmission method according to Embodiment 1 of the present application;
图4是根据本申请实施例的第一种可选的数据传输方法的流程图;4 is a flowchart of a first optional data transmission method according to an embodiment of the present application;
图5是根据本申请实施例的第二种可选的数据传输方法的流程图;5 is a flowchart of a second optional data transmission method according to an embodiment of the present application;
图6是根据本申请实施例的第三种可选的数据传输方法的流程图;6 is a flowchart of a third optional data transmission method according to an embodiment of the present application;
图7是根据本申请实施例的第四种可选的数据传输方法的流程图;7 is a flowchart of a fourth optional data transmission method according to an embodiment of the present application;
图8是根据本申请实施例2的一种数据传输方法的流程图;8 is a flowchart of a data transmission method according to Embodiment 2 of the present application;
图9是根据本申请实施例3的一种数据传输方法的流程图;9 is a flowchart of a data transmission method according to Embodiment 3 of the present application;
图10是根据本申请实施例4的一种数据传输装置的示意图;10 is a schematic diagram of a data transmission device according to Embodiment 4 of the present application;
图11是根据本申请实施例5的一种数据传输装置的示意图;11 is a schematic diagram of a data transmission device according to Embodiment 5 of the present application;
图12是根据本申请实施例6的一种数据传输装置的示意图;12 is a schematic diagram of a data transmission device according to Embodiment 6 of the present application;
图13是根据本申请实施例的一种数据传输系统的示意图;13 is a schematic diagram of a data transmission system according to an embodiment of the present application;
图14是根据本申请实施例8的一种数据传输方法的流程图;以及FIG. 14 is a flowchart of a data transmission method according to Embodiment 8 of the present application; and
图15是根据本申请实施例的一种计算机终端的结构框图。FIG. 15 is a structural block diagram of a computer terminal according to an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only Examples are part of this application, but not all examples. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts should fall within the protection scope of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms “first” and “second” in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data so used may be interchanged where appropriate so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. Furthermore, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units need not be limited to those explicitly listed Those steps or units may instead include other steps or units not explicitly listed or inherent to these processes, methods, products or equipment.
首先,在对本申请实施例进行描述的过程中出现的部分名词或术语适用于如下解释:First, some terms or terms appearing during the description of the embodiments of the present application are applicable to the following explanations:
WiFi DPP:WiFi联盟指定的设备网络配置协议。WiFi DPP: Device network configuration protocol specified by the WiFi Alliance.
无线接入点AP:可以是组件小型无线局域网时最常用的设备,相当于一个连接有线网和无线网的桥梁,其主要作用是将各个无线网络客户端连接到一起,然后将无线网络接入以太网。Wireless access point AP: It can be the most commonly used device in the component small wireless local area network, which is equivalent to a bridge connecting the wired network and the wireless network. Its main role is to connect the wireless network clients together, and then connect the wireless network. Ethernet.
实施例1Example 1
根据本申请实施例,提供了一种数据传输方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to the embodiment of the present application, an embodiment of a data transmission method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. The logical order is shown in the flowchart, but in some cases the steps shown or described may be performed in a different order than here.
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。图1示出了一种用于实现数据传输方法的计算机终端(或移动设备)的硬件结构框图。如图1所示,计算机终端10(或移动设备10)可以包括一个或多个(图中采用102a、102b,……,102n来示出)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。除此以外,还可以包括:显示器、输入/输出接口(I/O接口)、通用串行总线(USB)端口(可以作为I/O接口的端口中的一个端口被包括)、 网络接口、电源和/或相机。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a data transmission method. As shown in FIG. 1, the computer terminal 10 (or mobile device 10) may include one or more (shown with 102a, 102b, ..., 102n in the figure) a processor 102 (the processor 102 may include but is not limited to a microcomputer). A processing device such as a processor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for a communication function. In addition, it can also include: display, input / output interface (I / O interface), universal serial bus (USB) port (can be included as one of the ports of I / O interface), network interface, power supply And / or camera. Persons of ordinary skill in the art can understand that the structure shown in FIG. 1 is only schematic, and it does not limit the structure of the electronic device. For example, the computer terminal 10 may further include more or fewer components than those shown in FIG. 1, or have a configuration different from that shown in FIG. 1.
应当注意到的是上述一个或多个处理器102和/或其他数据处理电路在本文中通常可以被称为“数据处理电路”。该数据处理电路可以全部或部分的体现为软件、硬件、固件或其他任意组合。此外,数据处理电路可为单个独立的处理模块,或全部或部分的结合到计算机终端10(或移动设备)中的其他元件中的任意一个内。如本申请实施例中所涉及到的,该数据处理电路作为一种处理器控制(例如与接口连接的可变电阻终端路径的选择)。It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits may generally be referred to herein as "data processing circuits." The data processing circuit may be fully or partially embodied as software, hardware, firmware, or any other combination. In addition, the data processing circuit may be a single independent processing module, or may be wholly or partially incorporated into any one of other elements in the computer terminal 10 (or mobile device). As mentioned in the embodiments of the present application, the data processing circuit is controlled as a processor (for example, selection of a variable resistance terminal path connected to an interface).
存储器104可用于存储应用软件的软件程序以及模块,如本申请实施例中的数据传输方法对应的程序指令/数据存储装置,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的数据传输方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 may be used to store software programs and modules of application software, such as a program instruction / data storage device corresponding to the data transmission method in the embodiment of the present application. The processor 102 executes the software programs and modules stored in the memory 104 to execute Various functional applications and data processing, that is, the above-mentioned data transmission method is realized. The memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely disposed with respect to the processor 102, and these remote memories may be connected to the computer terminal 10 through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used for receiving or transmitting data via a network. A specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
显示器可以例如触摸屏式的液晶显示器(LCD),该液晶显示器可使得用户能够与计算机终端10(或移动设备)的用户界面进行交互。The display may be, for example, a touch screen liquid crystal display (LCD), which may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
图1示出的硬件结构框图,不仅可以作为上述计算机终端10(或移动设备)的示例性框图,一种可选实施例中,图2以框图示出了使用上述图1所示的计算机终端10(或移动设备)作为发送端的一种实施例。如图2所示,计算机终端10(或移动设备)可以经由数据网络连接或电子连接到一个或多个无线设备。一种可选实施例中,上述计算机终端10(或移动设备)可以是任意移动计算设备等。数据网络连接可以是局域网连接。The hardware structure block diagram shown in FIG. 1 is not only an exemplary block diagram of the computer terminal 10 (or mobile device) described above. In an optional embodiment, FIG. 2 shows a block diagram using the computer shown in FIG. 1 above. The terminal 10 (or mobile device) is an embodiment of the transmitting end. As shown in FIG. 2, the computer terminal 10 (or mobile device) may be connected via a data network or electronically to one or more wireless devices. In an optional embodiment, the computer terminal 10 (or mobile device) may be any mobile computing device or the like. The data network connection can be a local area network connection.
在上述运行环境下,本申请提供了如图3所示的数据传输方法。图3是根据本申请实施例1的一种数据传输方法的流程图。如图3所示,该方法可以包括如下步骤:Under the above operating environment, the present application provides a data transmission method as shown in FIG. 3. FIG. 3 is a flowchart of a data transmission method according to Embodiment 1 of the present application. As shown in FIG. 3, the method may include the following steps:
步骤S32,控制设备判断无线设备是否退出低功耗休眠状态,其中,无线设备与无线接入设备连接。Step S32: The control device determines whether the wireless device exits the low-power sleep state, where the wireless device is connected to the wireless access device.
具体地,上述的控制设备可以是配置无线设备的配置者的设备,例如,可以是智能手机(包括:Android手机和IOS手机)、平板电脑、IPAD、掌上电脑、笔记本电脑等,本申请对此不作具体限定;上述的无线接入设备可以是无线接入点AP、路由器、网关等,本申请实施例中以无线接入点AP为例进行详细说明;上述的无线设备可以是WiFi设备、蓝牙设备等,本申请实施例中以WiFi设备为例进行详细说明,WiFi设备已经连接AP。Specifically, the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc. It is not specifically limited; the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc. In the embodiment of the present application, a wireless access point AP is taken as an example for detailed description; the foregoing wireless device may be a WiFi device, Bluetooth The device and the like are described in detail in the embodiment of the present application by using a WiFi device as an example. The WiFi device is already connected to the AP.
需要说明的是,为了确保无线设备可以与控制设备进行数据传输,在控制设备发送无线帧之前,使用者可以使用“带外”的方式使无线设备退出低功耗休眠状态,从而无线设备处于无线侦听状态,可以直接接收到控制设备发送的无线帧。It should be noted that in order to ensure that the wireless device can perform data transmission with the control device, before the control device sends a wireless frame, the user can use the "out-of-band" method to bring the wireless device out of the low-power sleep state, so that the wireless device is in wireless In the listening state, you can directly receive the wireless frame sent by the control device.
步骤S34,如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧。In step S34, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device.
具体地,对于WiFi设备,上述的无线帧可以是DPP无线帧,上述的响应帧可以是DPP响应帧。Specifically, for a WiFi device, the foregoing wireless frame may be a DPP wireless frame, and the foregoing response frame may be a DPP response frame.
在一种可选的方案中,如果确定无线设备未退出低功耗休眠状态,也即,确定用户未使用“带外”的方式使无线设备退出低功耗休眠状态,无线设备未处于无线侦听状态,此时,为了确保控制设备与无线设备之间的数据传输,可以通过与无线设备连接的无线接入设备进行数据转发,具体地,控制设备可以通过无线接入设备将无线帧转发至无线设备,并接收到无线设备返回的响应帧。In an optional solution, if it is determined that the wireless device has not exited the low-power sleep state, that is, it is determined that the user has not used the "out-of-band" manner to bring the wireless device out of the low-power sleep state, and the wireless device is not in the wireless detection state. Listening status. At this time, in order to ensure data transmission between the control device and the wireless device, data can be forwarded through the wireless access device connected to the wireless device. Specifically, the control device can forward the wireless frame to the wireless device through the wireless access device. The wireless device receives a response frame from the wireless device.
步骤S36,如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。In step S36, if the wireless device exits the low-power sleep state, the control device sends a wireless frame to the wireless device and receives a response frame returned by the wireless device.
可选地,可以通过预设方式控制无线设备在预设时间段内退出低功耗休眠状态。Optionally, the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
具体地,上述的预设方式可以是“带外”的方式,上述的预设时间段可以是预设方式中指定的时间段,在预设时间段之后,无线设备恢复低功耗休眠状态。Specifically, the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
在一种可选的方案中,如果确定无线设备已经退出低功耗休眠状态,也即,确定用户使用“带外”的方式使无线设备退出低功耗休眠状态,无线设备处于无线侦听状态,此时,控制设备可以直接将无线帧发送至无线设备,并接收无线设备返回的响应帧。In an optional solution, if it is determined that the wireless device has exited the low-power sleep state, that is, it is determined that the user uses the "out-of-band" manner to bring the wireless device out of the low-power sleep state, and the wireless device is in the wireless listening state At this time, the control device can directly send the wireless frame to the wireless device and receive the response frame returned by the wireless device.
例如,图4是根据本申请实施例的第一种可选的数据传输方法的流程图,图5是根据本申请实施例的第二种可选的数据传输方法的流程图,图6是根据本申请实施例的第三种可选的数据传输方法的流程图,图7是根据本申请实施例的第四种可选的数据传输 方法的流程图。下面结合图4至图7以控制设备为配置者10,无线设备为WiFi设备20,无线接入设备为AP 30为例对本申请优选的实施例进行说明。For example, FIG. 4 is a flowchart of a first optional data transmission method according to an embodiment of the present application, FIG. 5 is a flowchart of a second optional data transmission method according to an embodiment of the present application, and FIG. 6 is based on A flowchart of a third optional data transmission method according to an embodiment of the present application. FIG. 7 is a flowchart of a fourth optional data transmission method according to an embodiment of the present application. The following describes the preferred embodiment of the present application with reference to FIG. 4 to FIG. 7 using the control device as the configurator 10, the wireless device as the WiFi device 20, and the wireless access device as the AP 30.
如图4所示,该方法可以包括如下步骤:As shown in FIG. 4, the method may include the following steps:
步骤S41,配置者10在AP 30的工作信道发送DPP无线帧给AP 30,无线帧的目的地址是AP 30的地址。In step S41, the configurator 10 sends a DPP wireless frame to the AP 30 on the working channel of the AP 30, and the destination address of the wireless frame is the address of the AP 30.
步骤S42,AP 30在接收到DPP无线帧之后,在AP 30的工作信道广播或者单播该DPP无线帧,无线帧的目的地址可以是广播地址,或者该WiFi设备20的地址。In step S42, after receiving the DPP wireless frame, the AP 30 broadcasts or unicasts the DPP wireless frame on the working channel of the AP 30. The destination address of the wireless frame may be the broadcast address or the address of the WiFi device 20.
步骤S43,WiFi设备20在AP 30的工作信道发送DPP响应帧,从而配置者10可以接收到该响应帧。In step S43, the WiFi device 20 sends a DPP response frame on the working channel of the AP 30, so that the configurator 10 can receive the response frame.
如图5所示,该方法可以包括如下步骤:As shown in FIG. 5, the method may include the following steps:
步骤S51,配置者10连接AP 30。In step S51, the configurator 10 connects to the AP 30.
步骤S52,配置者10发送特定格式的数据帧给AP 30。该数据帧封装了DPP无线帧的内容,该数据帧可以是广播帧或者单播帧。In step S52, the configurator 10 sends a data frame in a specific format to the AP 30. The data frame encapsulates the content of the DPP wireless frame, and the data frame may be a broadcast frame or a unicast frame.
步骤S53,WiFi设备20接收到该特定格式的数据帧,并分析出其中的DPP无线帧。In step S53, the WiFi device 20 receives the data frame in the specific format, and analyzes the DPP wireless frame therein.
步骤S54,WiFi设备20在AP 30的工作信道发送DPP响应帧,从而配置者10接收到该DPP响应帧。In step S54, the WiFi device 20 sends a DPP response frame on the working channel of the AP 30, so that the configurator 10 receives the DPP response frame.
需要说明的是,配置者10发送的数据帧的类型与WiFi设备20发送的数据响应帧的类型相同。如果接收到的数据帧是广播帧,则AP 30广播该数据帧给WiFi设备20;如果接收到的数据帧是单播帧,则AP 30单播该数据帧给WiFi设备20。It should be noted that the type of the data frame sent by the configurator 10 is the same as the type of the data response frame sent by the WiFi device 20. If the received data frame is a broadcast frame, the AP 30 broadcasts the data frame to the WiFi device 20; if the received data frame is a unicast frame, the AP 30 unicasts the data frame to the WiFi device 20.
如图6所示,该方法可以包括如下步骤:As shown in FIG. 6, the method may include the following steps:
步骤S61,配置者10连接AP 30。In step S61, the configurator 10 connects to the AP 30.
步骤S62,配置者10发送特定格式的数据帧给AP 30。该数据帧封装了DPP无线帧的内容,该数据帧可以是广播帧或者单播帧。In step S62, the configurator 10 sends a data frame in a specific format to the AP 30. The data frame encapsulates the content of the DPP wireless frame, and the data frame may be a broadcast frame or a unicast frame.
步骤S63,WiFi设备20接收到该特定格式的数据帧,并分析出其中的DPP无线帧。In step S63, the WiFi device 20 receives the data frame in the specific format and analyzes the DPP wireless frame therein.
步骤S64,WiFi设备20发送特定格式的数据响应帧给AP。该数据响应帧封装了DPP响应帧的内容,该数据帧可以是广播帧或者单播帧。Step S64, the WiFi device 20 sends a data response frame in a specific format to the AP. The data response frame encapsulates the content of the DPP response frame, and the data frame may be a broadcast frame or a unicast frame.
步骤S65,配置者10接收到该特定格式的数据响应帧,并分析出其中封装的DPP响应帧。In step S65, the configurator 10 receives the data response frame in the specific format, and analyzes the DPP response frame encapsulated therein.
需要说明的是,配置者10发送的数据帧的类型与WiFi设备20发送的数据响应帧的类型相同。如果接收到的数据帧是广播帧,则AP 30广播该数据帧给WiFi设备20;如 果接收到的数据帧是单播帧,则AP 30单播该数据帧给WiFi设备20。It should be noted that the type of the data frame sent by the configurator 10 is the same as the type of the data response frame sent by the WiFi device 20. If the received data frame is a broadcast frame, the AP 30 broadcasts the data frame to the WiFi device 20; if the received data frame is a unicast frame, the AP 30 unicasts the data frame to the WiFi device 20.
可选地,在如图4至图6所示的方法中,WiFi设备20一直处于低功耗休眠状态,未处于无线侦听状态。Optionally, in the methods shown in FIGS. 4 to 6, the WiFi device 20 is always in a low-power sleep state and is not in a wireless listening state.
如图7所示,该方法可以包括如下步骤:As shown in FIG. 7, the method may include the following steps:
步骤S71,使用者使用“带外”方式使WiFi设备20在一段时间内停止低功耗休眠状态,处于无线侦听状态。In step S71, the user uses the "out-of-band" mode to cause the WiFi device 20 to stop the low-power sleep state for a period of time and be in a wireless listening state.
步骤S72,配置者10在AP 30的工作信道发送DPP无线帧给WiFi设备20。WiFi设备20直接接收到该DPP无线帧。In step S72, the configurator 10 sends a DPP wireless frame to the WiFi device 20 on the working channel of the AP 30. The WiFi device 20 directly receives the DPP wireless frame.
步骤S73,WiFi设备20在AP 30的工作信道发送DPP响应帧,从而配置者10接收到该响应帧。In step S73, the WiFi device 20 sends a DPP response frame on the working channel of the AP 30, so that the configurator 10 receives the response frame.
步骤S74,WiFi设备20在一段时间后恢复低功耗休眠状态。In step S74, the WiFi device 20 resumes the low-power sleep state after a period of time.
本申请上述实施例1所提供的方法,在控制设备判断无线设备是否退出低功耗休眠状态之后,如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 1 of the present application, after the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless access device through The wireless device receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device. Data transmission with wireless devices.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,或者可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
由此,本申请提供的上述实施例1的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of the first embodiment provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
本申请上述实施例中,步骤S34,控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,包括:In the above embodiment of the present application, in step S34, the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device, including:
步骤S342,控制设备通过目标工作信道将无线帧发送至无线接入设备,并通过无线接入设备将无线帧转发至无线设备,其中,目标工作信道为无线接入设备的工作信道。Step S342: The control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device. The target working channel is the working channel of the wireless access device.
可选地,无线帧可以由无线接入设备在目标工作信道中,通过广播或单播的传输方式转发至无线设备。Optionally, the wireless frame may be forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
具体地,控制设备为了将无线帧发送给无线接入设备,可以将无线接入设备的地址作为该无线帧的目的地址。无线接入设备为了将无线帧转发给无线设备,当无线接入设 备广播该无线帧时,可以将广播地址作为该无线帧的目的地址;当无线接入设备单播该无线帧时,可以将该无线设备的地址作为该无线帧的目的地址。Specifically, in order to send the wireless frame to the wireless access device, the control device may use the address of the wireless access device as the destination address of the wireless frame. In order for the wireless access device to forward the wireless frame to the wireless device, when the wireless access device broadcasts the wireless frame, the broadcast address can be used as the destination address of the wireless frame; when the wireless access device unicasts the wireless frame, it can use the The address of the wireless device is used as the destination address of the wireless frame.
步骤S344,控制设备通过目标工作信道接收响应帧。Step S344: The control device receives a response frame through the target working channel.
在一种可选的方案中,如图4所示的实现方案中,控制设备可以在无线接入设备的工作信道将无线帧发送给无线接入设备,无线接入设备在无线接入设备的工作信道广播或单播该无线帧,无线设备接入到无线帧,并在无线接入设备的工作信道发送响应帧,从而控制设备可以在无线接入设备的工作信道接收到响应帧。In an optional solution, as shown in FIG. 4, the control device may send a wireless frame to the wireless access device on the working channel of the wireless access device. The working channel broadcasts or unicasts the wireless frame, the wireless device accesses the wireless frame, and sends a response frame on the working channel of the wireless access device, so that the control device can receive the response frame on the working channel of the wireless access device.
本申请上述实施例中,步骤S34,控制设备通过无线接入设备将无线帧发送至无线设备,包括:In the above embodiment of the present application, in step S34, the control device sends the wireless frame to the wireless device through the wireless access device, including:
步骤S346,控制设备连接无线接入设备。Step S346, the control device is connected to the wireless access device.
步骤S348,控制设备将携带有无线帧的数据帧发送至无线接入设备,并通过无线接入设备将数据帧转发至无线设备。Step S348: The control device sends the data frame carrying the wireless frame to the wireless access device, and forwards the data frame to the wireless device through the wireless access device.
具体地,上述的数据帧可以是广播帧或者可以是单播帧,无线接入设备可以根据数据帧的格式,确定广播该数据帧还是单播该数据帧。Specifically, the foregoing data frame may be a broadcast frame or may be a unicast frame, and the wireless access device may determine whether to broadcast the data frame or unicast the data frame according to the format of the data frame.
在一种可选的方案中,如图5和图6所示的实现方案中,控制设备可以连接无线接入设备,在连接成功之后,可以发送封装了无线帧的数据帧至无线接入设备,并由无线接入设备按照数据帧的类型,按照相应的方式转发给无线设备,从而无线设备可以接收到控制设备发送的无线帧。In an optional solution, as shown in FIG. 5 and FIG. 6, the control device can be connected to the wireless access device. After the connection is successful, the wireless device can send a data frame encapsulated with the wireless frame to the wireless access device. The wireless access device forwards the data to the wireless device according to the type of the data frame, so that the wireless device can receive the wireless frame sent by the control device.
本申请上述实施例中,步骤S34,控制设备接收无线设备返回的无线帧对应的响应帧,包括如下之一:In the above embodiment of the present application, in step S34, the control device receives the response frame corresponding to the wireless frame returned by the wireless device, including one of the following:
步骤S3402,控制设备通过目标工作信道接收响应帧。Step S3402, the control device receives a response frame through the target working channel.
在一种可选的方案中,如图5所示的实现方案中,无线设备在接收到无线接入设备转发的数据帧之后,可以对数据帧进行解析,从而得到无线帧,并直接将相应的响应帧在无线接入设备的工作信道发送给控制设备,从而控制设备在无线接入设备的工作信道接收到响应帧。In an optional solution, as shown in FIG. 5, after receiving the data frame forwarded by the wireless access device, the wireless device may parse the data frame to obtain a wireless frame, and directly convert the corresponding wireless frame. The response frame is sent to the control device on the working channel of the wireless access device, so that the control device receives the response frame on the working channel of the wireless access device.
步骤S3404,控制设备接收无线接入设备发送的携带有响应帧的数据响应帧,其中,数据响应帧由无线设备发送至无线接入设备。Step S3404: The control device receives a data response frame carrying a response frame sent by the wireless access device, where the data response frame is sent by the wireless device to the wireless access device.
在一种可选的方案中,如图6所示的实现方案中,无线设备在接收到无线接入设备转发的数据帧之后,可以对数据帧进行解析,从而得到无线帧,并发送封装了响应帧的数据响应帧至无线接入设备,并由无线接入设备转发给控制设备,从而控制设备接入到 数据响应帧,并对数据响应帧进行解析,得到响应帧。In an optional solution, as shown in the implementation shown in FIG. 6, after receiving the data frame forwarded by the wireless access device, the wireless device may parse the data frame to obtain a wireless frame and send the encapsulated data. The data response frame of the response frame is transmitted to the wireless access device, and is forwarded by the wireless access device to the control device, so that the control device accesses the data response frame, and analyzes the data response frame to obtain a response frame.
本申请上述实施例中,在步骤S348,控制设备将携带有无线帧的数据帧发送至无线接入设备之前,该方法还包括:In the above embodiment of the present application, before step S348, before the control device sends the data frame carrying the wireless frame to the wireless access device, the method further includes:
步骤S38,控制设备按照预设格式对无线帧进行封装,得到数据帧,其中,数据响应帧是无线设备按照预设格式对响应帧进行封装得到的。Step S38: The control device encapsulates the wireless frame according to a preset format to obtain a data frame. The data response frame is obtained by encapsulating the response frame by the wireless device according to a preset format.
具体地,上述的预设格式可以是广播帧的格式或者单播帧的格式,控制设备对无线帧进行封装的格式与无线设备对响应帧进行封装的格式相同。Specifically, the foregoing preset format may be a format of a broadcast frame or a format of a unicast frame, and a format in which a control device encapsulates a wireless frame is the same as a format in which a wireless device encapsulates a response frame.
在一种可选的方案中,如图6所示的实现方案中,控制设备在发送无线帧之前,可以按照预设格式对无线帧进行封装,得到数据帧,并将数据帧通过无线接入设备发送给无线设备;无线设备在发送响应帧之前,可以按照预设格式对响应帧进行封装,得到数据响应帧,并将数据响应帧通过无线接入设备发送给控制设备。In an optional solution, as shown in the implementation scheme shown in FIG. 6, before sending the wireless frame, the control device may encapsulate the wireless frame according to a preset format, obtain a data frame, and pass the data frame through wireless access. The device sends to the wireless device; before sending the response frame, the wireless device may encapsulate the response frame in a preset format to obtain a data response frame, and send the data response frame to the control device through the wireless access device.
本申请上述实施例中,步骤S36,控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧,包括:In the above embodiment of the present application, in step S36, the control device sends the wireless frame to the wireless device and receives a response frame returned by the wireless device, including:
步骤S362,控制设备通过目标工作信道将无线帧发送至无线接入设备。Step S362: The control device sends the wireless frame to the wireless access device through the target working channel.
步骤S364,控制设备通过目标工作信道接收响应帧。Step S364: The control device receives a response frame through the target working channel.
在一种可选的方案中,如图7所示的实现方案中,用户使用“带外”的方式使无线设备退出低功耗休眠状态,控制设备可以在无线接入设备的工作信道将无线帧直接发送给无线设备,无线设备可以在无线接入设备的工作信道将响应帧直接发送给控制设备,从而控制设备可以在无线接入设备的工作信道接收到响应帧。In an optional solution, as shown in FIG. 7, the user uses the "out-of-band" mode to bring the wireless device out of the low-power sleep state, and the control device can switch the wireless device on the working channel of the wireless access device. The frame is sent directly to the wireless device, and the wireless device can directly send the response frame to the control device on the working channel of the wireless access device, so that the control device can receive the response frame on the working channel of the wireless access device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action order. Because according to the present application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is Better implementation. Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present application.
实施例2Example 2
根据本申请实施例,还提供了一种数据传输方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to the embodiment of the present application, an embodiment of a data transmission method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
图8是根据本申请实施例2的一种数据传输方法的流程图。如图8所示,该方法可以包括如下步骤:FIG. 8 is a flowchart of a data transmission method according to Embodiment 2 of the present application. As shown in FIG. 8, the method may include the following steps:
步骤S82,控制设备通过无线接入设备将无线帧发送至无线设备,其中,无线设备与无线接入设备连接。Step S82: The control device sends the wireless frame to the wireless device through the wireless access device, where the wireless device is connected to the wireless access device.
具体地,上述的控制设备可以是配置无线设备的配置者的设备,例如,可以是智能手机(包括:Android手机和IOS手机)、平板电脑、IPAD、掌上电脑、笔记本电脑等,本申请对此不作具体限定;上述的无线接入设备可以是无线接入点AP、路由器、网关等,本申请实施例中以无线接入点AP为例进行详细说明;上述的无线设备可以是WiFi设备、蓝牙设备等,本申请实施例中以WiFi设备为例进行详细说明,WiFi设备已经连接AP;对于WiFi设备,上述的无线帧可以是DPP无线帧。Specifically, the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc. It is not specifically limited; the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc. In the embodiment of the present application, a wireless access point AP is taken as an example for detailed description; the foregoing wireless device may be a WiFi device, Bluetooth In the embodiment of the present application, a WiFi device is taken as an example for detailed description. The WiFi device is connected to the AP. For a WiFi device, the foregoing wireless frame may be a DPP wireless frame.
步骤S84,控制设备接收无线设备返回的无线帧对应的响应帧。Step S84: The control device receives a response frame corresponding to the wireless frame returned by the wireless device.
具体地,对于WiFi设备,上述的响应帧可以是DPP响应帧。Specifically, for a WiFi device, the above response frame may be a DPP response frame.
在一种可选的方案中,无线设备接入无线接入设备之后,当无线设备处于低功耗休眠状态时,为了确保控制设备与无线设备之间的数据传输,可以通过与无线设备连接的无线接入设备进行数据转发,具体地,控制设备可以通过无线接入设备将无线帧转发至无线设备,并接收到无线设备返回的响应帧。In an optional solution, after the wireless device is connected to the wireless access device, when the wireless device is in a low-power sleep state, in order to ensure the data transmission between the control device and the wireless device, the wireless device The wireless access device performs data forwarding. Specifically, the control device may forward the wireless frame to the wireless device through the wireless access device, and receives a response frame returned by the wireless device.
本申请上述实施例2所提供的方法,控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 2 of the present application, the control device sends a wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, thereby implementing data transmission between the control device and the wireless device.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device. Compared with the prior art, the wireless device can receive the control device transmission when the wireless device is in a low-power sleep state The wireless frame achieves the technical effect of improving the reliability of data transmission between the wireless device and the control device, and improving the user's experience and favorability.
由此,本申请提供的上述实施例2的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of Embodiment 2 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
本申请上述实施例中,步骤S82,控制设备通过无线接入设备将无线帧发送至无线设备,包括:In the above embodiment of the present application, in step S82, the control device sends the wireless frame to the wireless device through the wireless access device, including:
步骤S822,控制设备通过目标工作信道将无线帧发送至无线接入设备,并通过无线接入设备将无线帧转发至无线设备,其中,目标工作信道为无线接入设备的工作信道。Step S822: The control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device. The target working channel is the working channel of the wireless access device.
可选地,无线帧可以由无线接入设备在目标工作信道中,通过广播或单播的传输方式转发至无线设备。Optionally, the wireless frame may be forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
具体地,控制设备为了将无线帧发送给无线接入设备,可以将无线接入设备的地址作为该无线帧的目的地址。无线接入设备为了将无线帧转发给无线设备,当无线接入设备广播该无线帧时,可以将广播地址作为该无线帧的目的地址;当无线接入设备单播该无线帧时,可以将该无线设备的地址作为该无线帧的目的地址。Specifically, in order to send the wireless frame to the wireless access device, the control device may use the address of the wireless access device as the destination address of the wireless frame. In order for the wireless access device to forward the wireless frame to the wireless device, when the wireless access device broadcasts the wireless frame, the broadcast address can be used as the destination address of the wireless frame; when the wireless access device unicasts the wireless frame, it can use The address of the wireless device is used as the destination address of the wireless frame.
步骤S84,控制设备接收无线设备返回的无线帧对应的响应帧,包括:Step S84. The control device receiving the response frame corresponding to the wireless frame returned by the wireless device includes:
步骤S842,控制设备通过目标工作信道接收响应帧。Step S842: The control device receives a response frame through the target working channel.
在一种可选的方案中,如图4所示的实现方案中,控制设备可以在无线接入设备的工作信道将无线帧发送给无线接入设备,无线接入设备在无线接入设备的工作信道广播或单播该无线帧,无线设备接入到无线帧,并在无线接入设备的工作信道发送响应帧,从而控制设备可以在无线接入设备的工作信道接收到响应帧。In an optional solution, as shown in FIG. 4, the control device may send a wireless frame to the wireless access device on the working channel of the wireless access device. The working channel broadcasts or unicasts the wireless frame, the wireless device accesses the wireless frame, and sends a response frame on the working channel of the wireless access device, so that the control device can receive the response frame on the working channel of the wireless access device.
本申请上述实施例中,步骤S82,控制设备通过无线接入设备将无线帧发送至无线设备,包括:In the above embodiment of the present application, in step S82, the control device sends the wireless frame to the wireless device through the wireless access device, including:
步骤S824,控制设备连接无线接入设备。Step S824, the control device is connected to the wireless access device.
步骤S826,控制设备将携带有无线帧的数据帧发送至无线接入设备,并通过无线接入设备将数据帧转发至无线设备。Step S826: The control device sends the data frame carrying the wireless frame to the wireless access device, and forwards the data frame to the wireless device through the wireless access device.
具体地,上述的数据帧可以是广播帧或者可以是单播帧,无线接入设备可以根据数据帧的格式,确定广播该数据帧还是单播该数据帧。Specifically, the foregoing data frame may be a broadcast frame or may be a unicast frame, and the wireless access device may determine whether to broadcast the data frame or unicast the data frame according to the format of the data frame.
在一种可选的方案中,如图5和图6所示的实现方案中,控制设备可以连接无线接入设备,在连接成功之后,可以发送封装了无线帧的数据帧至无线接入设备,并由无线接入设备按照数据帧的类型,按照相应的方式转发给无线设备,从而无线设备可以接收到控制设备发送的无线帧。In an optional solution, as shown in FIG. 5 and FIG. 6, the control device can be connected to the wireless access device. After the connection is successful, the wireless device can send a data frame encapsulated with the wireless frame to the wireless access device. The wireless access device forwards the data to the wireless device according to the type of the data frame, so that the wireless device can receive the wireless frame sent by the control device.
本申请上述实施例中,步骤S84,控制设备接收无线设备返回的无线帧对应的响应帧,包括如下之一:In the above embodiment of the present application, in step S84, the control device receives the response frame corresponding to the wireless frame returned by the wireless device, including one of the following:
步骤S844,控制设备通过目标工作信道接收响应帧。Step S844: The control device receives a response frame through the target working channel.
在一种可选的方案中,如图5所示的实现方案中,无线设备在接收到无线接入设备转发的数据帧之后,可以对数据帧进行解析,从而得到无线帧,并直接将相应的响应帧在无线接入设备的工作信道发送给控制设备,从而控制设备在无线接入设备的工作信道接收到响应帧。In an optional solution, as shown in FIG. 5, after receiving the data frame forwarded by the wireless access device, the wireless device may parse the data frame to obtain a wireless frame, and directly convert the corresponding wireless frame. The response frame is sent to the control device on the working channel of the wireless access device, so that the control device receives the response frame on the working channel of the wireless access device.
步骤S846,控制设备接收无线接入设备发送的携带有响应帧的数据响应帧,其中,数据响应帧由无线设备发送至无线接入设备。Step S846: The control device receives a data response frame carrying a response frame sent by the wireless access device, where the data response frame is sent by the wireless device to the wireless access device.
在一种可选的方案中,如图6所示的实现方案中,无线设备在接收到无线接入设备转发的数据帧之后,可以对数据帧进行解析,从而得到无线帧,并发送封装了响应帧的数据响应帧至无线接入设备,并由无线接入设备转发给控制设备,从而控制设备接入到数据响应帧,并对数据响应帧进行解析,得到响应帧。In an optional solution, as shown in the implementation shown in FIG. 6, after receiving the data frame forwarded by the wireless access device, the wireless device may parse the data frame to obtain a wireless frame and send the encapsulated data. The data response frame of the response frame is transmitted to the wireless access device, and is forwarded by the wireless access device to the control device, so that the control device accesses the data response frame, and analyzes the data response frame to obtain a response frame.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action order. Because according to the present application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is Better implementation. Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present application.
实施例3Example 3
根据本申请实施例,还提供了一种数据传输方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to the embodiment of the present application, an embodiment of a data transmission method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
图9是根据本申请实施例3的一种数据传输方法的流程图。如图9所示,该方法可以包括如下步骤:FIG. 9 is a flowchart of a data transmission method according to Embodiment 3 of the present application. As shown in FIG. 9, the method may include the following steps:
步骤S92,控制设备将无线帧发送至无线设备,其中,无线设备与无线接入设备连接,无线设备退出低功耗休眠状态。Step S92: The control device sends the wireless frame to the wireless device, wherein the wireless device is connected to the wireless access device, and the wireless device exits the low-power sleep state.
具体地,上述的控制设备可以是配置无线设备的配置者的设备,例如,可以是智能手机(包括:Android手机和IOS手机)、平板电脑、IPAD、掌上电脑、笔记本电脑等,本申请对此不作具体限定;上述的无线接入设备可以是无线接入点AP、路由器、网关等,本申请实施例中以无线接入点AP为例进行详细说明;上述的无线设备可以是WiFi设备、蓝牙设备等,本申请实施例中以WiFi设备为例进行详细说明,WiFi设备已经连接AP;对于WiFi设备,上述的无线帧可以是DPP无线帧。Specifically, the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc. It is not specifically limited; the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc. In the embodiment of the present application, a wireless access point AP is taken as an example for detailed description; the foregoing wireless device may be a WiFi device, Bluetooth In the embodiment of the present application, a WiFi device is taken as an example for detailed description. The WiFi device is connected to the AP. For a WiFi device, the foregoing wireless frame may be a DPP wireless frame.
需要说明的是,为了确保无线设备可以与控制设备进行数据传输,在控制设备发送无线帧之前,使用者可以使用“带外”的方式使无线设备退出低功耗休眠状态,从而无线设备处于无线侦听状态,可以直接接收到控制设备发送的无线帧。It should be noted that in order to ensure that the wireless device can perform data transmission with the control device, before the control device sends a wireless frame, the user can use the "out-of-band" method to bring the wireless device out of the low-power sleep state, so that the wireless device is in wireless In the listening state, you can directly receive the wireless frame sent by the control device.
可选地,可以通过预设方式控制无线设备在预设时间段内退出低功耗休眠状态。Optionally, the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
具体地,上述的预设方式可以是“带外”的方式,上述的预设时间段可以是预设方式中指定的时间段,在预设时间段之后,无线设备恢复低功耗休眠状态。Specifically, the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
步骤S94,控制设备接收无线设备返回的无线帧对应的响应帧。Step S94: The control device receives a response frame corresponding to the wireless frame returned by the wireless device.
具体地,对于WiFi设备,上述的响应帧可以是DPP响应帧。Specifically, for a WiFi device, the above response frame may be a DPP response frame.
在一种可选的方案中,如果确定无线设备已经退出低功耗休眠状态,也即,确定用户使用“带外”的方式使无线设备退出低功耗休眠状态,无线设备处于无线侦听状态,此时,控制设备可以直接将无线帧发送至无线设备,并接收无线设备返回的响应帧。In an optional solution, if it is determined that the wireless device has exited the low-power sleep state, that is, it is determined that the user uses the "out-of-band" manner to bring the wireless device out of the low-power sleep state, and the wireless device is in the wireless listening state At this time, the control device can directly send the wireless frame to the wireless device and receive the response frame returned by the wireless device.
本申请上述实施例3所提供的方法,在无线设备退出低功耗休眠状态的情况下,控制设备将无线帧发送至无线设备,控制设备接收无线设备返回的无线帧对应的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 3 of the present application, when the wireless device exits the low-power sleep state, the control device sends a wireless frame to the wireless device, and the control device receives a response frame corresponding to the wireless frame returned by the wireless device, thereby achieving Controls data transmission between the device and the wireless device.
容易注意到的,可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, when the wireless device is in the low-power sleep state, the wireless frame sent by the control device can be received, thereby improving the wireless device. The reliability of the data transmission between the control device and the control device, and the technical effect of improving the user's experience and favorability.
由此,本申请提供的上述实施例3的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of Embodiment 3 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
本申请上述实施例中,步骤S92,控制设备将无线帧发送至无线设备,包括:In the above embodiment of the present application, in step S92, the control device sends the wireless frame to the wireless device, including:
步骤S922,控制设备通过目标工作信道将无线帧发送至无线接入设备,其中,目标工作信道为无线接入设备的工作信道。Step S922: The control device sends the wireless frame to the wireless access device through a target working channel, where the target working channel is a working channel of the wireless access device.
步骤S94,控制设备接收无线设备返回的响应帧,包括:Step S94. The control device receives a response frame returned by the wireless device, including:
步骤S942,控制设备通过目标工作信道接收响应帧。Step S942: The control device receives a response frame through the target working channel.
在一种可选的方案中,如图7所示的实现方案中,用户使用“带外”的方式使无线设备退出低功耗休眠状态,控制设备可以在无线接入设备的工作信道将无线帧直接发送给无线设备,无线设备可以在无线接入设备的工作信道将响应帧直接发送给控制设备,从而控制设备可以在无线接入设备的工作信道接收到响应帧。In an optional solution, as shown in FIG. 7, the user uses the "out-of-band" mode to bring the wireless device out of the low-power sleep state, and the control device can switch the wireless device on the working channel of the wireless access device. The frame is sent directly to the wireless device, and the wireless device can directly send the response frame to the control device on the working channel of the wireless access device, so that the control device can receive the response frame on the working channel of the wireless access device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action order. Because according to the present application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is Better implementation. Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present application.
实施例4Example 4
根据本申请实施例,还提供了一种用于实施上述数据传输方法的数据传输装置,如图10所示,该装置1000包括:判断模块1002、第一传输模块1004和第二传输模块1006。According to an embodiment of the present application, a data transmission device for implementing the foregoing data transmission method is also provided. As shown in FIG. 10, the device 1000 includes a determination module 1002, a first transmission module 1004, and a second transmission module 1006.
其中,判断模块1002用于判断无线设备是否退出低功耗休眠状态,其中,无线设备与无线接入设备连接;第一传输模块1004用于如果无线设备未退出低功耗休眠状态,则通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧;第二传输模块1006用于如果无线设备退出低功耗休眠状态,则将无线帧发送至无线设备,并接收无线设备返回的响应帧。The determining module 1002 is configured to determine whether the wireless device exits the low-power sleep state, wherein the wireless device is connected to the wireless access device; and the first transmission module 1004 is configured to pass the wireless device if the wireless device does not exit the low-power sleep state. The access device sends the wireless frame to the wireless device, and receives a response frame corresponding to the wireless frame returned by the wireless device; the second transmission module 1006 is configured to send the wireless frame to the wireless device if the wireless device exits the low-power sleep state, And receive the response frame returned by the wireless device.
具体地,上述的装置可以是控制设备中用于数据传输的装置,上述的控制设备可以是配置无线设备的配置者的设备,例如,可以是智能手机(包括:Android手机和IOS手机)、平板电脑、IPAD、掌上电脑、笔记本电脑等,本申请对此不作具体限定;上述的无线接入设备可以是无线接入点AP、路由器、网关等,本申请实施例中以无线接入点AP为例进行详细说明;上述的无线设备可以是WiFi设备、蓝牙设备等,本申请实施例中以WiFi设备为例进行详细说明,WiFi设备已经连接AP;对于WiFi设备,上述的无线帧可以是DPP无线帧,上述的响应帧可以是DPP响应帧。Specifically, the foregoing device may be a device for data transmission in a control device, and the foregoing control device may be a device configured by a configurator of a wireless device, for example, a smart phone (including an Android phone and an IOS phone), a tablet Computers, IPADs, PDAs, laptops, etc. are not specifically limited in this application; the above wireless access devices may be wireless access points AP, routers, gateways, etc. In the embodiment of this application, the wireless access point AP is used as The above wireless device may be a WiFi device, a Bluetooth device, etc. In this embodiment of the present application, a WiFi device is taken as an example for detailed description. The WiFi device is connected to an AP. For a WiFi device, the above wireless frame may be a DPP wireless device. Frame, the above response frame may be a DPP response frame.
可选地,可以通过预设方式控制无线设备在预设时间段内退出低功耗休眠状态。Optionally, the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
具体地,上述的预设方式可以是“带外”的方式,上述的预设时间段可以是预设方式中指定的时间段,在预设时间段之后,无线设备恢复低功耗休眠状态。Specifically, the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
此处需要说明的是,上述判断模块1002、第一传输模块1004和第二传输模块1006对应于实施例1中的步骤S32至步骤S36,三个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例1所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例1提供的计算机终端10中。What needs to be explained here is that the above-mentioned judgment module 1002, the first transmission module 1004, and the second transmission module 1006 correspond to steps S32 to S36 in Embodiment 1. Examples and application scenarios implemented by the three modules and corresponding steps The same, but not limited to the content disclosed in the first embodiment. It should be noted that, as part of the device, the above modules can be run in the computer terminal 10 provided in Embodiment 1.
本申请上述实施例4所提供的方法,在控制设备判断无线设备是否退出低功耗休眠状态之后,如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 4 of the present application, after the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless access device through The wireless device receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device. Data transmission with wireless devices.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,或者可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
由此,本申请提供的上述实施例4的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of Embodiment 4 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
本申请上述实施例中,第一传输模块包括:第一发送单元,用于通过目标工作信道将无线帧发送至无线接入设备,并通过无线接入设备将无线帧转发至无线设备,其中,目标工作信道为无线接入设备的工作信道;第一接收单元,用于通过目标工作信道接收响应帧。In the foregoing embodiment of the present application, the first transmission module includes: a first sending unit, configured to send a wireless frame to a wireless access device through a target working channel, and forward the wireless frame to the wireless device through the wireless access device, where: The target working channel is a working channel of the wireless access device; the first receiving unit is configured to receive a response frame through the target working channel.
本申请上述实施例中,第一传输模块包括:连接单元,用于无线接入设备;第二发送单元,用于将携带有无线帧的数据帧发送至无线接入设备,并通过无线接入设备将数据帧转发至无线设备。In the above embodiments of the present application, the first transmission module includes: a connecting unit for a wireless access device; and a second sending unit for sending a data frame carrying a wireless frame to the wireless access device, and the wireless access The device forwards the data frame to the wireless device.
本申请上述实施例中,第一传输模块包括如下之一:第二接收单元,用于通过目标工作信道接收响应帧;或第三接收单元,用于接收无线接入设备发送的携带有响应帧的数据响应帧,其中,数据响应帧由无线设备发送至无线接入设备。In the above embodiment of the present application, the first transmission module includes one of the following: a second receiving unit configured to receive a response frame through a target working channel; or a third receiving unit configured to receive a response frame sent by a wireless access device. A data response frame, where the data response frame is sent by the wireless device to the wireless access device.
本申请上述实施例中,该装置还包括:封装模块,用于按照预设格式对无线帧进行封装,得到数据帧,其中,数据响应帧是无线设备按照预设格式对响应帧进行封装得到 的。In the above embodiments of the present application, the device further includes: a packaging module for packaging the wireless frame according to a preset format to obtain a data frame, wherein the data response frame is obtained by packaging the response frame by the wireless device according to the preset format. .
本申请上述实施例中,第二传输模块包括:第三发送单元,用于通过目标工作信道将无线帧发送至无线接入设备;第四接收单元,用于通过目标工作信道接收响应帧。In the above embodiments of the present application, the second transmission module includes: a third sending unit for sending a wireless frame to the wireless access device through a target working channel; and a fourth receiving unit for receiving a response frame through the target working channel.
实施例5Example 5
根据本申请实施例,还提供了一种用于实施上述数据传输方法的数据传输装置,如图11所示,该装置1100包括:第一发送模块1102和第一接收模块1104。According to an embodiment of the present application, a data transmission device for implementing the foregoing data transmission method is also provided. As shown in FIG. 11, the device 1100 includes a first sending module 1102 and a first receiving module 1104.
其中,第一发送模块1102用于通过无线接入设备将无线帧发送至无线设备,其中,无线设备与无线接入设备连接;第一接收模块1104用于接收无线设备返回的无线帧对应的响应帧。The first sending module 1102 is configured to send a wireless frame to the wireless device through the wireless access device, wherein the wireless device is connected to the wireless access device; the first receiving module 1104 is configured to receive a response corresponding to the wireless frame returned by the wireless device. frame.
具体地,上述的装置可以是控制设备中用于进行数据传输的装置,控制设备可以是配置无线设备的配置者的设备,例如,可以是智能手机(包括:Android手机和IOS手机)、平板电脑、IPAD、掌上电脑、笔记本电脑等,本申请对此不作具体限定;上述的无线接入设备可以是无线接入点AP、路由器、网关等,本申请实施例中以无线接入点AP为例进行详细说明;上述的无线设备可以是WiFi设备、蓝牙设备等,本申请实施例中以WiFi设备为例进行详细说明,WiFi设备已经连接AP;对于WiFi设备,上述的无线帧可以是DPP无线帧,上述的响应帧可以是DPP响应帧。Specifically, the foregoing device may be a device for data transmission in a control device, and the control device may be a device configured by a configurator of a wireless device, for example, a smart phone (including an Android phone and an IOS phone), a tablet computer , IPAD, palmtop computer, notebook computer, etc., this application does not specifically limit this; the above wireless access device may be a wireless access point AP, router, gateway, etc. In the embodiment of this application, a wireless access point AP is used as an example. Detailed description; the above wireless device may be a WiFi device, a Bluetooth device, etc. In the embodiment of the present application, a WiFi device is taken as an example to describe in detail that the WiFi device is connected to an AP; for a WiFi device, the above wireless frame may be a DPP wireless frame The above response frame may be a DPP response frame.
此处需要说明的是,上述第一发送模块1102和第一接收模块1104对应于实施例2中的步骤S82至步骤S84,两个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例2所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例1提供的计算机终端10中。It should be noted here that the above-mentioned first sending module 1102 and first receiving module 1104 correspond to steps S82 to S84 in Embodiment 2. The examples and application scenarios implemented by the two modules and the corresponding steps are the same, but not It is limited to the content disclosed in the second embodiment. It should be noted that, as part of the device, the above modules can be run in the computer terminal 10 provided in Embodiment 1.
本申请上述实施例5所提供的方法,控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 5 of the present application, the control device sends a wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, thereby implementing data transmission between the control device and the wireless device.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device. Compared with the prior art, the wireless device can receive the control device transmission when the wireless device is in a low-power sleep state The wireless frame achieves the technical effect of improving the reliability of data transmission between the wireless device and the control device, and improving the user's experience and favorability.
由此,本申请提供的上述实施例5的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of Embodiment 5 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
本申请上述实施例中,第一发送模块包括:第一发送单元,用于通过目标工作信道 将无线帧发送至无线接入设备,并通过无线接入设备将无线帧转发至无线设备,其中,目标工作信道为无线接入设备的工作信道;第一接收模块包括:第一接收单元,用于通过目标工作信道接收响应帧。In the above embodiment of the present application, the first sending module includes: a first sending unit, configured to send a wireless frame to a wireless access device through a target working channel, and forward the wireless frame to the wireless device through the wireless access device. The target working channel is a working channel of the wireless access device. The first receiving module includes a first receiving unit configured to receive a response frame through the target working channel.
可选地,无线帧可以由无线接入设备在目标工作信道中,通过广播或单播的传输方式转发至无线设备。Optionally, the wireless frame may be forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
本申请上述实施例中,第一发送模块包括:连接单元,用于连接无线接入设备;第二发送单元,用于将携带有无线帧的数据帧发送至无线接入设备,并通过无线接入设备将数据帧转发至无线设备。In the above embodiment of the present application, the first sending module includes: a connecting unit for connecting a wireless access device; and a second sending unit for sending a data frame carrying a wireless frame to the wireless access device, and the wireless receiving device The incoming device forwards the data frame to the wireless device.
本申请上述实施例中,第一接收模块包括如下之一:第二接收单元,用于通过目标工作信道接收响应帧;第三接收单元,用于接收无线接入设备发送的携带有响应帧的数据响应帧,其中,数据响应帧由无线设备发送至无线接入设备。In the foregoing embodiment of the present application, the first receiving module includes one of the following: a second receiving unit configured to receive a response frame through a target working channel; and a third receiving unit configured to receive a response frame sent by a wireless access device. A data response frame, where the data response frame is sent by the wireless device to the wireless access device.
实施例6Example 6
根据本申请实施例,还提供了一种用于实施上述数据传输方法的数据传输装置,如图12所示,该装置1200包括:第二发送模块1202和第二接收模块1204。According to an embodiment of the present application, a data transmission device for implementing the foregoing data transmission method is also provided. As shown in FIG. 12, the device 1200 includes a second sending module 1202 and a second receiving module 1204.
其中,第二发送模块1202用于将无线帧发送至无线设备,其中,无线设备与无线接入设备连接,无线设备退出低功耗休眠状态;第二接收模块1204用于接收无线设备返回的无线帧对应的响应帧。The second sending module 1202 is configured to send the wireless frame to the wireless device. The wireless device is connected to the wireless access device, and the wireless device exits the low-power sleep state. The second receiving module 1204 is configured to receive the wireless returned by the wireless device. The response frame corresponding to the frame.
具体地,上述的装置可以是控制设备中用于进行数据传输的装置,控制设备可以是配置无线设备的配置者的设备,例如,可以是智能手机(包括:Android手机和IOS手机)、平板电脑、IPAD、掌上电脑、笔记本电脑等,本申请对此不作具体限定;上述的无线接入设备可以是无线接入点AP、路由器、网关等,本申请实施例中以无线接入点AP为例进行详细说明;上述的无线设备可以是WiFi设备、蓝牙设备等,本申请实施例中以WiFi设备为例进行详细说明,WiFi设备已经连接AP;对于WiFi设备,上述的无线帧可以是DPP无线帧,上述的响应帧可以是DPP响应帧。Specifically, the foregoing device may be a device for data transmission in a control device, and the control device may be a device configured by a configurator of a wireless device, for example, a smart phone (including an Android phone and an IOS phone), a tablet computer , IPAD, palmtop computer, notebook computer, etc., this application does not specifically limit this; the above wireless access device may be a wireless access point AP, router, gateway, etc. In the embodiment of this application, a wireless access point AP is used as an example. Detailed description; the above wireless device may be a WiFi device, a Bluetooth device, etc. In the embodiment of the present application, a WiFi device is taken as an example to describe in detail that the WiFi device is connected to an AP; for a WiFi device, the above wireless frame may be a DPP wireless frame The above response frame may be a DPP response frame.
可选地,可以通过预设方式控制无线设备在预设时间段内退出低功耗休眠状态。Optionally, the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
具体地,上述的预设方式可以是“带外”的方式,上述的预设时间段可以是预设方式中指定的时间段,在预设时间段之后,无线设备恢复低功耗休眠状态。Specifically, the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
此处需要说明的是,上述第二发送模块1202和第二接收模块1204对应于实施例3中的步骤S92至步骤S94,两个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例3所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行 在实施例1提供的计算机终端10中。It should be noted here that the above-mentioned second sending module 1202 and second receiving module 1204 correspond to steps S92 to S94 in Embodiment 3. The two modules and the corresponding steps implement the same instances and application scenarios, but not It is limited to the content disclosed in the third embodiment. It should be noted that the above-mentioned module can be run in the computer terminal 10 provided in the first embodiment as a part of the device.
本申请上述实施例6所提供的方法,在无线设备退出低功耗休眠状态的情况下,控制设备将无线帧发送至无线设备,控制设备接收无线设备返回的无线帧对应的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 6 of the present application, when the wireless device exits the low-power sleep state, the control device sends a wireless frame to the wireless device, and the control device receives a response frame corresponding to the wireless frame returned by the wireless device, thereby achieving Controls data transmission between the device and the wireless device.
容易注意到的,可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, when the wireless device is in the low-power sleep state, the wireless frame sent by the control device can be received, thereby improving the wireless device. The reliability of the data transmission between the control device and the control device, and the technical effect of improving the user's experience and favorability.
由此,本申请提供的上述实施例6的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of Embodiment 6 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
本申请上述实施例中,第二发送模块包括:第三发送单元,用于通过目标工作信道将无线帧发送至无线接入设备,其中,目标工作信道为无线接入设备的工作信道;第四接收单元,用于通过目标工作信道接收响应帧。In the foregoing embodiment of the present application, the second sending module includes: a third sending unit, configured to send a wireless frame to the wireless access device through a target working channel, where the target working channel is a working channel of the wireless access device; a fourth The receiving unit is configured to receive a response frame through a target working channel.
实施例7Example 7
根据本申请实施例,还提供了一种数据传输系统。According to the embodiment of the present application, a data transmission system is also provided.
图13是根据本申请实施例的一种数据传输系统的示意图。如图13所示,该系统包括:无线设备132、无线接入设备连接134和控制设备136。FIG. 13 is a schematic diagram of a data transmission system according to an embodiment of the present application. As shown in FIG. 13, the system includes a wireless device 132, a wireless access device connection 134, and a control device 136.
其中,无线设备132与无线接入设备134连接;控制设备136用于判断无线设备是否退出低功耗休眠状态,如果无线设备未退出低功耗休眠状态,则通过无线接入设备将无线帧发送至无线设备,如果无线设备退出低功耗休眠状态,则将无线帧发送至无线设备;无线设备用于如果未退出低功耗休眠状态,则通过无线接入设备将无线帧对应的响应帧发送至控制设备,如果退出低功耗休眠状态,则将响应帧发送至控制设备。The wireless device 132 is connected to the wireless access device 134; the control device 136 is used to determine whether the wireless device exits the low-power sleep state. If the wireless device does not exit the low-power sleep state, the wireless frame is sent by the wireless access device. To the wireless device, if the wireless device exits the low-power sleep state, the wireless frame is sent to the wireless device; if the wireless device does not exit the low-power sleep state, the wireless device sends a response frame corresponding to the wireless frame through the wireless access device. To the control device, if it exits the low-power sleep state, it sends a response frame to the control device.
具体地,上述的控制设备可以是配置无线设备的配置者的设备,例如,可以是智能手机(包括:Android手机和IOS手机)、平板电脑、IPAD、掌上电脑、笔记本电脑等,本申请对此不作具体限定;上述的无线接入设备可以是无线接入点AP、路由器、网关等,本申请实施例中以无线接入点AP为例进行详细说明;上述的无线设备可以是WiFi设备、蓝牙设备等,本申请实施例中以WiFi设备为例进行详细说明,WiFi设备已经连接AP;对于WiFi设备,上述的无线帧可以是DPP无线帧,上述的响应帧可以是DPP响应帧。Specifically, the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc. It is not specifically limited; the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc. In the embodiment of the present application, a wireless access point AP is taken as an example for detailed description; the foregoing wireless device may be a WiFi device, Bluetooth In the embodiment of the present application, a WiFi device is taken as an example for detailed description. The WiFi device is connected to an AP. For a WiFi device, the foregoing wireless frame may be a DPP wireless frame, and the foregoing response frame may be a DPP response frame.
需要说明的是,为了确保无线设备可以与控制设备进行数据传输,在控制设备发送无线帧之前,使用者可以使用“带外”的方式使无线设备退出低功耗休眠状态,从而无线设备处于无线侦听状态,可以直接接收到控制设备发送的无线帧。It should be noted that in order to ensure that the wireless device can perform data transmission with the control device, before the control device sends a wireless frame, the user can use the "out-of-band" method to bring the wireless device out of the low-power sleep state, so that the wireless device is in wireless In the listening state, you can directly receive the wireless frame sent by the control device.
可选地,可以通过预设方式控制无线设备在预设时间段内退出低功耗休眠状态。Optionally, the wireless device may be controlled to exit the low-power sleep state within a preset time period in a preset manner.
具体地,上述的预设方式可以是“带外”的方式,上述的预设时间段可以是预设方式中指定的时间段,在预设时间段之后,无线设备恢复低功耗休眠状态。Specifically, the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
在一种可选的方案中,如果确定无线设备未退出低功耗休眠状态,也即,确定用户未使用“带外”的方式使无线设备退出低功耗休眠状态,无线设备未处于无线侦听状态,此时,为了确保控制设备与无线设备之间的数据传输,可以通过与无线设备连接的无线接入设备进行数据转发,具体地,控制设备可以通过无线接入设备将无线帧转发至无线设备,并接收到无线设备返回的响应帧。如果确定无线设备已经退出低功耗休眠状态,也即,确定用户使用“带外”的方式使无线设备退出低功耗休眠状态,无线设备处于无线侦听状态,此时,控制设备可以直接将无线帧发送至无线设备,并接收无线设备返回的响应帧。In an optional solution, if it is determined that the wireless device has not exited the low-power sleep state, that is, it is determined that the user has not used the "out-of-band" manner to bring the wireless device out of the low-power sleep state, and the wireless device is not in the wireless detection state. Listening status. At this time, in order to ensure data transmission between the control device and the wireless device, data can be forwarded through the wireless access device connected to the wireless device. Specifically, the control device can forward the wireless frame to the wireless device through the wireless access device. The wireless device receives a response frame from the wireless device. If it is determined that the wireless device has exited the low-power sleep state, that is, it is determined that the user uses the "out-of-band" method to bring the wireless device out of the low-power sleep state, and the wireless device is in the wireless listening state, at this time, the control device may directly The wireless frame is sent to the wireless device and receives the response frame returned by the wireless device.
本申请上述实施例7所提供的方法,在控制设备判断无线设备是否退出低功耗休眠状态之后,如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 7 of the present application, after the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless access device through The wireless device receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device. Data transmission with wireless devices.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,或者可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
由此,本申请提供的上述实施例7的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of Embodiment 7 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
实施例8Example 8
根据本申请实施例,还提供了一种数据传输方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to the embodiment of the present application, an embodiment of a data transmission method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
图14是根据本申请实施例8的一种数据传输方法的流程图。如图8所示,该方法可以包括如下步骤:FIG. 14 is a flowchart of a data transmission method according to Embodiment 8 of the present application. As shown in FIG. 8, the method may include the following steps:
步骤S142,控制设备判断无线设备是否处于低功耗休眠状态,其中,无线设备与无 线接入设备连接。In step S142, the control device determines whether the wireless device is in a low-power sleep state, where the wireless device is connected to the wireless access device.
具体地,上述的控制设备可以是配置无线设备的配置者的设备,例如,可以是智能手机(包括:Android手机和IOS手机)、平板电脑、IPAD、掌上电脑、笔记本电脑等,本申请对此不作具体限定;上述的无线接入设备可以是无线接入点AP、路由器、网关等,本申请实施例中以无线接入点AP为例进行详细说明;上述的无线设备可以是WiFi设备、蓝牙设备等,本申请实施例中以WiFi设备为例进行详细说明,WiFi设备已经连接AP。Specifically, the foregoing control device may be a device configured by a configurator of a wireless device, for example, may be a smart phone (including an Android phone and an IOS phone), a tablet computer, an IPAD, a palmtop computer, a notebook computer, etc. It is not specifically limited; the foregoing wireless access device may be a wireless access point AP, a router, a gateway, etc. In the embodiment of the present application, a wireless access point AP is taken as an example for detailed description; the foregoing wireless device may be a WiFi device, Bluetooth The device and the like are described in detail in the embodiment of the present application by using a WiFi device as an example. The WiFi device is already connected to the AP.
需要说明的是,为了确保无线设备可以与控制设备进行数据传输,在控制设备发送无线帧之前,使用者可以使用“带外”的方式使无线设备退出低功耗休眠状态,从而无线设备处于无线侦听状态,可以直接接收到控制设备发送的无线帧。It should be noted that in order to ensure that the wireless device can perform data transmission with the control device, before the control device sends a wireless frame, the user can use the "out-of-band" method to bring the wireless device out of the low-power sleep state, so that the wireless device is in wireless In the listening state, you can directly receive the wireless frame sent by the control device.
步骤S144,如果无线设备处于低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧。Step S144: If the wireless device is in a low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device.
具体地,对于WiFi设备,上述的无线帧可以是DPP无线帧,上述的响应帧可以是DPP响应帧。Specifically, for a WiFi device, the foregoing wireless frame may be a DPP wireless frame, and the foregoing response frame may be a DPP response frame.
在一种可选的方案中,如果确定无线设备处于低功耗休眠状态,也即,确定用户未使用“带外”的方式使无线设备退出低功耗休眠状态,无线设备未处于无线侦听状态,此时,为了确保控制设备与无线设备之间的数据传输,可以通过与无线设备连接的无线接入设备进行数据转发,具体地,控制设备可以通过无线接入设备将无线帧转发至无线设备,并接收到无线设备返回的响应帧。In an optional solution, if it is determined that the wireless device is in a low-power sleep state, that is, it is determined that the user does not use the "out-of-band" manner to bring the wireless device out of the low-power sleep state, and the wireless device is not in wireless listening State, at this time, in order to ensure data transmission between the control device and the wireless device, data can be forwarded through the wireless access device connected to the wireless device. Specifically, the control device can forward the wireless frame to the wireless through the wireless access device. Device and receives a response frame from the wireless device.
步骤S146,如果无线设备未处于低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。Step S146, if the wireless device is not in a low-power sleep state, the control device sends the wireless frame to the wireless device and receives a response frame returned by the wireless device.
可选地,可以通过预设方式控制无线设备在预设时间段内未处于低功耗休眠状态,也即控制无线设备在预设时间段内退出低功耗休眠状态。Optionally, the wireless device may be controlled in a preset manner not to be in a low-power sleep state within a preset period of time, that is, the wireless device may be controlled to exit the low-power sleep state within a preset period of time.
具体地,上述的预设方式可以是“带外”的方式,上述的预设时间段可以是预设方式中指定的时间段,在预设时间段之后,无线设备恢复低功耗休眠状态。Specifically, the foregoing preset manner may be an “out-of-band” manner, and the foregoing preset period of time may be a period specified in the preset manner. After the preset period of time, the wireless device resumes a low-power sleep state.
在一种可选的方案中,如果确定无线设备未处于低功耗休眠状态,也即,确定用户使用“带外”的方式使无线设备退出低功耗休眠状态,无线设备处于无线侦听状态,此时,控制设备可以直接将无线帧发送至无线设备,并接收无线设备返回的响应帧。In an optional solution, if it is determined that the wireless device is not in the low-power sleep state, that is, it is determined that the user uses the "out-of-band" manner to bring the wireless device out of the low-power sleep state, and the wireless device is in the wireless listening state At this time, the control device can directly send the wireless frame to the wireless device and receive the response frame returned by the wireless device.
本申请上述实施例8所提供的方法,在控制设备判断无线设备是否处于低功耗休眠状态之后,如果无线设备处于低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,如果无线设备未处于低 功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 8 of the present application, after the control device determines whether the wireless device is in a low-power sleep state, if the wireless device is in a low-power sleep state, the control device sends a wireless frame to the wireless device through the wireless access device. Device, and receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device is not in a low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device Data transmission with wireless devices.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,或者可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
由此,本申请提供的上述实施例8的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of Embodiment 8 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
本申请上述实施例中,步骤S144,控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,包括:In the above embodiment of the present application, in step S144, the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device, including:
步骤S1442,控制设备通过目标工作信道将无线帧发送至无线接入设备,并通过无线接入设备将无线帧转发至无线设备,其中,目标工作信道为无线接入设备的工作信道。Step S1442: The control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device. The target working channel is the working channel of the wireless access device.
可选地,无线帧可以由无线接入设备在目标工作信道中,通过广播或单播的传输方式转发至无线设备。Optionally, the wireless frame may be forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
步骤S1444,控制设备通过目标工作信道接收响应帧。Step S1444, the control device receives a response frame through the target working channel.
本申请上述实施例中,步骤S144,控制设备通过无线接入设备将无线帧发送至无线设备,包括:In the above embodiment of the present application, in step S144, the control device sends the wireless frame to the wireless device through the wireless access device, including:
步骤S1446,控制设备连接无线接入设备。Step S1446, the control device is connected to the wireless access device.
步骤S1448,控制设备将携带有无线帧的数据帧发送至无线接入设备,并通过无线接入设备将数据帧转发至无线设备。Step S1448: The control device sends the data frame carrying the wireless frame to the wireless access device, and forwards the data frame to the wireless device through the wireless access device.
本申请上述实施例中,步骤S144,控制设备接收无线设备返回的无线帧对应的响应帧,包括如下之一:In the above embodiment of the present application, in step S144, the control device receives the response frame corresponding to the wireless frame returned by the wireless device, including one of the following:
步骤S1402,控制设备通过目标工作信道接收响应帧。Step S1402: The control device receives a response frame through the target working channel.
步骤S1404,控制设备接收无线接入设备发送的携带有响应帧的数据响应帧,其中,数据响应帧由无线设备发送至无线接入设备。Step S1404: The control device receives a data response frame carrying a response frame sent by the wireless access device, where the data response frame is sent by the wireless device to the wireless access device.
本申请上述实施例中,在步骤S1448,控制设备将携带有无线帧的数据帧发送至无线接入设备之前,该方法还包括:In the above embodiment of the present application, before step S1448, before the control device sends the data frame carrying the wireless frame to the wireless access device, the method further includes:
步骤S148,控制设备按照预设格式对无线帧进行封装,得到数据帧,其中,数据响应帧是无线设备按照预设格式对响应帧进行封装得到的。Step S148: The control device encapsulates the wireless frame according to a preset format to obtain a data frame. The data response frame is obtained by encapsulating the response frame by the wireless device according to a preset format.
本申请上述实施例中,步骤S146,控制设备将无线帧发送至无线设备,并接收无线 设备返回的响应帧,包括:In the above embodiment of the present application, in step S146, the control device sends the wireless frame to the wireless device and receives a response frame returned by the wireless device, including:
步骤S1462,控制设备通过目标工作信道将无线帧发送至无线接入设备。Step S1462, the control device sends the wireless frame to the wireless access device through the target working channel.
步骤S1464,控制设备通过目标工作信道接收响应帧。Step S1464: The control device receives a response frame through the target working channel.
实施例9Example 9
根据本申请实施例,还提供了一种数据传输系统,包括:According to the embodiment of the present application, a data transmission system is further provided, including:
处理器;以及Processor; and
存储器,与处理器连接,用于为处理器提供处理以下处理步骤的指令:控制设备判断无线设备是否退出低功耗休眠状态;如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,其中,无线设备与无线接入设备连接;如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。The memory is connected to the processor and provides instructions for the processor to process the following processing steps: the control device determines whether the wireless device exits the low-power sleep state; if the wireless device does not exit the low-power sleep state, the control device wirelessly The incoming device sends the wireless frame to the wireless device and receives the response frame corresponding to the wireless frame returned by the wireless device, where the wireless device is connected to the wireless access device; if the wireless device exits the low-power sleep state, the control device sends the wireless frame Send to the wireless device and receive the response frame returned by the wireless device.
本申请上述实施例8所提供的方法,在控制设备判断无线设备是否退出低功耗休眠状态之后,如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧,从而实现控制设备与无线设备的数据传输。In the method provided in Embodiment 8 of the present application, after the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless access device through The wireless device receives the response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the control device. Data transmission with wireless devices.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,或者可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
由此,本申请提供的上述实施例8的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of Embodiment 8 provided in the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
实施例10Example 10
本申请的实施例可以提供一种计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。An embodiment of the present application may provide a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal described above may also be replaced with a terminal device such as a mobile terminal.
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the computer terminal may be located in at least one network device among multiple network devices in a computer network.
在本实施例中,上述计算机终端可以执行数据传输方法中以下步骤的程序代码:控制设备判断无线设备是否退出低功耗休眠状态,其中,无线设备与无线接入设备连接; 如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧;如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。In this embodiment, the computer terminal may execute the program code of the following steps in the data transmission method: the control device determines whether the wireless device exits the low-power sleep state, wherein the wireless device is connected to the wireless access device; if the wireless device does not exit In the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives the response frame corresponding to the wireless frame returned by the wireless device; if the wireless device exits the low-power sleep state, the control device will wirelessly The frame is sent to the wireless device and receives the response frame returned by the wireless device.
可选地,图15是根据本申请实施例的一种计算机终端的结构框图。如图15所示,该计算机终端A可以包括:一个或多个(图中仅示出一个)处理器152以及存储器154。Optionally, FIG. 15 is a structural block diagram of a computer terminal according to an embodiment of the present application. As shown in FIG. 15, the computer terminal A may include: one or more processors (only one is shown in the figure) a processor 152 and a memory 154.
其中,存储器可用于存储软件程序以及模块,如本申请实施例中的数据传输方法和装置对应的程序指令/模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的数据传输方法。存储器可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至终端A。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may be used to store software programs and modules, such as program instructions / modules corresponding to the data transmission method and device in the embodiments of the present application. The processor executes various functional applications by running the software programs and modules stored in the memory. And data processing, that is, the above-mentioned data transmission method is implemented. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely set with respect to the processor, and these remote memories may be connected to the terminal A through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:控制设备判断无线设备是否退出低功耗休眠状态,其中,无线设备与无线接入设备连接;如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧;如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。The processor may call the information and application stored in the memory through the transmission device to perform the following steps: the control device determines whether the wireless device exits the low-power sleep state, wherein the wireless device is connected to the wireless access device; In the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device and receives the response frame corresponding to the wireless frame returned by the wireless device; if the wireless device exits the low-power sleep state, the control device will The frame is sent to the wireless device and receives the response frame returned by the wireless device.
可选的,上述处理器还可以执行如下步骤的程序代码:控制设备通过目标工作信道将无线帧发送至无线接入设备,并通过无线接入设备将无线帧转发至无线设备,其中,目标工作信道为无线接入设备的工作信道;控制设备通过目标工作信道接收响应帧。Optionally, the processor may further execute the program code of the following steps: the control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device, where the target works The channel is the working channel of the wireless access device; the control device receives the response frame through the target working channel.
可选的,上述处理器还可以执行如下步骤的程序代码:无线帧由无线接入设备在目标工作信道中,通过广播或单播的传输方式转发至无线设备。Optionally, the processor may further execute the program code of the following steps: the wireless frame is forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
可选的,上述处理器还可以执行如下步骤的程序代码:控制设备连接无线接入设备;控制设备将携带有无线帧的数据帧发送至无线接入设备,并通过无线接入设备将数据帧转发至无线设备。Optionally, the processor may further execute the program code of the following steps: the control device is connected to the wireless access device; the control device sends the data frame carrying the wireless frame to the wireless access device, and the data frame is transmitted by the wireless access device Forward to wireless device.
可选的,上述处理器还可以执行如下步骤的程序代码:控制设备通过目标工作信道接收响应帧;控制设备接收无线接入设备发送的携带有响应帧的数据响应帧,其中,数据响应帧由无线设备发送至无线接入设备。Optionally, the processor may further execute the program code of the following steps: the control device receives a response frame through the target working channel; the control device receives a data response frame carrying a response frame sent by the wireless access device, where the data response frame is The wireless device sends to the wireless access device.
可选的,上述处理器还可以执行如下步骤的程序代码:在控制设备将携带有无线帧的数据帧发送至无线接入设备之前,控制设备按照预设格式对无线帧进行封装,得到数 据帧,其中,数据响应帧是无线设备按照预设格式对响应帧进行封装得到的。Optionally, the processor may further execute the program code of the following steps: before the control device sends the data frame carrying the wireless frame to the wireless access device, the control device encapsulates the wireless frame according to a preset format to obtain a data frame The data response frame is obtained by encapsulating the response frame by the wireless device according to a preset format.
可选的,上述处理器还可以执行如下步骤的程序代码:控制设备通过目标工作信道将无线帧发送至无线接入设备;控制设备通过目标工作信道接收响应帧。Optionally, the processor may further execute the program code of the following steps: the control device sends the wireless frame to the wireless access device through the target working channel; and the control device receives the response frame through the target working channel.
可选的,上述处理器还可以执行如下步骤的程序代码:通过预设方式控制无线设备在预设时间段内退出低功耗休眠状态。Optionally, the processor may further execute the program code of the following steps: controlling the wireless device to exit the low-power sleep state within a preset time period in a preset manner.
采用本申请实施例,在控制设备判断无线设备是否退出低功耗休眠状态之后,如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧,如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧,从而实现控制设备与无线设备的数据传输。In the embodiment of the present application, after the control device determines whether the wireless device exits the low-power sleep state, if the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device and receives The response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device, thereby realizing the data of the control device and the wireless device. transmission.
容易注意到的,可以将无线接入设备作为中介,将控制设备发送的无线帧转发给无线设备,或者可以暂时停止无线设备的低功耗休眠状态,与现有技术相比,实现在无线设备处于低功耗休眠状态时可以接收到控制设备发送的无线帧,达到了提高无线设备和控制设备之间的数据传输可靠性,提升用户的体验感和好感度的技术效果。It is easy to notice that the wireless access device can be used as an intermediary, and the wireless frame sent by the control device can be forwarded to the wireless device, or the low-power sleep state of the wireless device can be temporarily stopped. Compared with the prior art, the wireless device In the low-power sleep state, the wireless frame sent by the control device can be received, and the technical effect of improving the reliability of data transmission between the wireless device and the control device and improving the user's experience and favorability is achieved.
由此,本申请实施例的方案解决了现有技术中无线设备和控制设备之间的数据传输可靠性差的技术问题。Therefore, the solution of the embodiment of the present application solves the technical problem of poor reliability of data transmission between the wireless device and the control device in the prior art.
本领域普通技术人员可以理解,图15所示的结构仅为示意,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图15其并不对上述电子装置的结构造成限定。例如,计算机终端A还可包括比图15中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图15所示不同的配置。Those of ordinary skill in the art can understand that the structure shown in FIG. 15 is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (Mobile Internet Devices ), PAD and other terminal equipment. FIG. 15 does not limit the structure of the electronic device. For example, the computer terminal A may further include more or less components (such as a network interface, a display device, etc.) than those shown in FIG. 15, or have a configuration different from that shown in FIG. 15.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be completed by using a program to instruct terminal-related hardware. The program may be stored in a computer-readable storage medium, and the storage medium may Including: flash disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
实施例11Example 11
本申请的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述实施例一所提供的数据传输方法所执行的程序代码。An embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium may be used to store program code executed by the data transmission method provided in the first embodiment.
可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。Optionally, in this embodiment, the foregoing storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:控制设备判断无线设备是否退出低功耗休眠状态,其中,无线设备与无线接入设备连接;如果无线设备未退出低功耗休眠状态,则控制设备通过无线接入设备将无线帧发送至无线设备,并接收无线设备返回的无线帧对应的响应帧;如果无线设备退出低功耗休眠状态,则控制设备将无线帧发送至无线设备,并接收无线设备返回的响应帧。Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the control device determines whether the wireless device exits the low-power sleep state, where the wireless device is connected to the wireless access device; if If the wireless device does not exit the low-power sleep state, the control device sends the wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device. If the wireless device exits the low-power sleep state, then The control device sends a wireless frame to the wireless device and receives a response frame returned by the wireless device.
可选地,上述存储介质还被设置为存储用于执行以下步骤的程序代码:控制设备通过目标工作信道将无线帧发送至无线接入设备,并通过无线接入设备将无线帧转发至无线设备,其中,目标工作信道为无线接入设备的工作信道;控制设备通过目标工作信道接收响应帧。Optionally, the above storage medium is further configured to store program code for performing the following steps: the control device sends the wireless frame to the wireless access device through the target working channel, and forwards the wireless frame to the wireless device through the wireless access device The target working channel is the working channel of the wireless access device; the control device receives the response frame through the target working channel.
可选地,上述存储介质还被设置为存储用于执行以下步骤的程序代码:无线帧由无线接入设备在目标工作信道中,通过广播或单播的传输方式转发至无线设备。Optionally, the storage medium is further configured to store program code for performing the following steps: the wireless frame is forwarded to the wireless device by the wireless access device in a target working channel through a broadcast or unicast transmission mode.
可选地,上述存储介质还被设置为存储用于执行以下步骤的程序代码:控制设备连接无线接入设备;控制设备将携带有无线帧的数据帧发送至无线接入设备,并通过无线接入设备将数据帧转发至无线设备。Optionally, the storage medium is further configured to store program code for performing the following steps: the control device is connected to the wireless access device; the control device sends a data frame carrying the wireless frame to the wireless access device, and the wireless access device is The incoming device forwards the data frame to the wireless device.
可选地,上述存储介质还被设置为存储用于执行以下步骤的程序代码:控制设备通过目标工作信道接收响应帧;控制设备接收无线接入设备发送的携带有响应帧的数据响应帧,其中,数据响应帧由无线设备发送至无线接入设备。Optionally, the storage medium is further configured to store program code for performing the following steps: the control device receives a response frame through a target working channel; the control device receives a data response frame carrying a response frame sent by the wireless access device, where The data response frame is sent by the wireless device to the wireless access device.
可选地,上述存储介质还被设置为存储用于执行以下步骤的程序代码:在控制设备将携带有无线帧的数据帧发送至无线接入设备之前,控制设备按照预设格式对无线帧进行封装,得到数据帧,其中,数据响应帧是无线设备按照预设格式对响应帧进行封装得到的。Optionally, the storage medium is further configured to store program code for performing the following steps: before the control device sends the data frame carrying the wireless frame to the wireless access device, the control device performs the wireless frame according to a preset format. The data frame is obtained by encapsulation. The data response frame is obtained by encapsulating the response frame by the wireless device according to a preset format.
可选地,上述存储介质还被设置为存储用于执行以下步骤的程序代码:控制设备通过目标工作信道将无线帧发送至无线接入设备;控制设备通过目标工作信道接收响应帧。Optionally, the storage medium is further configured to store program code for performing the following steps: the control device sends a wireless frame to the wireless access device through a target working channel; and the control device receives a response frame through the target working channel.
可选地,上述存储介质还被设置为存储用于执行以下步骤的程序代码:通过预设方式控制无线设备在预设时间段内退出低功耗休眠状态。Optionally, the storage medium is further configured to store program code for performing the following steps: controlling the wireless device to exit the low-power sleep state within a preset time period in a preset manner.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the superiority or inferiority of the embodiments.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments of the present application, the description of each embodiment has its own emphasis. For a part that is not described in detail in an embodiment, reference may be made to the related description of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅 仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or may be combined. Integration into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium. , Including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. The foregoing storage media include: U disks, Read-Only Memory (ROM), Random Access Memory (RAM), mobile hard disks, magnetic disks, or optical disks, and other media that can store program codes .
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above is only the preferred implementation of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principles of the present application, several improvements and retouches can be made. These improvements and retouches also It should be regarded as the protection scope of this application.

Claims (19)

  1. 一种数据传输方法,包括:A data transmission method includes:
    控制设备判断无线设备是否退出低功耗休眠状态,其中,所述无线设备与无线接入设备连接;The control device determines whether the wireless device exits the low-power sleep state, wherein the wireless device is connected to a wireless access device;
    如果所述无线设备未退出所述低功耗休眠状态,则所述控制设备通过所述无线接入设备将无线帧发送至无线设备,并接收所述无线设备返回的所述无线帧对应的响应帧;If the wireless device does not exit the low-power sleep state, the control device sends a wireless frame to the wireless device through the wireless access device, and receives a response corresponding to the wireless frame returned by the wireless device frame;
    如果所述无线设备退出所述低功耗休眠状态,则所述控制设备将所述无线帧发送至所述无线设备,并接收所述无线设备返回的所述响应帧。If the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device.
  2. 根据权利要求1所述的方法,其中,所述控制设备通过所述无线接入设备将无线帧发送至无线设备,并接收所述无线设备返回的所述无线帧对应的响应帧,包括:The method according to claim 1, wherein the sending, by the control device, a wireless frame to the wireless device through the wireless access device, and receiving a response frame corresponding to the wireless frame returned by the wireless device, comprises:
    所述控制设备通过目标工作信道将所述无线帧发送至所述无线接入设备,并通过所述无线接入设备将所述无线帧转发至所述无线设备,其中,所述目标工作信道为所述无线接入设备的工作信道;The control device sends the wireless frame to the wireless access device through a target working channel, and forwards the wireless frame to the wireless device through the wireless access device, where the target working channel is A working channel of the wireless access device;
    所述控制设备通过所述目标工作信道接收所述响应帧。The control device receives the response frame through the target working channel.
  3. 根据权利要求2所述的方法,其中,所述无线帧由所述无线接入设备在所述目标工作信道中,通过广播或单播的传输方式转发至所述无线设备。The method according to claim 2, wherein the wireless frame is forwarded to the wireless device by the wireless access device in the target working channel through a broadcast or unicast transmission mode.
  4. 根据权利要求1所述的方法,其中,所述控制设备通过所述无线接入设备将无线帧发送至无线设备,包括:The method according to claim 1, wherein the sending, by the control device, a wireless frame to the wireless device through the wireless access device comprises:
    所述控制设备连接所述无线接入设备;The control device is connected to the wireless access device;
    所述控制设备将携带有所述无线帧的数据帧发送至所述无线接入设备,并通过所述无线接入设备将所述数据帧转发至所述无线设备。The control device sends a data frame carrying the wireless frame to the wireless access device, and forwards the data frame to the wireless device through the wireless access device.
  5. 根据权利要求4所述的方法,其中,所述控制设备接收所述无线设备返回的所述无线帧对应的响应帧,包括如下之一:The method according to claim 4, wherein the control device receiving the response frame corresponding to the wireless frame returned by the wireless device comprises one of the following:
    所述控制设备通过目标工作信道接收所述响应帧;Receiving, by the control device, the response frame through a target working channel;
    所述控制设备接收所述无线接入设备发送的携带有所述响应帧的数据响应帧,其中,所述数据响应帧由所述无线设备发送至所述无线接入设备。The control device receives a data response frame carrying the response frame sent by the wireless access device, wherein the data response frame is sent by the wireless device to the wireless access device.
  6. 根据权利要求5所述的方法,其中,在所述控制设备将携带有所述无线帧的数据帧发送至所述无线接入设备之前,所述方法还包括:The method according to claim 5, wherein before the control device sends a data frame carrying the wireless frame to the wireless access device, the method further comprises:
    所述控制设备按照预设格式对所述无线帧进行封装,得到所述数据帧,其中,所述数据响应帧是所述无线设备按照所述预设格式对所述响应帧进行封装得到的。The control device encapsulates the wireless frame according to a preset format to obtain the data frame, wherein the data response frame is obtained by the wireless device encapsulating the response frame according to the preset format.
  7. 根据权利要求1所述的方法,其中,所述控制设备将所述无线帧发送至所述无线设备,并接收所述无线设备返回的所述响应帧,包括:The method according to claim 1, wherein the controlling device sending the wireless frame to the wireless device and receiving the response frame returned by the wireless device comprises:
    所述控制设备通过目标工作信道将所述无线帧发送至所述无线接入设备;Sending, by the control device, the wireless frame to the wireless access device through a target working channel;
    所述控制设备通过所述目标工作信道接收所述响应帧。The control device receives the response frame through the target working channel.
  8. 根据权利要求7所述的方法,其中,通过预设方式控制所述无线设备在预设时间段内退出所述低功耗休眠状态。The method according to claim 7, wherein the wireless device is controlled to exit the low-power sleep state within a preset time period in a preset manner.
  9. 一种数据传输方法,包括:A data transmission method includes:
    控制设备通过无线接入设备将无线帧发送至无线设备,其中,所述无线设备与所述无线接入设备连接;The control device sends the wireless frame to the wireless device through the wireless access device, wherein the wireless device is connected to the wireless access device;
    所述控制设备接收所述无线设备返回的所述无线帧对应的响应帧。Receiving, by the control device, a response frame corresponding to the wireless frame returned by the wireless device.
  10. 根据权利要求9所述的方法,其中,The method according to claim 9, wherein:
    所述控制设备通过无线接入设备将无线帧发送至无线设备,包括:所述控制设备通过目标工作信道将所述无线帧发送至所述无线接入设备,并通过所述无线接入设备将所述无线帧转发至所述无线设备,其中,所述目标工作信道为所述无线接入设备的工作信道;The sending, by the control device, a wireless frame to the wireless device through the wireless access device includes: the control device sends the wireless frame to the wireless access device through a target working channel, and sends the wireless frame through the wireless access device. Forwarding the wireless frame to the wireless device, wherein the target working channel is a working channel of the wireless access device;
    所述控制设备接收所述无线设备返回的所述无线帧对应的响应帧,包括:所述控制设备通过所述目标工作信道接收所述响应帧。The receiving, by the control device, a response frame corresponding to the wireless frame returned by the wireless device includes: the control device receiving the response frame through the target working channel.
  11. 根据权利要求9所述的方法,其中,所述控制设备通过无线接入设备将无线帧发送至无线设备,包括:The method according to claim 9, wherein the sending, by the control device, the wireless frame to the wireless device through a wireless access device comprises:
    所述控制设备连接所述无线接入设备;The control device is connected to the wireless access device;
    所述控制设备将携带有所述无线帧的数据帧发送至所述无线接入设备,并通过所述无线接入设备将所述数据帧转发至所述无线设备。The control device sends a data frame carrying the wireless frame to the wireless access device, and forwards the data frame to the wireless device through the wireless access device.
  12. 根据权利要求11所述的方法,其中,所述控制设备接收所述无线设备返回的所述无线帧对应的响应帧,包括如下之一:The method according to claim 11, wherein the control device receiving the response frame corresponding to the wireless frame returned by the wireless device comprises one of the following:
    所述控制设备通过目标工作信道接收所述响应帧;Receiving, by the control device, the response frame through a target working channel;
    所述控制设备接收所述无线接入设备发送的携带有所述响应帧的数据响应帧,其中,所述数据响应帧由所述无线设备发送至所述无线接入设备。The control device receives a data response frame carrying the response frame sent by the wireless access device, wherein the data response frame is sent by the wireless device to the wireless access device.
  13. 一种数据传输方法,包括:A data transmission method includes:
    控制设备将无线帧发送至无线设备,其中,所述无线设备与无线接入设备连接,所述无线设备退出低功耗休眠状态;The control device sends the wireless frame to the wireless device, wherein the wireless device is connected to the wireless access device, and the wireless device exits the low-power sleep state;
    所述控制设备接收所述无线设备返回的所述无线帧对应的响应帧。Receiving, by the control device, a response frame corresponding to the wireless frame returned by the wireless device.
  14. 根据权利要求13所述的方法,其中,The method according to claim 13, wherein:
    控制设备将无线帧发送至无线设备,包括:所述控制设备通过目标工作信道将所述响应帧发送至所述无线接入设备,其中,所述目标工作信道为所述无线接入设备的工作信道;The control device sends the wireless frame to the wireless device, which includes: the control device sends the response frame to the wireless access device through a target working channel, wherein the target working channel is the work of the wireless access device. channel;
    所述控制设备接收所述无线设备返回的所述响应帧,包括:所述控制设备通过所述目标工作信道接收所述响应帧。The receiving, by the control device, the response frame returned by the wireless device includes: the control device receiving the response frame through the target working channel.
  15. 一种数据传输系统,包括:A data transmission system includes:
    无线设备,与无线接入设备连接;Wireless equipment, connected with wireless access equipment;
    控制设备,用于判断所述无线设备是否退出低功耗休眠状态,如果所述无线设备未退出所述低功耗休眠状态,则通过所述无线接入设备将无线帧发送至无线设备,如果所述无线设备退出所述低功耗休眠状态,则将所述无线帧发送至所述无线设备;A control device for determining whether the wireless device exits the low-power sleep state, and if the wireless device does not exit the low-power sleep state, sending a wireless frame to the wireless device through the wireless access device, if When the wireless device exits the low-power sleep state, sending the wireless frame to the wireless device;
    所述无线设备,用于如果未退出所述低功耗休眠状态,则通过所述无线接入设备将所述无线帧对应的响应帧发送至所述控制设备,如果退出所述低功耗休眠状态,则将所述响应帧发送至所述控制设备。The wireless device is configured to send a response frame corresponding to the wireless frame to the control device through the wireless access device if the low-power sleep state is not exited, and if the low-power sleep state is exited, Status, the response frame is sent to the control device.
  16. 一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行如下步骤:控制设备判断无线设备是否退出低功耗休眠状态;如果所述无线设备未退出所述低功耗休眠状态,则所述控制设备通过无线接入设备将无线帧发送至无线设备,并接收所述无线设备返回的所述无线帧对应的响应帧,其中,所述无线设备与所述无线接入设备连接;如果所述无线设备退出所述低功耗休眠状态,则所述控制设备将所述无线帧发送至所述无线设备,并接收所述无线设备返回的所述响应帧。A storage medium includes a stored program, and when the program runs, controlling a device where the storage medium is located performs the following steps: the control device determines whether a wireless device exits a low-power sleep state; if the wireless device If the device does not exit the low-power sleep state, the control device sends a wireless frame to the wireless device through a wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, wherein the A wireless device is connected to the wireless access device; if the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the wireless frame returned by the wireless device The response frame.
  17. 一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行如下步骤:控制设备判断无线设备是否退出低功耗休眠状态;如果所述无线设备未退出所述低功耗休眠状态,则所述控制设备通过无线接入设备将无线帧发送至无线设备,并接收所述无线设备返回的所述无线帧对应的响应帧,其中,所述无线设备与所述无线接入设备连接;如果所述无线设备退出所述低功耗休眠状态,则所述控制设备将所述无线帧发送至所述无线设备,并接收所述无线设备返回的所述响应帧。A processor for running a program, wherein the program executes the following steps when the program runs: a control device determines whether a wireless device exits a low-power sleep state; if the wireless device does not exit the low-power sleep state State, the control device sends a wireless frame to the wireless device through a wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, wherein the wireless device and the wireless access device Connect; if the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device.
  18. 一种数据传输系统,包括:A data transmission system includes:
    处理器;以及Processor; and
    存储器,与所述处理器连接,用于为所述处理器提供处理以下处理步骤的指令:控制设备判断无线设备是否退出低功耗休眠状态;如果所述无线设备未退出所述低功耗休眠状态,则所述控制设备通过无线接入设备将无线帧发送至无线设备,并接收所述无线设备返回的所述无线帧对应的响应帧,其中,所述无线设备与所述无线接入设备连接;如果所述无线设备退出所述低功耗休眠状态,则所述控制设备将所述无线帧发送至所述无线设备,并接收所述无线设备返回的所述响应帧。A memory connected to the processor and configured to provide the processor with instructions for processing the following processing steps: a control device determines whether a wireless device exits a low-power sleep state; if the wireless device does not exit the low-power sleep state State, the control device sends a wireless frame to the wireless device through a wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device, wherein the wireless device and the wireless access device Connect; if the wireless device exits the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device.
  19. 一种数据传输方法,包括:A data transmission method includes:
    控制设备判断无线设备是否处于低功耗休眠状态,其中,所述无线设备与无线接入设备连接;The control device determines whether the wireless device is in a low-power sleep state, wherein the wireless device is connected to a wireless access device;
    如果所述无线设备处于所述低功耗休眠状态,则所述控制设备通过所述无线接入设备将无线帧发送至无线设备,并接收所述无线设备返回的所述无线帧对应的响应帧;If the wireless device is in the low-power sleep state, the control device sends a wireless frame to the wireless device through the wireless access device, and receives a response frame corresponding to the wireless frame returned by the wireless device ;
    如果所述无线设备未处于所述低功耗休眠状态,则所述控制设备将所述无线帧发送至所述无线设备,并接收所述无线设备返回的所述响应帧。If the wireless device is not in the low-power sleep state, the control device sends the wireless frame to the wireless device and receives the response frame returned by the wireless device.
PCT/CN2019/095532 2018-07-19 2019-07-11 Data transmission method and system WO2020015573A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810798730.9 2018-07-19
CN201810798730.9A CN110740494A (en) 2018-07-19 2018-07-19 Data transmission method and system

Publications (1)

Publication Number Publication Date
WO2020015573A1 true WO2020015573A1 (en) 2020-01-23

Family

ID=69163861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095532 WO2020015573A1 (en) 2018-07-19 2019-07-11 Data transmission method and system

Country Status (3)

Country Link
CN (1) CN110740494A (en)
TW (1) TW202008754A (en)
WO (1) WO2020015573A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483829A (en) * 2008-01-10 2009-07-15 华为技术有限公司 Terminal and method for information interaction between terminals
CN101557330A (en) * 2008-04-08 2009-10-14 深圳华为通信技术有限公司 Method, system and terminals supporting power saving mode
US20120163261A1 (en) * 2010-12-23 2012-06-28 Texas Instruments Incorporated Timing measurements between wireless stations with reduced power consumption
CN104244333A (en) * 2013-06-14 2014-12-24 华为技术有限公司 Terminal-to-terminal D2D data transmission method and device and system
CN105530712A (en) * 2014-09-30 2016-04-27 华为技术有限公司 Direct link scheduling method, access point and terminal device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2218236B1 (en) * 2007-11-12 2019-01-02 LG Electronics Inc. Procedure for a power save mode in a direct link setup wireless network
WO2010030136A2 (en) * 2008-09-11 2010-03-18 Lg Electronics Inc. Power management in tunneled direct link setup
US9072082B2 (en) * 2010-07-29 2015-06-30 Qualcomm Incorporated Systems and methods of communication using tunneled direct link setup (TDLS)
CN111836404B (en) * 2015-09-29 2024-04-12 华为技术有限公司 End-to-end communication link establishment method, access point and station

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483829A (en) * 2008-01-10 2009-07-15 华为技术有限公司 Terminal and method for information interaction between terminals
CN101557330A (en) * 2008-04-08 2009-10-14 深圳华为通信技术有限公司 Method, system and terminals supporting power saving mode
US20120163261A1 (en) * 2010-12-23 2012-06-28 Texas Instruments Incorporated Timing measurements between wireless stations with reduced power consumption
CN104244333A (en) * 2013-06-14 2014-12-24 华为技术有限公司 Terminal-to-terminal D2D data transmission method and device and system
CN105530712A (en) * 2014-09-30 2016-04-27 华为技术有限公司 Direct link scheduling method, access point and terminal device

Also Published As

Publication number Publication date
TW202008754A (en) 2020-02-16
CN110740494A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN110557777B (en) Network connection control method, terminal and storage medium
US20210272566A1 (en) Communication Method, Server, and Device
US10939490B2 (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device
US11758399B2 (en) Wireless local area network configuration using probe request frame having authentication information
WO2020182009A1 (en) Network connection method, terminal, base station, and computer storage medium
US10951425B2 (en) Power supply method, device, and power supply system
US9692697B2 (en) Control channel establishing method, forwarding point, and controller
CN106341468B (en) Remote awakening method, device and system of intelligent equipment
CN106292323A (en) Switch panel is configured to the system and method for Multifunctional control panel
US20130313892A1 (en) Power management device and method
JP3570968B2 (en) Router device
TW201421951A (en) A portable routing device and a routing method
CN108234562B (en) Equipment control method, control equipment and controlled equipment
CN106714287B (en) Method and device for saving electric quantity of terminal based on network access control
CN111277505B (en) Multi-terminal joint control method, device, equipment and storage medium based on local area network
CN109951308A (en) A kind of method for configuring routers, device and storage medium
JP2013005110A (en) Virtual network system, configuration change method, tunnel termination device, tunnel connection device, and program
WO2020015573A1 (en) Data transmission method and system
JP2014140095A (en) Communication system and network relay device
WO2019237227A1 (en) Control method, host, slave, mobile terminal, and control system
US11482095B2 (en) Wireless control method, system, and apparatus for determining the state of a power switch
TWI497943B (en) Portable router and power saving control method thereof
CN104063033A (en) State switching method based on electronic equipment interlinking and electronic equipment
CN115004640A (en) Equipment power consumption management system, method, equipment and storage medium
TWI679870B (en) Information processing method and device

Legal Events

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

Ref document number: 19837367

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19837367

Country of ref document: EP

Kind code of ref document: A1