CN104754641B - A kind of data transfer control method and device - Google Patents
A kind of data transfer control method and device Download PDFInfo
- Publication number
- CN104754641B CN104754641B CN201310741691.6A CN201310741691A CN104754641B CN 104754641 B CN104754641 B CN 104754641B CN 201310741691 A CN201310741691 A CN 201310741691A CN 104754641 B CN104754641 B CN 104754641B
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- uplink time
- upload
- device identification
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0247—Traffic management, e.g. flow control or congestion control based on conditions of the access network or the infrastructure network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0289—Congestion control
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of data transfer control method and device, this method includes:It determines the device identification for the terminal for including in the data upload requests that the terminal received is sent, and determines that terminal sends the uplink time of the data upload requests;And according to the cell ID and location area code, determine the position that terminal is currently located;In the correspondence of pre-stored uplink time and terminal position, terminal iidentification set is obtained;The device identification obtained in data upload requests is inserted into the terminal iidentification set of acquisition;And judge whether the number of elements in terminal iidentification set is more than given threshold;When the determination result is yes, the timing uplink time of terminal upload data is redefined;And upload response message to the terminal transmission data of transmission data upload request.It can effectively solve the problem that and prodigious concurrent processing pressure is generated to server-side, equipment can not be solved the problems, such as in base station congestion caused by same place while upload.
Description
Technical field
The present invention relates to wireless communication technology fields, more particularly, to a kind of data transfer control method and device.
Background technology
With the development of the new and high technologies such as mobile communication, body-sensing net and sensor, mobile this technical field of health is more next
More show vast market prospect.In mobile health application, portable motion detection device can be to the movement row of user
To be recorded in real time, and by wireless network by the data transmission of record to the data center of long-range health medical treatment service provider
(That is server-side), the administrative analysis of individual sports data is completed by data center.Portable motion detection device can utilize
The client or browser of mobile terminal(web)The page carries out that motion recording and trend, and feed back motion, weight reducing, health care is presented
Etc. instructions.
With the rise and development of Internet of Things, integrated universal packet radio network (GPRS, General Packet Radio
System) the portable motion detection device of module can upload exercise data automatically whenever and wherever possible, have it is easy to use, be not necessarily to
The advantages such as any operation and data line, not missing data, are favored by user.But the portable of GPRS module is integrated at present
There are following defects for motion detection device:
The first defect:The current existing motion detection device for having GPRS transmission ability is all on the set time is automatic
Data are passed, but since motion detection device all carries out time synchronization by server, there is more accurate synchronousness, because
There is a large amount of terminal while activation and initiating data and upload in this, can be caused to data center server larger concurrent
Processing pressure, if it exceeds the concurrent bearing capacity of server, will result in the collapse of operation system, and in the non-upload period
Server resource can be caused idle.Therefore data timing uploads automatically to generate concurrent processing pressure to server-side.
Second of defect:For serving the motion detection device of enterprise customer, all users can collect in the work hours
In in the same office, since the when and where consistency of equipment is stronger, be easy for user data occur a certain
A specific time concentrates and gathers same or several base stations, when data traffic channels or signaling control channel occupy it is excessive,
It will appear network congestion, cause data upload failure or motion detection device frequently to retransmit, increase the power consumption of equipment, for
The limited portable device of resource understands seriously reduction equipment cruise duration.Therefore the data timing in concentration point uploads automatically
Congestion risk can be generated to base station.
The third defect:Network environment is poor or the insufficient region of wireless coverage, for example in user family, may lead
The data that timing uploads automatically every time are caused to transmit failure so that the exercise data on the day of the user can not be uploaded to service in real time
End, simultaneously because the frequent retransmission data of equipment, can increase the power consumption of equipment, serious reduction equipment cruise duration.It needs dynamic
GPRS uplink times are adjusted according to network environment.
In conclusion the motion detection device with GPRS module generates server-side when carrying out data transmission at present
Prodigious concurrent processing pressure can not solve the problems, such as equipment in base station congestion caused by same place while upload.
Invention content
The present invention provides a kind of data transfer control method and device, can effectively solve the problem that prodigious to server-side generation
Concurrent processing pressure can not solve the problems, such as equipment in base station congestion caused by same place while upload.
A kind of data transfer control method, including:It determines in the data upload requests that the terminal received is sent and includes
The cell ID and location area code that the device identification of the terminal and the terminal are currently located;According to the equipment mark
Know, determines that terminal sends the uplink time of the data upload requests;And it according to the cell ID and location area code, determines
The position that terminal is currently located;In the correspondence of pre-stored uplink time and terminal position, obtains and determine
The identical terminal iidentification set in position that the uplink time and terminal gone out is currently located;And it is determining from data upload requests
When the device identification of acquisition is not included in the terminal iidentification set of acquisition, the equipment obtained in request will be passed on the data
Mark is inserted into the terminal iidentification set of acquisition;And judge whether the number of elements in terminal iidentification set is more than setting threshold
Value;When the determination result is yes, the timing uplink time of terminal upload data is redefined;And to transmission data upload request
Terminal sends the data comprising change data uplink time and uploads response message.
Using above-mentioned technical proposal, the timing uplink time of dispersion is randomly generated by device identification, is uploaded according to equipment
CellID and LAC determine its in the base station information for uploading the moment, according to the quantity of uploading device while each base station, dynamic
The uplink time for adjusting each terminal is effectively prevented from because the terminal for putting upload in the same time and place is excessive, causes the hair of congestion problems
It is raw.
The timing uplink time of terminal upload data is redefined, including:In pre-stored uplink time and terminal institute
In the correspondence of position, all uplink times of same position where determining the terminal with the transmission data upload request
In, including the uplink time that terminal quantity is minimum;The uplink time minimum comprising terminal quantity is determined as terminal to upload
The timing uplink time of data.
Dynamic adjusts the uplink time of each terminal, effectively avoid terminal quantity because of the data of same position upload simultaneously compared with
It is more, the problem of causing network congestion.
Response message is uploaded sending the data comprising change data uplink time to the terminal of transmission data upload request
Later, further include:Update terminal iidentification set.
Terminal iidentification set is synchronized and is updated, the duplicate acknowledgment for avoiding device identification is conducive to, saves resource.
A kind of data transfer control method, including:To server-side transmission data upload request, in the data upload requests
Including cell ID and location area code that the device identification of terminal and the terminal are currently located;And receive server-side hair
The data comprising change data uplink time come upload response message, when uploading the upload in response message according to the data
Between upload data.
Using above-mentioned technical proposal, the timing uplink time of dispersion is randomly generated by device identification, is uploaded according to equipment
CellID and LAC determine its in the base station information for uploading the moment, according to the quantity of uploading device while each base station, dynamic
The uplink time for adjusting each terminal is effectively prevented from because the terminal for putting upload in the same time and place is excessive, causes the hair of congestion problems
It is raw.
A kind of data transfer controller, including:First determination unit, the data sent for determining the terminal received
The cell ID and the band of position that the device identification for the terminal for including in upload request and the terminal are currently located
Code;Second determination unit, for according to the device identification, determining that terminal sends the uplink time of the data upload requests;
And according to the cell ID and location area code, determine the position that terminal is currently located;Obtaining unit, for prestoring
Uplink time and terminal position correspondence in, position that the uplink time and terminal that obtain and determine are currently located
Set identical terminal iidentification set;It is inserted into unit, for determining that the device identification obtained from data upload requests do not wrap
When being contained in the terminal iidentification set of acquisition, the device identification obtained in biography request on the data is inserted into the end of acquisition
It holds in logo collection;Judging unit, for judging whether the number of elements in terminal iidentification set is more than given threshold;Third is true
Order member, for when the determination result is yes, redefining the timing uplink time of terminal upload data;Transmission unit is used for
The data comprising change data uplink time, which are sent, to the terminal of transmission data upload request uploads response message.
Using above-mentioned technical proposal, the timing uplink time of dispersion is randomly generated by device identification, is uploaded according to equipment
CellID and LAC determine its in the base station information for uploading the moment, according to the quantity of uploading device while each base station, dynamic
The uplink time for adjusting each terminal is effectively prevented from because the terminal for putting upload in the same time and place is excessive, causes the hair of congestion problems
It is raw.
The third determination unit is specifically used for the correspondence in pre-stored uplink time and terminal position
In, in all uplink times of same position where determining the terminal with the transmission data upload request, including terminal quantity
Minimum uplink time;When the uplink time minimum comprising terminal quantity to be determined as to the timing upload of terminal upload data
Between.
Dynamic adjusts the uplink time of each terminal, effectively avoid terminal quantity because of the data of same position upload simultaneously compared with
It is more, the problem of causing network congestion.
Further include:Updating unit, for updating terminal iidentification set.
Terminal iidentification set is synchronized and is updated, the duplicate acknowledgment for avoiding device identification is conducive to, saves resource.
A kind of data transfer controller, including:Transmission unit is used for server-side transmission data upload request, described
The cell ID and location area code that the device identification comprising terminal and the terminal are currently located in data upload requests;
Receiving unit uploads response message, according to described for receiving the data comprising change data uplink time that server-side is sent
Data upload the uplink time in response message and upload data.
Using above-mentioned technical proposal, the timing uplink time of dispersion is randomly generated by device identification, is uploaded according to equipment
CellID and LAC determine its in the base station information for uploading the moment, according to the quantity of uploading device while each base station, dynamic
The uplink time for adjusting each terminal is effectively prevented from because the terminal for putting upload in the same time and place is excessive, causes the hair of congestion problems
It is raw.
A kind of data transfer control method, including:Determine terminal setting uplink time upload data continuously transmit
When the frequency of failure is more than the first given threshold, determine whether the displacement distance of the terminal is more than the second given threshold;In determination
When going out the displacement distance of the terminal more than the second given threshold, current time is determined, using current time as when new upload
Between;The terminal uploads data according to new uplink time to server-side.
When multiple timing transmission failure occurs for motion detection device, according to the motion conditions of detection user, pre- measurement equipment
It after leaving the poor region of signal covering, then controls and carries out data upload, and root transmission success rate statistical conditions, redefine new
The timing transmission time.It can effectively solve the problem that due to timing transmission failure problem caused by network coverage problem, avoid due to multiple
Portable apparatus power consumption caused by retransmitting increases.
After terminal uploads data according to new uplink time to server-side, further include:If it is determined that the terminal exists
When new uplink time upload data continuously transmit the frequency of failure more than third given threshold, the terminal stops in server-side
Pass data;And if it is determined that terminal uploads data in new uplink time continuously transmits the frequency of failure less than third given threshold
When, then it returns and executes the process whether terminal is kept in motion that detects.
It can effectively solve the problem that due to timing transmission failure problem caused by network coverage problem, avoid leading due to repeatedly retransmitting
The portable apparatus power consumption of cause increases.
After terminal uploads data according to new uplink time to server-side, further include:If it is determined that terminal is new
When uplink time uploads data success, then using the new uplink time as updated setting uplink time, terminal is more
Setting uplink time after new uploads data to server-side.
It will be new after terminal uploads data success according to new uplink time to server-side using above-mentioned technical proposal
Uplink time as updated setting uplink time, subsequent terminal when reaching the time, upload data, to ensure end
End uploads the success rate of data.
A kind of data transfer controller, including:First determination unit, for determining that terminal is uploaded in setting uplink time
Data continuously transmit whether the frequency of failure is more than the first given threshold;Second determination unit, the movement for determining the terminal
Whether distance is more than the second given threshold, and when the displacement distance for determining the terminal is more than the second given threshold, determination is worked as
The preceding time, using current time as new uplink time;Transmission unit, for uploading number to server-side according to new uplink time
According to.
When multiple timing transmission failure occurs for motion detection device, according to the motion conditions of detection user, pre- measurement equipment
It after leaving the poor region of signal covering, then controls and carries out data upload, and root transmission success rate statistical conditions, redefine new
The timing transmission time.It can effectively solve the problem that due to timing transmission failure problem caused by network coverage problem, avoid due to multiple
Portable apparatus power consumption caused by retransmitting increases.
The transmission unit is additionally operable to if it is determined that the terminal uploads data in new uplink time continuously transmits failure
When number is more than third given threshold, the terminal stops uploading data to server-side;And if it is determined that terminal in new upload
When time upload data continuously transmit the frequency of failure less than third given threshold, then returns to execution and detect whether the terminal is in
The process of motion state.
It can effectively solve the problem that due to timing transmission failure problem caused by network coverage problem, avoid leading due to repeatedly retransmitting
The portable apparatus power consumption of cause increases.
The transmission unit, if being additionally operable to updated setting uplink time, the setting uplink time of terminal in the updated
Data are uploaded to server-side.
It will be new after terminal uploads data success according to new uplink time to server-side using above-mentioned technical proposal
Uplink time as updated setting uplink time, subsequent terminal when reaching the time, upload data, to ensure end
End uploads the success rate of data.
Description of the drawings
Fig. 1 is the motion detection device structure composition schematic diagram of proposition in the embodiment of the present invention;
Fig. 2 is the data transfer control method flow chart of proposition in the embodiment of the present invention one;
Fig. 3 is the data transfer controller structure composition schematic diagram of proposition in the embodiment of the present invention one;
Fig. 4 is the data transfer control method flow chart of proposition in the embodiment of the present invention one;
Fig. 5 is the data transfer controller structure composition schematic diagram of proposition in the embodiment of the present invention one;
Fig. 6 is the data transfer control method flow chart of proposition in the embodiment of the present invention two;
Fig. 7 is the data transfer controller structure composition schematic diagram of proposition in the embodiment of the present invention two.
Specific implementation mode
For current motion detection device when uploading data, prodigious concurrent processing pressure is generated to server-side, it can not
Solve the problems, such as equipment in base station congestion caused by same place while upload.In the technical solution that the embodiment of the present invention proposes, lead to
Cross the device identification for determining terminal and the position that is currently located of terminal, further judge terminal present position whether have compared with
More terminals uploads data simultaneously, and the timing uplink time of dispersion is generated based on device identification, dynamically adjusts the upper of each terminal
The problem of passing the time, effectively avoiding the terminal quantity because of the data of same position upload simultaneously more, cause network congestion.
It secondly, can be according to the mobile fortune of terminal for due to timing transmission failure problem caused by network coverage problem
It is dynamic, determine whether terminal leaves the poor environment of the network coverage, and determining that terminal has been moved off the poor ground of the network coverage
When domain, data are uploaded again, to save power consumption.
Below in conjunction with each attached drawing to the main realization principle of technical solution of the embodiment of the present invention, specific implementation mode and
Its advantageous effect corresponding to reach is set forth in.
The terminal that various embodiments of the present invention propose can be the independently arranged portable motion detection with GPRS module
Equipment, the motion detection device can also be the client of setting in the terminal, can pass through the GPRS moulds of mobile terminal
Block uploads exercise data automatically whenever and wherever possible.The hardware configuration of portable motion detection device is as shown in Figure 1:
Including memory 11, the exercise data etc. for the timing transmission time of storage device, device id and acquisition.
Acceleration transducer 12 is to be acquired in real time to human motion acceleration information for responsible, and connect by SPI
The move distance statistical module of processor is defeated by oral instructions.
GPRS communication modules 13, for being responsible for collected exercise data by wirelessly carrying out data transmission.Pass through control
Bus processed is processor controlled, executes the transmission control command of processor, reads transmission data by data/address bus and feeds back receipts
The configuration order arrived.
Portable motion detection device randomly generates default uplink time by device id, point one noon, the dusk, morning
Automatic transmission period three times divides time slot in seconds in uplink time section, ensures the automatic uplink time of equipment
It is evenly distributed uploading in the period.In order to ensure to carry out the fairness of the services such as movement ranking, period selection needs to fix.In order to
Avoid congestion, period selection that from need to avoiding peak talk period.
Processor 14, processor 14 unsuccessfully judge mould comprising random number generation module 141, clock control module 142, transmission
Block 143, move distance statistical module 144.
Random number generation module 141, for generating initial timing transmission by random Hash function according to device identification
Time.
Clock control module 142, for according to judging whether the real time reaches timing delivery time, triggering to be interrupted, control
GPRS module processed, which starts, to be sent.
Transmission failure judgment module 143, for judging whether current transmission succeeds according to GPRS module feedack.
Move distance statistical module 144 is used for being estimated according to the move distance for being worth to user of acceleration transducer
Whether in prediction user the poor region of the network coverage has closely been left.
Embodiment one
The embodiment of the present invention proposes that a kind of data transfer control method, this method can be applied in service end side, server
The cellID and LAC when each terminal repeatedly uploads data are counted, determines that the terminal is uploading the base station information at moment, and tie up
The list for protecting the uplink time and base station information of all terminals, is just detected after establishing TCP connection every time, when discovery is same
When the terminal of base station synchronization upload data is excessive, configuration signal is issued, the uplink time of base station equipment where adjustment.Such as figure
Shown in 2, concrete processing procedure is for example following:
Step 21, data transmission link is established based on transmission control protocol between server-side and terminal, waits data to be received
Transmission request.
Step 22, for any one terminal, judge whether the data upload requests for receiving terminal transmission.If it is determined that
As a result it is yes, thens follow the steps 23, conversely, returns to step 21.
Step 23, the device identification for the terminal for including in the data upload requests that the terminal received is sent is determined, and
The cell ID and location area code that terminal is currently located.
In 22~step 23 of above-mentioned steps, the terminal iidentification comprising the terminal and terminal are worked as in data upload requests
The cell ID (cell ID) and location area code at preceding place(LAC).
A kind of preferably realization method can carry out the data upload requests that the terminal is sent more for each terminal
Secondary statistics.In the data upload requests that the terminal is repeatedly sent, cell ID and LAC are obtained.The skill that the embodiment of the present invention one proposes
In art scheme, for each terminal, cell ID and LAC of the terminal three times in transmission data upload request are determined.
Step 24, according to the device identification of acquisition, the uplink time of this transmission data upload request of terminal is determined, and
According to the cell ID and location area code of acquisition, the position that terminal is currently located is determined.
In this step, after the device identification for obtaining terminal, terminal transmission can be calculated according to random Hash function
The uplink time of data upload requests.In the technical solution that the embodiment of the present invention one proposes, it is assumed that the device identification of acquisition is A0,
It is T according to the uplink time of the calculated terminal of random Hash function this transmission data upload request.
According to the cell ID and LAC of acquisition, it may be determined that go out the position that terminal is currently located.The embodiment of the present invention one carries
In the technical solution gone out, the position being currently located with terminal is identified with base station information.It, can according to the cell ID and LAC of acquisition
To search cell ID, LAC and the correspondence of base station information, finally obtain the base station information where the terminal, it is assumed that with L come
It indicates.
Step 25, it in the correspondence of pre-stored uplink time and terminal position, obtains and determines
The identical terminal iidentification set in position that uplink time and terminal are currently located.
Specifically, it stores the uplink time of a large amount of each terminal in the database and the corresponding of terminal position is closed
System.In the database, according to the uplink time T and location information L determined, database is accessed, identical uplink time T is searched
With the total quantity of the terminal device of location information L and the terminal iidentification collection of uplink time T having the same and location information L
It closes.Assuming that the terminal iidentification set obtained is indicated with U.U={A1,A2……An}.
Step 26, the device identification obtained in data upload requests is inserted into the terminal iidentification set of acquisition.
Whether a kind of preferably realization method can first judge the device identification A0 obtained in acquisition in this step
In terminal iidentification set U={ A1, A2 ... An }, that is, judge whether A0 belongs to U={ A1, A2 ... An }, if determining from number
When being not included according to the device identification obtained in upload request in the terminal iidentification set of acquisition, it will be obtained in data upload requests
The device identification obtained is inserted into the terminal iidentification set of acquisition.Assuming that A0 is not belonging to U={ A1, A2 ... An }, then A0 is inserted into
Into U={ A1, A2 ... An }, U={ A0, A1, A2 ... An } at this time, and the number of elements in set U becomes n+1 from n.
Step 27, judge whether the number of elements in terminal iidentification set is more than given threshold.
In the technical solution that the embodiment of the present invention one proposes, determine in the terminal iidentification set after being inserted into device identification
Whether number of elements is more than given threshold.Whether the number of elements n+1 in the set U being inserted into after device identification A0 is more than setting
Threshold value TH.If it is judged that being yes, 28 are thened follow the steps, conversely, executing step 30.
Step 28, when the determination result is yes, the timing uplink time of terminal upload data is redefined.
In this step, it can determine and send out in the correspondence of pre-stored uplink time and terminal position
In all uplink times of same position where sending the terminal of data upload requests, including the uplink time that terminal quantity is minimum,
It will be determined as the timing uplink time of terminal upload data comprising the minimum uplink time of terminal quantity.
It, can be with determination in the correspondence of pre-stored uplink time and terminal position in specific implementation
The terminal location L gone out is index, traverses the correspondence of the uplink time and terminal position that entirely store, determines terminal institute
In all uplink times of position L, including the uplink time Tmin that terminal quantity is minimum.That is, in uplink time
Tmin, while the terminal quantity of transmission data upload request is minimum.Then the uplink time that device identification is A0 is revised as
Tmin。
Step 29, the data comprising change data uplink time are sent to the terminal of transmission data upload request and uploads response
Message, so that terminal uploads the uplink time in response message according to data uploads data.
Preferably, after above-mentioned steps 29, can also include:
Update terminal iidentification set.
After the uplink time that device identification is A0 is revised as Tmin, terminal iidentification set can also be updated, deletes A0.
Step 30, when the judgment result is No, the timing uplink time of the terminal upload data need not be redefined, eventually
End is according to existing timing uplink time transmission data.
Correspondingly, in end side, the embodiment of the present invention is it is also proposed that a kind of data transfer control method, as shown in figure 3, it has
Body process flow is for example following:
Step 21, to server-side transmission data upload request.
The cell ID and the band of position that the device identification comprising terminal and terminal are currently located in data upload requests
Code.The device identification for the terminal that server-side includes in the data upload requests that the terminal received is sent, and the current institute in end
Cell ID and location area code;According to device identification, determine that terminal sends the uplink time of the data upload requests;
And according to cell ID and location area code, determine the position that terminal is currently located;In pre-stored uplink time and terminal
In the correspondence of position, terminal iidentification set identical with the uplink time determined and position is obtained;It will be in data
The device identification obtained in upload request is inserted into the terminal iidentification set of acquisition;And judge member in terminal iidentification set
Whether prime number amount is more than given threshold;When the determination result is yes, the timing uplink time of terminal upload data is redefined.
Specifically, concrete processing procedure of the server-side when receiving data upload requests, refer to above-mentioned steps 11~
Elaborating in step 20, repeats no more in this step.
Step 22, the data comprising change data uplink time that server-side is sent are received and upload response message, according to number
Data are uploaded according to the uplink time uploaded in response message.
Correspondingly, the embodiment of the present invention one also proposes a kind of data transfer controller, is located at service end side, such as Fig. 4 institutes
Show, concrete structure includes:
First determination unit 301, for determining the end for including in data upload requests that the terminal that receives is sent
The cell ID and location area code that the device identification at end and the terminal are currently located.
Second determination unit 302, for according to the device identification, determining that terminal sends the upper of the data upload requests
Pass the time;And according to the cell ID and location area code, determine the position that terminal is currently located.
Obtaining unit 303, in the correspondence of pre-stored uplink time and terminal position, obtain with
The identical terminal iidentification set in position that the uplink time and terminal determined are currently located.
It is inserted into unit 304, is obtained for being not included in the device identification for determining to obtain from data upload requests
When in terminal iidentification set, the device identification obtained in biography request on the data is inserted into the terminal iidentification set of acquisition
In.
Judging unit 305, for judging whether the number of elements in terminal iidentification set is more than given threshold.
Third determination unit 306, when the timing for when the determination result is yes, redefining terminal upload data uploads
Between.
Specifically, above-mentioned third determination unit 306 is specifically used in pre-stored uplink time and terminal position
Correspondence in, determine and the transmission data upload request terminal where same position all uplink times in, packet
Containing the minimum uplink time of terminal quantity;The uplink time minimum comprising terminal quantity is determined as terminal upload data
Timing uplink time.
Transmission unit 307, for sending the number for including change data uplink time to the terminal of transmission data upload request
According to upload response message.
Optionally, above-mentioned apparatus further includes:
Updating unit, for updating terminal iidentification set.
Correspondingly, the embodiment of the present invention one also proposes a kind of data transfer controller, is located at end side, as shown in figure 5,
Including:
Transmission unit 401, for server-side transmission data upload request, comprising terminal in the data upload requests
The cell ID and location area code that device identification and the terminal are currently located.
Receiving unit 402 disappears for receiving the data comprising change data uplink time that server-side is sent and uploading to respond
Breath uploads the uplink time in response message according to the data and uploads data.
In the technical solution set forth above of the embodiment of the present invention one, the timing that dispersion is randomly generated by device identification uploads
Time determines terminal in the base station information for uploading the moment, by taking according to the cell ID and LAC of acquisition uploaded by terminal device
End be engaged according to the quantity for the terminal for uploading data while each base station, dynamically adjusts the uplink time of each terminal, effectively
It avoids, because point upload terminal quantity is excessive in the same time and place, causing the generation of congestion problems.Server-side after establishing TCP connection every time
The timing transmission time with dynamic more new equipment is judged in time, pre- congestion prevention can be occurred in time, and Dynamic Maintenance all ends
Time and the base station information table for holding transmission, improve treatment effeciency.
Embodiment two
Based on the motion detection device that attached drawing 1 proposes, the embodiment of the present invention two proposes a kind of data transfer control method, this
In the technical solution that inventive embodiments two propose, motion detection device can upload number automatically in setting transmission time T such as mornings
According to, if the case where the transmission failure of consecutive days transmission data, such as there is a situation where data transmission fails, movements for three days on end
Detection device stops at setting transmission time and uploads data, changes into and detects that motion detection device move distance is more than threshold value L(Such as
500m)After restart timing and upload, at this time it is believed that user has left signal and covers poor region at this time, if this time upload at
Work(then records time T1, continues if this time uploading failure in this, as the alternative moment T of new automatic transmission time
Move distance judges, starts automatic upload after the next distance L of movement, if it exceeds after 3 transmission times adjustment, still passes
Defeated failure, then it is assumed that the network coverage environment on the same day is poor, terminates same day transmission to save power consumption.As shown in fig. 6, its specific place
Reason process is for example following:
Step 61, terminal uploads data in setting uplink time to server-side.
Step 62, judge that the terminal uploads whether data fail in setting uplink time, if it is judged that being yes, then hold
Row step 63, conversely, executing step 61.
Step 63, judge terminal continuously transmit the frequency of failure whether be more than the first given threshold, if it is judged that be it is yes,
64 are thened follow the steps, conversely, ending processing.
A kind of preferably realization method, in the technical solution that the embodiment of the present invention two proposes, the first given threshold can be 3
It is secondary.
Step 64, determine terminal setting uplink time upload data continuously transmit the frequency of failure more than first setting
When threshold value, whether detection terminal is currently kept in motion.
A kind of preferably realization method in the technical solution that the embodiment of the present invention two proposes, is determining that terminal setting
When uplink time upload data continuously transmit the frequency of failure more than 3 times, then cancels terminal and upload number in setting uplink time timing
According to whether beginning detection terminal is kept in motion.
Step 65, when determining that terminal is kept in motion, the move distance of terminal is counted.
It wherein, can be by the acceleration value of computing terminal, by integral side when determining that terminal is kept in motion
Method estimates the horizontal direction displacement distance of terminal.
Step 66, judge whether the move distance of terminal then executes more than the second given threshold if it is judged that being yes
Step 67, otherwise step 65 is executed.
A kind of preferably realization method, in the technical solution that the embodiment of the present invention two proposes, the second given threshold can be
500 meters.
Step 67, when determining that terminal move distance is more than the second given threshold, current time is determined, with current time
As new uplink time, terminal uploads data again according to new uplink time.
A kind of preferably realization method, in the technical solution that the embodiment of the present invention two proposes, determine terminal movement away from
When from greatly then 500 meters, it is determined that current time T1, terminal upload data again using T1 as uplink time.
Preferably, after above-mentioned steps 67, can also include the following steps:
Step 68, it determines that terminal uploads whether data transmission succeeds in new uplink time, if it is judged that being yes, holds
Row step 69 thens follow the steps 70, whereas if judging result is no.
Step 69, however, it is determined that go out terminal when new uplink time uploads data success, then using new uplink time as
Updated setting uplink time, terminal upload data according to updated setting uplink time.
Step 70, judge that terminal in new uplink time transmission data, continuously transmits whether the frequency of failure sets more than third
Determine threshold value, if it is judged that being yes, then execute 71, if it is judged that being no, then follow the steps 65, to the movement of terminal away from
From being counted.
Step 71, however, it is determined that go out terminal and continuously transmit the frequency of failure more than third setting in new uplink time upload data
When threshold value, terminal stops uploading data to server-side.
Optionally, after terminal uploads data according to new uplink time to server-side, further include:
If it is determined that terminal is when new uplink time uploads data success, then using new uplink time as updated
Uplink time is set, the setting uplink time of terminal in the updated uploads data to server-side.
Correspondingly, the embodiment of the present invention two also proposes a kind of data transfer controller, as shown in fig. 7, its structure composition
It is such as following:
First determination unit 701 continuously transmits the frequency of failure and is for determining that terminal uploads data in setting uplink time
It is no to be more than the first given threshold.
Second determination unit 702, for determining whether the displacement distance of the terminal is more than the second given threshold, in determination
When going out the displacement distance of the terminal more than the second given threshold, current time is determined, using current time as when new upload
Between.
Transmission unit 703, for uploading data to server-side according to new uplink time.
Specifically, above-mentioned transmission unit 703 is additionally operable to if it is determined that the terminal uploads data company in new uplink time
When resuming the defeated frequency of failure more than third given threshold, the terminal stops uploading data to server-side;And if it is determined that terminal
When new uplink time uploads data and continuously transmits the frequency of failure less than third given threshold, then returns to execution and detect the end
The process whether being kept in motion held.
Specifically, above-mentioned transmission unit 703, if being additionally operable to updated setting uplink time, terminal setting in the updated
Determine uplink time and uploads data to server-side.
When multiple timing transmission failure occurs for motion detection device, according to the motion conditions of detection user, pre- measurement equipment
It after leaving the poor region of signal covering, then controls and carries out data upload, and root transmission success rate statistical conditions, redefine new
The timing transmission time.It can effectively solve the problem that due to timing transmission failure problem caused by network coverage problem, avoid due to multiple
Portable apparatus power consumption caused by retransmitting increases.
It will be understood by those skilled in the art that the embodiment of the present invention can be provided as method, apparatus(Equipment)Or computer
Program product.Therefore, in terms of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, the present invention can be used in one or more wherein include computer usable program code meter
Calculation machine usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer of upper implementation
The form of program product.
The present invention be with reference to according to the method for the embodiment of the present invention, device(Equipment)With the flow chart of computer program product
And/or block diagram describes.It should be understood that each flow in flowchart and/or the block diagram can be realized by computer program instructions
And/or the combination of the flow and/or box in box and flowchart and/or the block diagram.These computer programs can be provided to refer to
Enable the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate
One machine so that by the instruction that computer or the processor of other programmable data processing devices execute generate for realizing
The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of data transfer control method, which is characterized in that including:
Determine the device identification for the terminal for including in the data upload requests that the terminal received is sent and the terminal
The cell ID and location area code being currently located;
According to the device identification, determine that terminal sends the uplink time of the data upload requests;And according to the cell mark
Knowledge and location area code, determine the position that terminal is currently located;
The uplink time for obtaining and determining in the correspondence of pre-stored uplink time and terminal position and end
Hold the identical terminal iidentification set in position being currently located;And
It, will be when determining to be not included in from the device identification obtained in data upload requests in the terminal iidentification set obtained
The device identification obtained in the data upload requests is inserted into the terminal iidentification set of acquisition;And
Judge whether the number of elements in terminal iidentification set is more than given threshold;
When the determination result is yes, the timing uplink time of terminal upload data is redefined;And
The data comprising change data uplink time, which are sent, to the terminal of transmission data upload request uploads response message.
2. the method as described in claim 1, which is characterized in that redefine the timing uplink time of terminal upload data, wrap
It includes:
In the correspondence of pre-stored uplink time and terminal position, determine and the transmission data upload request
Terminal where same position all uplink times in, including the uplink time that terminal quantity is minimum;
The uplink time minimum comprising terminal quantity is determined as to the timing uplink time of terminal upload data.
3. method as claimed in claim 2, which is characterized in that sent comprising change to the terminal of transmission data upload request
After the data of data uplink time upload response message, further include:
Update terminal iidentification set.
4. a kind of data transfer control method, which is characterized in that including:
It include the device identification of terminal and the end in the data upload requests to server-side transmission data upload request
Hold the cell ID being currently located and location area code;So that the server-side is in the number for determining that the terminal received is sent
The cell ID being currently located according to the device identification and the terminal for the terminal for including in upload request and the band of position
Code;According to the device identification, determine that terminal sends the uplink time of the data upload requests;And according to the cell ID
And location area code, determine the position that terminal is currently located;In the correspondence of pre-stored uplink time and terminal position
In relationship, terminal iidentification set identical with the uplink time determined and position is obtained;It is determining from data upload requests
When the device identification of middle acquisition is not included in the terminal iidentification set of acquisition, the equipment mark that will be obtained in data upload requests
Knowledge is inserted into the terminal iidentification set of acquisition;And judge whether the number of elements in terminal iidentification set is more than setting threshold
Value;When the determination result is yes, the timing uplink time of terminal upload data is redefined;
And receive the data comprising change data uplink time that server-side is sent and upload response message, it is uploaded according to the data
Uplink time in response message uploads data.
5. a kind of data transfer controller, which is characterized in that including:
First determination unit, the equipment for determining the terminal for including in data upload requests that the terminal that receives is sent
The cell ID and location area code that mark and the terminal are currently located;
Second determination unit, for according to the device identification, determining that terminal sends the uplink time of the data upload requests;
And according to the cell ID and location area code, determine the position that terminal is currently located;
Obtaining unit, in the correspondence of pre-stored uplink time and terminal position, obtaining and determining
Uplink time and the identical terminal iidentification set in position that is currently located of terminal;
It is inserted into unit, for being not included in the terminal iidentification obtained in the device identification for determining to obtain from data upload requests
When in set, the device identification obtained in request will be passed on the data and is inserted into the terminal iidentification set of acquisition;
Judging unit, for judging whether the number of elements in terminal iidentification set is more than given threshold;
Third determination unit, for when the determination result is yes, redefining the timing uplink time of terminal upload data;
Transmission unit is rung for sending the data comprising change data uplink time to the terminal of transmission data upload request and uploading
Answer message.
6. device as claimed in claim 5, which is characterized in that the third determination unit is specifically used for pre-stored
In uplink time and the correspondence of terminal position, identical bits where the terminal with the transmission data upload request are determined
In all uplink times set, including the uplink time that terminal quantity is minimum;When by the minimum upload comprising terminal quantity
Between be determined as the timing uplink time of terminal upload data.
7. device as claimed in claim 6, which is characterized in that further include:
Updating unit, for updating terminal iidentification set.
8. a kind of data transfer controller, which is characterized in that including:
Transmission unit, for server-side transmission data upload request, the equipment mark of terminal to be included in the data upload requests
The cell ID and location area code that knowledge and the terminal are currently located;So that the server-side is determining the institute received
State device identification and the cell that is currently located of the terminal of the terminal for including in the data upload requests of terminal transmission
Mark and location area code;According to the device identification, determine that terminal sends the uplink time of the data upload requests;And root
According to the cell ID and location area code, the position that terminal is currently located is determined;In pre-stored uplink time and terminal
In the correspondence of position, terminal iidentification set identical with the uplink time determined and position is obtained;It is determining
It, will be in data upload requests when being not included in from the device identification obtained in data upload requests in the terminal iidentification set obtained
The device identification of middle acquisition is inserted into the terminal iidentification set of acquisition;And judge that the number of elements in terminal iidentification set is
It is no to be more than given threshold;When the determination result is yes, the timing uplink time of terminal upload data is redefined;
Receiving unit uploads response message for receiving the data comprising change data uplink time that server-side is sent, according to
The data upload the uplink time in response message and upload data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310741691.6A CN104754641B (en) | 2013-12-27 | 2013-12-27 | A kind of data transfer control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310741691.6A CN104754641B (en) | 2013-12-27 | 2013-12-27 | A kind of data transfer control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104754641A CN104754641A (en) | 2015-07-01 |
CN104754641B true CN104754641B (en) | 2018-10-30 |
Family
ID=53593599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310741691.6A Active CN104754641B (en) | 2013-12-27 | 2013-12-27 | A kind of data transfer control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104754641B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639843A (en) * | 2019-02-26 | 2019-04-16 | 青岛海信移动通信技术股份有限公司 | Data transmission method and device |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108370521B (en) | 2016-01-05 | 2023-03-24 | 富士通株式会社 | Information transmission method, device and system |
CN106817729B (en) * | 2017-01-22 | 2020-03-06 | 广东美的暖通设备有限公司 | Communication control method and device of air conditioner |
CN107294864B (en) * | 2017-06-23 | 2020-07-03 | 深圳市盛路物联通讯技术有限公司 | Method for reducing network congestion of Internet of things and router |
CN107451268B (en) * | 2017-08-03 | 2020-12-15 | 爱普(福建)科技有限公司 | Real-time database-oriented method for continuous transmission in disconnected network |
CN107708186A (en) * | 2017-08-28 | 2018-02-16 | 深圳市盛路物联通讯技术有限公司 | The electricity-saving control method and device of internet-of-things terminal |
CN107659510B (en) * | 2017-09-05 | 2020-04-28 | 日立楼宇技术(广州)有限公司 | Method and device for uploading data by underground barrel terminal, storage medium and underground barrel terminal |
CN107613525B (en) * | 2017-09-21 | 2021-06-08 | 新智数字科技有限公司 | Peak-staggering reporting method and device based on meter and electronic equipment |
CN108199813A (en) * | 2017-12-29 | 2018-06-22 | 武汉普利商用机器有限公司 | A kind of data uploading method and system |
CN107948089A (en) * | 2018-01-10 | 2018-04-20 | 合肥小龟快跑信息科技有限公司 | The load-balancing method uploaded based on NB IoT network measurements device data |
CN109584420A (en) * | 2018-12-04 | 2019-04-05 | 上海掌腾信息科技有限公司 | Rail hands over fast open gate intelligence passing control system and its intelligent passing control method based on vena metacarpea identification in the system of pedestrian passage |
CN109819521A (en) * | 2019-01-18 | 2019-05-28 | 北京洛神科技有限公司 | Communication resource dispatching method, apparatus and system |
CN109936872A (en) * | 2019-01-18 | 2019-06-25 | 北京洛神科技有限公司 | Communication resource dispatching method, apparatus and system |
CN111147283B (en) * | 2019-12-06 | 2022-06-21 | 宜科(天津)电子有限公司 | Method and system for re-reporting data after internet of things equipment data reporting failure |
CN112819405A (en) * | 2021-01-22 | 2021-05-18 | 无锡极兔供应链管理有限公司 | Intelligent logistics information management method and system based on cloud server |
CN114286404B (en) * | 2021-12-18 | 2023-03-17 | 珠海格力电器股份有限公司 | Multi-operator signal transmission control method, system and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101198149A (en) * | 2006-12-06 | 2008-06-11 | 华为技术有限公司 | Positional information determining method, resource uploading management method and applied server |
CN102158930A (en) * | 2010-02-11 | 2011-08-17 | 电信科学技术研究院 | Method and equipment for accessing MTC (Multimedia Telephone Communication) equipment |
CN102651899A (en) * | 2011-02-23 | 2012-08-29 | 中兴通讯股份有限公司 | Terminal group information notifying method, system and device for mobile communication network |
CN102769891A (en) * | 2011-05-06 | 2012-11-07 | 中兴通讯股份有限公司 | Method and system for control terminal access and mobile management unit |
-
2013
- 2013-12-27 CN CN201310741691.6A patent/CN104754641B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101198149A (en) * | 2006-12-06 | 2008-06-11 | 华为技术有限公司 | Positional information determining method, resource uploading management method and applied server |
CN102158930A (en) * | 2010-02-11 | 2011-08-17 | 电信科学技术研究院 | Method and equipment for accessing MTC (Multimedia Telephone Communication) equipment |
CN102651899A (en) * | 2011-02-23 | 2012-08-29 | 中兴通讯股份有限公司 | Terminal group information notifying method, system and device for mobile communication network |
CN102769891A (en) * | 2011-05-06 | 2012-11-07 | 中兴通讯股份有限公司 | Method and system for control terminal access and mobile management unit |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639843A (en) * | 2019-02-26 | 2019-04-16 | 青岛海信移动通信技术股份有限公司 | Data transmission method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104754641A (en) | 2015-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104754641B (en) | A kind of data transfer control method and device | |
US20220006847A1 (en) | User equipment and media streaming network assistance node | |
CN110572481B (en) | Intelligent electromechanical equipment data interaction method based on LoRa communication | |
CN108337728A (en) | A kind of timing advance maintaining method, apparatus and system | |
TW200840381A (en) | Method and apparatus for handling random access procedure in a wireless communications system | |
JP2006013826A5 (en) | ||
CN109696889A (en) | Transacter and method of data capture | |
JP6831019B2 (en) | Methods, devices, and systems for providing wireless network speed information | |
WO2015154499A1 (en) | Information interaction method, device and system for wban | |
CN108810971B (en) | Internet of things data transmission method, internet of things terminal and computer readable storage medium | |
US20200351693A1 (en) | Method and apparatus for measurement processing in wireless communication system | |
CN104836742B (en) | A kind of M2M terminals and its TCP transmission jamming control method and system | |
CN106105273A (en) | Wireless communication system, terminal installation, wireless communications method and integrated circuit | |
CN109963337A (en) | Wireless communications method and equipment | |
Kim et al. | Data aggregation and packet bundling of uplink small packets for monitoring applications in LTE | |
US9326161B2 (en) | Application-driven control of wireless networking settings | |
Zahran et al. | SAP: Stall-aware pacing for improved DASH video experience in cellular networks | |
CN109474450A (en) | A kind of communication means, relevant device and system | |
US12052607B2 (en) | Communication apparatus, communication method, and program | |
US10205777B2 (en) | Traffic coordination for communication sessions involving wireless terminals and server devices | |
CN108809535A (en) | Data transmission method and equipment | |
WO2015035573A1 (en) | Network transmission method and apparatus | |
US20160302147A1 (en) | Method for communication between terminal and base station in mobile communication system and apparatus therefor | |
CN103067432A (en) | Sending method of data, sending end and communication system | |
CN102742304B (en) | MOCN cut-in method, Apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |