CN105430042B - A kind of method, server-side and mobile terminal for realizing data transmission - Google Patents

A kind of method, server-side and mobile terminal for realizing data transmission Download PDF

Info

Publication number
CN105430042B
CN105430042B CN201510706555.2A CN201510706555A CN105430042B CN 105430042 B CN105430042 B CN 105430042B CN 201510706555 A CN201510706555 A CN 201510706555A CN 105430042 B CN105430042 B CN 105430042B
Authority
CN
China
Prior art keywords
data
versions
mobile terminal
server
application interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510706555.2A
Other languages
Chinese (zh)
Other versions
CN105430042A (en
Inventor
齐善锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510706555.2A priority Critical patent/CN105430042B/en
Publication of CN105430042A publication Critical patent/CN105430042A/en
Application granted granted Critical
Publication of CN105430042B publication Critical patent/CN105430042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Abstract

The invention discloses a kind of method, server-side and mobile terminals for realizing data transmission, this method comprises: server-side obtains versions of data No. the second corresponding with pre-set application interface of itself storage when server-side receives the request of the mobile terminal of application interface;Server-side compares the first data version number carried in request and whether the versions of data No. second of acquisition is equal;When server-side compares first data version number and versions of data No. the second is equal, mobile terminal is sent to mobile terminal and is not necessarily to more new data notification.Technical solution of the present invention realizes more quick transmission data, avoids the waste of flow, enhances user experience.

Description

A kind of method, server-side and mobile terminal for realizing data transmission
Technical field
The present invention relates to intelligent terminal technology, espespecially a kind of method, server-side and mobile terminal for realizing data transmission.
Background technique
After mobile terminal opens (starting) application program (APP) every time, mobile terminal will usually be answered by corresponding Newest data information (realizing by sending request to server-side) is obtained to server-side with interface.For example, browser APP is beaten When opening, mobile terminal will by browser APP interface to the newest data information of server-side request browser APP, Such as newest navigation icon list, search engine list etc..
In the prior art, after server-side receives the request of mobile terminal, server-side will go out from data base querying Newest data information, is then returned to mobile terminal, even if database information does not update, server-side also can all carry out every time Then inquiry returns again to and will result in certain flow waste in this way to mobile terminal.Meanwhile it is a large amount of in multiple mobile terminals In the case where concurrent request, server-side can be according to each request while into data base querying, then database is just at one Bottleneck causes to service end pressure abruptly increase, it is more likely that cause database server delay machine.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of method, server-side and movements for realizing data transmission Terminal can more quickly transmit data, avoid the waste of flow, enhance user experience.
In order to reach the object of the invention, the present invention provides a kind of methods for realizing data transmission, comprising:
When server-side receives the request of the mobile terminal of application interface, server-side obtain itself storage with set in advance The corresponding versions of data No. second of the application interface set;
Server-side compares the first data version number carried in request and whether the versions of data No. second of acquisition is equal;
When server-side compares first data version number and versions of data No. the second is equal, sends and move to mobile terminal Terminal is not necessarily to more new data notification.
Further, before this method further include:
Corresponding relationship between the server-side setting application interface, data storage position and versions of data No. the second.
Further, this method further include:
When the server-side detects that data corresponding with application interface have more new data, in the corresponding relationship Versions of data No. second carries out being incremented by the storage position for handling and obtaining the more new data;
The storage position of more new data described in acquisition is replaced to the data storage position in the corresponding relationship.
Further, this method further include:
The server-side inquires the corresponding latest data of each application interface and versions of data No. the second;
The corresponding latest data of each application interface inquired and versions of data No. the second are stored in by the server-side In cache.
Further, the server-side inquires the corresponding latest data of each application interface and versions of data No. the second packet It includes:
The data for searching data corresponding with application interface storage position in the corresponding relationship and obtaining and finding The data of storage position storage are as latest data;
Versions of data number corresponding with application interface is searched in the corresponding relationship is used as versions of data No. the second.
Further, when server-side compares first data version number and versions of data No. the second is unequal, this method Further include:
The server-side obtains latest data corresponding with versions of data No. the second in the cache;
Latest data corresponding with versions of data No. the second described in acquisition and the versions of data No. second are sent To the mobile terminal;
The mobile terminal carries out data more according to the latest data corresponding with versions of data No. the second received Newly and by the versions of data No. second as the first data version number save.
The present invention also provides a kind of server-sides for realizing data transmission, comprising: Transmit-Receive Unit, acquiring unit and comparison list Member;Wherein,
Transmit-Receive Unit, for sending first to acquiring unit and obtaining when receiving the request of mobile terminal of application interface Take notice;Transmission notice is received, mobile terminal is sent to mobile terminal and is not necessarily to more new data notification;
Acquiring unit, for receive the first acquisition notice, obtain itself storage with pre-set application interface pair The versions of data No. the second answered;
Comparing unit, for whether comparing in request the first data version number that carries and the versions of data No. the second obtained It is equal;When comparing first data version number and versions of data No. the second is equal, notice is sent to Transmit-Receive Unit.
Further, which further includes setting unit, for application interface, data storage position and the second number to be arranged According to the corresponding relationship between version number.
Further, which further includes processing unit, detects that data corresponding with application interface have more for working as When new data, versions of data No. the second in the corresponding relationship is carried out being incremented by processing and obtains the storage of the more new data Position;
The storage position of more new data described in acquisition is replaced to the data storage position in the corresponding relationship.
Further, which further includes searching unit, is used for: inquire the corresponding latest data of each application interface with And the versions of data No. second;
The processing unit, the corresponding latest data of each application interface for being also used to inquire and the second data version In this number deposit cache.
Further, the searching unit, is specifically used for:
The data for searching data corresponding with application interface storage position in the corresponding relationship and obtaining and finding The data of storage position storage are as latest data;
Versions of data number corresponding with application interface is searched in the corresponding relationship is used as versions of data No. the second.
Further, the comparing unit is also used to that first data version number and versions of data No. the second ought be compared not When equal, Xiang Suoshu acquiring unit sends second and obtains notice;
The acquiring unit is also used to receive the second acquisition notice, obtains and the second data in the cache The corresponding latest data of version number;
The Transmit-Receive Unit, the latest data corresponding with versions of data No. the second for being also used to obtain and described Versions of data No. second is sent to the mobile terminal, with prompt the mobile terminal according to receiving with the second data The corresponding latest data of version number carries out data update and regard the versions of data No. second as the first data version number It is saved.
The present invention also provides a kind of mobile terminals for realizing data transmission, comprising: request unit and receiving unit;Its In,
Request unit sends to server-side and requests when detecting that the mobile terminal belonging to itself starts application program;
Receiving unit, for receive server-side transmission without more new data notification.
Further, the receiving unit is also used to receive the corresponding with versions of data No. the second of the server-side transmission Latest data and the versions of data No. second;
The mobile terminal further includes updating unit, for according to receiving it is corresponding with versions of data No. the second most New data carries out data update and saves the versions of data No. second as first data version number.
Technical solution of the present invention includes: when server-side receives the request of mobile terminal, when server-side receives application When the request of the mobile terminal of interface, server-side obtains the second data corresponding with pre-set application interface of itself storage Version number;Server-side compares the first data version number carried in request and whether the versions of data No. second of acquisition is equal;When When server-side compares first data version number and equal versions of data No. the second, mobile terminal is sent without more to mobile terminal New data notification.Technical solution of the present invention realizes more quick transmission data, avoids the waste of flow, enhances user Experience.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal;
Fig. 2 is the schematic diagram for supporting the communication system communicated between mobile terminal of the present invention;
Fig. 3 is the flow chart for the method that the present invention realizes data transmission;
Fig. 4 is the structural schematic diagram for the server-side that the present invention realizes data transmission;
Fig. 5 is the structural schematic diagram for the mobile terminal that the present invention realizes data transmission.
Specific embodiment
Technical solution of the present invention is described in detail below in conjunction with accompanying drawings and embodiments.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111 It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via the received broadcast singal of broadcasting reception module 111 and/ Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115 It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 1220, camera 121 is to the static map obtained in video acquisition mode or image capture mode by image capture apparatus The image data of piece or video is handled.Treated, and picture frame may be displayed on display unit 151.At camera 121 Picture frame after reason can store in memory 160 (or other storage mediums) or carry out via wireless communication unit 110 It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model For the format output that can be sent to mobile communication base station via mobile communication module 112.Various types can be implemented in microphone 122 Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or Person's interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include loudspeaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti- It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
Fig. 3 is the flow chart for the method that the present invention realizes data transmission, as shown in Figure 3, comprising:
Step 301: when server-side receives the request of the mobile terminal of application interface, server-side obtains itself storage Versions of data No. the second corresponding with pre-set application interface.
Wherein, first data version number is carried in request.Further, the body of mobile terminal is also carried in the request Part mark (ID).
Further, before this method further include:
Mobile terminal detects itself whether start application program (APP);
When mobile terminal detects starting APP, the title of started APP and the first versions of data of the APP are obtained Number;
Mobile terminal sends to application interface corresponding with the title of the APP of acquisition and requests.
Wherein, mobile terminal can be by hypertext transfer protocol (HTTP) with the APP of the request method of POST and acquisition The corresponding application interface of title send request, the parameter of versions of data number (VERSION) is taken in the parameter of each request To mark the version number of data in current mobile terminal.
Further, before this method further include: the corresponding pass between the title and application interface of APP is arranged in mobile terminal System.It is corresponding with wechat application interface that wechat is such as set, setting QQ is corresponding with QQ application interface, and browser and browser application is arranged Interface correspondence etc..
For example, obtaining the first data version number of wechat APP when mobile terminal detects and opens wechat APP, moving Dynamic terminal, which is sent by application interface corresponding with wechat to server-side, requests, and at this time in request, carries the ID of mobile terminal With the first data version number of wechat APP;When mobile terminal, which detects, opens map APP, the first data of map APP are obtained Version number, mobile terminal are sent to server-side by application interface corresponding with map and are requested, and at this time in request, carry movement The first data version number of the ID and map APP of terminal;When mobile terminal detects opening shopping APP, obtain shopping APP's First data version number, mobile terminal are sent to server-side by application interface corresponding with shopping and are requested, and at this time in request, are taken The first data version number of ID and shopping APP with mobile terminal;When mobile terminal, which detects, opens browser APP, obtain The first data version number of browser APP is taken, mobile terminal is asked by application interface corresponding with browser to server-side transmission It asks, at this time in request, carries the first data version number of the ID and browser APP of mobile terminal.
Further, before this method further include:
The corresponding relationship between application interface, data storage position and versions of data No. the second is arranged in server-side.
Wherein, the initial value of versions of data No. the second is 0 or 1.
It should be noted that other positive numbers can also be set by the initial value of versions of data No. the second.
Further, this method further include:
When server-side detects that data corresponding with application interface have more new data, to the second data in corresponding relationship Version number carries out being incremented by the storage position for handling and obtaining more new data;
By the data storage position in the storage position replacement corresponding relationship of the more new data of acquisition.
Further, this method further include:
Server-side inquires the corresponding latest data of each application interface and versions of data No. the second;
The corresponding latest data of each application interface inquired and versions of data No. the second are stored in high speed by server-side In caching.Wherein, server-side inquires the corresponding latest data of each application interface and versions of data No. the second includes:
Data corresponding with application interface storage position is searched in corresponding relationship and is obtained stores with the data found The data of position storage are as latest data;
Versions of data number corresponding with application interface is searched in corresponding relationship is used as versions of data No. the second.
Step 302: server-side compares the first data version number carried in request and the versions of data No. second of acquisition is It is no equal.
Step 303: when server-side compares first data version number and versions of data No. the second is equal, to mobile terminal It sends mobile terminal and is not necessarily to more new data notification.
Further, when server-side compares first data version number and versions of data No. the second is unequal, this method Further include:
Server-side obtains latest data corresponding with versions of data No. the second in the caches;
The latest data corresponding with versions of data No. the second of acquisition and versions of data No. the second are sent to mobile whole End;
Mobile terminal according to the latest data corresponding with versions of data No. the second that receives carries out data update and by the Versions of data No. two are saved as first data version number.Wherein, by acquisition it is corresponding with versions of data No. the second most It includes: that server-side extracts mobile terminal in the request received that new data and versions of data No. the second, which are sent to mobile terminal, Identity (ID);By sent with the request corresponding interface that receives to the ID extracted obtain with the second versions of data Number corresponding latest data and versions of data No. the second.
Wherein, newest data are packaged into data interchange format (JSON, the JavaScript of lightweight by server-side Object Notation), wherein identify server-side currently newest versions of data number with VERSION parameter, and will be after encapsulation JSON string send (response) to mobile terminal with http protocol.
In the method for the present invention, decide whether by comparing whether first data version number and versions of data No. the second are identical The data for returning to mobile terminal request do not transmit mobile terminal when first data version number and identical versions of data No. the second The data of request avoid the waste of flow, enhance user experience to realize more quick transmission data.
Fig. 4 is the structural schematic diagram for the server-side that the present invention realizes data transmission, as shown in Figure 4, comprising: Transmit-Receive Unit 40, acquiring unit 41 and comparing unit 42.Wherein,
Transmit-Receive Unit 40 sends the to acquiring unit 41 for when receiving the request of mobile terminal of application interface One obtains notice;Transmission notice is received, mobile terminal is sent to mobile terminal and is not necessarily to more new data notification.
Further, the latest data corresponding with versions of data No. the second and that Transmit-Receive Unit 40 is also used to obtain Versions of data No. two are sent to mobile terminal, with prompting mobile terminal according to receive it is corresponding with versions of data No. the second most New data carries out data update and saves versions of data No. the second as first data version number.
Acquiring unit 41, for receive the first acquisition notice, obtain itself storage with pre-set application interface Corresponding versions of data No. second.
Further, acquiring unit 41 is also used to receive the second acquisition notice, obtains in the caches and the second number According to the corresponding latest data of version number.
Comparing unit 42, for comparing the first data version number carried in request and whether obtaining versions of data No. the second It is equal;When comparing first data version number and versions of data No. the second is equal, notice is sent to Transmit-Receive Unit 40.
Further, comparing unit 42 are also used to that first data version number and versions of data No. the second not phase ought be compared Whens equal, second is sent to acquiring unit 41 and obtains notice.
Further, which further includes setting unit 45, for application interface, data storage position and second to be arranged Corresponding relationship between versions of data number.
Wherein, the initial value of versions of data No. the second is 0 or 1.
Further, which further includes processing unit 44, detects that data corresponding with application interface have for working as When more new data, versions of data No. the second in corresponding relationship is carried out being incremented by processing and obtains the storage position of more new data;
By the data storage position in the storage position replacement corresponding relationship of the more new data of acquisition.
Further, the corresponding latest data of each application interface and second that processing unit 44 is also used to inquire Versions of data number is stored in cache.
Further, which further includes searching unit 43, is used for: inquiring the corresponding latest data of each application interface And the versions of data No. second.
Wherein, searching unit 43 are specifically used for:
Data corresponding with application interface storage position is searched in corresponding relationship and is obtained stores with the data found The data of position storage are as latest data;
Versions of data number corresponding with application interface is searched in corresponding relationship is used as versions of data No. the second.
Fig. 5 is the structural schematic diagram for the mobile terminal that the present invention realizes data transmission, as shown in Figure 5, comprising: request unit 50 and receiving unit 51.Wherein,
Request unit 50 sends to server-side and requests when detecting that the mobile terminal belonging to itself starts application program.
Receiving unit 51, for receive server-side transmission without more new data notification.
Further, receiving unit 51 is also used to receive the newest number corresponding with versions of data No. the second of server-side transmission Accordingly and versions of data No. the second.
Further, which further includes updating unit 53, for according to receiving and versions of data No. the second Corresponding latest data carries out data update and saves versions of data No. the second as first data version number.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method for realizing data transmission characterized by comprising
When server-side receives the request of the mobile terminal of application interface, the server-side obtain itself storage with set in advance The corresponding versions of data No. second of the application interface set, for comparing the first data version number that carries in request and obtaining Whether versions of data No. two are equal;
When comparing the first data version number and versions of data No. the second is equal, the server-side is to the mobile terminal The mobile terminal is sent without more new data notification;
When comparing first data version number and versions of data No. the second is unequal, the server-side is obtained and the second data version The latest data and the versions of data No. second are packaged into the data exchange lattice of lightweight by this number corresponding latest data Formula is sent to the mobile terminal;
Wherein, the identity and the first data version number of the mobile terminal, first number are carried in the request It is used to mark the current data version of the corresponding application program of the application interface on the mobile terminal according to version number;It is servicing The default corresponding relationship between application interface, data storage position and versions of data No. the second in end.
2. the method according to claim 1, wherein this method further include:
When detecting that data corresponding with application interface have more new data, the server-side is to second in the corresponding relationship Versions of data number carries out being incremented by the storage position for handling and obtaining the more new data;
The storage position of more new data described in acquisition is replaced to the data storage position in the corresponding relationship.
3. according to the method described in claim 2, it is characterized in that, this method further include:
The server-side inquires the corresponding latest data of each application interface and versions of data No. the second;
The corresponding latest data of each application interface inquired and versions of data No. the second are stored in high speed by the server-side In caching.
4. according to the method described in claim 3, it is characterized in that, each application interface of server-side inquiry is corresponding newest Data and versions of data No. the second include:
Data corresponding with application interface storage position is searched in the corresponding relationship and is obtained stores with the data found The data of position storage are as latest data;
Versions of data number corresponding with application interface is searched in the corresponding relationship is used as versions of data No. the second.
5. the method according to claim 1, wherein when server-side compares first data version number and the second number When unequal according to version number, further includes:
The mobile terminal carries out data according to the latest data corresponding with versions of data No. the second received and updates simultaneously The versions of data No. second is saved as the first data version number.
6. a kind of server-side for realizing data transmission characterized by comprising setting unit, Transmit-Receive Unit, acquiring unit and ratio Compared with unit;Wherein,
Setting unit, the corresponding relationship for being arranged between application interface, data storage position and versions of data No. the second;
Transmit-Receive Unit leads to for sending first to acquiring unit and obtaining when receiving the request of mobile terminal of application interface Know;Transmission is received without more new data notification, Xiang Suoshu mobile terminal sends the mobile terminal and is not necessarily to more new data notification; More new data notification is received, Xiang Suoshu mobile terminal sends the more new data of the data interchange format of lightweight;
Acquiring unit, for receive the first acquisition notice, obtain itself storage with the pre-set application interface pair The versions of data No. the second answered;It is also used to receive the second acquisition notice, obtains latest data corresponding with versions of data No. the second, The latest data and the versions of data No. second are packaged into the data interchange format of the lightweight;
Comparing unit, for compare in request the first data version number that carries and the versions of data No. the second obtained whether phase Deng;When comparing first data version number and versions of data No. the second is equal, Xiang Suoshu Transmit-Receive Unit sends the transmission nothing Need more new data notification;When comparing first data version number and versions of data No. the second is unequal, Xiang Suoshu acquiring unit It sends described second and obtains notice, send the more new data notification to Transmit-Receive Unit;
Wherein, the identity and the first data version number of the mobile terminal, first number are carried in the request It is used to mark the current data version of the corresponding application program of the application interface on the mobile terminal according to version number.
7. server-side according to claim 6, which is characterized in that the server-side further include:
Processing unit, for when detecting that data corresponding with application interface have more new data, in the corresponding relationship Versions of data No. second carries out being incremented by the storage position for handling and obtaining the more new data;By more new data described in acquisition Replace the data storage position in the corresponding relationship in storage position.
8. server-side according to claim 7, which is characterized in that the server-side further include:
Searching unit is used for: inquiring the corresponding latest data of each application interface and versions of data No. the second;
The processing unit, the corresponding latest data of each application interface for being also used to inquire and versions of data No. the second It is stored in cache.
9. a kind of mobile terminal for realizing data transmission characterized by comprising request unit and receiving unit;Wherein,
Request unit sends to server-side and requests, described when detecting that the mobile terminal belonging to itself starts application program The first data version number that the identity and the mobile terminal that the mobile terminal is carried in request save, first number It is used to mark the current data version number of the application program on the mobile terminal according to version number;
Receiving unit, for receive server-side transmission without more new data notification;The server-side is received with the number of lightweight The latest data corresponding with versions of data No. the second sent according to exchange format and the versions of data No. second;
Wherein, be that the server-side carries in the request for judging the mobile terminal without more new data notification the When versions of data No. the second corresponding with the application interface of the application program that versions of data No. one is saved with server-side is equal It sends, the latest data corresponding with versions of data No. the second and the versions of data No. second are that the server-side exists Judge transmission when the first data version number and the unequal versions of data No. second.
10. mobile terminal according to claim 9, which is characterized in that further include:
Updating unit carries out data for the latest data corresponding with versions of data No. the second according to receiving and updates simultaneously The versions of data No. second is saved as first data version number.
CN201510706555.2A 2015-10-27 2015-10-27 A kind of method, server-side and mobile terminal for realizing data transmission Active CN105430042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510706555.2A CN105430042B (en) 2015-10-27 2015-10-27 A kind of method, server-side and mobile terminal for realizing data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510706555.2A CN105430042B (en) 2015-10-27 2015-10-27 A kind of method, server-side and mobile terminal for realizing data transmission

Publications (2)

Publication Number Publication Date
CN105430042A CN105430042A (en) 2016-03-23
CN105430042B true CN105430042B (en) 2019-05-24

Family

ID=55507979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510706555.2A Active CN105430042B (en) 2015-10-27 2015-10-27 A kind of method, server-side and mobile terminal for realizing data transmission

Country Status (1)

Country Link
CN (1) CN105430042B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453603B (en) * 2016-10-28 2020-07-24 珠海大横琴科技发展有限公司 Management control method and management control system for interface data information
CN107256223A (en) * 2017-04-28 2017-10-17 努比亚技术有限公司 A kind of method, device and terminal for updating internal storage data
CN107733879A (en) * 2017-09-29 2018-02-23 努比亚技术有限公司 Client terminal start-up method, mobile terminal and computer storage media
CN108696568B (en) * 2018-02-23 2021-07-06 福建天泉教育科技有限公司 Request batch processing method and terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790961A (en) * 2011-05-20 2012-11-21 腾讯科技(深圳)有限公司 Update method of application program, mobile terminal and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453451A (en) * 2007-12-07 2009-06-10 北京闻言科技有限公司 Method for incrementally downloading data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790961A (en) * 2011-05-20 2012-11-21 腾讯科技(深圳)有限公司 Update method of application program, mobile terminal and server

Also Published As

Publication number Publication date
CN105430042A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105282245B (en) Cross-server message push system and method
CN105101366B (en) Method for controlling mobile terminal and mobile terminal
CN104883658B (en) The processing method of virtual card information and system
CN105611631B (en) Mobile phone radio frequency resource allocation methods and device
CN105306457B (en) Data buffer storage device and method
CN106506858B (en) Star orbital prediction technique and device
CN106231587B (en) The data service switching method and switching device of mobile terminal
CN105187521A (en) Service processing device and method
CN105430042B (en) A kind of method, server-side and mobile terminal for realizing data transmission
CN104657181A (en) Method and device for mounting application program
CN105357293B (en) A kind of update method and server of data buffer storage
CN104735254B (en) terminal screen locking method and system
CN105827531B (en) A kind of routing access method and terminal
CN106412328B (en) A kind of method and apparatus obtaining field feedback
CN105302457B (en) Terminal control method and device
CN105262953B (en) A kind of mobile terminal and its method of control shooting
CN105100408B (en) A kind of method and apparatus controlling mobile terminal
CN106911486B (en) A kind of message push processing method, apparatus and system
CN105974437B (en) A kind of method, apparatus and terminal promoting terminal applies performance
CN105126339B (en) A kind of game control device and method
CN105487710B (en) Screen video recorder and method based on pressure screen
CN106550133A (en) Calling identification device and method
CN109299138A (en) A kind of database high concurrent querying method, equipment and computer can storage mediums
CN106713645B (en) A kind of method and mobile terminal of the broadcasting of control loudspeaker
CN106254522B (en) A kind of based terminal system, method and terminal

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