CN109639843A - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- CN109639843A CN109639843A CN201910143058.4A CN201910143058A CN109639843A CN 109639843 A CN109639843 A CN 109639843A CN 201910143058 A CN201910143058 A CN 201910143058A CN 109639843 A CN109639843 A CN 109639843A
- Authority
- CN
- China
- Prior art keywords
- time
- target
- server
- terminal equipment
- equipment
- 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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
Abstract
The embodiment of the present invention provides a kind of data transmission method, is related to internet of things field.The embodiment of the present invention can make the discrete distribution of the status data of terminal device, give full play to the performance of server.It calls time in target this method comprises: generating;It is called time in target for making target terminal equipment according to being called time in report cycle in target to server status data;Target terminal equipment is sent to by calling time in target.The status data that the present invention is applied to terminal device reports.
Description
Technical field
The present invention relates to internet of things field more particularly to data transmission methods and device.
Background technique
In recent years, with the development of technology of Internet of things, more and more terminal devices start to access Internet of Things progress data
Interaction, to provide more intelligentized service.The status data of itself periodically would generally be reported clothes by this kind of terminal device
Business device, so that server carries out the operation such as data statistics, optimization function according to collected status data.It is with smoke sensing equipment
Example, except when detect when smog alarm that smoke sensing equipment will can actively trigger a status data and report outside, it can also be on each
A status data (such as sending within every 24 hours primary) is reported in the report period, enables the server to know that current smog is dense
The information such as degree, the battery capacity of smoke sensing equipment and communication signal strength.
And with the increase of terminal device quantity, the status data of terminal device report Annual distribution often not enough from
It dissipates.This results in certain time period server that can receive the status data that great amount of terminals equipment is sent, and in another a period of time
Server then relative free, to be unable to give full play the performance of server.
Summary of the invention
The data transmission method and device that the embodiment of the present invention provides, can make discrete point of the status data of terminal device
Cloth gives full play to the performance of server.
In order to achieve the above objectives, the present invention adopts the following technical scheme:
In a first aspect, the embodiment of the present invention provides a kind of data transmission method, it is applied to server, this method comprises: raw
At calling time in target;It is called time in target for making target terminal equipment according to being called time in report cycle in target to clothes
Business device status data;Target terminal equipment is sent to by calling time in target.
Second aspect, the embodiment of the present invention provide a kind of data transmission method, are applied to terminal device, this method comprises:
It receives and calls time in the target that server is sent;Status number is sent to server in report cycle according to calling time in target
According to.
The third aspect, the embodiment of the present invention provide a kind of server, comprising: processing unit gives the correct time in target for generating
Between;It is called time in target for making target terminal equipment send state to server in report cycle according to calling time in target
Data;Transmission unit, for after processing unit is generated and called time in target, will call time in target to be sent to target terminal and set
It is standby.
Fourth aspect, the embodiment of the present invention provide a kind of terminal device, comprising: receiving unit, for receiving server hair
It calls time in the target sent;Transmission unit, for sending status number to server in report cycle according to calling time in target
According to.
In the embodiment of the present invention, give the correct time in the target by generating target terminal equipment status data by server
Between, and it is sent to target terminal equipment.To realize controlled by server target terminal equipment status data on give the correct time
Between, so as to avoid target terminal equipment autonomously from selecting to call time to may cause terminal device and concentrate on some period
The case where reporting status data occurs, and improves the service efficiency of server.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, embodiment will be described below
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these
Figure obtains other attached drawings.
Fig. 1 is the number schematic diagram for the status data that server receives in the prior art;
Fig. 2 is a kind of one of flow diagram of data transmission method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of terminal device status data provided in an embodiment of the present invention;
Fig. 4 is the two of a kind of flow diagram of data transmission method provided in an embodiment of the present invention;
Fig. 5 is a kind of one of structural schematic diagram of server provided in an embodiment of the present invention;
Fig. 6 is a kind of second structural representation of server provided in an embodiment of the present invention;
Fig. 7 is a kind of third structural representation of server provided in an embodiment of the present invention;
Fig. 8 is a kind of one of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 9 is a kind of second structural representation of terminal device provided in an embodiment of the present invention;
Figure 10 is a kind of third structural representation of terminal device provided in an embodiment of the present invention.
Specific embodiment
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 description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Term " unit ", " module " are intended to refer to computer related entity as used in the present invention, and the computer is related
Entity can be hardware, firmware, the combination of hardware and software, software or running software.For example, unit can be, but
It is not limited to: process object, processor, executable file, thread in execution, program and/or the meter run on a processor
Calculation machine.
Firstly, inventive principle of the invention is introduced:
Currently, internet-of-things terminal equipment is given the correct time on carrying out status data, used common methods are as follows: in terminal device
After electrifying startup, terminal device can send a status data to server immediately.Start timer later, when reaching timer
After triggered time (for example, with 24 hours be a report cycle), then again to server status data, and so on.
If in addition, detecting trigger signal (for example, smoke sensing equipment detects smog report in no arrival timers trigger time
It is alert) status data then is sent to server immediately, timer restarts timing and repeats the above process later.
As can be seen that in the above prior art, in the case where no smog alarm, terminal device is sent to server
The time point of status data is usually to be determined by the starting time of equipment.And since the installation of terminal device, starting are often
In the daytime, this is resulted in after running for a period of time, and a large amount of terminal device can all concentrate on carrying out status number daytime
According to reporting.It will lead to the performance for not making full use of service server evening in this way, cause the waist performance of service server.
Illustratively, as shown in Figure 1, for the distribution map that calls time on the status data of certain type smoke sensing equipment.It can be seen that, wherein it is big
What the status data of amount all concentrated on being transmitted in 8 points to 17 points this time intervals.
In view of the above-mentioned problems, in the present invention in view of why there is the problem of above-mentioned status data concentration of transmissions, be by
It is since terminal device is voluntarily determined in the time of terminal device status data, this results in server can not be according to certainly
It calls time on the loading condition adjustment terminal device of body.In turn, expect to determine that terminal is set by server in the present invention
It calls time on standby, so, server can be called time on balanced terminal device according to oneself loading condition, from
And the resource utilization of server is improved, give full play to the performance of server.
Embodiment one:
Based on foregoing invention principle, the embodiment of the present invention provides a kind of data transmission method, as shown in Fig. 2, this method has
Body includes:
S101, the online work of target terminal equipment.
Specifically, target terminal equipment can periodically be set to the Internet of Things of server status data for all kinds of needs
It is one of standby.
The online work of target terminal equipment can specifically include after target terminal equipment is powered back up after a power failure, falls net
Again the process logged in.
S102, target terminal equipment generate note net information.
Specifically, note net information includes the information that target terminal equipment is sent in online work to server.
S103, target terminal equipment will infuse net information and is sent to server, and server receives note net information.
Illustratively, note net information can specifically include device identification, MAC Address, IP address of target terminal equipment etc.
Information, infusing can also be including the status data etc. of target terminal equipment in current report cycle in net information.To which server exists
After receiving note net information, the relevant information of target terminal equipment can be obtained.
S104, server are generated and are called time in target in response to infusing net information.
Wherein, it calls time in target for making target terminal equipment according to being called time in report cycle in target to service
Device status data.
In one implementation, in the embodiment of the present invention, report cycle is divided on N number of and is called time.For example, if reporting
Period is 24 hours, and each second is used as on one and is called time.Then a report cycle just includes on 24*60*60=86400
It calls time.Then, select a several M as calling time on terminal device between 0-86399.The root in terminal device operation
T is stabbed according to the clock time of itself, is not otherwise sent if T is equal to M divided by 86400 remainders to server status data.
In turn, server is generated and is called time in target, specifically include in response to note net information in the embodiment of the present invention:
It calls time, makees in calling time on N number of included by report cycle, on the corresponding current online equipment of selection is least
To call time in target.
Wherein, current online equipment includes: the terminal device currently needed to server status data, each current
Online equipment respectively corresponds call time on N number of in call time on one.
For example, it is assumed that a report cycle includes A, B, C, D, E, call time on five kinds.Wherein, it currently calls time on A
The terminal device of uploaded state data has 5, and the terminal device for the uploaded state data that call time on B has 4, gives the correct time on C
Between the terminal devices of uploaded state data have 4, the terminal device for the uploaded state data that call time on D has 3, reports in E
The terminal device of time uploaded state data has 4.It can be seen that the terminal device for the uploaded state data that wherein call time on D
At least, then it will call time as in above-mentioned target and call time on D.
Further, if there are the corresponding current online equipments that calls time on more than two in calling time on N number of
Number is equally few, then selects to call time on one of them and call time as in target.
Further, in one implementation, in order to selecting in calling time on N number of included by report cycle
It calls time on corresponding current online equipment is least.In the embodiment of the present invention, call time on N number of included by report cycle
It calls time on the corresponding current online equipment of selection is least, as calling time in target, specifically includes:
Server inquired in reporting information bank corresponding current online equipment it is least on call time, as giving the correct time in target
Between.
Wherein, report information bank for recording the corresponding current online equipment that calls time on N number of.
It should be noted that alleged in the embodiment of the present invention report information bank to can specifically include record and have to give the correct time on N number of
Between corresponding current online equipment default memory space, the data structure of the memory space can select according to actual needs
Select suitable data structure.
In one implementation, reporting information bank includes the first storage region.First storage region is each currently to be set online
Standby mark and each current online equipment respectively on call time.
For example, reporting information bank using Redis data structure in the embodiment of the present invention to establish.In turn, the first memory block
Data in domain are as follows:
Busy:time:{ IMEI1 }==> 1111
Busy:time:{ IMEI2 }==> 2222
Busy:time:{ IMEI3 }==> 3333
Wherein, IMEI1, IMEI2, IMEI3 are the mark of current online equipment, and 1111,2222,3333 indicate current online
It calls time in equipment.Wherein, one day is divided into 24 × 60 × 60=86400 seconds, therefore selects a several M between 0-86399
As calling time in current online equipment.
In addition, reporting information bank further includes the second storage region, the second storage region is currently set online for storing correspondence
It is standby it is least on call time.
For example, continuing examples detailed above, due to above calling time when reporting information bank using the foundation of Redis data structure
1111,2222,3333 is occupied, thus current online equipment it is least on to call time then include 0,1,2 ... 1110,
1112…2221,2223…3332,3334…86399.Therefore the data in the second storage region are as follows:
Idle:time:sets==> { 0,1,2 ... 1110,1112 ... 2221,2223 ... 3332,3334 ... 86399 }.
In addition, reporting can also include third storage region in information bank, third storage region is given the correct time on each for storing
Between corresponding current online equipment number.
For example, continuing examples detailed above, the data in third storage region are as follows:
Busy:time:zset==> { 0,0 ... 0,1,0 ... 0,1,0 ... 0,1,0 ... 0 } successively indicates: above giving the correct time
Between " 0 " corresponding current online equipment be 0, " 1 " the corresponding current online equipment that above calls time be 0 ... ... above calls time
" 1110 " corresponding current online equipment is 0, on call time " 1111 " corresponding current online equipment be 1, on call time
" 1112 " corresponding current online equipment is 0 ... above call time " 2221 " corresponding current online equipment be 0, on give the correct time
Between " 2222 " corresponding current online equipment be 1, on " 2223 " the corresponding current online equipment that calls time be 0 ... report
Time " 3332 " corresponding current online equipment is 0, on " 3333 " the corresponding current online equipment that calls time be 1, report
Time " 3334 " corresponding current online equipment is 0, etc..
In addition, reporting can also include the 4th storage region in information bank, the 4th storage region reports information for identifying
The read-write state in library.For example, idle:time:init==> 0/1.Wherein, as idle:time:init==> 0, in expression
Report information bank is in idle condition, and can be written and read;As idle:time:init==> 1, expression reports information bank to be in
Write-in or unusable state, it is not possible to be written and read.
In turn, server is generated and is called time in target, specifically include in response to note net information:
S1041, inquiry the first storage region in whether be stored with target terminal equipment on call time.
Specifically, whether being stored with busy:time:{ IMEI X in the first storage region of inquiry } corresponding value, wherein
IMEIX is the mark of target terminal equipment.
If be stored in S1042, the first storage region target terminal equipment on call time.It then will be in the first storage region
It calls time in the target terminal equipment of storage and calls time as in target, be sent to target terminal equipment.
Specifically, if being stored with busy:time:{ IMEI X in the first storage region } corresponding value, by busy:
Time:{ IMEI X } corresponding to corresponding value on call time and call time as in target, be sent to target terminal equipment.
If do not have in S1043, the first storage region store target terminal equipment on call time.Then from the second storage region
In calling time on several current online equipments of correspondence of middle storage are least, selects to call time on one, be reported as target
Time is sent to target terminal equipment.
If S1044, reporting information bank that can not access, conduct of calling time in middle random selection one of calling time from N number of
It calls time in target.
Specifically, can be by the assignment of idle:time:init in the 4th storage region of inquiry, to judge to report information
Whether library can be used.Idle:time:init==> 1 when reporting information bank the abnormal conditions such as unavailable occur, at this time random choosing
It selects to call time on one and call time as in target.Later, information bank is reported to operate normally and then will call time in target
It is updated to and reports in information bank.
After determining to call time in target using the above method, method provided by the embodiment of the present invention further include:
S105, target terminal equipment is stored in supreme report information bank.
Specifically, in the first storage region store data inside busy:time:{ IMEI X }, it will call time in target from
Delete in two storage regions, and update call time in target in busy:time:zset in third storage region it is corresponding current
The number of online equipment.
S106, will call time in target is sent to target terminal equipment.
S107, target terminal equipment in target according to calling time in report cycle to server status data.
In addition, in the embodiment of the present invention, in order to guarantee to report the timeliness of the data in information bank, in above-mentioned steps S106
It will call time in target after being sent to target terminal equipment, the embodiment of the invention also includes:
If S108, server call time in target after preset time in be not received by target terminal equipment transmission
Status data then deletes the record for reporting target terminal equipment in information bank.
Illustratively, if such as target terminal equipment on call time as 16 daily o'clock sharps, i.e., call time in target for
16 points.If then server does not receive the status data that target terminal equipment reports in the certain time after 16 points, really
The fixed target terminal equipment has been off, and then deletes the record for reporting target terminal equipment in information bank.
For example, deleting the busy:time:{ IMEI X stored in the first storage region }, it updates in third storage region
The number etc. for the corresponding current online equipment that calls time in target in busy:time:zset.
Below in conjunction with example, it is provided for the embodiments of the invention data transmission method and is introduced.As shown in figure 3, false
It calls time if a report cycle is divided on 86400.Then as shown, currently have N number of current online equipment IMEI1,
IMEI2,IMEI3,IMEI4……IMEIX,IMEIY,IMEIZ;In the current online of the upper 86399 uploaded state data that call time
Equipment has 0, has 0 in the upper current online equipment for calling time 86398 uploaded state data, 86397 reports in upper call time
The current online equipment of status data have 0, the upper current online equipment for calling time 86396 uploaded state data have 0,
On the call time current online equipment of 86395 uploaded state data have 0 ... in working as the upper M+1 uploaded state data that call time
Preceding online equipment has 2, has 1 in the upper current online equipment for calling time M uploaded state data, reports in the upper M-1 that calls time
The current online equipment of status data has 0 ... the upper current online equipment for calling time 3 uploaded state data have 0,
On the call time current online equipment of 2 uploaded state data have 0, set online in upper the current of the 1 uploaded state data that call time
It has 0, have 0 in the upper current online equipment for calling time 0 uploaded state data.
Then as shown in figure 4, data transmission method provided by the embodiment of the present invention includes:
S201, the online work of target terminal equipment, and note net information is sent to server.
S202, server receive note net information after, in the first storage region inquire target terminal equipment it is corresponding on
It calls time.
Specifically, server inquires busy:time:{ IMEI Q }.Wherein IMEI Q is the mark of target terminal equipment.
S203, server judge busy:time:{ IMEI Q } it whether is empty.
If S204, busy:time:{ IMEI Q } there is corresponding assignment, i.e., that is target terminal equipment is included in N number of work as
In preceding reporting equipment, then busy:time:{ IMEI Q is obtained } corresponding value, and by busy:time:{ IMEI Q corresponding value
It calls time on corresponding and calls time as in target.Then S210 is executed.
If S205, without busy:time:{ IMEI Q corresponding assignment, i.e., that is target terminal equipment is not included in N
In a current reporting equipment, then whether the assignment for detecting idle:time:init in the 4th storage region is 1.
If S206, idle:time:init are assigned a value of 1, i.e., explanation currently report information bank that cannot be written and read, then from
It calls time on 86400 and calls time and call time as in target in middle random selection one.Then S210 is executed.
It later,, will after idle:time:init is assigned a value of 0 in order to guarantee to report the real-times of data in information bank
Target terminal equipment stores in supreme report information bank.
If S207, idle:time:init are assigned a value of 0, i.e., explanation currently reports information bank that can be written and read, and judges
Whether idle:time:sets is empty.If idle:time:sets is sky, the correspondence determined before illustrating, which currently reports, to be set
It is standby it is least on call time without needing to update idle:time:sets with determination and currently correspond to current reporting equipment most
It calls time on few, then executes S208;If idle:time:sets is not sky, S209 is executed.
S208, idle:time:init assignment is set 1, and obtains current 86400 from busy:time:sets and reports
The number of time corresponding current online equipment.By the current online equipment number of correspondence it is least on call time and increase to
In idle:time:sets.Then idle:time:init assignment is set 0.Then S209 is executed.
S209, it calls time from selecting to call time on one in idle:time:sets as in target.Then S210 is executed.
It, can also be to above notifying after selecting to call time on one as calling time in target in idle:time:sets
Breath library is updated.
S210, server send to target terminal equipment and call time in target, so that target terminal equipment is upper later
According to being called time in target to server status data in the report period.
After server calls time in target terminal equipment transmission target, this method further include:
If S211, server call time in target after preset time in do not receive target terminal equipment transmission
Status data then deletes the record for reporting target terminal equipment in information bank.
Specifically, server can be by busy:time:{ IMEI Q in the first storage region } assignment delete, update
The number etc. for the corresponding current online equipment that calls time in target in busy:time:zset in third storage region.
In the embodiment of the present invention, give the correct time in the target by generating target terminal equipment status data by server
Between, and it is sent to target terminal equipment.To realize controlled by server target terminal equipment status data on give the correct time
Between, so as to avoid target terminal equipment autonomously from selecting to call time to may cause terminal device and concentrate on some period
The case where reporting status data occurs, and improves the service efficiency of server.
Embodiment two:
The embodiment of the present invention also provides a kind of server, and the server is for executing above-mentioned data transmission method.Such as Fig. 5 institute
Show, is a kind of possible structural schematic diagram of server provided in an embodiment of the present invention.Specifically, the server 30 includes: place
Manage unit 301, transmission unit 302.Wherein:
Processing unit 301 calls time in target for generating;It is called time in target for making target terminal equipment according to mesh
It puts on and calls time in report cycle to server status data;
Transmission unit 302, for being sent to calling time in target after processing unit 301 is generated and called time in target
Target terminal equipment.
Optionally, processing unit 301, in calling time on N number of included by report cycle, selection is to should
It calls time on preceding online equipment is least, as calling time in target;Wherein, current online equipment includes: currently to need to clothes
The terminal device for device status data of being engaged in, each current online equipment respectively corresponds call time on N number of in call time on one.
Optionally, processing unit 301, specifically for inquired in reporting information bank corresponding current online equipment it is least on
It calls time;Report information bank for recording the corresponding current online equipment that calls time on N number of;
Optionally, server 30 further include: updating unit 303;
Updating unit 303, for after processing unit 301 is generated and called time in target, target terminal equipment to be updated to
It reports in information bank;
Updating unit 303 is also used to after transmission unit 302 will call time in target and be sent to target terminal equipment,
If server call time in target after preset time in be not received by target terminal equipment transmission status data, delete
Except the record for reporting target terminal equipment in information bank.
Optionally, server 30 further includes receiving unit 304;
Receiving unit 304, for receiving what target terminal equipment was sent before processing unit is generated and called time in target
Infuse net signal;Wherein, note net information includes the information that target terminal equipment is sent after online work to server;
Processing unit 301 is specifically used for generating and calling time in target in response to infusing net information.
In the server provided in the embodiment of the present invention each module function and generated effect be referred to
The corresponding description content in one data transmission method of embodiment is stated, details are not described herein.
Using integrated unit, one kind that Fig. 6 shows server involved in above-described embodiment can
The structural schematic diagram of energy.Server 40 includes: processing module 401, communication module 402 and memory module 403.Processing module 401
Control management is carried out for the movement to server 40, for example, processing module 401 is for supporting server 40 to execute in Fig. 2
Process S103-S104, S105-S106 and S108.Communication module 402 is used to support the communication of server Yu other entities.It deposits
Store up program code and data that module 403 is used for storage server.
Wherein, processing module 401 can be processor or controller, such as can be central processing unit (central
Processing unit, CPU), general processor, digital signal processor (digital signal processor, DSP),
Specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array
It is (field programmable gate array, FPGA) or other programmable logic device, transistor logic, hard
Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention
Collect box, module and circuit.Processor is also possible to realize the combination of computing function, such as includes one or more microprocessors
Combination, DSP and the combination of microprocessor etc..Communication module 402 can be transceiver, transmission circuit or communication interface etc..It deposits
Storage module 403 can be memory.
When processing module 401 is processor as shown in Figure 7, communication module 402 is the transceiver of Fig. 7, memory module 403
For Fig. 7 memory when, server involved in the embodiment of the present invention can be following server 50.
Referring to shown in Fig. 7, which includes: processor 501, transceiver 502, memory 503 and bus 504.
Wherein, processor 501, transceiver 502, memory 503 are connected with each other by bus 504;Bus 504 can be outer
If component connection standard (peripheral component interconnect, PCI) bus or expanding the industrial standard structure
(extended industry standard architecture, EISA) bus etc..It is total that the bus can be divided into address
Line, data/address bus, control bus etc..Only to be indicated with a thick line in figure, it is not intended that an only bus convenient for indicating
Or a type of bus.
Processor 501 can be a general central processor (Central Processing Unit, CPU), micro process
Device, application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC) or one or more
A integrated circuit executed for controlling the present invention program program.
Memory 503 can be read-only memory (Read-Only Memory, ROM) or can store static information and instruction
Other kinds of static storage device, random access memory (Random Access Memory, RAM) or letter can be stored
The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal
Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to
Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this.
Memory, which can be, to be individually present, and is connected by bus with processor.Memory can also be integrated with processor.
Wherein, memory 502 is used to store the application code for executing the present invention program, and is controlled by processor 501
System executes.Transceiver 502 is used to receive the content of external equipment input, and processor 501 is used to execute to store in memory 503
Application code, to realize data transmission method described in the embodiment of the present invention.
Embodiment three:
The embodiment of the present invention also provides a kind of terminal device, and the terminal device is for executing above-mentioned data transmission method.Such as
It is a kind of possible structural schematic diagram of terminal device provided in an embodiment of the present invention shown in Fig. 8.Specifically, the terminal device
60 include: receiving unit 601, transmission unit 602.Wherein:
Receiving unit 601 calls time in the target that server is sent for receiving;
Transmission unit 602, for according to being called time in report cycle in target to server status data.
In the terminal device provided in the embodiment of the present invention each module function and generated effect be referred to
Corresponding description content in one data transmission method of above-described embodiment, details are not described herein.
Using integrated unit, Fig. 9 shows one kind of terminal device involved in above-described embodiment
Possible structural schematic diagram.Terminal device 70 includes: processing module 701, communication module 702 and memory module 703.Processing module
701 for carrying out control management to the movement of terminal device 70, for example, processing module 701 is for supporting terminal device 70 to execute
Process S101-S103 and S107 in Fig. 2.Communication module 702 is used to support the communication of terminal device Yu other entities.Storage
Module 703 is used for the program code and data of storage terminal device.
Wherein, processing module 701 can be processor or controller, such as can be central processing unit (central
Processing unit, CPU), general processor, digital signal processor (digital signal processor, DSP),
Specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array
It is (field programmable gate array, FPGA) or other programmable logic device, transistor logic, hard
Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in the disclosure of invention
Collect box, module and circuit.Processor is also possible to realize the combination of computing function, such as includes one or more microprocessors
Combination, DSP and the combination of microprocessor etc..Communication module 702 can be transceiver, transmission circuit or communication interface etc..It deposits
Storage module 703 can be memory.
When processing module 701 is processor as shown in Figure 10, communication module 702 is the transceiver of Figure 10, memory module
703 when being the memory of Figure 10, and terminal device involved in the embodiment of the present invention can be following terminal device 80.
Referring to Fig.1 shown in 0, which includes: processor 801, transceiver 802, memory 803 and bus 804.
Wherein, processor 801, transceiver 802, memory 803 are connected with each other by bus 804;Bus 804 can be outer
If component connection standard (peripheral component interconnect, PCI) bus or expanding the industrial standard structure
(extended industry standard architecture, EISA) bus etc..It is total that the bus can be divided into address
Line, data/address bus, control bus etc..Only to be indicated with a thick line in figure, it is not intended that an only bus convenient for indicating
Or a type of bus.
Processor 801 can be a general central processor (Central Processing Unit, CPU), micro process
Device, application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC) or one or more
A integrated circuit executed for controlling the present invention program program.
Memory 803 can be read-only memory (Read-Only Memory, ROM) or can store static information and instruction
Other kinds of static storage device, random access memory (Random Access Memory, RAM) or letter can be stored
The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal
Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to
Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this.
Memory, which can be, to be individually present, and is connected by bus with processor.Memory can also be integrated with processor.
Wherein, memory 802 is used to store the application code for executing the present invention program, and is controlled by processor 801
System executes.Transceiver 802 is used to receive the content of external equipment input, and processor 801 is used to execute to store in memory 803
Application code, to realize data transmission method described in the embodiment of the present invention.
It should be understood that in various embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to execute suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method, it can be with
It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer
Program product includes one or more computer instructions.On computers load and execute computer program instructions when, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
Word user line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another
A web-site, computer, server or data center are transmitted.The computer readable storage medium can be computer
Any usable medium that can be accessed either includes the numbers such as one or more server, data centers that medium can be used to integrate
According to storage equipment.The usable medium can be magnetic medium (for example, floppy disk, hard disk, tape), optical medium (for example, DVD),
Or semiconductor medium (such as solid state hard disk (Solid State Disk, SSD)) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of data transmission method is applied to server characterized by comprising
It generates and calls time in target;It is called time in the target for making the target terminal equipment according to giving the correct time in the target
Between in report cycle to the server status data;
The target terminal equipment is sent to by calling time in the target.
2. data transmission method according to claim 1, which is characterized in that call time, specifically include in the generation target:
Included by the report cycle it is N number of on call time, call time on the corresponding current online equipment of selection is least, make
To call time in the target;Wherein, the current online equipment includes: currently to need to the server status data
Terminal device;Wherein each current online equipment respectively correspond it is described it is N number of on call time in call time on one.
3. data transmission method according to claim 1, which is characterized in that call time on N number of included by report cycle
It calls time on the corresponding current online equipment of middle selection is least, as calling time in the target, specifically includes:
The server inquired in reporting information bank the corresponding current online equipment it is least on call time, as the mesh
It puts on and calls time;It is described report information bank for record it is described it is N number of on call time the corresponding current online equipment;
After calling time in the generation target, the method also includes: the target terminal equipment is updated to described
It reports in information bank;
It is described will call time in the target be sent to the target terminal equipment after, the method also includes:
If the server call time in target after preset time in be not received by what the target terminal equipment was sent
Status data then reports the record of target terminal equipment described in information bank described in deletion.
4. any one of -3 data transmission method according to claim 1, which is characterized in that call time it in the generation target
Before, the method also includes:
Receive the note net information that the target terminal equipment is sent;Wherein, the note net information includes the target terminal equipment
The information sent after online work to the server;
It calls time in the generation target, specifically includes in response to the note net information, generate and call time in target.
5. a kind of data transmission method is applied to terminal device characterized by comprising
It receives and calls time in the target that server is sent;
According to being called time in report cycle in the target to server status data.
6. a kind of server characterized by comprising
Processing unit calls time in target for generating;Call time in the target for make the target terminal equipment according to
It is called time in report cycle in the target to the server status data;
Transmission unit, after calling time in the processing unit generation target, by transmission of calling time in the target
To the target terminal equipment.
7. server according to claim 6, which is characterized in that
The processing unit selects corresponding current online in calling time on N number of included by the report cycle
It calls time on equipment is least, as calling time in the target;Wherein, the current online equipment include: currently need to
The terminal device of the server status data, each current online equipment respectively correspond it is described it is N number of on call time
In call time on one.
8. server according to claim 7, which is characterized in that
The processing unit, specifically for inquired in reporting information bank the corresponding current online equipment it is least on give the correct time
Between;It is described report information bank for record it is described it is N number of on call time the corresponding current online equipment;
The server further include: updating unit;
The updating unit, after calling time in the processing unit generation target, by the target terminal equipment
It is updated to described report in information bank;
The updating unit, being also used to call time in the target in the transmission unit is sent to the target terminal equipment
Later, if the server call time in the target after preset time in be not received by target terminal equipment hair
The status data sent then reports the record of target terminal equipment described in information bank described in deletion.
9. according to any one of the claim 6-8 server, which is characterized in that the server further includes receiving unit;
The receiving unit, for receiving the target terminal equipment before the processing unit is generated and called time in target
The note net signal of transmission;Wherein, the note net information include the target terminal equipment after online work to the server
The information of transmission;
The processing unit is specifically used for generating and calling time in target in response to the note net information.
10. a kind of terminal device characterized by comprising
Receiving unit calls time in the target that server is sent for receiving;
Transmission unit, for according to being called time in report cycle in the target to the server status data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910143058.4A CN109639843A (en) | 2019-02-26 | 2019-02-26 | Data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910143058.4A CN109639843A (en) | 2019-02-26 | 2019-02-26 | Data transmission method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109639843A true CN109639843A (en) | 2019-04-16 |
Family
ID=66066003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910143058.4A Pending CN109639843A (en) | 2019-02-26 | 2019-02-26 | Data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109639843A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112218273A (en) * | 2019-07-09 | 2021-01-12 | 中国电信股份有限公司 | Terminal uplink data distribution control method, device and system |
CN112770354A (en) * | 2020-12-31 | 2021-05-07 | 厦门骐俊物联科技股份有限公司 | Cellular communication Internet of things terminal data uploading method based on redis |
CN112218273B (en) * | 2019-07-09 | 2024-04-30 | 中国电信股份有限公司 | Terminal uplink data distribution control method, device and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7886200B1 (en) * | 2008-03-21 | 2011-02-08 | Symantec Corporation | Measuring catastrophic failure rates in updates |
CN102098170A (en) * | 2009-12-09 | 2011-06-15 | 中兴通讯股份有限公司 | Data acquisition optimization method and system |
CN104754641A (en) * | 2013-12-27 | 2015-07-01 | 中国移动通信集团公司 | Data transmission control method and data transmission control device |
CN107613525A (en) * | 2017-09-21 | 2018-01-19 | 新智数字科技有限公司 | Report method of avoiding the peak hour, device and electronic equipment based on gauge table |
CN108711044A (en) * | 2018-05-18 | 2018-10-26 | 深圳市源啓智能科技有限公司 | A kind of the remote meter reading settlement method and system of water meter |
-
2019
- 2019-02-26 CN CN201910143058.4A patent/CN109639843A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7886200B1 (en) * | 2008-03-21 | 2011-02-08 | Symantec Corporation | Measuring catastrophic failure rates in updates |
CN102098170A (en) * | 2009-12-09 | 2011-06-15 | 中兴通讯股份有限公司 | Data acquisition optimization method and system |
CN104754641A (en) * | 2013-12-27 | 2015-07-01 | 中国移动通信集团公司 | Data transmission control method and data transmission control device |
CN104754641B (en) * | 2013-12-27 | 2018-10-30 | 中国移动通信集团公司 | A kind of data transfer control method and device |
CN107613525A (en) * | 2017-09-21 | 2018-01-19 | 新智数字科技有限公司 | Report method of avoiding the peak hour, device and electronic equipment based on gauge table |
CN108711044A (en) * | 2018-05-18 | 2018-10-26 | 深圳市源啓智能科技有限公司 | A kind of the remote meter reading settlement method and system of water meter |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112218273A (en) * | 2019-07-09 | 2021-01-12 | 中国电信股份有限公司 | Terminal uplink data distribution control method, device and system |
CN112218273B (en) * | 2019-07-09 | 2024-04-30 | 中国电信股份有限公司 | Terminal uplink data distribution control method, device and system |
CN112770354A (en) * | 2020-12-31 | 2021-05-07 | 厦门骐俊物联科技股份有限公司 | Cellular communication Internet of things terminal data uploading method based on redis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683720B (en) | Container cluster service configuration method and device | |
US11106560B2 (en) | Adaptive thresholds for containers | |
US20160335123A1 (en) | Dynamically modifying program execution capacity | |
CN109344153B (en) | Service data processing method and terminal equipment | |
CN102890628B (en) | The display packing of destination object and device | |
US11630851B2 (en) | Systems and methods for providing predictions to applications executing on a computing device | |
JP2015191523A (en) | Configuration management apparatus, configuration management system, and configuration management program | |
CN109101357A (en) | A kind of detection method and device of OSD failure | |
CN1835454B (en) | Event notification management method and event notification management apparatus | |
CN112130996A (en) | Data monitoring control system, method and device, electronic equipment and storage medium | |
CN112230847B (en) | Method, system, terminal and storage medium for monitoring K8s storage volume | |
CN108366098B (en) | Data interaction method and device for network nodes | |
US11500663B1 (en) | Predictive virtual machine launch-based capacity management | |
CN115883407A (en) | Data acquisition method, system, equipment and storage medium | |
CN109639843A (en) | Data transmission method and device | |
CN110347546B (en) | Dynamic adjustment method, device, medium and electronic equipment for monitoring task | |
CN111262893A (en) | Method for event notification, server device, event notification apparatus, and medium | |
US9769185B2 (en) | Method and system for managing suspicious devices on network | |
US10585620B2 (en) | Storage monitoring system for monitoring components in a storage system in a distributed manner | |
CN112817687A (en) | Data synchronization method and device | |
CN110727555A (en) | Service interface management method, device, medium and computer equipment | |
CN116225609A (en) | Pod scheduling method, device and equipment of Kubernetes cluster and computer readable medium | |
CN110333930A (en) | Digital Platform system | |
WO2013140412A1 (en) | A method and system for distributed computing of jobs | |
JP2019082857A (en) | Computer system and data processing control method |
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 |
Application publication date: 20190416 |
|
RJ01 | Rejection of invention patent application after publication |