WO2016011648A1 - 数据收发方法、调制解调器及终端设备 - Google Patents

数据收发方法、调制解调器及终端设备 Download PDF

Info

Publication number
WO2016011648A1
WO2016011648A1 PCT/CN2014/082959 CN2014082959W WO2016011648A1 WO 2016011648 A1 WO2016011648 A1 WO 2016011648A1 CN 2014082959 W CN2014082959 W CN 2014082959W WO 2016011648 A1 WO2016011648 A1 WO 2016011648A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
modem
sending
server
reply
Prior art date
Application number
PCT/CN2014/082959
Other languages
English (en)
French (fr)
Inventor
邓宇
魏孔刚
彭钰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP14898260.6A priority Critical patent/EP3110211B1/en
Priority to CN201480029119.XA priority patent/CN105453659B/zh
Priority to PCT/CN2014/082959 priority patent/WO2016011648A1/zh
Priority to US15/128,091 priority patent/US10028216B2/en
Publication of WO2016011648A1 publication Critical patent/WO2016011648A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0203Power saving arrangements in the radio access network or backbone network of wireless communication networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a data transmission and reception method, a modem, and a terminal device.
  • the terminal device generally includes an AP (Application Processor) and a Modem.
  • the AP can be used to process the user interface and run the application.
  • the Modem can be used to process the sending and receiving of wireless network data.
  • the AP can control the modem to perform wireless network data transmission and reception by running an application and calling the interface to complete the interaction with the server.
  • the instant messaging software wakes up at a certain time interval, so that the control is performed.
  • Modem sends and receives wireless network data.
  • the mailbox application In the mail sending and receiving scenario, the mailbox application generally wakes up the AP regularly according to different mailbox protocol types, so that the AP controls the modem to detect whether the server receives new mail.
  • the AP is frequently awake to control the Modem to transmit and receive data of the wireless network. Therefore, the AP is in a running state for a long time, thereby causing power consumption of the terminal device. Larger. Summary of the invention
  • the embodiment of the present invention provides a data transmission and reception method, a modem, and a terminal device, which solves the problem that the AP consumes a large amount of power due to the AP being frequently awake to control the modem to perform wireless network data transmission and reception. problem.
  • an embodiment of the present invention provides a data transceiving method, where the method includes:
  • the modem Receiving, by the modem, pre-processing information of the application sent by the application processor AP, where the pre-processing information includes at least a periodic gear value of the application and first data, where the periodic gear value is used to represent that the application needs the AP Transmitting, by the frequency of the first data, the first data is data that the application needs to send to the server by the AP; the modem receiving the pre-processing information according to the periodic gear value and the modem And calling a preset function to determine a sending time of the first data; the modem transmitting the first data to the server according to the sending time.
  • the preset function includes a first preset function and a second preset function, where the sending time includes a sending time and a sending period, where the first pre The set function is used to determine the sending moment, the second preset function is used to determine the sending period, and the second preset function and the first preset function contain the same decomposition factor.
  • the modem invokes a preset function to determine a sending time of the first data, including:
  • the modem records a time when the modem receives the pre-processing signal, ⁇ ;
  • the modem invokes the second preset function to determine the transmission period according to the periodic gear value.
  • the modem sends the first to the server according to the sending time Data, including:
  • the modem periodically transmits the first data to the server according to the transmission period from the transmission time.
  • the sending, by the modem, the first data to the server according to the sending time includes:
  • the modem encapsulates the first data in a TCP/IP protocol stack to obtain a first data packet
  • the modem starts from the transmission time, and the modem periodically transmits the first data to the server through the 3GPP protocol stack according to the transmission period.
  • the modem encapsulates the first data in a TCP/IP protocol stack to obtain first data. After the package, it also includes:
  • the modem invokes an encryption algorithm to encrypt the first data packet.
  • the pre-processing information further includes a terminal identifier and a data feature of the terminal device corresponding to the modem, and the data feature is a feature of the expected data replied by the server to the first data;
  • the method further includes:
  • the modem parses the reply data packet to obtain reply data
  • the modem If the reply data conforms to the data characteristics, the modem enters a sleep state.
  • the method further includes:
  • the adjustment The modem then sends the reply packet to the AP.
  • the modem after analyzing the reply data packet and obtaining the reply data, further includes:
  • the modem generates first abnormality information of the application, and sends the first abnormality information to the AP.
  • the method further includes:
  • the modem If the reply packet sent by the server is not received within the preset time, the modem generates a second abnormality information of the application, and sends the second abnormal information, the reply packet, to the AP. And being generated by the server after parsing the first data.
  • an embodiment of the present invention provides a modem, including:
  • a receiving unit configured to receive pre-processing information of an application sent by the application processor AP, where the pre-processing information includes at least a periodic gear value of the application and first data, where the periodic gear value is used to represent the application The frequency at which the AP sends and receives the first data, where the first data is data that the application needs to send to the server by the AP;
  • a processing unit configured to determine, according to the period gear value in the receiving unit and a time when the modem receives the pre-processing signal, a preset function to determine a sending time of the first data
  • a sending unit configured to send the first data in the receiving unit to the server according to the sending time determined in the processing unit.
  • the processing unit is specifically configured to record a time when the modem receives the pre-processing information, and call the first preset function to determine the location according to the time and the periodic gear position value in the receiving unit. Transmitting time; and according to the receiving unit In the cyclic gear value, the second preset function is called to determine the sending period; wherein the preset function includes a first preset function and a second preset function; the sending time includes a sending time And a sending period, the first preset function is used to determine the sending moment, the second preset function is used to determine the sending period, and the second preset function has the same same as the first preset function Factorization factor.
  • the sending unit is specifically configured to periodically send the first data in the receiving unit to the server according to the sending period, starting from the sending moment determined by the processing unit.
  • the sending unit further includes a package subunit
  • the encapsulating subunit is configured to encapsulate the first data in a TCP/IP protocol stack to obtain a first data packet;
  • the sending unit is specifically configured to start, according to the sending time determined by the processing unit, the modem periodically sends the receiving unit to the server by using a 3GPP protocol stack according to the sending period.
  • the first data is described.
  • the sending unit further includes an encryption subunit
  • the encryption subunit is configured to invoke an encryption algorithm to encrypt the first data packet in the encapsulation subunit.
  • the receiving unit is further configured to receive a reply data packet sent by the server, where the reply data packet is generated by the server after parsing the first data;
  • the processing unit is further configured to: if the terminal identifier in the reply data packet is the same as the terminal identifier, parse the reply data packet in the receiving unit to obtain reply data; if the reply data meets data Characteristic, then enters a sleep state;
  • the pre-processing information further includes a terminal identifier and a data feature of the terminal device corresponding to the modem, where the data feature is a feature of the expected data that the server replies to the first data.
  • the sending unit is further configured to: if the terminal identifier in the reply data packet is different from the terminal identifier, send the reply data packet in the receiving unit to the UI.
  • the processing unit is further configured to generate first abnormality information of the application if the reply data does not meet the data feature;
  • the sending unit is further configured to send the first abnormality information in the processing unit to the UI.
  • the processing unit is further configured to: if the reply packet sent by the server is not received within a preset time, generate second abnormal information of the application;
  • the sending unit is further configured to send the second abnormality information in the processing unit to the UI, where the reply data packet is generated by the server parsing the first data.
  • an embodiment of the present invention provides a terminal device, where the terminal device includes any one of the foregoing second aspect and the first possible implementation manner of the second aspect to the eighth possible implementation manner.
  • Modem modem and an application processor connected to the modem.
  • An embodiment of the present invention provides a data transceiving method, a modem, and a terminal device.
  • the Mo d em determines the sending time of the application and sends it to the server by receiving the pre-processing information of the application sent by the UI, and the process only needs to be applied each time. Start or user each time Wake up the AP once during login, which greatly reduces the number of wake-ups to the AP, which in turn reduces the power consumption of the terminal device.
  • FIG. 1 is a schematic flowchart of a data transceiving method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a data transceiving method according to an embodiment of the present invention.
  • FIG. FIG. 4 is a schematic diagram 2 of a cycle fitting method according to an embodiment of the present invention;
  • FIG. 5 is a schematic diagram 3 of a cycle fitting method according to an embodiment of the present invention;
  • FIG. 7 is a schematic structural diagram of a modem according to an embodiment of the present invention;
  • FIG. 8 is a schematic structural diagram 3 of a modem according to an embodiment of the present invention;
  • FIG. 10 is a schematic diagram of power consumption comparison between a terminal device and a terminal device in the prior art according to an embodiment of the present invention.
  • An embodiment of the present invention provides a data transceiving method. As shown in FIG. 1, the method includes: 1 0 1.
  • a modem receives pre-processing information of an application sent by an AP.
  • the pre-processing information includes at least a cyclic gear value of the application and a first data, where the periodic gear value is used to represent a frequency at which the application needs the AP to send and receive the first data, where the first data is
  • the application needs the AP to send to the server
  • the first data may be a heartbeat packet that the AP needs to send to the server when detecting whether the application is online, and in the embodiment of the present invention, the AP sends the heartbeat packet to the modem, so that the modem sends the heartbeat packet. Sending to the server, thereby reducing the number of wake-ups of the AP, thereby reducing the overall power consumption of the terminal device.
  • the period value of the period gear may be represented by n, and the value range of n may be from 0 to 10.
  • the mailbox software periodically obtains the mail arrival information, and the frequency at which the AP sends and receives the first data may be once every few minutes.
  • the instant messaging software periodically detects whether the user is online. At this time, the frequency at which the AP sends and receives the first data may be once every few seconds.
  • the TCP/IP protocol stack and the SSL security module are transplanted in the Modem, so that the Modem has the data packet and the unpacking capability of the AP, and the AP uses the provided API (Application Programming Interface) to the Modem.
  • the Modem may perform data packing according to the content in the first data and the corresponding communication protocol, and send the packaged first data to the server. .
  • the API configuration interface only needs to be called once every time the application is started or the user logs in. It can be set without waking up the AP during normal use.
  • the modem invokes a preset function to determine a sending time of the first data according to the period gear value and the time when the modem receives the pre-processing information.
  • the preset function includes a first preset function and a second preset function.
  • the sending time includes a sending time and a sending period, where the first preset function is used to determine the sending time,
  • the second preset function is configured to determine the transmission period, and the second preset function and the first preset function contain the same decomposition factor.
  • the modem can record the time at the time when the pre-processing information is received, that is, the time when the modem receives the pre-processing information. It should be noted that the time when the modem receives the pre-processing signal is only For reflecting the receiving moment, the embodiment of the present invention does not limit the representation of the receiving moment, for example, The receiving time is recorded as the Nth beat value according to a timing mechanism established internally by the Modem.
  • the preset function can be called to perform period fitting according to the timing mechanism established inside the Modem, so that the application with the application period is similar to that of other original applications. Send and receive data at the same time to reduce modem overhead.
  • the fitting that is, the time points at which a plurality of applications occurring at different time points, different periods, and different phases are transmitted and received, are uniformly integrated, so as to occur at the same time as possible to reduce the terminal.
  • the Modem records the T-th beat value of the pre-processing information received by the application (the beat value may be a timing method inside the Modem, for example, the running time Dividing into a plurality of beat values, the time interval of the adjacent beat value is a fixed value); and according to the T-th beat value and the periodic gear position value n, calling the first preset function to calculate that the application sends the first data Time, that is, the Kth beat value; finally, the Modem calls the second preset function to calculate the transmission period P of the application according to the periodic gear position value n, and the second preset function and the first preset function include The same decomposition factor is used to ensure that periodic tasks that trigger different cycle gear values at the same time can be fitted to the maximum extent and the number of wake-ups is reduced.
  • the specific method for the Modem to fit the application according to the period gear value will be elaborated in the second embodiment, so it will not be described here.
  • the modem sends the first data to the server according to the sending time.
  • the modem periodically transmits the first data to the server according to the transmission period determined in step 102, starting from the transmission time determined in step 102.
  • the Modem encapsulates the first data in its preset TCP/IP protocol stack, and then encapsulates the package through the 3GPP protocol stack.
  • the first data is sent to the server according to the sending period P determined in step 102 to complete the data transceiving task when the application performs the data service, and the number of wake-ups to the AP is reduced, and the power consumption of the terminal device is reduced.
  • An embodiment of the present invention provides a data transceiving method, in which a modem receives pre-processing information of an application sent by an AP, where the pre-processing information includes at least a cyclic gear value of the application and first data, and the periodic gear value is used to represent the
  • the application requires the frequency at which the AP sends and receives the first data, where the first data is data that the application needs to send to the server by the AP; and the pre-received according to the periodic gear value and the modem.
  • the preset function is called to determine the sending time of the first data; and finally the Modem sends the first data to the server according to the sending time.
  • the solution receives the pre-processing information of the application sent by the AP, and transplants the common control such as the TCP/IP protocol stack in the Modem, so that the Modem proxy AP takes over the pre-processing of the periodic data service, and the transceiver cycle of each application is performed in the Modem.
  • the fitting makes the applications with similar sending and receiving cycles send and receive data at the same time as possible, which greatly reduces the number of wake-ups to the AP, thereby reducing the power consumption of the AP and reducing the power consumption of the terminal device.
  • An embodiment of the present invention provides a data transceiving method. As shown in FIG. 2, the method includes: 201.
  • a modem receives pre-processing information of an application sent by an AP.
  • the pre-processing information includes at least a cyclic gear value of the application and a first data, where the periodic gear value is used to represent a frequency at which the application needs the AP to send and receive the first data, where the first data is The data that the AP sends to the server is required for the application.
  • the period value can be represented by n, and the value of n can range from 0 to 10; the first data includes the data packet to be sent for each application task.
  • the Modem performs data packing according to the first data and the communication protocol, and sends the packaged first data packet to the peer server.
  • the pre-processing information may also include a terminal identity and a data feature of the terminal device corresponding to the modem, the data feature being a characteristic of data expected by the server to reply to the first data.
  • the terminal identifier is configured to: after receiving the reply data packet sent by the server, the Modem determines, according to the terminal identifier, whether the terminal identifier in the reply data packet sent by the server is the same, and further receives the reply data in the IP protocol stack.
  • a data feature configured to wait for a reply packet sent by the receiving server after the modem sends the first data, The content of the received reply packet is compared with the data characteristics in the pre-processed information.
  • the modem If the content of the reply packet conforms to the data feature, it indicates that the task indicated by the first data sent is successfully executed, and the modem does not need to wake up the AP, and the modem can directly enter the sleep state; if the content of the reply packet does not meet the data feature, or Upon receiving the response, the Modem will wake up the AP and notify the AP that the application handles the exception.
  • the data feature can be just some data indicators. If the content of the reply packet conforms to the data indicator, it is regarded as a reply packet. The content conforms to the data feature; the data feature may also be some key information.
  • the content of the reply packet includes the key information
  • the content of the reply packet is deemed to conform to the data feature; the data feature may also be a complete feature.
  • the data content is regarded as the content of the reply packet conforming to the data feature if the content of the reply packet is identical to the data feature.
  • the modem determines a sending time of the first data according to a period gear value and a time when the modem receives the pre-processing information.
  • the sending time includes a sending time and a sending period, where the sending time refers to a time point at which the first data is first sent, and the sending period refers to periodically sending the first data after the first sending of the first data.
  • First data refers to a sending time and a sending period, where the sending time refers to a time point at which the first data is first sent, and the sending period refers to periodically sending the first data after the first sending of the first data.
  • the timing method inside the Modem is timed in the form of a beat value, that is, the running time inside the Modem is divided into several beat values, and the time interval of the adjacent beat value is a fixed value, for example, the twelve points are the first beat value. , the interval between adjacent beat values is 1 minute, then 12:00 is the 2nd beat value.
  • the Modem records the T-th beat value when the application receives the pre-processed information; and calls the first according to the T-th beat value and the periodic gear position value n.
  • a preset function calculates a transmission time at which the first data is transmitted for the first time, that is, a Kth beat value; finally, the Modem calls a second preset function to calculate a transmission period of transmitting the first data according to the periodic gear position value n.
  • the second preset function and the first preset function have the same decomposition factor, so as to ensure that the periodic tasks of different cycle gear values are triggered at the same time, the cycle can be fitted to the maximum extent, and the number of wake-ups is reduced. .
  • the Modem when the terminal is initialized, the Modem performs the beat count according to the rhythm of the Modem once every 2500ms, that is, the interval of the adjacent beat values is 2500ms (milliseconds), as shown in Figure 3, if the first application specified task 1 creates a cycle (5000 milliseconds is a cycle) task, Modem will respond, organize the packet transmission and heartbeat according to the 5000 millisecond period, that is, Data is sent and received every two beat values.
  • is the applied cyclic gear value
  • is the beat value
  • Floor is the rounding down operation, setting the T value to 14
  • n is 2, edge
  • the time at which the first data is sent is the time point corresponding to the 16th beat value;
  • the Modem calls the second preset function to calculate the transmission period P of the application according to the periodic gear value n, and the second preset function and the first preset function have the same decomposition factor.
  • the second preset function F2 A*2 n
  • the Modem increases the different starting transmission times (ie, the beat value K) and the tasks of different transmission periods P, since both the K value and the P value are 2 n is the decomposition factor, which ensures that the periodic task of triggering different cycle gears at 2 n time can get the maximum fitting of its cycle, and then reduce the number of wake-ups to the Modem itself.
  • the transmission time and the transmission period of the first data are determined according to the period gear value and the time when the modem receives the pre-processing information.
  • the modem encapsulates the first data in the TCP/IP protocol stack to obtain the first data packet.
  • Modem is pre-ported with common controls such as TCP/IP protocol stack, so that Modem has the ability to unpack the data packet of the AP, so that Modem takes part of the work of the original AP, and then sets the interval initiated by the application according to certain rules.
  • the data of the packet is periodically sent, the response is pre-processed, and the abnormal pre-processing is performed to reduce the number of wake-ups of the AP, thereby reducing the overall power consumption of the terminal device.
  • the Modem encapsulates the first data in its preset TCP/IP protocol stack, and performs group packet to obtain the first data packet, so that the Modem will be The first data is sent to the corresponding service in the form of a data packet.
  • step 204 may be performed to perform encryption processing on the first data.
  • the modem invokes an encryption algorithm to encrypt the first data packet.
  • the modem sends the first data packet to the server according to a sending time.
  • the modem periodically sends the first data packet to the server through the 3GPP protocol stack according to the sending period from the sending moment.
  • step 204 the modem periodically sends the encrypted first data packet to the server through the 3GPP protocol stack according to the sending period from the sending time.
  • the modem receives a reply packet sent by the server.
  • the modem sends the first data to the corresponding server, waiting for the reply packet sent by the receiving server, where the reply packet is generated by the server after parsing the first data.
  • a timer or other timing device may be built in the modem. If the reply packet sent by the server is not received within the preset time, the modem generates a program processing exception information of the application and sends the information to the AP, so that The AP analyzes and indicates the processing exception information. 207. If the terminal identifier in the reply data packet is the same as the terminal identifier in the pre-processing information, the modem parses the reply data packet to obtain the reply data.
  • the Modem determines whether the terminal identifier in the reply packet is the same as the local port number. If the terminal identifier in the reply packet is the same as the local port number, the modem may parse the reply packet in the TCP/IP protocol stack to obtain reply data; if the terminal identifier and the local port number in the reply packet Different, the modem can send the reply packet to the AP for further processing.
  • the modem enters a sleep state.
  • the reply data is obtained.
  • the Modem determines whether the reply data meets the data characteristics in the pre-processing information. If the reply data meets the data characteristics in the pre-processing information, the Modem does not need to wake up the AP to directly enter the sleep state; if the parsed data does not meet the data in the pre-processed information, The feature, the program processing exception information of the application is generated and sent to the AP.
  • the data feature may be only some data indicators. If the content of the reply packet conforms to the data indicator, the content of the reply packet is deemed to conform to the data feature; the data feature may also be some key information, if the data packet is returned.
  • the content included in the content is regarded as the content of the reply packet conforms to the data feature; the data feature may also be a complete data content, and is regarded as a reply if the content of the reply packet is identical to the data feature.
  • the content of the packet conforms to the data characteristics.
  • the Modem proxy AP completes the scheduled interval of the application initiation, the timing transmission according to the data of the certain regular group packet, the response preprocessing, the abnormal preprocessing, and the like.
  • An embodiment of the present invention provides a data transceiving method, in which a modem receives pre-processing information of an application sent by an AP, where the pre-processing information includes at least a cyclic gear value of the application and first data, and the periodic gear value is used to represent the
  • the application requires the frequency at which the AP sends and receives the first data, where the first data is data that the application needs to send to the server by the AP; and further, according to the periodic gear value and the modem,
  • the preset function is called to determine the sending time of the first data; and finally, the Modem sends the first data to the server according to the sending time.
  • the solution receives the pre-processing information of the application sent by the AP, and transplants the common control such as the TCP/IP protocol stack in the Modem, so that the Modem proxy AP takes over the pre-processing of the periodic data service, and the transceiver cycle of each application is performed in the Modem. Fitting, so that applications with similar receiving and receiving cycles can send and receive data at the same time as possible, greatly reducing the number of wake-ups to the AP, thereby reducing the power consumption of the AP and reducing the power consumption of the terminal device. In addition, due to the reduction of the pair The number of wake-ups of the AP reduces the occupancy rate of the AP, which in turn increases the speed of the terminal device.
  • the embodiment of the present invention provides a modem, as shown in FIG. 6, including: a receiving unit 01, configured to receive pre-processing information of an application sent by an application processor AP, where the pre-processing information includes at least a period of the application. a gear value and a first data, the cycle gear value is used to represent a frequency at which the application needs the AP to send and receive the first data, and the first data is that the application needs the AP to send to the Server data;
  • the processing unit 02 is configured to: according to the period gear value in the receiving unit 01 and the time when the receiving unit 01 receives the pre-processing information, call a preset function to determine a sending time of the first data;
  • the sending unit 03 is configured to send the first data in the receiving unit 01 to the server according to the sending time determined in the processing unit 02.
  • processing unit 02 is specifically configured to record a time when the receiving unit 01 receives the pre-processing information, and invoke the according to the time and the periodic gear position value in the receiving unit 01. Determining, by the first preset function, the sending time; and invoking the second preset function to determine the sending period according to the cyclic gear value in the receiving unit 01;
  • the preset function includes a first preset function and a second preset function; the sending time includes a sending time and a sending period, and the first preset function is used to determine the sending time, the second a preset function for determining the transmission period, the second The preset function has the same decomposition factor as the first preset function.
  • the sending unit 03 is specifically configured to, according to the sending time determined by the processing unit 02, periodically send the first part of the receiving unit 01 to the server according to the sending period.
  • One data is specifically configured to, according to the sending time determined by the processing unit 02, periodically send the first part of the receiving unit 01 to the server according to the sending period.
  • the sending unit 03 further includes a package subunit.
  • the encapsulating subunit 031 is configured to encapsulate the first data in a TCP/IP protocol stack to obtain a first data packet;
  • the sending unit 03 is specifically configured to start, according to the sending moment determined by the processing unit 02, the modem periodically sends the receiving unit 01 to the server through a 3GPP protocol stack according to the sending period.
  • the sending unit 03 further includes an encryption subunit.
  • the encryption subunit 032 is configured to invoke an encryption algorithm to encrypt the first data packet in the encapsulation subunit 031.
  • the receiving unit 01 is further configured to receive a reply data packet sent by the server, where the reply data packet is generated by the server after parsing the first data;
  • the processing unit 02 is further configured to: if the terminal identifier in the reply data packet is the same as the terminal identifier, parse the reply data packet in the receiving unit 01 to obtain reply data; And satisfying the data feature, entering a dormant state; wherein, the pre-processing information further includes a terminal identifier and a data feature of the terminal device corresponding to the modem, where the data feature is that the server replies to the first data that is expected The characteristics of the data.
  • the sending unit 03 is further configured to: if the terminal identifier in the reply data packet is different from the terminal identifier, send the reply data packet in the receiving unit to the AP.
  • processing unit 02 is further configured to generate first abnormality information of the application if the reply data does not meet the data feature;
  • the sending unit 03 is further configured to send the first abnormality information in the processing unit to the AP.
  • processing unit 02 is further configured to generate a second abnormality information of the application if the reply data packet sent by the server is not received within a preset time; the sending unit 03 is further configured to: Sending, to the AP, the second abnormality information in the processing unit, where the reply data packet is generated by the server after parsing the first data.
  • An embodiment of the present invention provides a modem, where a modem receives pre-processing information of an application sent by an AP, where the pre-processing information includes at least a periodic gear value of the application and first data, where the periodic gear value is used to represent the application.
  • the frequency at which the AP sends and receives the first data is required, where the first data is data that the application needs to send to the server by the AP; and the pre-processing information is further received according to the periodic gear value and the modem.
  • calling a preset function to determine a sending time of the first data; and finally, the Modem sends the first data to the server according to the sending time.
  • the solution receives the pre-processing information of the application sent by the AP, and transplants the common control such as the TCP/IP protocol stack in the Modem, so that the Modem proxy AP takes over the pre-processing of the periodic data service, and the transceiver cycle of each application is performed in the Modem. Fitting, so that applications with similar receiving and receiving cycles can send and receive data at the same time as possible, greatly reducing the number of wake-ups to the AP, thereby reducing the power consumption of the AP and reducing the power consumption of the terminal device. In addition, due to the reduction of the pair The number of wake-ups of the AP reduces the occupancy rate of the AP, which in turn increases the speed of the terminal device.
  • An embodiment of the present invention provides a terminal device.
  • the terminal device includes the modem 11 and the API 2 connected to the modem, where
  • the Modeml 1 is configured to receive pre-processing information of an application sent by the AP, where the pre-processing information includes at least a periodic gear position value n, a first data, and a sending address of the application; and according to the periodic gear position a value of n, a period fitting of the application, determining a Kth beat value and a transmission period P of the application; and at the Kth beat value, the root And transmitting, according to the sending address, the first data to the corresponding server according to the sending period P.
  • the pre-processing information includes at least a periodic gear position value n, a first data, and a sending address of the application; and according to the periodic gear position a value of n, a period fitting of the application, determining a Kth beat value and a transmission period P of the application; and at the Kth beat value, the root And transmitting, according to the sending address, the first data to the corresponding server according to the sending period P.
  • the API 2 is configured to send pre-processing information of the application to the Modem.
  • Modem11 is further configured to receive a reply data packet sent by the server; if the destination port number in the reply data packet matches the local port number, in the TCP/IP protocol stack, The reply packet is parsed to obtain a parsing number sleep state.
  • the AP 12 is further configured to: if the destination port number in the reply packet does not match the local port number, receive the reply packet; if the parsed data does not meet the expected receipt Receiving, by the modem, the program processing exception information of the application sent by the modem; if the reply data packet sent by the server is not received within the preset time, receiving the modem sending The application's program handles exception information.
  • the AP power consumption is higher in proportion. If the data transmission and reception method provided in the embodiment of the present invention is used, the modem can perform periodic data transmission and reception instead of the AP, and the power consumption portion of the AP can be omitted without abnormality. From the actual test results, the Qualcomm platform has an AP power consumption of about 20mA, and the His i 1 icon platform is about 40mA. In theory, it can reduce the power consumption of the terminal equipment in processing wireless network data transmission and reception services. %.
  • GSM Global System for Mobile Communications
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • FDMA Frequency Division Multiple Addressing
  • OFDMA Orthogonal Frequency-Division Multiple Access
  • SC-FDMA single carrier FDMA
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • LTE Long Term Evolution
  • An embodiment of the present invention provides a terminal device, where a modem receives pre-processing information of an application sent by an AP, where the pre-processing information includes at least a periodic gear value of the application and first data, where the periodic gear value is used to represent the
  • the application requires the frequency at which the AP sends and receives the first data, where the first data is data that the application needs to send to the server by the AP; and the pre-processing is received according to the periodic gear value and the modem.
  • the time of the information, the preset function is called to determine the sending time of the first data; and finally the Modem sends the first data to the server according to the sending time.
  • the solution receives the pre-processing information of the application sent by the AP, and transplants the common control such as the TCP/IP protocol stack in the Modem, so that the Modem proxy AP takes over the pre-processing of the periodic data service, and the transceiver cycle of each application is performed in the Modem. Fitting, so that applications with similar transceiver periods can send and receive data at the same time as possible, greatly reducing the number of wake-ups to the AP, thereby reducing the power consumption of the AP and reducing the power consumption of the terminal device. In addition, since the AP is reduced The number of wake-ups reduces the occupancy rate of the AP, which in turn increases the speed of the terminal device.
  • the units described as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, and may be located in one place or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiment of the present embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be in the form of hardware Implementation can also be implemented in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明的实施例提供一种数据收发方法、调制解调器及终端设备,涉及通信领域,解决了现有技术中由于AP会被频繁唤醒以控制Modem进行无线网络数据的收发,而导致终端设备的耗电量较大的问题。该方案包括:调制解调器接收应用处理器AP发送的应用的预处理信息,预处理信息至少包括应用的周期档位值以及第一数据,周期档位值用于表征应用需要AP收发第一数据的频率,第一数据为应用需要AP发送至服务器的数据;调制解调器根据周期档位值和调制解调器接收预处理信息的时间,调用预置函数确定第一数据的发送时间;调制解调器按照发送时间,向服务器发送第一数据。

Description

数据收发方法、 调制解调器及终端设备 技术领域
本发明涉及通信领域, 尤其涉及数据收发方法、 调制解调器及 终端设备。
背景技术
随着接入技术 HSPA ( High-Speed Packet Access , 高速下行链 路分组接入技术) 和 LTE ( Long Term Evolution, 长期演进)协议 的演进和覆盖完善, 移动互联网得以在终端设备上广泛应用。 其中, 终端设备一般包含 AP ( Appel lat ion Proces sor,应用处理器 ) 和 Modem (调制解调器 ), AP可以用于处理用户界面并运行应用程序, Modem可以用于处理无线网络数据的收发。
通常, 当终端设备需要收发无线网络数据时, AP可以通过运行 应用程序并调用接口控制 Modem 进行无线网络数据的收发, 进而完 成与服务器之间的交互。 例如, 在即时通信的场景中, 为了保证即 时通信軟件与 月良务器之 间 保持 TCP ( Transmission Control Protocol , 传输控制协议) 长连接, 即时通信软件会按照一定的时 间间隔唤醒 ΑΡ, 使 ΑΡ控制 Modem进行无线网络数据的收发。 在邮 件收发场景中, 邮箱类应用程序一般会按照不同的邮箱协议类型定 期唤醒 AP , 使 AP控制 Modem检测服务器是否接收到新邮件。
然而,上述通过 AP控制 Modem进行无线网络数据的收发过程中, 由于 AP会被频繁唤醒以控制 Modem进行无线网络数据的收发,因此, 导致 AP长时间处于运行状态, 从而导致终端设备的耗电量较大。 发明内容
本发明的实施例提供一种数据收发方法、 调制解调器及终端设 备, 解决了现有技术中由于 AP会被频繁唤醒以控制 Modem进行无线 网络数据的收发, 而导致终端设备的耗电量较大的问题。
为达到上述目的, 本发明的实施例采用如下技术方案: 第一方面, 本发明的实施例提供一种数据收发方法, 所述方法 包括:
调制解调器接收应用处理器 A P发送的应用的预处理信息,所述 预处理信息至少包括所述应用的周期档位值以及第一数据, 所述周 期档位值用于表征所述应用需要所述 A P收发所述第一数据的频率, 所述第一数据为所述应用需要所述 A P发送至所述服务器的数据; 所述调制解调器根据所述周期档位值和所述调制解调器接收所 述预处理信息的时间, 调用预置函数确定所述第一数据的发送时间; 所述调制解调器按照所述发送时间, 向所述服务器发送所述第 一数据。
在第一方面的第一种可能的实现方式中, 所述预置函数包括第 一预置函数和第二预置函数; 所述发送时间包括发送时刻和发送周 期, 其中, 所述第一预置函数用于确定所述发送时刻, 所述第二预 置函数用于确定所述发送周期, 所述第二预置函数与第一预置函数 含有相同的分解因子。
其中, 所述调制解调器根据所述周期档位值和所述调制解调器 接收所述预处理信息的时间, 调用预置函数确定所述第一数据的发 送时间, 包括:
所述调制解调器记录所述调制解调器接收所述预处理信 , ί、的时 间;
所述调制解调器根据所述时间和所述周期档位值, 调用所述第 一预置函数确定所述发送时刻;
所述调制解调器根据所述周期档位值, 调用所述第二预置函数 确定所述发送周期。
结合前述第一方面以及第一方面的第一种可能的实现方式, 在 第一方面的第二种可能的实现方式中, 所述调制解调器按照所述发 送时间, 向所述服务器发送所述第一数据, 包括:
所述调制解调器从所述发送时刻开始, 按照所述发送周期, 周 期性地向所述服务器发送所述第一数据。 结合第一方面的第二种可能的实现方式, 在第一方面的第三种 可能的实现方式中, 所述调制解调器按照所述发送时间, 向所述服 务器发送所述第一数据, 包括:
所述调制解调器在 TCP / I P协议栈内对所述第一数据进行封装, 获得第一数据包;
所述调制解调器从所述发送时刻开始, 所述调制解调器按照所 述发送周期, 通过 3GPP协议栈, 周期性地向所述服务器发送所述第 一数据。
结合第一方面的第三种可能的实现方式, 在第一方面的第四种 可能的实现方式中, 所述调制解调器在 TCP / I P协议栈内对所述第一 数据进行封装, 获得第一数据包之后, 还包括:
所述调制解调器调用加密算法对所述第一数据包进行加密。 结合前述的第一方面以及第一方面的第一种可能的实现方式至 第四种可能的实现方式中的任一种实现方式, 在第一方面的第五种 可能的实现方式中, 所述预处理信息还包括与所述调制解调器对应 的终端设备的终端标识和数据特征, 所述数据特征为预期的所述服 务器对所述第一数据回复的数据的特征;
其中, 所述调制解调器按照所述发送时间, 向所述服务器发送 所述第一数据之后, 还包括:
所述调制解调器接收所述服务器发送的回复数据包, 所述回复 数据包是所述服务器对所述第一数据解析后生成的;
若所述回复数据包中的终端标识与所述终端标识相同, 所述调 制解调器则对所述回复数据包进行解析, 获得回复数据;
若所述回复数据符合所述数据特征, 所述调制解调器则进入休 眠状态。
结合第一方面的第五种可能的实现方式, 在第一方面的第六种 可能的实现方式中, 所述调制解调器接收所述服务器发送的回复数 据包之后, 还包括:
若所述回复数据包中的终端标识与所述终端标识不同, 所述调 制解调器则向所述 A P发送所述回复数据包。
结合第一方面的第五种可能的实现方式, 在第一方面的第七种 可能的实现方式中, 所述调制解调器则在对所述回复数据包进行解 析, 获得回复数据之后, 还包括:
若所述回复数据不符合所述数据特征, 所述调制解调器则生成 所述应用的第一异常信息, 并向所述 A P发送所述第一异常信息。
结合前述的第一方面以及第一方面的第一种可能的实现方式至 第四种可能的实现方式中的任一种实现方式, 在第一方面的第八种 可能的实现方式中, 所述调制解调器按照所述发送时间, 向所述服 务器发送所述第一数据之后, 还包括:
若在预置时间内未收到所述服务器发送的回复数据包, 所述调 制解调器则生成所述应用的第二异常信息, 并向所述 A P发送所述第 二异常信息, 所述回复数据包是所述服务器对所述第一数据解析后 生成的。
第二方面, 本发明的实施例提供一种制解调器, 包括:
接收单元, 用于接收应用处理器 A P发送的应用的预处理信息 , 所述预处理信息至少包括所述应用的周期档位值以及第一数据, 所 述周期档位值用于表征所述应用需要所述 A P 收发所述第一数据的 频率, 所述第一数据为所述应用需要所述 A P发送至所述服务器的数 据;
处理单元, 用于根据所述接收单元中的所述周期档位值和所述 调制解调器接收所述预处理信 , 的时间, 调用预置函数确定所述第 一数据的发送时间;
发送单元, 用于按照所述处理单元中确定的所述发送时间, 向 所述服务器发送所述接收单元中的所述第一数据。
在第二方面的第一种可能的实现方式中,
所述处理单元, 具体用于记录所述调制解调器接收所述预处理 信息的时间; 并根据所述时间和所述接收单元中的所述周期档位值, 调用所述第一预置函数确定所述发送时刻; 以及根据所述接收单元 中的所述周期档位值, 调用所述第二预置函数确定所述发送周期; 其中, 所述预置函数包括第一预置函数和第二预置函数; 所述 发送时间包括发送时刻和发送周期, 所述第一预置函数用于确定所 述发送时刻, 所述第二预置函数用于确定所述发送周期, 所述第二 预置函数与第一预置函数含有相同的分解因子。
结合第二方面的第一种可能的实现方式, 在第二方面的第二种 可能的实现方式中,
所述发送单元, 具体用于从所述处理单元确定的所述发送时刻 开始, 按照所述发送周期, 周期性地向所述服务器发送所述接收单 元中的所述第一数据。
结合第二方面的第二种可能的实现方式, 在第二方面的第三种 可能的实现方式中, 所述发送单元还包括封装子单元,
所述封装子单元,用于在 TCP / I P协议栈内对所述第一数据进行 封装, 获得第一数据包;
所述发送单元, 具体用于从所述处理单元确定的所述发送时刻 开始, 所述调制解调器按照所述发送周期, 通过 3GPP协议栈, 周期 性地向所述服务器发送所述接收单元中的所述第一数据。
结合第二方面的第三种可能的实现方式, 在第二方面的第四种 可能的实现方式中, 所述发送单元还包括加密子单元,
所述加密子单元, 用于调用加密算法对所述封装子单元中的所 述第一数据包进行加密。
结合前述的第二方面以及第二方面的第一种可能的实现方式至 第四种可能的实现方式中的任一种实现方式, 在第二方面的第五种 可能的实现方式中,
所述接收单元, 还用于接收所述服务器发送的回复数据包, 所 述回复数据包是所述服务器对所述第一数据解析后生成的;
所述处理单元, 还用于若所述回复数据包中的终端标识与终端 标识相同, 则对所述接收单元中的所述回复数据包进行解析, 获得 回复数据; 若所述回复数据符合数据特征, 则进入休眠状态; 其中, 所述预处理信息还包括与所述调制解调器对应的终端设 备的终端标识和数据特征, 所述数据特征为预期的所述服务器对所 述第一数据回复的数据的特征。
结合第二方面的第五种可能的实现方式, 在第二方面的第六种 可能的实现方式中,
所述发送单元, 还用于若所述回复数据包中的终端标识与所述 终端标识不同, 则向所述 ΑΡ 发送所述接收单元中的所述回复数据 包。
结合第二方面的第五种可能的实现方式, 在第二方面的第七种 可能的实现方式中,
所述处理单元, 还用于若所述回复数据不符合所述数据特征, 则生成所述应用的第一异常信息;
所述发送单元,还用于向所述 ΑΡ发送所述处理单元中的所述第 一异常信息。
结合前述的第二方面以及第二方面的第一种可能的实现方式至 第四种可能的实现方式中的任一种实现方式, 在第二方面的第八种 可能的实现方式中,
所述处理单元, 还用于若在预置时间内未收到所述服务器发送 的回复数据包, 则生成所述应用的第二异常信息;
所述发送单元,还用于向所述 ΑΡ发送所述处理单元中的所述第 二异常信息, 所述回复数据包是所述服务器对所述第一数据解析后 生成的。
第三方面, 本发明的实施例提供一种终端设备, 所述终端设备 包含前述第二方面以及第二方面的第一种可能的实现方式至第八种 可能的实现方式中的任一种实现方式的调制解调器, 以及与所述调 制解调器相连的应用处理器 ΑΡ。
本发明的实施例提供一种数据收发方法、 调制解调器及终端设 备, Mo d em通过接收 Α Ρ发送的应用的预处理信息, 确定该应用的发 送时间并发送至服务器, 该过程仅需要应用每次启动或者用户每次 登录时唤醒一次 AP , 大大减少了对 AP 的唤醒次数, 进而降低了终 端设备的电量消耗。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下 面将对实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例。
图 1 为本发明实施例提供的一种数据收发方法的流程示意图 图 2 为本发明实施例提供的一种数据收发方法的流程示意图 图 3为本发明实施例提供的一种周期拟合方法的示意图一; 图 4为本发明实施例提供的一种周期拟合方法的示意图二; 图 5为本发明实施例提供的一种周期拟合方法的示意图三; 图 6为本发明实施例提供的一种调制解调器的结构示意图一; 图 7为本发明实施例提供的一种调制解调器的结构示意图二; 图 8为本发明实施例提供的一种调制解调器的结构示意图三; 图 9为本发明实施例提供的一种终端设备的结构示意图; 图 1 0 为本发明实施例提供的一种终端设备与现有技术中的终 端设备的功耗对比示意图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术 方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明 一部分实施例, 而不是全部的实施例。
实施例一
本发明的实施例提供一种数据收发方法, 如图 1所示, 包括: 1 0 1、 调制解调器接收 AP发送的应用的预处理信息。
其中, 上述预处理信息至少包括应用的周期档位值以及第一数 据, 所述周期档位值用于表征所述应用需要所述 AP收发所述第一数 据的频率, 所述第一数据为所述应用需要所述 AP发送至所述服务器 的数据, 例如, 第一数据可以是 AP为检测应用是否在线时, 需要向 服务器发送的心跳包, 而在本发明实施例中 AP将所述心跳包发送至 调制解调器, 以便调制解调器将所述心跳包发送至服务器, 进而减 少 AP的唤醒次数, 进而降低终端设备整体功耗。
示例性的, 所述周期档位值可以用 n表示, n 的取值范围可以 由 0 至 10, 当 n=l 时, 指示该应用需要所述 AP 收发所述第一数据 的频率较小, 例如邮箱软件定期获取邮件到达信息, 此时 AP收发所 述第一数据的频率可以为几分钟一次; 当 n=l 时, 指示应用需要所 述 AP收发所述第一数据的频率较大, 例如即时通讯类软件周期性的 检测用户是否在线, 此时 AP收发所述第一数据的频率可以为几秒钟 一次。
可选的, 在 Modem 内移植 TCP/IP协议栈、 SSL安全模块等通用 控件, 使得 Modem具备 AP 的数据组包和解包能力, AP 利用提供的 API ( Application Programming Interface,应用程序编程接口 ) 向 Modem 发送应用的预处理信息, 当预处理信息中的第一数据的发送 周期到来时, Modem 可以根据该第一数据中的内容以及相应通信协 议进行数据打包, 将打包后的第一数据发送到服务器。 这样一来, 该 API 配置接口仅需要应用每次启动或者用户每次登录时调用一 次, 在常使用过程中便可无需唤醒 AP进行设置。
102、调制解调器根据周期档位值和调制解调器接收所述预处理 信息的时间, 调用预置函数确定第一数据的发送时间。
其中, 所述预置函数包括第一预置函数和第二预置函数; 所述 发送时间包括发送时刻和发送周期, 其中, 所述第一预置函数用于 确定所述发送时刻, 所述第二预置函数用于确定所述发送周期, 所 述第二预置函数与第一预置函数含有相同的分解因子。
在执行步骤 101 时, 调制解调器在接收所述预处理信息时, 可 以记录此时的时间, 即调制解调器接收所述预处理信息的时间, 需 要说明的是, 调制解调器接收所述预处理信 , 的时间仅用于反映该 接收时刻, 本发明实施例并不限制该接收时刻的表示形式, 例如可 以根据 Modem 内部建立的定时机制记录该接收时刻为第 N节拍值。 当有应用指定的任务需要进行周期性数据发送时, 可以根据 Modem 内部建立的定时机制, 调用预置函数进行周期拟合, 使得应 用的周期与其他原有应用的周期相近的应用程序尽可能在同一时刻 收发数据, 以减少调制解调器的开销。 在本发明的实施例中, 所述 拟合, 即将分散时间点、 不同周期、 不同相位发生的多个应用收发 数据的时间点, 进行统一整合, 使其尽量在同一时刻发生, 以减少 终端的唤醒次数和信道建立或拆除次数。
具体的, 当有应用指定的任务需要进行周期性数据发送时, Modem 记录所述应用接收所述预处理信息的第 T 节拍值 (节拍值可 以是 Modem 内部的一种计时方法, 例如将运行时间分为若干个节拍 值, 相邻节拍值的时间间隔为固定数值); 并根据所述第 T节拍值和 所述周期档位值 n, 调用第一预置函数计算所述应用发送第一数据 的时刻, 即第 K节拍值; 最后, Modem根据所述周期档位值 n, 调用 第二预置函数计算所述应用的发送周期 P, 所述第二预置函数与第 一预置函数含有相同的分解因子, 以确保在相同时刻上, 触发不同 周期档位值的周期任务, 可以最大程度的拟合其周期, 减少唤醒次 数。 Modem 根据周期档位值对应用进行周期拟合的具体方法在实施 例二中将进行详细阐述, 故此处不再赘述。
103、 调制解调器按照所述发送时间, 向所述服务器发送所述第 一数据。
具体的, 调制解调器从步骤 102 中确定的发送时刻开始, 按照 步骤 102 中确定的发送周期, 周期性地向所述服务器发送所述第一 数据。
示例性的, 若步骤 102 中确定的节拍值 K对应的时刻到来, 此 时 Modem在其预置的 TCP/IP协议栈内对所述第一数据进行封装, 进 而通过 3GPP协议栈将封装后的第一数据按照步骤 102中确定的发送 周期 P 发送至服务器以完成应用进行数据业务时的数据收发任务, 同时减少了对 AP的唤醒次数, 降低终端设备功耗。 本发明的实施例提供一种数据收发方法, Modem通过接收 AP发 送的应用的预处理信息, 所述预处理信息至少包括应用的周期档位 值以及第一数据, 周期档位值用于表征所述应用需要所述 AP收发所 述第一数据的频率, 第一数据为所述应用需要所述 AP发送至所述服 务器的数据; 进而根据所述周期档位值和所述调制解调器接收所述 预处理信息的时间, 调用预置函数确定所述第一数据的发送时间; 最终 Modem按照所述发送时间, 向所述服务器发送所述第一数据。 该方案通过接收 AP 发送的应用的预处理信息, 并在 Modem 内移植 TCP/IP 协议栈等通用控件, 使 Modem代理 AP承担周期数据业务的 预处理, 且在 Modem 内将各个应用的收发周期进行拟合, 使得收发 周期相近的应用尽可能在同一时刻收发数据, 大大减少了对 AP的唤 醒次数, 进而降低了 AP的功耗, 减少了终端设备的电量开销。
实施例二
本发明的实施例提供一种数据收发方法, 如图 2所示, 包括: 201、 调制解调器接收 AP发送的应用的预处理信息。
其中,所述预处理信息至少包括应用的周期档位值和第一数据, 所述周期档位值用于表征所述应用需要所述 AP 收发所述第一数据 的频率, 所述第一数据为所述应用需要所述 AP发送至所述服务器的 数据。 周期档位值可以用 n表示, n的取值范围可以由 0至 10; 第 一数据, 具体包括每次应用的任务所需发送的数据包。
具体的, 每当第一数据的发送时刻到来时, Modem 根据该第一 数据以及通信协议进行数据打包, 将打包后的第一数据包发送到对 端服务器。 所述预处理信息还可以包括与所述调制解调器对应的终 端设备的终端标识以及数据特征, 所述数据特征为预期的所述服务 器对所述第一数据回复的数据的特征。
其中, 终端标识, 用于在接收所述服务器发送的回复数据包之 后, Modem 根据该终端标识判断是否与服务器发送的回复数据包中 的终端标识相同, 进而在 IP协议栈解包接收回复数据。 数据特征, 用于当 Modem发送第一数据后, 等待接收服务器回复的回复数据包, 并将接收到的回复数据包的内容与预处理信息中的数据特征进行比 较。 若回复数据包的内容符合该数据特征, 则表示发送的第一数据 所指示的任务执行成功, 无需唤醒 AP, Modem可直接进入休眠状态; 若回复数据包的内容不符合该数据特征, 或没有收到回应, Modem 都将唤醒 AP, 通知 AP 该应用程序处理异常, 需要说明的是, 该数 据特征可以仅仅是一些数据指标, 若回复数据包的内容符合该数据 指标即视为回复数据包的内容符合该数据特征; 该数据特征也可以 是一些关键信息, 若回复数据包的内容中包含所述关键信息即视为 回复数据包的内容符合该数据特征; 该数据特征还可以是一个完整 的数据内容, 若回复数据包的内容与所述数据特征完全相同时视为 回复数据包的内容符合该数据特征。
202、调制解调器根据周期档位值和调制解调器接收预处理信息 的时间, 确定第一数据的发送时间。
其中, 所述发送时间包括发送时刻和发送周期, 发送时刻是指 所述第一数据首次发送的时间点, 发送周期是指在首次发送第一数 据后, 以该发送周期周期性的发送所述第一数据。
设 Modem 内部的计时方法是以节拍值的形式进行计时, 即将 Modem 内部的运行时间分为若干个节拍值 , 相邻节拍值的时间间隔 为固定数值具体的, 例如十二点为第 1 节拍值, 相邻节拍值的时间 间隔为 1 分钟, 则十二点零一为第 2 节拍值。 当有应用指定的任务 需要进行周期性数据发送时, Modem 记录所述应用接收到预处理信 息时的第 T 节拍值; 并根据所述第 T 节拍值和所述周期档位值 n, 调用第一预置函数计算首次发送所述第一数据的发送时刻, 即第 K 节拍值; 最后, Modem根据所述周期档位值 n, 调用第二预置函数计 算发送所述第一数据的发送周期 P, 所述第二预置函数与第一预置 函数含有相同的分解因子, 以确保在相同时刻上, 触发不同周期档 位值的周期任务, 可以最大程度的拟合其周期, 减少唤醒次数。
示例性的, 当终端初始化完成后, Modem 按照每 2500ms 唤醒 Modem 一次的节奏进行节拍计数, 即相邻节拍值的时间间隔为为 2500ms (毫秒), 如图 3所示, 若第一个应用指定的任务 1创建了周 期 ( 5000毫秒为周期) 任务后, Modem将进行响应, 按照 5000毫秒 的周期组织收发包并进行心跳, 即每两个节拍值为一个周期进行数 据收发。
进一步地, 如图 4 所示, 当某一应用指定的任务 (任务 2 ) 需 要进行周期性数据收发时, Modem 则记录所述应用的第 T 节拍值 ( T = 14 ), 并根据所述第 Τ节拍值和所述周期档位值 η, 调用第一预 置函数计算所述应用首次发送第一数据的发送时刻, 即第 Κ节拍值, 当第 Κ 节拍值到来时, Modem 首次发送所述第一数据, 其中, 第一 预置函数为:
Fl= [1+Floor (T/2n) ] *2α
其中, η为应用的周期档位值; Τ为节拍值; Floor为向下取整 运算, 设 T值为 14, n为 2, 刃 |5么 Floor [14/4] =3, Fl= ( 1 + 3 ) *4 = 16, 此时应用的节拍值 K = F1 = 16, 即第一数据的发送时刻为第 16 节拍值所对应的时间点;
再进一步地, Modem根据所述周期档位值 n, 调用第二预置函数 计算所述应用的发送周期 P, 所述第二预置函数与第一预置函数含 有相同的分解因子。
示例性的, 第二预置函数 F2= A*2n
其中, A为周期系数, 本实施例中以 2500ms 为例; n为周期档 位值, 例如: n=2, 则 F2 = 2500*4 = l 0000ms , 此时, 第一数据的发送 周期为 P=F2 = 10000ms。
才艮据上述方法, 如图 5 所示, 当不同应用加入时, Modem增加 各个不同起始的发送时刻 ( 即节拍值 K ) 以及不同发送周期 P 的任 务, 由于 K值与 P值均以 2n为分解因子, 即确保了在 2n时刻上, 触 发不同周期档位的周期任务, 可以得到最大程度拟合其周期, 进而 减少对 Modem 自身的唤醒次数。
至此, 根据上述方法 Modem根据周期档位值和调制解调器接收 预处理信息的时间, 确定第一数据的发送时刻和发送周期。 203、 调制解调器在 TCP/IP协议栈内对第一数据进行封装, 获 得第一数据包。
Modem 内预先移植有 TCP/IP协议栈等通用控件, 使得 Modem具 备 AP 的数据组包解包能力, 使 Modem承担了原有 AP 的部分工作, 进而对应用程序所发起的定间隔、 按照一定规律组包的数据进行定 时发送, 应答预处理, 异常预处理等工作, 减少 AP的唤醒次数, 进 而降低终端设备整体功耗。
具体的, 当发送时刻 (即节拍值 K ) 到来时, Modem在其预置的 TCP/IP协议栈内对所述第一数据进行封装, 进行组包获得第一数据 包, 以使得 Modem将所述第一数据以数据包的形式发送至对应服务 哭
进一步的,在 Modem在 TCP/ IP协议栈内对第一数据进行封装后, 还可以执行步骤 204, 对第一数据进行加密处理。
204、 调制解调器调用加密算法对所述第一数据包进行加密。 205、调制解调器按照发送时间向所述服务器发送所述第一数据 包。
具体的, 调制解调器从所述发送时刻开始, 按照所述发送周期, 通过 3GPP协议栈, 周期性地向所述服务器发送所述第一数据包。
相应的, 若执行步骤 204, 则调制解调器从所述发送时刻开始, 按照所述发送周期, 通过 3GPP协议栈, 周期性地向所述服务器发送 加密后的所述第一数据包。
206、 调制解调器接收服务器发送的回复数据包。
具体的, 当 Modem将第一数据发送至对应服务器后, 等待接收 服务器发送的回复数据包, 所述回复数据包是所述服务器对所述第 一数据解析后生成的。
Modem 内可以内置定时器或其他计时装置, 若在预置时间内未 收到来自所述服务器发送的回复数据包, Modem 则生成所述应用的 程序处理异常信息并发送至所述 AP, 以使得 AP 对该处理异常信息 进行分析并作出指示。 207、若回复数据包中的终端标识与预处理信息中的终端标识相 同, 调制解调器则对回复数据包进行解析, 获得回复数据。
具体的, 在 Modem 接收服务器发送的回复数据包之后, Modem 判断回复数据包中的终端标识与本地端口号是否相同。 若回复数据 包中的终端标识与本地端口号相同, Modem可以在所述 TCP/IP协议 栈内对所述回复数据包进行解析, 获得回复数据; 若回复数据包中 的终端标识与本地端口号不相同, Modem 可以将所述回复数据包发 送至所述 AP进行进一步处理。
208、 若回复数据符合预处理信息中的数据特征, 调制解调器则 进入休眠状态。
具体的,若所述回复数据包中的终端标识与所述终端标识相同, 且 Modem 对回复数据包进行解析后获得回复数据。 Modem 判断该回 复数据是否符合预处理信息中的数据特征, 若回复数据符合预处理 信息中的数据特征, Modem则无需唤醒 AP直接进入休眠状态; 若所 述解析数据不符合预处理信息中的数据特征, 则生成所述应用的程 序处理异常信息并发送至所述 AP。
其中, 所述数据特征可以仅仅是一些数据指标, 若回复数据包 的内容符合该数据指标即视为回复数据包的内容符合该数据特征; 该数据特征也可以是一些关键信息, 若回复数据包的内容中包含所 述关键信息即视为回复数据包的内容符合该数据特征; 该数据特征 还可以是一个完整的数据内容, 若回复数据包的内容与所述数据特 征完全相同时视为回复数据包的内容符合该数据特征。
至此, Modem代理 AP完成对应用发起的定间隔、 按照一定规律 组包的数据进行定时发送, 应答预处理, 异常预处理等工作。
本发明的实施例提供一种数据收发方法, Modem通过接收 AP发 送的应用的预处理信息, 所述预处理信息至少包括应用的周期档位 值以及第一数据, 周期档位值用于表征所述应用需要所述 AP收发所 述第一数据的频率, 第一数据为所述应用需要所述 AP发送至所述服 务器的数据; 进而根据所述周期档位值和所述调制解调器接收所述 预处理信息的时间, 调用预置函数确定所述第一数据的发送时间; 最终 Modem按照所述发送时间, 向所述服务器发送所述第一数据。 该方案通过接收 AP 发送的应用的预处理信息, 并在 Modem 内移植 TCP/IP 协议栈等通用控件, 使 Modem代理 AP承担周期数据业务的 预处理, 且在 Modem 内将各个应用的收发周期进行拟合, 使得收发 周期相近的应用尽可能在同一时刻收发数据, 大大减少了对 AP的唤 醒次数, 进而降低了 AP的功耗, 减少了终端设备的电量开销; 另夕卜, 由于减少了对 AP 的唤醒次数使得 AP 的占用率降低, 进而提高了终 端设备的运行速度。
实施例三
本发明的实施例提供一种调制解调器 Π, 如图 6所示, 包括: 接收单元 01, 用于接收应用处理器 AP 发送的应用的预处理信 息, 所述预处理信息至少包括所述应用的周期档位值以及第一数据, 所述周期档位值用于表征所述应用需要所述 AP 收发所述第一数据 的频率, 所述第一数据为所述应用需要所述 AP发送至所述服务器的 数据;
处理单元 02, 用于根据所述接收单元 01 中的所述周期档位值 和所述接收单元 01接收所述预处理信息的时间, 调用预置函数确定 所述第一数据的发送时间;
发送单元 03, 用于按照所述处理单元 02 中确定的所述发送时 间, 向所述服务器发送所述接收单元 01 中的所述第一数据。
进一步地, 所述处理单元 02, 具体用于记录所述接收单元 01 接收所述预处理信息的时间; 并根据所述时间和所述接收单元 01 中 的所述周期档位值, 调用所述第一预置函数确定所述发送时刻; 以 及根据所述接收单元 01 中的所述周期档位值, 调用所述第二预置函 数确定所述发送周期;
其中, 所述预置函数包括第一预置函数和第二预置函数; 所述 发送时间包括发送时刻和发送周期, 所述第一预置函数用于确定所 述发送时刻, 所述第二预置函数用于确定所述发送周期, 所述第二 预置函数与第一预置函数含有相同的分解因子。
进一步地, 所述发送单元 03, 具体用于从所述处理单元 02 确 定的所述发送时刻开始, 按照所述发送周期, 周期性地向所述服务 器发送所述接收单元 01 中的所述第一数据。
进一步地, 如图 7 所示, 所述发送单元 03 还包括封装子单元
031 ,
所述封装子单元 031, 用于在 TCP/IP协议栈内对所述第一数据 进行封装, 获得第一数据包;
所述发送单元 03, 具体用于从所述处理单元 02 确定的所述发 送时刻开始,所述调制解调器按照所述发送周期,通过 3GPP协议栈, 周期性地向所述服务器发送所述接收单元 01 中的所述第一数据。
进一步地, 如图 8 所示, 所述发送单元 03 还包括加密子单元
032,
所述加密子单元 032,用于调用加密算法对所述封装子单元 031 中的所述第一数据包进行加密。
进一步地, 所述接收单元 01, 还用于接收所述服务器发送的回 复数据包, 所述回复数据包是所述服务器对所述第一数据解析后生 成的;
所述处理单元 02, 还用于若所述回复数据包中的终端标识与终 端标识相同, 则对所述接收单元 01 中的所述回复数据包进行解析, 获得回复数据; 若所述回复数据符合数据特征, 则进入休眠状态; 其中, 所述预处理信息还包括与所述调制解调器对应的终端设 备的终端标识和数据特征, 所述数据特征为预期的所述服务器对所 述第一数据回复的数据的特征。
进一步地, 所述发送单元 03, 还用于若所述回复数据包中的终 端标识与所述终端标识不同, 则向所述 AP发送所述接收单元中的所 述回复数据包。
进一步地, 所述处理单元 02, 还用于若所述回复数据不符合所 述数据特征, 则生成所述应用的第一异常信息; 所述发送单元 03, 还用于向所述 AP 发送所述处理单元中的所 述第一异常信息。
进一步地, 所述处理单元 02, 还用于若在预置时间内未收到所 述服务器发送的回复数据包, 则生成所述应用的第二异常信息; 所述发送单元 03, 还用于向所述 AP 发送所述处理单元中的所 述第二异常信息, 所述回复数据包是所述服务器对所述第一数据解 析后生成的。
本发明的实施例提供一种调制解调器, Modem通过接收 AP发送 的应用的预处理信息, 所述预处理信息至少包括应用的周期档位值 以及第一数据, 周期档位值用于表征所述应用需要所述 AP收发所述 第一数据的频率, 第一数据为所述应用需要所述 AP发送至所述服务 器的数据; 进而根据所述周期档位值和所述调制解调器接收所述预 处理信息的时间, 调用预置函数确定所述第一数据的发送时间; 最 终 Modem按照所述发送时间, 向所述服务器发送所述第一数据。 该 方案通过接收 AP 发送的应用的预处理信息, 并在 Modem 内移植 TCP/IP 协议栈等通用控件, 使 Modem代理 AP承担周期数据业务的 预处理, 且在 Modem 内将各个应用的收发周期进行拟合, 使得收发 周期相近的应用尽可能在同一时刻收发数据, 大大减少了对 AP的唤 醒次数, 进而降低了 AP的功耗, 减少了终端设备的电量开销; 另夕卜, 由于减少了对 AP 的唤醒次数使得 AP 的占用率降低, 进而提高了终 端设备的运行速度。
实施例四
本发明的实施例提供一种终端设备, 如图 9 所示, 所述终端设 备包含实施例三中所述的调制解调器 11, 以及与所述调制解调器相 连的 API 2, 其中,
所述 Modeml 1 , 用于接收所述 AP发送的应用的预处理信息, 所 述预处理信息至少包括所述应用的周期档位值 n、 第一数据以及发 送地址; 并根据所述周期档位值 n, 对所述应用进行周期拟合, 确 定所述应用的第 K 节拍值和发送周期 P; 并在所述第 K 节拍值, 根 据所述发送地址将所述第一数据按照所述发送周期 P 发送至对应服 务器。
所述 API 2, 用于发送应用的预处理信息至所述 Modem。
进一步地, 所述 Modemll, 还用于接收所述服务器发送的回复 数据包; 若所述回复数据包中的目的端口号与所述本地端口号匹配, 则在所述 TCP/IP协议栈内对所述回复数据包进行解析, 获得解析数 休眠状态。
进一步地, 所述 AP12, 还用于: 若所述回复数据包中的目 的端 口号与所述本地端口号不匹配, 则接收所述回复数据包; 若所述解 析数据不符合所述预期收包内容中的预期条件, 则接收所述 Modem 发送的所述应用的程序处理异常信息; 若在预置时间内未收到来自 所述服务器发送的回复数据包, 则接收所述 Modem发送的所述应用 的程序处理异常信息。
示例性的, 如图 10所示, 以一次对 AP唤醒处理第一数据的收 发周期为例 (以邮件收发为例 ), AP 功耗在其中比例较高。 如果采 用本发明实施例中提供的数据收发方法, 使 Modem代替 AP进行周期 性数据收发, 在没有异常的情况下 AP功耗部分可以省掉。 从实际测 试结果看, Qualcomm( 高通)平台此块 AP功耗约为 20mA, His i 1 icon (海思) 平台约为 40mA, 理论上可以降低终端设备在处理无线网络 数据收发业务功耗的 10%。
另外, 本文中描述的各种技术可用于各种无线通信***, 例如当前 2G, 3G 通信***和下一代通信***, 例如全球移动通信*** ( GSM, Global System for Mobile communications ) , 码分多址 ( CDMA, Code Division Multiple Access )***,时分多址( TDMA, Time Division Multiple Access )***,宽带码分多址( WCDMA, Wideband Code Division Multiple Access Wireless ) , 频分多址 ( FDMA , Frequency Division Multiple Addressing )***,正交频分多址 ( OFDMA, Orthogonal Frequency-Division Multiple Access) ***, 单载波 FDMA ( SC-FDMA ) ***, 通用分组无 线业务 (GPRS, General Packet Radio Service ) ***, 长期演进 (LTE, Long Term Evolution ) ***, 以及其他此类通信***。
本发明的实施例提供一种终端设备, Modem通过接收 AP发送的 应用的预处理信息, 所述预处理信息至少包括应用的周期档位值以 及第一数据, 周期档位值用于表征所述应用需要所述 AP收发所述第 一数据的频率, 第一数据为所述应用需要所述 AP发送至所述服务器 的数据; 进而根据所述周期档位值和所述调制解调器接收所述预处 理信息的时间, 调用预置函数确定所述第一数据的发送时间; 最终 Modem 按照所述发送时间, 向所述服务器发送所述第一数据。 该方 案通过接收 AP发送的应用的预处理信息,并在 Modem内移植 TCP/IP 协议栈等通用控件, 使 Modem代理 AP承担周期数据业务的预处理, 且在 Modem 内将各个应用的收发周期进行拟合, 使得收发周期相近 的应用尽可能在同一时刻收发数据, 大大减少了对 AP的唤醒次数, 进而降低了 AP的功耗, 减少了终端设备的电量开销; 另外, 由于减 少了对 AP 的唤醒次数使得 AP 的占用率降低, 进而提高了终端设备 的运行速度。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可以根据 需要而将上述功能分配由不同的功能模块完成, 即将装置的内部结 构划分成不同的功能模块, 以完成以上描述的全部或者部分功能。 上述描述的***, 装置和单元的具体工作过程, 可以参考前述方法 实施例中的对应过程, 在此不再赘述。
所述作为分离部件说明的单元可以是或者也可以不是物理上分 开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可 以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实 际的需要选择其中的部分或者全部单元来实现本实施例方案的 目 的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处 理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以 上单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式 实现, 也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的 产品销售或使用时, 可以存储在一个计算机可读取存储介质中。 基 于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡 献的部分或者该技术方案的全部或部分可以以软件产品的形式体现 出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用 以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设 备等) 或处理器 ( processor ) 执行本发明各个实施例所述方法的全 部或部分步骤。 而前述的存储介质包括: U 盘、 移动硬盘、 只读存 储器( ROM, Read-Only Memory )、随机存取存储器( RAM, Random Access Memory )、 磁碟或者光盘等各种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技 术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应以所述权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种数据收发方法, 其特征在于, 所述方法包括:
调制解调器接收应用处理器 AP发送的应用的预处理信息, 所述 预处理信息至少包括所述应用的周期档位值以及第一数据, 所述周期 档位值用于表征所述应用需要所述 AP 收发所述第一数据的频率, 所 述第一数据为所述应用需要所述 AP发送至所述服务器的数据;
所述调制解调器根据所述周期档位值和所述调制解调器接收所 述预处理信息的时间, 调用预置函数确定所述第一数据的发送时间; 所述调制解调器按照所述发送时间,向所述服务器发送所述第一 数据。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述预置函数包 括第一预置函数和第二预置函数; 所述发送时间包括发送时刻和发送 周期, 其中, 所述第一预置函数用于确定所述发送时刻, 所述第二预 置函数用于确定所述发送周期, 所述第二预置函数与第一预置函数含 有相同的分解因子;
其中,所述调制解调器根据所述周期档位值和所述调制解调器接 收所述预处理信 , 的时间, 调用预置函数确定所述第一数据的发送时 间, 包括:
所述调制解调器记录所述调制解调器接收所述预处理信 , ί、的时 间;
所述调制解调器根据所述时间和所述周期档位值,调用所述第一 预置函数确定所述发送时刻;
所述调制解调器根据所述周期档位值,调用所述第二预置函数确 定所述发送周期。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述调制解 调器按照所述发送时间, 向所述服务器发送所述第一数据, 包括: 所述调制解调器从所述发送时刻开始, 按照所述发送周期, 周期 性地向所述服务器发送所述第一数据。
4、 根据权利要求 3所述的方法, 其特征在于, 所述调制解调器 按照所述发送时间, 向所述服务器发送所述第一数据, 包括: 所述调制解调器在 TCP / I P协议栈内对所述第一数据进行封装, 获得第一数据包;
所述调制解调器从所述发送时刻开始, 按照所述发送周期, 通过
3 GPP协议栈, 周期性地向所述服务器发送所述第一数据包。
5、 根据权利要求 4 所述的方法, 其特征在于, 所述调制解调器 在 TCP / I P协议栈内对所述第一数据进行封装, 获得第一数据包之后, 还包括:
所述调制解调器调用加密算法对所述第一数据包进行加密。
6、 根据权利要求 1 至 5 中任一项所述的方法, 其特征在于, 所 述预处理信息还包括与所述调制解调器对应的终端设备的终端标识 和数据特征, 所述数据特征为预期的所述服务器对所述第一数据回复 的数据的特征;
其中, 所述调制解调器按照所述发送时间, 向所述服务器发送所 述第一数据之后, 还包括:
所述调制解调器接收所述服务器发送的回复数据包,所述回复数 据包是所述服务器对所述第一数据解析后生成的;
若所述回复数据包中的终端标识与所述终端标识相同,所述调制 解调器则对所述回复数据包进行解析, 获得回复数据;
若所述回复数据符合所述数据特征,所述调制解调器则进入休眠 状态。
7、 根据权利要求 6 所述的方法, 其特征在于, 所述调制解调器 接收所述服务器发送的回复数据包之后, 还包括:
若所述回复数据包中的终端标识与所述终端标识不同,所述调制 解调器则向所述 AP发送所述回复数据包。
8、 根据权利要求 6 所述的方法, 其特征在于, 所述调制解调器 则在对所述回复数据包进行解析, 获得回复数据之后, 还包括:
若所述回复数据不符合所述数据特征,所述调制解调器则生成所 述应用的第一异常信息, 并向所述 AP发送所述第一异常信息。
9、 根据权利要求 1 至 5 中任一项所述的方法, 其特征在于, 所 述调制解调器按照所述发送时间, 向所述服务器发送所述第一数据之 后, 还包括:
若在预置时间内未收到所述服务器发送的回复数据包,所述调制 解调器则生成所述应用的第二异常信息, 并向所述 AP发送所述第二 异常信息, 所述回复数据包是所述服务器对所述第一数据解析后生成 的。
1 0、 一种调制解调器, 其特征在于, 包括:
接收单元, 用于接收应用处理器 AP发送的应用的预处理信息, 所述预处理信息至少包括所述应用的周期档位值以及第一数据, 所述 周期档位值用于表征所述应用需要所述 AP 收发所述第一数据的频 率, 所述第一数据为所述应用需要所述 AP发送至所述服务器的数据; 处理单元,用于根据所述接收单元中的所述周期档位值和所述接 收单元接收所述预处理信息的时间, 调用预置函数确定所述第一数据 的发送时间;
发送单元, 用于按照所述处理单元中确定的所述发送时间, 向所 述服务器发送所述接收单元中的所述第一数据。
1 1、 根据权利要求 1 0所述的调制解调器, 其特征在于, 所述处理单元,具体用于记录所述接收单元接收所述预处理信息 的时间; 并根据所述时间和所述接收单元中的所述周期档位值, 调用 所述第一预置函数确定所述发送时刻; 以及根据所述接收单元中的所 述周期档位值, 调用所述第二预置函数确定所述发送周期;
其中, 所述预置函数包括第一预置函数和第二预置函数; 所述发 送时间包括发送时刻和发送周期, 所述第一预置函数用于确定所述发 送时刻, 所述第二预置函数用于确定所述发送周期, 所述第二预置函 数与第一预置函数含有相同的分解因子。
1 2、 根据权利要求 1 1所述的调制解调器, 其特征在于,
所述发送单元,具体用于从所述处理单元确定的所述发送时刻开 始, 按照所述发送周期, 周期性地向所述服务器发送所述接收单元中 的所述第一数据。
1 3、 根据权利要求 1 2 所述的调制解调器, 其特征在于, 所述发 送单元还包括封装子单元,
所述封装子单元, 用于在 TCP / I P协议栈内对所述第一数据进行 封装, 获得第一数据包;
所述发送单元,具体用于从所述处理单元确定的所述发送时刻开 始, 按照所述发送周期, 通过 3GPP 协议栈, 周期性地向所述服务器 发送所述接收单元中的所述第一数据包。
1 4、 根据权利要求 1 3所述的调制解调器, 其特征在于, 所述发 送单元还包括加密子单元,
所述加密子单元,用于调用加密算法对所述封装子单元中的所述 第一数据包进行加密。
1 5、 根据权利要求 1 1至 1 4 中任一项所述的调制解调器, 其特征 在于,
所述接收单元, 还用于接收所述服务器发送的回复数据包, 所述 回复数据包是所述服务器对所述第一数据解析后生成的;
所述处理单元,还用于若所述回复数据包中的终端标识与终端标 识相同, 则对所述接收单元中的所述回复数据包进行解析, 获得回复 数据; 若所述回复数据符合数据特征, 则进入休眠状态;
其中,所述预处理信息还包括与所述调制解调器对应的终端设备 的终端标识和数据特征, 所述数据特征为预期的所述服务器对所述第 一数据回复的数据的特征。
1 6、 根据权利要求 1 5所述的调制解调器, 其特征在于, 所述发送单元,还用于若所述回复数据包中的终端标识与所述终 端标识不同, 则向所述 AP发送所述接收单元中的所述回复数据包。
1 7、 根据权利要求 1 5所述的调制解调器, 其特征在于, 所述处理单元, 还用于若所述回复数据不符合所述数据特征, 则 生成所述应用的第一异常信息;
所述发送单元, 还用于向所述 AP发送所述处理单元中的所述第 一异常信息。
18、 根据权利要求 11至 14 中任一项所述的调制解调器, 其特征 在于,
所述处理单元,还用于若在预置时间内未收到所述服务器发送的 回复数据包, 则生成所述应用的第二异常信息;
所述发送单元, 还用于向所述 AP发送所述处理单元中的所述第 二异常信息, 所述回复数据包是所述服务器对所述第一数据解析后生 成的。
19、 一种终端设备, 其特征在于, 所述终端设备包含权利要求 10至 18 中任一项所述的调制解调器, 以及与所述调制解调器相连的 应用处理器 AP。
PCT/CN2014/082959 2014-07-24 2014-07-24 数据收发方法、调制解调器及终端设备 WO2016011648A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP14898260.6A EP3110211B1 (en) 2014-07-24 2014-07-24 Data transceiving method, modem and terminal device
CN201480029119.XA CN105453659B (zh) 2014-07-24 2014-07-24 数据收发方法、调制解调器及终端设备
PCT/CN2014/082959 WO2016011648A1 (zh) 2014-07-24 2014-07-24 数据收发方法、调制解调器及终端设备
US15/128,091 US10028216B2 (en) 2014-07-24 2014-07-24 Data transceiving method, modem, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/082959 WO2016011648A1 (zh) 2014-07-24 2014-07-24 数据收发方法、调制解调器及终端设备

Publications (1)

Publication Number Publication Date
WO2016011648A1 true WO2016011648A1 (zh) 2016-01-28

Family

ID=55162446

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082959 WO2016011648A1 (zh) 2014-07-24 2014-07-24 数据收发方法、调制解调器及终端设备

Country Status (4)

Country Link
US (1) US10028216B2 (zh)
EP (1) EP3110211B1 (zh)
CN (1) CN105453659B (zh)
WO (1) WO2016011648A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109936588B (zh) * 2017-12-15 2021-08-31 华为技术有限公司 一种物联网数据传输方法、设备及***
CN111654900B (zh) * 2020-05-29 2023-07-21 Oppo广东移动通信有限公司 一种射频指纹的上报控制方法及终端、存储介质
US11929934B2 (en) * 2022-04-27 2024-03-12 Mellanox Technologies, Ltd. Reliable credit-based communication over long-haul links

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547935A (zh) * 2011-12-23 2012-07-04 华为终端有限公司 一种控制便携式路由器低功耗工作的方法及便携式路由器
WO2013170896A1 (en) * 2012-05-16 2013-11-21 Sony Mobile Communications Ab Discontinuous traffic in a telecommunication network using terminal suggested drx/dtx pattern
CN103813421A (zh) * 2012-11-08 2014-05-21 中兴通讯股份有限公司 一种智能移动终端节电方法及智能移动终端
CN103843418A (zh) * 2013-10-29 2014-06-04 华为终端有限公司 一种业务代理的方法、调制解调器及终端

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005184278A (ja) * 2003-12-17 2005-07-07 Ntt Docomo Inc 端末管理方法、端末管理装置、携帯通信端末
US8160000B2 (en) 2006-06-08 2012-04-17 Qualcomm Incorporated Achieving power savings through packet grouping
US9521625B2 (en) * 2008-09-15 2016-12-13 Apple Inc. Electronic devices for receiving pushed data
CN102036349B (zh) * 2009-09-29 2015-03-25 联想(北京)有限公司 维持终端和网络服务器连接的方法、终端及网络服务器
CN101714991B (zh) * 2009-10-30 2012-06-20 清华大学 心跳机制的实现方法
KR101557843B1 (ko) * 2011-03-18 2015-10-06 퀄컴 인코포레이티드 네트워크 액세스 요청들의 관리
KR101828295B1 (ko) * 2011-08-30 2018-02-13 삼성전자 주식회사 단말 및 그 단말에서 애플리케이션 관리 방법
US8307234B2 (en) * 2012-01-14 2012-11-06 Intel Corporation Maintaining connectivity during low power operation
CN103209089B (zh) 2012-01-17 2016-06-08 华为技术有限公司 心跳周期的获取方法及终端、服务器
US9832035B2 (en) * 2012-11-19 2017-11-28 Arris Enterprises Llc Power saving mode for network devices
CN104093123B (zh) * 2013-06-09 2016-06-22 腾讯科技(深圳)有限公司 应用程序的信息推送方法、装置和***、移动终端
WO2015032048A1 (zh) * 2013-09-05 2015-03-12 展讯通信(上海)有限公司 一种移动终端内部通信方法
US10154106B2 (en) * 2013-11-28 2018-12-11 Huawei Device (Dongguan) Co., Ltd. Method for sending heartbeat message and mobile terminal
CN105392187A (zh) * 2014-09-04 2016-03-09 中兴通讯股份有限公司 一种即时通讯应用程序管理方法、装置及其移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547935A (zh) * 2011-12-23 2012-07-04 华为终端有限公司 一种控制便携式路由器低功耗工作的方法及便携式路由器
WO2013170896A1 (en) * 2012-05-16 2013-11-21 Sony Mobile Communications Ab Discontinuous traffic in a telecommunication network using terminal suggested drx/dtx pattern
CN103813421A (zh) * 2012-11-08 2014-05-21 中兴通讯股份有限公司 一种智能移动终端节电方法及智能移动终端
CN103843418A (zh) * 2013-10-29 2014-06-04 华为终端有限公司 一种业务代理的方法、调制解调器及终端

Also Published As

Publication number Publication date
EP3110211A4 (en) 2017-05-31
EP3110211B1 (en) 2018-09-19
CN105453659B (zh) 2019-06-21
US20170094593A1 (en) 2017-03-30
EP3110211A1 (en) 2016-12-28
US10028216B2 (en) 2018-07-17
CN105453659A (zh) 2016-03-30

Similar Documents

Publication Publication Date Title
CN109769309B (zh) 一种非连续监听的方法、设备及计算机可读存储介质
EP4120774A1 (en) Downlink transmission in a ran inactive mode
US9568989B2 (en) Method for acting as service agent, modem, and terminal by establishing a heartbeat connection with an application server
CN109964528A (zh) 用于缩短的传输时间间隔和处理时间的非连续接收的方法、设备和***
EP3013114B1 (en) Method for sending heartbeat message and mobile terminal
CN109219116A (zh) 一种终端设备的休眠方法及装置
EP3334217B1 (en) Data transmission method, terminal and ran device
CN107135534B (zh) 用于无线局域网的通信方法和装置
TWI388169B (zh) Wireless communication device and its power saving method
JP2015505110A (ja) 低電力動作中の接続の維持
TW201220915A (en) Method of applying discontinuous reception operation and related communication device
CN113596963B (zh) 通信方法及装置
TW201943226A (zh) 信號傳輸的方法和設備
WO2016011648A1 (zh) 数据收发方法、调制解调器及终端设备
WO2022206620A1 (zh) 一种非授权频谱中的同步方法和装置
CN107682267B (zh) Linux设备的网络数据转发方法及***
CN109922537B (zh) 无线模块及其实现方法
WO2022028551A1 (zh) 一种通信方法、装置及计算机可读存储介质
CN108391325B (zh) 管理无线连接的方法、装置及终端
EP3403388B1 (en) Synchronized connection closing
CN114007233A (zh) 缓存状态报告bsr上报方法、装置和电子设备
US10390302B2 (en) Data scheduling method and apparatus
CN104541553B (zh) 用于无线电资源控制的方法和设备
US10972442B1 (en) Distributed predictive packet quantity threshold reporting
CN108064087B (zh) Drx周期配置方法、终端、接入网设备及存储介质

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480029119.X

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14898260

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014898260

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014898260

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 15128091

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE