CN112332946B - Data transmission method, system, storage medium and gateway - Google Patents

Data transmission method, system, storage medium and gateway Download PDF

Info

Publication number
CN112332946B
CN112332946B CN201910715483.6A CN201910715483A CN112332946B CN 112332946 B CN112332946 B CN 112332946B CN 201910715483 A CN201910715483 A CN 201910715483A CN 112332946 B CN112332946 B CN 112332946B
Authority
CN
China
Prior art keywords
gateway
channel quality
server
main control
data
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910715483.6A
Other languages
Chinese (zh)
Other versions
CN112332946A (en
Inventor
朱逢辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ezviz Network Co Ltd
Original Assignee
Hangzhou Ezviz Network Co Ltd
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 Hangzhou Ezviz Network Co Ltd filed Critical Hangzhou Ezviz Network Co Ltd
Priority to CN201910715483.6A priority Critical patent/CN112332946B/en
Publication of CN112332946A publication Critical patent/CN112332946A/en
Application granted granted Critical
Publication of CN112332946B publication Critical patent/CN112332946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The data transmission method, system, storage medium and gateway provided by the embodiment of the invention comprise: and acquiring detection data sent by the wireless detector, and sending the detection data to the intelligent main control equipment or the server according to the first transmission quality between the gateway and the intelligent main control equipment and the second transmission quality between the gateway and the server. According to the technical scheme, the transmission path of the detection data is determined according to the transmission quality, and the data transmission efficiency is improved.

Description

Data transmission method, system, storage medium and gateway
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a data transmission system, a storage medium, and a gateway.
Background
The small wireless network refers to a frequency band below Sub-1G, and is divided into four series of 433MHz, 470MHz, 868MHz and 915MHz according to a wireless transmission frequency band, wherein the channel and the bandwidth are narrow, the rate is generally 10Kbps, the small wireless network is suitable for transmitting a small amount of data, the communication distance can be generally 200 meters to 500 meters, and the power consumption is low. At present, a wireless detector adopts a small wireless network to establish communication connection with a gateway, so that detection data is reported to an intelligent main control device through the gateway, for example: provided is a mobile phone.
Because the gateway and the mobile phone usually establish communication connection in an 802.11 wireless network manner, due to the wide use of the 802.11 wireless network, channel congestion and transmission efficiency are reduced, so that the report of the detection data is not timely.
Disclosure of Invention
The application provides a data transmission method, a data transmission system, a storage medium and a gateway, which aim to overcome the problem of low efficiency of the existing data transmission.
A data transmission method provided in a first aspect of the present application includes:
acquiring detection data sent by a wireless detector;
and sending the detection data to the intelligent main control equipment or the server according to the first transmission quality between the gateway and the intelligent main control equipment and the second transmission quality between the gateway and the server.
Optionally, the first transmission quality includes a first channel quality when the gateway transmits preset data to the intelligent master control device, and the second transmission quality includes a second channel quality when the gateway transmits the preset data to the server;
correspondingly, the sending the detection data to the intelligent main control device or the server according to the first transmission quality between the gateway and the intelligent main control device and the second transmission quality between the gateway and the server includes:
and if the difference value between the first channel quality and the second channel quality is greater than a preset threshold value, sending the detection data to the intelligent main control equipment.
Optionally, the first transmission quality further includes a first discrete value, where the first discrete value is used to represent a channel quality distribution degree of each sampling point when the gateway transmits the preset data to the intelligent master control device, and the second transmission quality further includes a second discrete value, where the second discrete value is used to represent a channel quality distribution degree of each sampling point when the gateway transmits the preset data to the server;
if the difference between the first channel quality and the second channel quality is smaller than a preset threshold, the method further comprises:
if the first discrete value is larger than the second discrete value, sending the detection data to the server;
and if the first discrete value is smaller than the second discrete value, sending the detection data to the intelligent main control equipment.
Optionally, the method further includes:
and acquiring the quality of a third channel when the wireless detector transmits the preset data to the gateway.
Optionally, the sending the detection data to the intelligent master control device includes:
acquiring a first delay sending time according to the first channel quality and the third channel quality;
and after the first delay sending time, sending the detection data to the intelligent main control equipment.
Optionally, the sending the probe data to the server includes:
acquiring a second delay sending time according to the second channel quality and the third channel quality;
and after the second delay sending time, sending the detection data to the server.
Optionally, the gateway is connected to the intelligent master control device through bluetooth low energy, and the gateway is connected to the server through an 802.11 wireless network.
A second aspect of the present invention provides a gateway, comprising a processor and a communication module, wherein:
the processor is used for acquiring detection data sent by the wireless detector;
and the communication module is used for sending the detection data to the intelligent main control equipment or the server according to the first transmission quality between the gateway and the intelligent main control equipment and the second transmission quality between the gateway and the server.
Optionally, the first transmission quality includes a first channel quality when the gateway transmits preset data to the intelligent master control device, the second transmission quality includes a second channel quality when the gateway transmits the preset data to the server, and the communication module is specifically configured to:
and if the difference value between the first channel quality and the second channel quality is greater than a preset threshold value, sending the detection data to the intelligent main control equipment.
Optionally, the first transmission quality further includes a first discrete value, the first discrete value is used to represent a channel quality distribution degree of each sampling point when the gateway transmits the preset data to the intelligent main control device, the second transmission quality further includes a second discrete value, the second discrete value is used to represent a channel quality distribution degree of each sampling point when the gateway transmits the preset data to the server, and if a difference between the first channel quality and the second channel quality is smaller than a preset threshold, the communication module is further configured to:
if the first discrete value is larger than the second discrete value, sending the detection data to the server;
and if the first discrete value is smaller than the second discrete value, sending the detection data to the intelligent main control equipment.
Optionally, the processor is further configured to:
and acquiring the quality of a third channel when the wireless detector transmits the preset data to the gateway.
Optionally, the communication module is specifically configured to:
acquiring a first delay sending time according to the first channel quality and the third channel quality;
and after the first delay sending time, sending the detection data to the intelligent main control equipment.
Optionally, the communication module is specifically configured to:
acquiring a second delay sending time according to the second channel quality and the third channel quality;
and after the second delay sending time, sending the detection data to the server.
Optionally, the gateway is connected to the intelligent master control device through bluetooth low energy, and the gateway is connected to the server through an 802.11 wireless network.
A third aspect of the present invention provides a data transmission system, a wireless probe, a gateway, an intelligent master control device, and a server, where the gateway is configured to perform the method according to any one of the first aspect and various possible implementation manners of the first aspect.
A fourth aspect of the present invention provides a storage medium having stored therein instructions that, when run on a computer, cause the computer to perform the method according to any one of the first aspect and its various possible implementations.
The data transmission method, system, storage medium and gateway provided by the embodiment of the invention comprise: and acquiring detection data sent by the wireless detector, and sending the detection data to the intelligent main control equipment or the server according to the first transmission quality between the gateway and the intelligent main control equipment and the second transmission quality between the gateway and the server. According to the technical scheme, the transmission path of the detection data is determined according to the transmission quality, and the transmission efficiency of the data is not improved.
Drawings
Fig. 1 is a schematic diagram of a conventional data transmission system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a data transmission system according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a data transmission method according to another embodiment of the present invention;
fig. 5 is a schematic flowchart of a data transmission method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, terms of art related to embodiments of the present invention will be described.
Bluetooth Low Energy (BLE): the BLE uses 2.4GHz radio frequency, is an unauthorized frequency band, is widely applied to various smart phones and low-power-consumption wireless equipment, has the speed generally between 125Kbps and 2Mbps, the coverage range of 100m and the power consumption of about 10mA, and can be directly connected with intelligent control equipment for communication.
802.11 wireless network: the standard specification of Wireless Local Area Networks (WLANs) is widely applied to various environments, the used frequency bands are 2.4GHz, 5GHz and the like, the access speed of the WLAN can reach more than 100Mbps, the coverage Area is more than 100m, the power consumption is more than 100mA, and the WLAN can be directly connected with intelligent control equipment for communication.
A small wireless network: that is, the frequency band below Sub-1G is divided into four series of 433MHz, 470MHz, 868MHz, 915MHz according to the wireless transmission frequency band, the channel and bandwidth are narrow, the rate is generally 10Kbps, and the frequency band is suitable for transmitting a small amount of data, the communication distance can be generally 200 meters to 500 meters, the power consumption is low, and the special detector is connected with the gateway by using a small wireless network.
Fig. 1 is a schematic diagram of a conventional data transmission system according to an embodiment of the present invention, and as shown in fig. 1, a conventional data transmission system 10 according to the embodiment includes: wireless detector 11, gateway 12 and intelligent master control device 13, wherein the intelligent master control device may be a terminal device, for example: provided is a mobile phone. It should be noted that the number of the wireless detector 11, the gateway 12, and the intelligent master control device 13 is not limited to one.
The wireless detector 11 generally uses a small wireless network to establish communication connection with the gateway 12, and the gateway 12 and the intelligent main control device 13 establish communication connection through the 802.11 wireless network, however, due to the wide use of the 802.11 wireless network, channel congestion and transmission efficiency are reduced, so that the report of the detection data is not timely, and due to the large sending and receiving currents of the 802.11 wireless network, power consumption is increased, and in addition, due to the small data volume of the detection data, the use of the 802.11 wireless network is not favorable for low-power consumption processing. Wherein, the wireless detector 11 may be an anti-theft alarm device.
An embodiment of the present invention provides a data transmission system for solving the problems existing in the prior art, and fig. 2 is a schematic diagram of the data transmission system provided in an embodiment of the present invention, as shown in fig. 2, a data transmission system 20 provided in this embodiment includes: wireless detector 21, gateway 22, intelligent master control device 23 and server 24.
The wireless detector 21 and the gateway 22 establish communication connection through a small wireless network, the gateway 22 is connected with the intelligent main control device 23, the gateway 23 is connected with the server 24, and the server 24 is connected with the intelligent main control device 23. In this way, in both ways, the intelligent master control device 23 can obtain the detection data, thereby implementing the processing and analysis of the detection data.
Optionally, the gateway 22 is connected to the intelligent master control device 23 through bluetooth low energy, and the gateway 23 is connected to the server 24 through an 802.11 wireless network.
In the data transmission system provided by this embodiment, the detection data is determined to be sent to the server or the intelligent main control device according to the transmission quality, so that the transmission efficiency of the detection data is improved, and meanwhile, the detection data is sent to the intelligent main control device through the low-power-consumption Bluetooth, so that the power consumption of the gateway is reduced.
The technical solution of the present application will be described in detail by specific examples. It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 3 is a schematic flow chart of a data transmission method according to an embodiment of the present invention, where an execution main body of the embodiment may be a device for executing the data transmission method, and the device may be implemented by software and/or hardware, and in the embodiment, the device is integrated in a gateway. As shown in fig. 1, the data transmission method includes the following steps:
s101, acquiring detection data sent by the wireless detector.
The wireless detector is connected with the gateway through a small wireless network, the wireless detector can report detection data to the gateway in real time, or the gateway sends an acquisition request to the wireless detector, so that the wireless detector reports the acquired detection data to the gateway. Therefore, the gateway can obtain the detection data sent by the wireless detector.
Illustratively, the wireless detector is an anti-theft alarm type device, such as: the security door generally utilizes a magnetic induction principle to prevent theft, when an object is taken out of a specific area, a specific person is required to demagnetize the object, the object carrying non-demagnetized object leaves the specific area, when the object passes through the security door, the security door can send an alarm message to a gateway, and the gateway pushes the alarm message to an intelligent main control device, so that a user can process the situation in time, wherein detection data comprise the alarm message.
S102, sending the detection data to the intelligent main control equipment or the server according to the first transmission quality between the gateway and the intelligent main control equipment and the second transmission quality between the gateway and the server.
The intelligent main control device may be, for example, a mobile phone, a tablet, a computer, and the like, which is not limited in this embodiment. The gateway and the intelligent master control equipment can be connected through low-power Bluetooth, and the gateway and the server are connected through an 802.11 wireless network.
The first transmission quality comprises first channel quality when the gateway transmits preset data to the intelligent main control equipment, and the second transmission quality comprises second channel quality when the gateway transmits the preset data to the server.
The preset data may be at least one detection data, the number of the wireless detectors may be at least one, and each wireless detector corresponds to one detection data.
Optionally, the first channel quality may be determined as follows:
a1: measuring a signal strength value K _ RSSI _ ble under a static condition (when data are not transmitted);
a2: signal intensity value K when measuring gateway transmits preset data to intelligent main control equipmentrssi_ble_A
A3: according to the signal intensity value K _ RSSI _ ble under the static condition and the signal intensity value K when the gateway transmits the preset data to the intelligent main control equipmentrssi_ble_AAnd acquiring the first channel quality.
Specifically, the signal strength value K _ RSSI _ ble under the static condition may be measured using a spectrometer and a dedicated meter of the WLAN, or a WiFi chip. When the gateway transmits the preset data to the intelligent main control equipmentSignal strength value K ofrssi_ble_ACan be calculated by equation (1):
Figure BDA0002155267580000071
wherein, Krssi_ble_ATransmitting a signal intensity value of preset data to the intelligent main control equipment for the gateway; k is a radical ofrssi_ble_iThe signal intensity value at the ith sampling point when the gateway transmits the preset data to the intelligent main control equipment can be obtained by using a frequency spectrograph and a special instrument of a WLAN or a WiFi chip for measurement; the value range of i is 1 to N, and N is the number of sampling points; cbThe correction value of the Bluetooth error can be selected according to actual conditions.
Optionally, since the amount of data transmitted by bluetooth low energy is small, N is 128.
In this embodiment, the signal strength value K _ RSSI _ ble under the static condition and the signal strength value K when the gateway transmits the preset data to the intelligent main control device may be setrssi_ble_AAdding to obtain the first channel quality, wherein the first channel quality is calculated by the method including but not limited to K _ RSSI _ ble and K _ cqi _ blerssi_ble_AThe first channel quality may be obtained from the two parameters in any way by a person skilled in the art.
Likewise, the second channel quality may be determined by:
b1: measuring a signal strength value K _ RSSI _ wlan under a static condition;
b2: signal intensity value K when measuring gateway transmits preset data to intelligent main control equipmentrssi_wlan_A
B3: according to the signal intensity value K _ RSSI _ wlan under the static condition and the signal intensity value K when the gateway transmits preset data to the intelligent main control equipmentrssi_wlan_AAnd acquiring the second channel quality.
Specifically, the signal strength value K _ RSSI _ WLAN under the static condition can be measured by using a spectrometer and a dedicated meter of the WLAN, or a WiFi chip. Signal intensity value K when gateway transmits preset data to serverrssi_wlan_ACan be calculated by equation (2):
Figure BDA0002155267580000072
wherein, Krssi_wlan_ATransmitting a signal strength value of preset data to a server for a gateway; k is a radical ofrssi_wlan_iThe signal intensity value at the ith sampling point when the gateway transmits the preset data to the server can be obtained by using a frequency spectrograph and a special instrument of a WLAN or a WiFi chip for measurement; the value range of i is 1 to M, and M is the number of sampling points; cwThe error correction value of the wlan can be selected according to actual conditions.
Optionally, M is 512.
The second channel quality is obtained in a manner similar to that of the first channel quality, and is not described herein again.
In this embodiment, S102 specifically includes:
c1: and calculating to obtain the difference value between the first channel quality and the second channel quality.
C2: and if the difference value between the first channel quality and the second channel quality is larger than a preset threshold value, sending the detection data to the intelligent main control equipment.
Specifically, if the difference between the first channel quality and the second channel quality is greater than the preset threshold, which indicates that the first channel quality is much greater than the second channel quality, the detection data is sent to the intelligent main control device, so that the problem of low transmission efficiency caused when the detection data is sent to the server is avoided.
The data transmission method provided by the embodiment comprises the following steps: and acquiring detection data sent by the wireless detector, and sending the detection data to the intelligent main control equipment or the server according to the first transmission quality between the gateway and the intelligent main control equipment and the second transmission quality between the gateway and the server. According to the technical scheme, the transmission path of the detection data is determined according to the transmission quality, and the transmission efficiency of the data is improved.
On the basis of the above embodiment, if the difference between the first channel quality and the second channel quality is smaller than the preset threshold, the embodiment shown in fig. 4 is combined for description.
Fig. 4 is a schematic flow chart of a data transmission method according to another embodiment of the present invention, and as shown in fig. 4, the data transmission method further includes:
s201, if the first discrete value is larger than the second discrete value, sending the detection data to a server.
S202, if the first discrete value is smaller than the second discrete value, the detection data are sent to the intelligent main control equipment.
The first transmission quality further comprises a first discrete value, the first discrete value is used for representing the quality distribution degree of each sampling point channel when the gateway transmits the preset data to the intelligent main control device, the second transmission quality further comprises a second discrete value, and the second discrete value is used for representing the quality distribution degree of each sampling point channel when the gateway transmits the preset data to the server.
In this embodiment, when the difference between the first channel quality and the second channel quality is smaller than the preset threshold, which indicates that the difference between the first channel quality and the second channel quality is not large, it is further determined whether to send the probe data to the intelligent main control device or the server according to the first discrete value and the second discrete value.
Specifically, the magnitude of the first discrete value and the magnitude of the second discrete value are compared, and if the first discrete value is larger than the second discrete value, it is indicated that the channel quality of each sampling point obtained when the gateway transmits the preset data to the intelligent main control device is more discrete, and the fluctuation of the sample is larger, so that the detection data is sent to the server for preventing fluctuation.
Correspondingly, if the first discrete value is smaller than the second discrete value, the detection data are sent to the intelligent main control equipment.
Illustratively, the first discrete value is determined by equation (3):
Figure BDA0002155267580000091
wherein, Vble_iIs a first discrete value, Krssi_ble_AWhen transmitting preset data to a server for a gatewaySignal strength value of, krssi_ble_iAnd (3) the value range of i is 1 to N, N is the number of the sampling points, and N can be 128.
The second discrete value is determined by equation (4):
Figure BDA0002155267580000092
wherein, Vwlan_iIs a second discrete value, Krssi_wlan_AFor the signal strength value, k, at which the gateway transmits the predetermined data to the serverrssi_wlan_iAnd (3) when the gateway transmits preset data to the server, the value range of i is 1 to M, M is the number of sampling points, and M can be 512.
The data transmission method provided by the embodiment comprises the following steps: and if the difference value between the first channel quality and the second channel quality is smaller than the preset threshold value, sending the detection data to the server if the first discrete value is larger than the second discrete value, and if the first discrete value is smaller than the second discrete value, sending the detection data to the intelligent main control equipment. The transmission path of the detection data is determined through the sample discrete value, and the transmission efficiency and stability of the data are improved.
On the basis of the above embodiment, after the wireless detection device transmits the preset data to the gateway if the preset data is the detection data, if the intensity of the environmental noise is greater than the preset intensity, the detection data needs to be sent in a delayed manner, so as to avoid the data from being interfered by the environmental noise. This is described in more detail below with reference to the embodiment of fig. 5.
Fig. 5 is a schematic flow chart of a data transmission method according to another embodiment of the present invention, and as shown in fig. 5, S102 specifically includes:
s301, acquiring third channel quality when the wireless detector transmits preset data to the gateway.
The wireless detector and the gateway establish communication connection through a small wireless network, and when the wireless detector transmits preset data to the gateway, the third channel quality can be measured, and specifically, the third channel quality can be determined through the following steps:
d1: measuring a signal strength value K _ RSSI _ sub1G under a static condition;
d2: signal intensity value K when wireless detector transmits preset data to gatewayrssi_sub1G_A
D3: according to the signal intensity value K _ RSSI _ sub1G under the static condition and the signal intensity value K when the gateway transmits the preset data to the intelligent main control equipmentrssi_sub1G_AAnd acquiring a third channel quality.
Wherein, Krssi_sub1G_AIs calculated by the method of (1) andrssi_wlan_Ain a similar manner except that CwThe error correction value sub1G can be selected according to actual conditions, and M can also be selected according to actual conditions, which are not described herein again.
It should be noted that the obtaining manner of the third channel quality is similar to the obtaining manner of the first channel quality and the second channel quality, and is not described herein again. The present embodiment also does not limit the preset data.
S302, acquiring a first delay sending time according to the first channel quality and the third channel quality.
And S303, after the first delay sending time, sending the detection data to the intelligent main control equipment.
Specifically, the correspondence between the first channel quality, the third channel quality, and the delayed transmission time is locally stored, and the first delayed transmission time corresponding to the first channel quality and the third channel quality can be determined according to the correspondence. And then, after the first delay sending time, the detection data are sent to the intelligent main control equipment, so that the interference of noise to the detection data is avoided, and the accuracy of data transmission is improved.
Likewise, S102 may further include:
s304, acquiring the third channel quality when the wireless detector transmits the preset data to the gateway.
S305, acquiring a second delay sending time according to the second channel quality and the third channel quality.
And S306, after the second delay sending time, sending the detection data to a server.
The data transmission method provided by the embodiment comprises the following steps: and acquiring third channel quality when the wireless detector transmits the preset data to the gateway, acquiring first delay sending time according to the first channel quality and the third channel quality, and sending the detection data to the intelligent main control equipment after the first delay sending time. Therefore, the interference of noise to the detection data is avoided, and the accuracy of data transmission is improved.
Fig. 6 is a schematic structural diagram of a gateway provided in an embodiment of the present invention, where the gateway 60 includes a processor 61 and a communication module 62, where:
the processor 61 is configured to obtain detection data sent by the wireless detector;
the communication module 62 is configured to send the detection data to the intelligent main control device or the server according to a first transmission quality between the gateway and the intelligent main control device and a second transmission quality between the gateway and the server.
Optionally, the first transmission quality includes a first channel quality when the gateway transmits preset data to the intelligent master control device, the second transmission quality includes a second channel quality when the gateway transmits the preset data to the server, and the communication module 62 is specifically configured to:
and if the difference value between the first channel quality and the second channel quality is greater than a preset threshold value, sending the detection data to the intelligent main control equipment.
Optionally, the first transmission quality further includes a first discrete value, the first discrete value is used to represent a channel quality distribution degree of each sampling point when the gateway transmits the preset data to the intelligent main control device, the second transmission quality further includes a second discrete value, the second discrete value is used to represent a channel quality distribution degree of each sampling point when the gateway transmits the preset data to the server, and if a difference between the first channel quality and the second channel quality is smaller than a preset threshold, the communication module 62 is further configured to:
if the first discrete value is larger than the second discrete value, sending the detection data to the server;
and if the first discrete value is smaller than the second discrete value, sending the detection data to the intelligent main control equipment.
Optionally, the processor 61 is further configured to:
and acquiring the quality of a third channel when the wireless detector transmits the preset data to the gateway.
Optionally, the communication module 62 is specifically configured to:
acquiring a first delay sending time according to the first channel quality and the third channel quality;
and after the first delay sending time, sending the detection data to the intelligent main control equipment.
Optionally, the communication module 62 is specifically configured to:
acquiring a second delay sending time according to the second channel quality and the third channel quality;
and after the second delay sending time, sending the detection data to the server.
Optionally, the gateway is connected to the intelligent master control device through bluetooth low energy, and the gateway is connected to the server through an 802.11 wireless network.
The gateway provided by the embodiment of the present invention may be used to implement the technical solutions in the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the determining module may be a processing element separately set up, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the determining module is called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the data transmission method provided in any of the implementation manners in the foregoing method embodiments.
The readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the units is only a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A data transmission method is applied to a gateway and comprises the following steps:
acquiring detection data sent by a wireless detector;
sending the detection data to the intelligent main control equipment or the server according to the first transmission quality between the gateway and the intelligent main control equipment and the second transmission quality between the gateway and the server;
the first transmission quality comprises first channel quality when the gateway transmits preset data to the intelligent main control equipment, and the second transmission quality comprises second channel quality when the gateway transmits the preset data to the server;
correspondingly, the sending the detection data to the intelligent main control device or the server according to the first transmission quality between the gateway and the intelligent main control device and the second transmission quality between the gateway and the server includes:
if the difference value between the first channel quality and the second channel quality is larger than a preset threshold value, sending the detection data to the intelligent main control equipment;
the first transmission quality further comprises a first discrete value, the first discrete value is used for representing the channel quality distribution degree of each sampling point when the gateway transmits the preset data to the intelligent main control device, the second transmission quality further comprises a second discrete value, and the second discrete value is used for representing the channel quality distribution degree of each sampling point when the gateway transmits the preset data to the server;
if the difference between the first channel quality and the second channel quality is less than a preset threshold, the method further comprises:
if the first discrete value is larger than the second discrete value, sending the detection data to the server;
and if the first discrete value is smaller than the second discrete value, sending the detection data to the intelligent main control equipment.
2. The method of claim 1, further comprising:
and acquiring the quality of a third channel when the wireless detector transmits the preset data to the gateway.
3. The method of claim 2, wherein sending the probe data to the intelligent master device comprises:
acquiring a first delay sending time according to the first channel quality and the third channel quality;
and after the first delay sending time, sending the detection data to the intelligent main control equipment.
4. The method of claim 2, wherein sending the probe data to the server comprises:
acquiring a second delay sending time according to the second channel quality and the third channel quality;
and after the second delay sending time, sending the detection data to the server.
5. The method of claim 1, wherein the gateway is connected to the intelligent master device via bluetooth low energy, and wherein the gateway is connected to the server via an 802.11 wireless network.
6. A gateway, comprising a processor and a communication module, wherein:
the processor is used for acquiring detection data sent by the wireless detector;
the communication module is used for sending the detection data to the intelligent main control equipment or the server according to a first transmission quality between the gateway and the intelligent main control equipment and a second transmission quality between the gateway and the server;
the first transmission quality includes a first channel quality when the gateway transmits preset data to the intelligent master control device, the second transmission quality includes a second channel quality when the gateway transmits the preset data to the server, and the communication module is specifically configured to:
if the difference value between the first channel quality and the second channel quality is larger than a preset threshold value, sending the detection data to the intelligent main control equipment;
the first transmission quality further includes a first discrete value, the first discrete value is used for representing the channel quality distribution degree of each sampling point when the gateway transmits the preset data to the intelligent main control device, the second transmission quality further includes a second discrete value, the second discrete value is used for representing the channel quality distribution degree of each sampling point when the gateway transmits the preset data to the server, and if the difference between the first channel quality and the second channel quality is smaller than a preset threshold, the communication module is further configured to:
if the first discrete value is larger than the second discrete value, the detection data are sent to the server;
and if the first discrete value is smaller than the second discrete value, sending the detection data to the intelligent main control equipment.
7. A data transmission system, characterized by comprising a wireless detector, a gateway, an intelligent master control device and a server, wherein the gateway is used for executing the method of any one of claims 1 to 5.
8. A storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-5.
CN201910715483.6A 2019-08-05 2019-08-05 Data transmission method, system, storage medium and gateway Active CN112332946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910715483.6A CN112332946B (en) 2019-08-05 2019-08-05 Data transmission method, system, storage medium and gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910715483.6A CN112332946B (en) 2019-08-05 2019-08-05 Data transmission method, system, storage medium and gateway

Publications (2)

Publication Number Publication Date
CN112332946A CN112332946A (en) 2021-02-05
CN112332946B true CN112332946B (en) 2022-07-05

Family

ID=74319956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910715483.6A Active CN112332946B (en) 2019-08-05 2019-08-05 Data transmission method, system, storage medium and gateway

Country Status (1)

Country Link
CN (1) CN112332946B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082813A (en) * 2009-11-30 2011-06-01 中国移动通信集团广东有限公司 Method and system for transmitting medical data as well as mobile monitoring terminals
CN103076431A (en) * 2013-01-03 2013-05-01 邹伟 Gas detector based on internet, Bluetooth, ZigBee or WLAN (wireless local area network)
CN108093459A (en) * 2017-12-29 2018-05-29 上海京颐科技股份有限公司 The data transmission method and device of medical terminal, storage medium, terminal
CN108833236A (en) * 2018-07-05 2018-11-16 西安蜂语信息科技有限公司 Data transmission method and device
CN109756555A (en) * 2018-11-13 2019-05-14 北京码牛科技有限公司 Big data processing method and processing device based on Internet of Things

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6107934B2 (en) * 2013-03-29 2017-04-05 富士通株式会社 Base station, terminal, and communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082813A (en) * 2009-11-30 2011-06-01 中国移动通信集团广东有限公司 Method and system for transmitting medical data as well as mobile monitoring terminals
CN103076431A (en) * 2013-01-03 2013-05-01 邹伟 Gas detector based on internet, Bluetooth, ZigBee or WLAN (wireless local area network)
CN108093459A (en) * 2017-12-29 2018-05-29 上海京颐科技股份有限公司 The data transmission method and device of medical terminal, storage medium, terminal
CN108833236A (en) * 2018-07-05 2018-11-16 西安蜂语信息科技有限公司 Data transmission method and device
CN109756555A (en) * 2018-11-13 2019-05-14 北京码牛科技有限公司 Big data processing method and processing device based on Internet of Things

Also Published As

Publication number Publication date
CN112332946A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
EP3417309B1 (en) Detecting motion based on repeated wireless transmissions
US10705179B2 (en) Device-free subject localization methods and systems using wireless signals
US20210014677A1 (en) Electronic device for performing ranging by using ultra-wideband in wireless communication system, and method of operating the electronic device
EP2923509B1 (en) Wireless access point mapping
EP2185944B1 (en) Floor determination for a wireless device
US10694448B2 (en) Method and apparatus for implementing access control
US20210111819A1 (en) Method of Reporting RSSI Measurements in an Unlicensed Band and Related Apparatus
CN107306441B (en) Method and device for sending Bluetooth broadcast frame and wireless access point
WO2013119355A1 (en) Co-channel utilization estimation
CN104348655A (en) Method and device for determining degree of safety and health of system
US20150257156A1 (en) Dynamic radio frequency mapping
US8519884B2 (en) Distance estimation
CN108540299A (en) A kind of network failure location processing method and device
CN112332946B (en) Data transmission method, system, storage medium and gateway
CN102413088B (en) For the method and apparatus detected that coexists
US20230128921A1 (en) Wireless communication method, wireless communication system, quality prediction engine, wireless terminal apparatus, and program
CN106453107A (en) Motion detection router based on wireless network signal physical layer disturbance
US20170127377A1 (en) Mobility determination
Busson et al. A simple method to infer Wi-Fi conflict graph
CN117135679B (en) Terminal GSM and Wi-Fi coexistence test method, system and medium
US20230269693A1 (en) Methods and systems for radio frequency signature generation and position estimation
CN111245538B (en) Link quality detection method and related equipment
WO2019063677A1 (en) A method for measuring an airtime usage of a wireless medium
CN106535244A (en) Wireless communication method and wireless communication device
CN113055822A (en) Indoor positioning method based on Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant