CN108307422A - Data transmission method, device and WiFi probe devices - Google Patents
Data transmission method, device and WiFi probe devices Download PDFInfo
- Publication number
- CN108307422A CN108307422A CN201810217822.3A CN201810217822A CN108307422A CN 108307422 A CN108307422 A CN 108307422A CN 201810217822 A CN201810217822 A CN 201810217822A CN 108307422 A CN108307422 A CN 108307422A
- Authority
- CN
- China
- Prior art keywords
- sent
- message
- probe devices
- wifi probe
- server
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A kind of data transmission method of present invention offer, device and WiFi probe devices, are related to data communication technology field.This method includes:Obtain message to be sent;Readable storage medium storing program for executing is written into the message to be sent obtained in first preset period of time;The communication quality that detection WiFi probe devices are connect with server communication;When the communication quality is greater than or equal to the first predetermined threshold value, all messages to be sent being written in readable storage medium storing program for executing in the first preset period of time are sent to server.This programme is every the first preset period of time, and when communication quality is more than the first predetermined threshold value, the message to be sent being written in readable storage medium storing program for executing is sent to server, reduce the frequency that WiFi probe devices send message to be sent, the power consumption for contributing to reduction WiFi probe devices, in addition, when communication quality is weaker, WiFi probe devices are not influenced and receive data, and WiFi probe devices is contributed to obtain more complete, comprehensive data.
Description
Technical field
The present invention relates to data communication technology fields, are visited in particular to a kind of data transmission method, device and WiFi
Needle equipment.
Background technology
With the development that big data under line and on-line off-line advertisement are merged, the application of WiFi probes is more and more extensive, demand
Also more and more.In the prior art, WiFi probe devices are when communication conditions are preferable, it will usually by the data of reception immediately on
Reach server so that WiFi probe device transmission datas are more frequent, and operation power is larger.In addition, WiFi probe devices exist
When weaker with the signal of the communication connection of server, it will usually stop receiving exogenous data, be easy to cause and omit what needs received
Data.Therefore, a kind of scheme to solve the above problems how is provided, it has also become a great problem of those skilled in the art.
Invention content
In order to overcome above-mentioned deficiency in the prior art, a kind of data transmission method of present invention offer, device and WiFi to visit
Needle equipment can reduce the energy consumption of WiFi probe devices, improve the integrated degree of the data of reception.
To achieve the goals above, the technical solution that present pre-ferred embodiments are provided is as follows:
Present pre-ferred embodiments provide a kind of data transmission method, are applied to the WiFi probes being connect with server communication
Equipment, the method includes:
Obtain message to be sent;
Readable storage medium storing program for executing is written into the message to be sent obtained in first preset period of time;
Detect the communication quality that the WiFi probe devices are connect with the server communication;
When the communication quality is greater than or equal to the first predetermined threshold value, will be written in first preset period of time described in can
All messages to be sent read in storage medium are sent to the server.
Optionally, before the step of above-mentioned acquisition message to be sent, the method further includes:
WiFi chip in the WiFi probe devices is switched to monitor mode operations.
Optionally, above-mentioned readable storage medium storing program for executing is the memory of the WiFi probe devices, is less than in the communication quality
When first predetermined threshold value, the method further includes:
The memory is written into the message to be sent of acquisition, to be greater than or equal to described the in the communication quality
When one predetermined threshold value, all messages to be sent being written in the memory are sent to the server.
Optionally, above-mentioned that all messages to be sent obtained in first preset period of time are sent to the server
Step, including:
All messages to be sent obtained in first preset period of time are integrated, and pending after integration is delivered newspaper
Text is sent to the server, wherein carrying out integration to the message to be sent includes:
Duplicate removal, label, compression, packaging operation are carried out to the message to be sent.
Optionally, above-mentioned that all messages to be sent obtained in first preset period of time are sent to the server
Step, including:
All messages to be sent obtained in first preset period of time are parsed, to obtain pending delivering newspaper with described
The corresponding MAC Address of text;
Every the second preset period of time, and when the communication quality is greater than or equal to the first predetermined threshold value, by identical MAC
The corresponding message to be sent in address is sent to the server.
Optionally, above-mentioned WiFi probe devices are connect with external storage equipment, and the readable storage medium storing program for executing is described external
Storage device, described the step of readable storage medium storing program for executing is written into the message to be sent obtained in first preset period of time, including:
The communication quality that the WiFi probe devices are connect with the server communication is detected in advance;
When the communication quality is less than or equal to the second predetermined threshold value, described in being obtained in first preset period of time
Packet storage to be sent is in the external storage equipment, wherein second predetermined threshold value is less than or equal to the described first default threshold
Value.
Present pre-ferred embodiments also provide a kind of data transmission device, are applied to the WiFi being connect with server communication and visit
Needle equipment, the data transmission device include:
Acquisition module, for obtaining message to be sent;
Writing module, for readable storage medium storing program for executing to be written in the message to be sent obtained in the first preset period of time;
Quality detection module, the communication quality being connect with the server communication for detecting the WiFi probe devices;
Data transmission blocks are used for when the communication quality is greater than or equal to the first predetermined threshold value, pre- by described first
If all messages to be sent obtained in the period are sent to the server.
Present pre-ferred embodiments also provide a kind of WiFi probe devices, and the WiFi probe devices include:
Memory;
Processor, and
Data transmission device, including at least one software work(being stored in the memory and executed by the processor
Energy module, the data transmission device include:
Acquisition module, for obtaining message to be sent;
Writing module, for readable storage medium storing program for executing to be written in the message to be sent obtained in the first preset period of time;
Quality detection module, the communication quality being connect with server communication for detecting the WiFi probe devices;
Data transmission blocks are used for when the communication quality is greater than or equal to the first predetermined threshold value, pre- by described first
If all messages to be sent obtained in the period are sent to the server.
Optionally, above-mentioned WiFi probe devices further include the peripheral interface module being connected to the processor, the peripheral hardware
Interface module includes at least one of wan interface, LAN interface, microUSB interfaces, USB interface interface.
Optionally, above-mentioned WiFi probe devices further include the power module being connected to the processor.
In terms of existing technologies, data transmission method provided by the invention, device and WiFi probe devices at least have
There is following advantageous effect:This method includes:Obtain message to be sent;The message to be sent obtained in first preset period of time is written
Readable storage medium storing program for executing;The communication quality that detection WiFi probe devices are connect with server communication;Be more than in the communication quality or
When equal to the first predetermined threshold value, all messages to be sent being written in readable storage medium storing program for executing in the first preset period of time are sent to clothes
Business device.Readable storage medium storing program for executing is written by the message to be sent that will be obtained in the first preset period of time in this programme, default every first
Period, and when communication quality is more than the first predetermined threshold value, the message to be sent being written in readable storage medium storing program for executing is sent to clothes
Business device, reduces the frequency that WiFi probe devices send message to be sent, avoids WiFi probe devices frequency under large scale deployment
Numerous data upload, and to reduce the pressure caused by network and server, contribute to the power consumption for reducing WiFi probe devices, separately
Outside, when communication quality is weaker, WiFi probe devices are not influenced and receive data, contribute to WiFi probe devices to obtain more complete
Whole, comprehensive data.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, present pre-ferred embodiments cited below particularly,
And coordinate appended attached drawing, it is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described.It should be appreciated that the following drawings illustrates only certain embodiments of the present invention, therefore it is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the WiFi probe devices and the network equipment, the interaction schematic diagram of server that present pre-ferred embodiments provide.
Fig. 2 is the block diagram for the WiFi probe devices that present pre-ferred embodiments provide.
Fig. 3 is the flow diagram for the data transmission method that present pre-ferred embodiments provide.
Fig. 4 is the block diagram for the data transmission device that present pre-ferred embodiments provide.
Icon:100-WiFi probe devices;110- processors;120- memories;130- communication modules;140- Peripheral Interfaces
Module;150- power modules;200- servers;The 300- network equipments;400- data transmission devices;410- acquisition modules;420-
Writing module;430- quality detection modules;440- data transmission blocks.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes.Obviously, described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.It is logical
The component for the embodiment of the present invention being often described and illustrated herein in the accompanying drawings can be arranged and be designed with a variety of different configurations.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiment of the present invention, people in the art
The every other embodiment that member is obtained without making creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.In addition, term " the
One ", " second " etc. is only used for distinguishing description, is not understood to indicate or imply relative importance.
Below in conjunction with the accompanying drawings, it elaborates to some embodiments of the present invention.In the absence of conflict, following
Feature in embodiment and embodiment can be combined with each other.
Fig. 1 is please referred to, Fig. 1 is the WiFi probe devices 100 and the network equipment 300, clothes that present pre-ferred embodiments provide
The interaction schematic diagram of business device 200.WiFi probe devices 100 provided by the invention can pass through at least one network equipment 300
Network establishes communication connection, to carry out data interaction.The WiFi probe devices 100 can be established with server 200 by network
Communication connection, to carry out data interaction.Optionally, which can be cable network or wireless network.
Further, the network equipment 300 may be, but not limited to, smart mobile phone, PC (personal
Computer, PC), tablet computer, personal digital assistant (personal digital assistant, PDA), mobile Internet access set
Standby (mobile Internet device, MID), router etc..Server 200 can be but not limited to Cloud Server, distribution
Formula server, cluster server etc..
Fig. 2 is please referred to, for the block diagram for the WiFi probe devices 100 that present pre-ferred embodiments provide.It is described
WiFi probe devices 100 may include processor 110, memory 120, communication module 130 and data transmission device 400, institute
It states between processor 110,400 each element of memory 120, communication module 130 and data transmission device directly or indirectly
It is electrically connected, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus between each other
Or signal wire is realized and is electrically connected.
In the present embodiment, processor 110 can be central processing unit (Central Processing Unit, CPU),
Network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (DSP), application-specific integrated circuit
(ASIC), field programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.
In the present embodiment, communication module 130 be used for by network establish WiFi probe devices 100 and server 200 and
The communication connection of the network equipment 300, and pass through the network transceiving data.Understandably, which includes WiFi cores
Piece connects for realizing wireless communication.
In the present embodiment, memory 120 may be, but not limited to, random access memory, may be programmed read-only storage
Device, Erasable Programmable Read Only Memory EPROM, electrically erasable programmable read-only memory etc..In the present embodiment, the memory
120 can be used for storing data to be sent.Certainly, the memory 120 can be also used for storage program, the processor 110
After receiving and executing instruction, the program is executed.
Further, the data transmission device 400 include it is at least one can be with the shape of software or firmware (firmware)
Formula is stored in the memory 120 or is solidificated in 100 operating system of WiFi probe devices (operating system, OS)
Software function module.The processor 110 is for executing the executable module stored in the memory 120, such as data
Software function module and computer program included by transmitting device 400 etc..
It is understood that structure shown in Fig. 2 is only a kind of structural schematic diagram of WiFi probe devices 100, it is described
WiFi probe devices 100 can also include than more or fewer components shown in Fig. 2.Each component shown in Fig. 2 may be used
Hardware, software, or its combination is realized.
Fig. 3 is please referred to, for the flow diagram for the data transmission method that present pre-ferred embodiments provide.The present invention is preferable
The data transmission method that embodiment provides is applied to the WiFi probe devices 100 communicated to connect with server 200.WiFi probes
Equipment 100 executes the data transmission method, can reduce the frequency that WiFi probe devices 100 send data to server 200, reduces
The power consumption of WiFi probe devices 100.WiFi probe devices 100 are stored by the data that will be received into readable storage medium storing program for executing, i.e.,
Keep the signal of communication between WiFi probe devices 100 and server 200 weaker, nor affects on the reception of WiFi probe devices 100
Data to be sent so that the data that WiFi probe devices 100 obtain are more complete, comprehensive.
Data transmission method provided in this embodiment will be described in detail below, in the present embodiment, data transmission
Method may comprise steps of:
Step S510 obtains message to be sent;
In the present embodiment, WiFi probe devices 100 receive the network equipment 300 hair from least one network equipment 300
The message sent, using as message to be sent.Understandably, the intercepting in range in WiFi probe devices 100 of the network equipment 300
When, when this network equipment 300 sends any frame message, no matter whom the object that the network equipment 300 is sent is, WiFi is visited
Needle equipment 100 can obtain the message of the network equipment 300 transmission, using the message to be sent as the WiFi probe devices 100.
Before step S510, this method can also include:WiFi chip in WiFi probe devices 100 is switched to
Monitor mode operations.
Understandably, in the prior art, when WiFi chip is operated in non-monitor patterns, kernel can be by 802.11 associations
The message of view frame format is packaged into general network frame and passes to upper layer, causes the speed for obtaining message to be delayed, the report after encapsulation
Text is also unfavorable for parsing.
In the present embodiment, when being operated in monitor patterns, WiFi chip can be directly by the report of 802.11 protocol frame formats
Text is sent to upper layer (for example, processor 110, memory 120), is no longer packaged, such client layer passes through interface
The RAW packets of 802.11 agreements are obtained (to parse RAW packets, it is strong that source MAC, target MAC (Media Access Control) address and signal can be obtained
The data such as degree), wherein RAW packets are crude data packet.It is namely operated under monitor patterns, WiFi probe devices
100 can obtain the message of more multi-format from user terminal, help to expand the collection to message and improve the effect for collecting message
Rate parses convenient for the message to acquisition.In addition, the format of retrievable message include, but are not limited to TCP message format,
UDP message formats, MPLS message formats, PING message formats.
When being operated in monitor patterns, WiFi chip can more be received by the frequency range of continuous switch operating with reading
The wireless data message arrived.The frequency range of switch operating can be designed according to actual conditions, be not especially limited here.
Readable storage medium storing program for executing is written in the message to be sent obtained in first preset period of time by step S520;
In the present embodiment, it in order to reduce the frequency that WiFi probe devices 100 send message, will will not every time get
Message to be sent is immediately sent to server 200.It is, the message to be sent obtained in the first preset time period is first written
In readable storage medium storing program for executing, then when meeting transmission condition, all messages to be sent in readable storage medium storing program for executing will just be written
It is sent to server 200.Wherein, readable storage medium storing program for executing can be the memory 120 or external in WiFi probe devices 100
Storage device (such as USB flash disk, hard disk etc.).First preset period of time can be configured according to actual conditions, be not especially limited here.
In the present embodiment, meeting the judgement of transmission condition can be:At interval of the first preset period of time, and current WiFi is visited
Communication quality between needle equipment 100 and server 200 is greater than or equal to the first predetermined threshold value, just to meet transmission condition;If
After being spaced the first preset period of time, just detect that the communication quality between WiFi probe devices 100 and server 200 is more than or waits
In the first predetermined threshold value, or meet transmission condition.
Understandably, communication quality may include the data such as signal strength, network speed, packet loss and the network delay of network.
The communication quality can be specific to obtain by the way that the data such as signal strength, network speed, packet loss and network delay are weighted
The numerical value of communication quality, weight distribution can be configured according to actual conditions, be not especially limited here.
Optionally, WiFi probe devices 100 are connect with external storage equipment, and readable storage medium storing program for executing is external storage equipment.
Step S520 may include:The communication quality that detection WiFi probe devices 100 are communicated to connect with server 200 in advance;Described
When communication quality is less than or equal to the second predetermined threshold value, by the packet storage to be sent obtained in the first preset period of time in institute
External storage equipment is stated, wherein second predetermined threshold value is less than or equal to first predetermined threshold value, it can be according to actual conditions
It is configured.
Understandably, detecting that the network connection status between WiFi probe devices 100 and server 200 is poor even
It, can be by the packet storage to be sent of acquisition in extraneous storage device when being off.The storage of external storage equipment
Capacity is larger, though the network connection status between WiFi probe devices 100 and server 200 continue in a long time compared with
Difference nor affects on WiFi probes and obtains message from the network equipment 300.Based on which, WiFi probes is contributed to obtain more, more
Complete message, so that more accurate based on the detection report that message to be sent obtains.
In the present embodiment, pattern and the upload for uploading message can be arranged in WiFi probe devices 100 according to actual conditions
The format of message.For example, the pattern for uploading message includes http patterns, the upper arq modes of udp, upper arq modes of tcp etc..The report of upload
Literary format may be, but not limited to, the formats such as TCP message format, UDP message formats, MPLS message formats
Step S530 detects the communication quality that the WiFi probe devices 100 are communicated to connect with the server 200;
In the present embodiment, can by RSSI (Received Signal Strength Indication, reception it is logical
The instruction of letter quality) obtain the communication quality communicated to connect between server 200 and WiFi probe devices 100.For example, WiFi probes
Equipment 100 sends request message for detecting communication quality to server 200, server 200 be based on the request message to
The feedback message for the default communication quality that WiFi probe devices 100 are sent, WiFi probe devices 100 are based on the feedback report received
The communication quality and default communication quality of text can obtain communicating to connect between server 200 and WiFi probe devices 100 logical
Believe quality.
Step S540 will be in first preset period of time when the communication quality is greater than or equal to the first predetermined threshold value
All messages to be sent being written in the readable storage medium storing program for executing are sent to the server 200.
Understandably, when communication quality is greater than or equal to the first predetermined threshold value, that is, server 200 and WiFi probes
Network connection status between equipment 100 is preferable, is suitble to upload message to be sent.Wherein, the first predetermined threshold value can be according to reality
Situation is configured, and is not especially limited here.
Optionally, readable storage medium storing program for executing is the memory 120 of WiFi probe devices 100.In server 200 and WiFi probes
When the communication quality communicated to connect between equipment 100 is less than first predetermined threshold value, this method further includes:By the pending of acquisition
Memory 120 is written in text of delivering newspaper, when communication quality is greater than or equal to the first predetermined threshold value, will be written in memory 120
All messages to be sent are sent to server 200.
Understandably, if the communication quality communicated to connect between server 200 and WiFi probe devices 100 is smaller, also
It is that network connection status between server 200 and WiFi probe devices 100 is poor, WiFi probe devices 100 continue uninterruptedly
Ground obtains message from user terminal, using as message to be sent, and by packet storage to be sent to memory 120, in net
When network connection state is preferable, the message to be sent of storage is sent to server 200.
In the present embodiment, step S540 is specifically as follows:All messages to be sent that will be obtained in first preset period of time
It is integrated, and the message to be sent after integration is sent to server 200.Wherein, message to be sent integrate and include:
Duplicate removal, label, compression, packaging operation are carried out to message to be sent.
Understandably, the message obtained from user terminal needs to carry out parsing integration by WiFi probe devices 100, and
After parsing is integrated, the message after parsing is integrated is sent to server 200.And to the message of acquisition remove duplicate message and
Carrying out compression to the message of acquisition helps to reduce the flow in data transmission procedure, promotes efficiency of transmission.To the message of acquisition
It is marked, server 200 is contributed to distinguish identification to the message to be sent of reception, it is corresponding with message to be sent to obtain
User terminal relevant information.The relevant information includes, but are not limited to the network equipment 300 and enters, leaves WiFi probe devices
100 intercept time in range, the MAC Address of the network equipment 300, frame type, the data such as communication quality of message.
Optionally, step S540 may include:All messages to be sent obtained in first preset period of time are carried out
Parsing, to obtain MAC Address corresponding with the message to be sent;Every the second preset period of time, and it is big in the communication quality
When the first predetermined threshold value, the corresponding message to be sent of identical MAC Address is sent to the server
200.Wherein, identical MAC Address characterizes the identical network equipment 300, and the second preset period of time can be set as the case may be
It sets, is not especially limited here.Based on which, convenient for compression flow, and convenient for server 200 to the message solution of transmission
Analysis.
It is worth noting that pending after being sent in readable storage medium storing program for executing (such as memory 120, external storage equipment etc.)
Text of delivering newspaper can be automatically deleted, and to reduce the consumption of storage resource, and be the new message reserved storage space to be sent of storage.
In the present embodiment, it is based on 100 working environment of WiFi probe devices and interface connection status, by determination number to be sent
According to target location, for example, by data to be sent be sent to server 200, storage to External memory equipment, be sent to serial ports master
Machine etc..WiFi probe devices 100 can do the judgement of a data transmission/storage every the first preset period of time, meet above-mentioned reality
When applying the condition of example, corresponding operating just is executed (for example, data to be sent being sent to server 200, depositing to treating transmission data
Store up External memory equipment, be sent to serial ports host etc.).
Optionally, if without external storage equipment, message to be sent can be default at interval of first after ciphered compressed
Time is sent to 200/ serial ports host of server, when network communication quality is poor, can temporarily postpone and send, until leading to for network
Letter quality just continues to send higher than predetermined value.Based on the design, avoid WiFi probe devices 100 frequent under large scale deployment
Data upload, and to reduce to pressure caused by network and server 200, and reduce the power consumption of WiFi probe devices 100.
Fig. 4 is please referred to, for the block diagram for the data transmission device 400 that present pre-ferred embodiments provide.The present invention
The data transmission device 400 of offer is applied to the WiFi probe devices 100 communicated to connect with server 200, above-mentioned for executing
Data transmission method, to reduce the power consumption of WiFi probe devices 100, help so that WiFi probe devices 100 receive number
According to more complete, comprehensive.The data transmission device 400 may include acquisition module 410, writing module 420, quality detection module
430 and data transmission blocks 440.
Acquisition module 410, for obtaining message to be sent.
Understandably, acquisition module 410 is for executing step S510 shown in Fig. 3.Specifically, acquisition module 410 executes
Detailed operation content can refer to the detailed description to step S510, which is not described herein again.
Writing module 420, for readable storage medium storing program for executing to be written in the message to be sent obtained in the first preset period of time.
Understandably, writing module 420 is for executing step S520 shown in Fig. 3.Specifically, writing module 420 executes
Detailed operation content can refer to the detailed description to step S520, which is not described herein again.
Quality detection module 430, the communication quality communicated to connect with server 200 for detecting WiFi probe devices 100.
Understandably, quality detection module 430 is for executing step S530 shown in Fig. 3.Specifically, quality detection module
The 430 detailed operation contents executed can refer to the detailed description to step S530, and which is not described herein again.
Data transmission blocks 440 are used for when the communication quality is greater than or equal to the first predetermined threshold value, by described first
All messages to be sent obtained in preset period of time are sent to the server 200.
Understandably, data transmission blocks 440 are for executing step S540 shown in Fig. 3.Specifically, data transmission blocks
The 440 detailed operation contents executed can refer to the detailed description to step S540, and which is not described herein again.
Referring once again to Fig. 2, in WiFi probe devices 100 provided by the invention, WiFi probe devices 100 can also wrap
Include the peripheral interface module 140 being connect with processor 110.The peripheral interface module 140 include wan interface, LAN interface,
The quantity of at least one of microUSB interfaces, USB interface interface, each interface can be one, or it is multiple, this
In be not especially limited.It is worth noting that peripheral interface module 140 can also be other serial line interfaces, which is not described herein again.
Intelligible, wan interface can be used for connecting outer net (public network).LAN interface can be used for inside and outside connection in (LAN)
Equipment, for example, for connecting computer, interchanger etc..MicroUSB interfaces can be used as power supply interface.USB interface can be with
External storage equipment (such as USB flash disk, hard disk etc.) can be used for expanding other hardware modules, for example be connected and be determined by USB interface
Position module, to obtain current local geographic position data.
For example, WiFi probe devices 100 are put into inside the mainframe boxes such as new retail, supplied using micro-usb/DC interfaces
Electricity, using external antenna, probe device serial ports is connected on the serial ports of host mainboards such as new retail, and the data of acquisition are by third party
Host (such as corresponding host of cabinet of installation WiFi probe devices 100) is sent on server 200.
Optionally, WiFi probe devices 100 can also include the power module 150 being connect with processor 110.The power supply mould
Block 150 can be lithium ion battery, lead accumulator, dry cell etc..For example, can be used charger baby as power supply in mobile context,
Network is provided using 3G/4G, can be used for acquiring the scenes such as exhibition, meeting-place.
Optionally, WiFi probe devices 100 can also include that POE (Power Over Ethernet, Power over Ethernet) is supplied
Electric module is powered for passing through Ethernet.
Based on above-mentioned design, user can according to actual conditions by peripheral interface module 140 to WiFi probe devices 100 into
Row functions expanding.In addition, the power supply of WiFi probe devices 100 can be adjusted flexibly in user according to actual conditions, help to reduce
Requirement of the WiFi probe devices 100 to working environment expands the applicable scene of WiFi probe devices 100.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software, based on this understanding, this hair
Bright technical solution can be expressed in the form of software products, which can be stored in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a router (can be personal
Computer, server or network equipment etc.) execute method described in each implement scene of the present invention.
In conclusion a kind of data transmission method of present invention offer, device and WiFi probe devices.This method includes:It obtains
Take message to be sent;Readable storage medium storing program for executing is written into the message to be sent obtained in first preset period of time;Detection WiFi probes are set
The standby communication quality being connect with server communication;It is pre- by first when the communication quality is greater than or equal to the first predetermined threshold value
If all messages to be sent in the period in write-in readable storage medium storing program for executing are sent to server.This programme by by first it is default when
Readable storage medium storing program for executing is written in the message to be sent obtained in section, every the first preset period of time, and it is pre- more than first in communication quality
If when threshold value, the message to be sent being written in readable storage medium storing program for executing is sent to server, reduce the transmission of WiFi probe devices
The frequency of message to be sent avoids WiFi probe devices frequent data under large scale deployment from uploading, to reduce to network
And pressure caused by server, and reduce WiFi probe devices power consumption do not influenced in addition, when communication quality is weaker
WiFi probe devices receive data, and WiFi probe devices is contributed to obtain more complete, comprehensive data.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of data transmission method is applied to the WiFi probe devices being connect with server communication, which is characterized in that the side
Method includes:
Obtain message to be sent;
Readable storage medium storing program for executing is written into the message to be sent obtained in first preset period of time;
Detect the communication quality that the WiFi probe devices are connect with the server communication;
When the communication quality is greater than or equal to the first predetermined threshold value, described readable deposit will be written in first preset period of time
All messages to be sent in storage media are sent to the server.
2. according to the method described in claim 1, it is characterized in that, before the step of acquisition message to be sent, the side
Method further includes:
WiFi chip in the WiFi probe devices is switched to monitor mode operations.
3. according to the method described in claim 1, it is characterized in that, the readable storage medium storing program for executing is the WiFi probe devices
Memory, when the communication quality is less than first predetermined threshold value, the method further includes:
The memory is written into the message to be sent of acquisition, it is pre- to be greater than or equal to described first in the communication quality
If when threshold value, all messages to be sent being written in the memory are sent to the server.
4. according to the method described in claim 1, it is characterized in that, described needed what is obtained in first preset period of time
The step of message is sent to the server is sent, including:
All messages to be sent obtained in first preset period of time are integrated, and the message to be sent after integration is sent out
It send to the server, wherein carrying out integration to the message to be sent includes:
Duplicate removal, label, compression, packaging operation are carried out to the message to be sent.
5. according to the method described in claim 1, it is characterized in that, described needed what is obtained in first preset period of time
The step of message is sent to the server is sent, including:
All messages to be sent obtained in first preset period of time are parsed, to obtain and the message pair to be sent
The MAC Address answered;
Every the second preset period of time, and when the communication quality is greater than or equal to the first predetermined threshold value, by identical MAC Address
The corresponding message to be sent is sent to the server.
6. according to the method described in claim 1, it is characterized in that, the WiFi probe devices are connect with external storage equipment,
The readable storage medium storing program for executing is the external storage equipment, described to write the message to be sent obtained in the first preset period of time
The step of entering readable storage medium storing program for executing, including:
The communication quality that the WiFi probe devices are connect with the server communication is detected in advance;
It is described pending by being obtained in first preset period of time when the communication quality is less than or equal to the second predetermined threshold value
Text of delivering newspaper is stored in the external storage equipment, wherein second predetermined threshold value is less than or equal to first predetermined threshold value.
7. a kind of data transmission device is applied to the WiFi probe devices being connect with server communication, which is characterized in that the number
Include according to transmitting device:
Acquisition module, for obtaining message to be sent;
Writing module, for readable storage medium storing program for executing to be written in the message to be sent obtained in the first preset period of time;
Quality detection module, the communication quality being connect with the server communication for detecting the WiFi probe devices;
Data transmission blocks, for the communication quality be greater than or equal to the first predetermined threshold value when, by described first it is default when
All messages to be sent obtained in section are sent to the server.
8. a kind of WiFi probe devices, which is characterized in that the WiFi probe devices include:
Memory;
Processor, and
Data transmission device, including at least one software function mould being stored in the memory and executed by the processor
Block, the data transmission device include:
Acquisition module, for obtaining message to be sent;
Writing module, for readable storage medium storing program for executing to be written in the message to be sent obtained in the first preset period of time;
Quality detection module, the communication quality being connect with server communication for detecting the WiFi probe devices;
Data transmission blocks, for the communication quality be greater than or equal to the first predetermined threshold value when, by described first it is default when
All messages to be sent obtained in section are sent to the server.
9. WiFi probe devices according to claim 8, which is characterized in that the WiFi probe devices further include with it is described
The peripheral interface module of processor connection, the peripheral interface module includes wan interface, LAN interface, microUSB interfaces, USB
At least one of interface interface.
10. WiFi probe devices according to claim 8 or claim 9, which is characterized in that the WiFi probe devices further include with
The power module of the processor connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810217822.3A CN108307422A (en) | 2018-03-16 | 2018-03-16 | Data transmission method, device and WiFi probe devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810217822.3A CN108307422A (en) | 2018-03-16 | 2018-03-16 | Data transmission method, device and WiFi probe devices |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108307422A true CN108307422A (en) | 2018-07-20 |
Family
ID=62850044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810217822.3A Pending CN108307422A (en) | 2018-03-16 | 2018-03-16 | Data transmission method, device and WiFi probe devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108307422A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112911703A (en) * | 2021-01-18 | 2021-06-04 | 浙江大华技术股份有限公司 | WIFI detection method and system, WIFI probe device, monitoring device and storage medium |
CN114543287A (en) * | 2022-01-27 | 2022-05-27 | 青岛海尔空调器有限总公司 | Control method and control device of air conditioner and air conditioner |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103945438A (en) * | 2014-04-16 | 2014-07-23 | 中国人民解放军信息工程大学 | Wireless AP, communication system and communication method |
CN105050107A (en) * | 2015-08-25 | 2015-11-11 | 上海迈外迪网络科技有限公司 | Radio-frequency probe and method for detecting Wi-Fi message thereof |
CN105160160A (en) * | 2015-08-17 | 2015-12-16 | 贵阳朗玛信息技术股份有限公司 | Big data intelligent analysis system and application method thereof |
CN204990305U (en) * | 2015-08-17 | 2016-01-20 | 贵阳朗玛信息技术股份有限公司 | Big data intelligent analysis system |
WO2016058166A1 (en) * | 2014-10-16 | 2016-04-21 | 华为技术有限公司 | Method for triggering registration machine protocol interaction, access point and station point |
WO2016130216A1 (en) * | 2015-02-09 | 2016-08-18 | Qualcomm Incorporated | Battery status indication within a wi-fi beacon |
CN205986970U (en) * | 2016-08-22 | 2017-02-22 | 北京易游华成科技有限公司 | Information processing apparatus and system |
CN107360590A (en) * | 2017-06-29 | 2017-11-17 | 上海工程技术大学 | Track station part congestion points passenger flow condition judgement method |
CN107592505A (en) * | 2017-09-25 | 2018-01-16 | 成都西加云杉科技有限公司 | Information collecting device and information transferring method |
-
2018
- 2018-03-16 CN CN201810217822.3A patent/CN108307422A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103945438A (en) * | 2014-04-16 | 2014-07-23 | 中国人民解放军信息工程大学 | Wireless AP, communication system and communication method |
WO2016058166A1 (en) * | 2014-10-16 | 2016-04-21 | 华为技术有限公司 | Method for triggering registration machine protocol interaction, access point and station point |
WO2016130216A1 (en) * | 2015-02-09 | 2016-08-18 | Qualcomm Incorporated | Battery status indication within a wi-fi beacon |
CN105160160A (en) * | 2015-08-17 | 2015-12-16 | 贵阳朗玛信息技术股份有限公司 | Big data intelligent analysis system and application method thereof |
CN204990305U (en) * | 2015-08-17 | 2016-01-20 | 贵阳朗玛信息技术股份有限公司 | Big data intelligent analysis system |
CN105050107A (en) * | 2015-08-25 | 2015-11-11 | 上海迈外迪网络科技有限公司 | Radio-frequency probe and method for detecting Wi-Fi message thereof |
CN205986970U (en) * | 2016-08-22 | 2017-02-22 | 北京易游华成科技有限公司 | Information processing apparatus and system |
CN107360590A (en) * | 2017-06-29 | 2017-11-17 | 上海工程技术大学 | Track station part congestion points passenger flow condition judgement method |
CN107592505A (en) * | 2017-09-25 | 2018-01-16 | 成都西加云杉科技有限公司 | Information collecting device and information transferring method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112911703A (en) * | 2021-01-18 | 2021-06-04 | 浙江大华技术股份有限公司 | WIFI detection method and system, WIFI probe device, monitoring device and storage medium |
CN114543287A (en) * | 2022-01-27 | 2022-05-27 | 青岛海尔空调器有限总公司 | Control method and control device of air conditioner and air conditioner |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106155260B (en) | The system and management method and computer readable storage medium of server | |
CN103117879B (en) | A kind of computer hardware operational factor network monitoring system | |
CN102571996B (en) | IP (Internet Protocol) address assignment method, IP address assignment device and network system | |
CN109890069A (en) | Method for connecting network, terminal, base station and computer storage medium | |
CN104283926A (en) | Data synchronization method, device and server | |
CN111901387B (en) | Connection method and device of cloud special line | |
CN103781055A (en) | Data downloading method and associated device | |
CN112235136B (en) | Network file system backup method, system, terminal and storage medium | |
CN107182098A (en) | For realizing the method and apparatus that user equipment switches between WAP | |
CN108260080A (en) | A kind of method, apparatus and system of positioning | |
CN102420756A (en) | Method for storing system logs, and router | |
CN108307422A (en) | Data transmission method, device and WiFi probe devices | |
CN106797329A (en) | Special-purpose terminal and its operating method for measuring the Internet wire quality | |
CN107086937A (en) | A kind of monitoring method and equipment | |
CN104243719A (en) | Heartbeat period determining method, system and device for long connection in mobile communication network | |
CN109729059A (en) | Data processing method, device and computer | |
CN104168145B (en) | A kind of system and method that radio upgrade is carried out to wireless communication unit | |
CN107682939B (en) | Communication method based on LORA ad hoc protocol | |
CN103024023A (en) | Electronic reading room network auditing method | |
CN105357662A (en) | Electric site acquisition SIM (Subscriber Identity Module) card detection system | |
CN108055151A (en) | Port management method, device, network node and the storage medium of network node | |
CN102983992B (en) | Realize the method for communication between many boards in ATCA device, system | |
CN102932208A (en) | Site monitoring method and device | |
CN105163336A (en) | Method and system for optimizing stability of wireless network | |
CN105451370A (en) | Data management method, device and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180720 |