Summary of the invention
Based on this, it is necessary to communicate low success rate of problem for measuring instrument, provide a kind of measuring instrument means of communication
And device, measuring instrument communication control system.
On the one hand, the embodiment of the present invention provides a kind of measuring instrument means of communication, including:
Obtain the information of each measuring instrument in target zone;
According to the information of each measuring instrument, in batches by preset rules by each measuring instrument;
Different communication times is distributed for the measuring instrument of different batches, communication time is used to indicate each measuring instrument in phase
The time answered uploads continuous data.
The information of measuring instrument includes the number of measuring instrument in one of the embodiments, by each measuring instrument by pre-
If rule in batches the step of include:
The identical measuring instrument of numerical digit will be corresponded in the number of each measuring instrument is divided into same batch.
To be corresponded in the number of each measuring instrument in one of the embodiments, the identical measuring instrument of numerical digit be divided into it is same
The step of batch includes:
The identical measuring instrument of numerical digit in the number of each measuring instrument is divided into same batch;
Or in the number of each measuring instrument numerical digit and ten numerical digits measuring instrument all the same are divided into same batch.
Further include in one of the embodiments,:
According to the information of each measuring instrument, the total quantity of measuring instrument is obtained;
According to the total quantity of measuring instrument, number in batches is chosen as follows:
n/N≤p≤T/t
Wherein, p is that number, p are positive integer in batches, and n is the total quantity of measuring instrument, while N is that signal base station allows
Most number of devices of connection, T are that the longest of whole measuring instruments completion communications allows the time, and t communicates institute for separate unit measuring instrument
It takes time, and T >=t.
Definite value is divided between the communication time of the measuring instrument of two neighboring batch in one of the embodiments,.
The information of measuring instrument includes the information of gas meter, flow meter in one of the embodiments,.
On the other hand, a kind of measuring instrument communication device is additionally provided, including:
Information acquisition unit, for obtaining the information of each measuring instrument in target zone;
Sub-cell in batches, for the information according to each measuring instrument, in batches by preset rules by each measuring instrument;
Communication unit, different communication times is distributed for the measuring instrument for different batches, and communication time is used to indicate
Each measuring instrument uploads continuous data in the corresponding time.
A kind of computer equipment, communication connection between computer equipment and each measuring instrument are provided again;
Computer equipment includes memory and processor, and computer-readable instruction is stored in memory, computer-readable
When instruction is executed by processor, so that the step of processor executes the above-mentioned measuring instrument means of communication.
Additionally provide a kind of measuring instrument communication system, including measuring instrument and above-mentioned computer equipment.
A kind of storage medium being stored with computer-readable instruction, computer-readable instruction are held by one or more processors
When row, so that the step of one or more processors execute the above-mentioned measuring instrument means of communication.
The above-mentioned measuring instrument means of communication and the embodiment of device include at least following advantages:It is provided in an embodiment of the present invention
The measuring instrument means of communication, by obtaining the information of each measuring instrument in target zone, and according to the information of each measuring instrument
Measuring instrument is subjected to batch processing by preset rules, then further distributes different communications for the measuring instrument of different batches
Time, so that each measuring instrument uploads continuous data in corresponding communication time.It realizes and each measuring instrument is arranged into different lead to
The upload for interrogating time progress continuous data, avoids network congestion, promotes measuring instrument and communicates success rate, to improve communication matter
Amount.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawing
Give preferred embodiment of the invention.But the invention can be realized in many different forms, however it is not limited to this paper institute
The embodiment of description.On the contrary, purpose of providing these embodiments is make it is more thorough and comprehensive to the disclosure.
It should be noted that it can be directly to separately when an element is considered as " connection " another element
One element and it is in combination be integrated, or may be simultaneously present centering elements.It is term as used herein " one end ", " another
One end " and similar statement are for illustrative purposes only.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term " and or " used herein includes one or more phases
Any and all combinations of the listed item of pass.
On the one hand, as shown in Figure 1, the embodiment of the present invention provides a kind of measuring instrument means of communication, including:
S120:Obtain the information of each measuring instrument in target zone;
S140:According to the information of each measuring instrument, in batches by preset rules by each measuring instrument;
S160:Different communication times is distributed for the measuring instrument of different batches, communication time is used to indicate each gauge
Table uploads continuous data in the corresponding time.
Wherein, target zone refers to the regional scope for meeting a specified conditions, can be and compares concentration on geographical location
Some section, or refer to the signal cover etc. of some signal base station.The information of measuring instrument, which refers to, identifies the gauge
The information of table, for example, can be measuring instrument number or measuring instrument corresponding to User ID etc., the letter of each measuring instrument
It is variant between breath, there is uniqueness.Measuring instrument refers to the metering with measurement data acquisition and continuous data upload function
Instrument, such as can be various measuring instruments, such as gas meter, flow meter.Preset rules, which refer to, can be divided into multiple batches for each measuring instrument
Secondary rule.Communication time (corresponding time) refers to the continuous data uplink time distributed for the measuring instrument, refers to same
The common corresponding one specific continuous data uplink time of measuring instrument institute of batch.
Specifically, obtaining the information of each measuring instrument out of target zone, according to the information of each measuring instrument, carry out in batches
Each measuring instrument is divided into multiple batches according to preset rules by secondary processing, is all distributed together the measuring instrument of the same batch
One continuous data uplink time when the batch measuring instrument being made to reach corresponding continuous data uplink time, uploads stoichiometric number
According to server or remote terminal.And the measuring instrument of different batches is arranged in different communication times and carries out the upper of continuous data
It passes, reduces the load of same time signal base station, guarantee communication success rate, to be further ensured that communication quality.And for not
Measuring instrument with batch distributes different communication times it is also ensured that in each different period, Internet resources can be obtained
To utilization, the utilization rate of Internet resources is improved.On the other hand, it can reduce due to communicating in batches to signal base station, Netowrk tape
The configuration requirement of the Internet resources such as width, so as to reduce communication cost.
In one of the embodiments, as shown in Fig. 2, the information of measuring instrument includes the number of measuring instrument, by each meter
Measure instrument by preset rules in batches the step of include:
S141:The identical measuring instrument of numerical digit will be corresponded in the number of each measuring instrument is divided into same batch.
Wherein, the number of each measuring instrument is that each measuring instrument is uniquely numbered, and can distinguish each measuring instrument
Identity information.Corresponding numerical digit refers to identical numerical digit in each measuring instrument number, such as a position of each measuring instrument number or each meter
Ten etc. for measuring meter number.
Specifically, the information of measuring instrument includes the number of measuring instrument, numerical digit will be corresponded in the number of each measuring instrument
Identical measuring instrument is divided into same batch, corresponding communication time is distributed for the measuring instrument for each batch divided, so that together
A batch of measuring instrument uploads continuous data in the same time, and the measuring instrument of different batches uploads metering in different times
Data.
To be corresponded in the number of each measuring instrument in one of the embodiments, the identical measuring instrument of numerical digit be divided into it is same
The step of batch includes:
The identical measuring instrument of numerical digit in the number of each measuring instrument is divided into same batch;
Or in the number of each measuring instrument numerical digit and ten numerical digits measuring instrument all the same are divided into same batch.
Specifically, the method for each measuring instrument in batches can be, units in the number of each measuring instrument is identical
Measuring instrument be divided into same batch, be that this batch of measuring instrument distributes a communication time.For example, if measuring instrument is
The identical gas meter, flow meter of units in the number of gas meter, flow meter is divided into same batch then for n platform gas meter, flow meter by gas meter, flow meter,
N platform gas meter, flow meter can be divided into 10 batches (units be 0-9 etc., totally 10 batches).It optionally, can be in the number to each measuring instrument
Units and tens measuring instrument all the same are divided into same batch, when being that this batch of measuring instrument distributes a communication
Between, so that this batch of measuring instrument is uploaded continuous data in the communication time of distribution.For example, if measuring instrument is combustion gas
Table, then for n platform gas meter, flow meter, it is that can then incite somebody to action with a batch of measuring instrument that it is identical, which such as to set units, tens,
N platform gas meter, flow meter is divided into 100 batches (units be 00-99 etc., totally 100 batches).
Further include in one of the embodiments,:
S130:According to the information of each measuring instrument, the total quantity of measuring instrument is obtained;
S131:According to the total quantity of measuring instrument, number in batches is chosen as follows:
n/N≤p≤T/t
Wherein, p is number in batches, and p is positive integer, and n is the total quantity of measuring instrument, and N is the same of signal base station permission
When most number of devices for connecting, T is that whole measuring instruments complete the longest of communication and allow the time, and t is that separate unit measuring instrument communicates
Required time, and T >=t.
Selection for number in batches, the case where comprehensively considering network and a specific communication need.Optionally, it obtains
The total quantity of measuring instrument is taken, and according to the total quantity of measuring instrument, chooses number in batches, guarantees that p meets the following conditions in batches:
n/N≤p≤T/t
Wherein, p is that number, n are the total quantity of measuring instrument in batches, and N connects most while being the permission of signal base station
Number of devices, T is the longest permission time that whole measuring instruments complete communication, the time required to t is the communication of separate unit measuring instrument.Example
Such as, such as n=1000, N=100, then number p is no less than n/N=10 in batches, and t=2min, T=200min, then number in batches
P should not exceed T/t=100.To sum up, the identical gas meter, flow meter of number units can be set as with a batch, gas meter, flow meter is divided into 10
It batch avoids the peak hour communication in different time.It is same batch that it is identical simultaneously that number units, tens, which can also be set, by gas meter, flow meter
It is divided into 100 batches to avoid the peak hour communication in different time.
It can guarantee that the measuring instrument quantity of same time access signal base station is no more than the same of signal base station permission in this way
When most number of devices for connecting, Logistics networks communicate success rate, on the other hand, it is ensured that all measuring instruments can be in whole
Measuring instrument, which completes the longest once communicated, to be allowed to complete communication work in the time, guarantees continuous data integrality.
Definite value is divided between the communication time of the measuring instrument of two neighboring batch in one of the embodiments,.
It is the measuring instrument of each batch after being carried out in batches to each measuring instrument to preferably distribute Internet resources
Different communication times is distributed, and is divided into definite value between the communication time of the measuring instrument of two neighboring batch, i.e., in current time
Node T0, a collection of measuring instrument upload continuous data, then interval time △ t, i.e., in T0+ △ t moment, next group measuring instrument
The upload for carrying out continuous data, can make the uplink time of the measuring instrument of each batch be uniformly distributed, be conducive to net in this way
The reasonable utilization of network resource.
The information of measuring instrument includes the information of gas meter, flow meter in one of the embodiments,.
In terms of combustion gas, as the technology of gas meter, flow meter develops, intelligent gas meter realization is mostly used to make the combustion gas of each user
Quantitative statistics are carried out with situation.Specifically, the information of each gas meter, flow meter in target zone is obtained, then according to the letter of each gas meter, flow meter
Breath, in batches by preset rules by each gas meter, flow meter.For example, the number of each gas meter, flow meter is obtained, for combustion gas table numbering units phase
Same gas meter, flow meter is divided into same batch, when distributing a communication time for it, and guaranteeing the communication of measuring instrument of different batches
Between it is different, so that each gas meter, flow meter is uploaded continuous data in corresponding communication time, realization is avoided the peak hour communication.
On the other hand, as shown in figure 4, the embodiment of the invention also provides a kind of measuring instrument communication devices, including:
Information acquisition unit 100, for obtaining the information of each measuring instrument in target zone;
Sub-cell 200 in batches, for the information according to each measuring instrument, in batches by preset rules by each measuring instrument;
Communication unit 300 distributes different communication times for the measuring instrument for different batches, and communication time is for referring to
Show that each measuring instrument uploads continuous data in the corresponding time.
Wherein, the paraphrase such as target zone, information of measuring instrument are same with the above-mentioned embodiment, and this will not be repeated here.
Specifically, information acquisition unit 100 obtains the information of each measuring instrument in target zone, and send the information of measuring instrument to
Sub-cell 200 in batches, then sub-cell 200 is divided each measuring instrument by preset rules according to the information of each measuring instrument in batches
Batch, further, communication unit 300 are that the measuring instrument of different batches distributes different communication times, indicate each gauge
Table uploads continuous data in the corresponding time, realizes communication of avoiding the peak hour.
In addition, it is necessary to explanation, the specific restriction about measuring instrument communication device be may refer to above for meter
The restriction of the instrument means of communication is measured, details are not described herein.Modules in above-mentioned measuring instrument communication device can whole or portion
Divide and is realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of computer equipment
In processor in, can also be stored in a software form in the memory in computer equipment, in order to processor calling hold
The corresponding operation of the above modules of row.
The embodiment of the present invention provides a kind of computer equipment 10 again, as shown in figure 5, computer equipment 10 and each gauge
Communication connection between table 20;Computer equipment 10 includes memory and processor, is stored with computer-readable instruction in memory,
When computer-readable instruction is executed by processor, so that the step of processor executes following measuring instrument means of communication:
S120:Obtain the information of each measuring instrument 20 in target zone;
S140:According to the information of each measuring instrument 20, in batches by preset rules by each measuring instrument;
S160:Different communication times is distributed for the measuring instrument 20 of different batches, communication time is used to indicate each metering
Instrument 20 uploads continuous data in the corresponding time.
In one embodiment, a kind of computer equipment 10 is provided, which can be terminal, inside
Structure chart can be as shown in Figure 5.The computer equipment 10 includes that the processor, memory, network connected by system bus connects
Mouth, display screen and input unit.Wherein, the processor of the computer equipment 10 is for providing calculating and control ability.The calculating
The memory of machine equipment 10 includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operation system
System and computer program.The built-in storage provides for the operation of operating system and computer program in non-volatile memory medium
Environment.The network interface of the computer equipment 10 is used to communicate with external terminal by network connection.The computer program quilt
To realize a kind of 20 means of communication of measuring instrument when processor executes.The display screen of the computer equipment 10 can be liquid crystal display
Screen or electric ink display screen, the input unit of the computer equipment 10 can be the touch layer covered on display screen, can also
To be key, trace ball or the Trackpad being arranged on 10 shell of computer equipment, external keyboard, Trackpad or mouse can also be
Mark etc..
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied
The block diagram of structure, does not constitute the restriction for the computer equipment 10 being applied thereon to application scheme, and specific computer is set
Standby 10 may include perhaps combining certain components or with different component cloth than more or fewer components as shown in the figure
It sets.
The embodiment of the invention also provides a kind of measuring instrument communication systems, as it can be seen in figures 5 and 6, including measuring instrument 20
With above-mentioned computer equipment 10.
Wherein, computer equipment 10 can be the equipment such as terminal, be also possible to wherein some measuring instrument 20.Specifically
, computer program, and the processing of computer equipment 10 are stored in the computer equipment 10 in 20 communication system of measuring instrument
Device can execute the computer program of its storage, and computer equipment 10 obtains the information of each measuring instrument 20, then according to each meter
The information for measuring instrument 20 carries out in batches measuring instrument 20, when distributing different communications for the measuring instrument 20 of different batches
Between, it can be and communication time is handed down to measuring instrument 20 in a manner of control instruction, make each measuring instrument 20 corresponding
Communication time uploads data.
A kind of storage medium being stored with computer-readable instruction, computer-readable instruction are held by one or more processors
When row, so that the step of one or more processors execute the following measuring instrument means of communication:
S120:Obtain the information of each measuring instrument in target zone;
S140:According to the information of each measuring instrument, in batches by preset rules by each measuring instrument;
S160:Different communication times is distributed for the measuring instrument of different batches, communication time is used to indicate each gauge
Table uploads continuous data in the corresponding time.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
Only several embodiments of the present invention are expressed for above embodiments, and the description thereof is more specific and detailed, but can not
Therefore limitations on the scope of the patent of the present invention are interpreted as.It should be pointed out that for those of ordinary skill in the art,
Without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection model of the invention
It encloses.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.