[go: up one dir, main page]

CN107508882A - A kind of method of data transfer, relevant apparatus and storage medium - Google Patents

A kind of method of data transfer, relevant apparatus and storage medium Download PDF

Info

Publication number
CN107508882A
CN107508882A CN201710717481.1A CN201710717481A CN107508882A CN 107508882 A CN107508882 A CN 107508882A CN 201710717481 A CN201710717481 A CN 201710717481A CN 107508882 A CN107508882 A CN 107508882A
Authority
CN
China
Prior art keywords
network state
terminal
server
message
transmitted
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.)
Granted
Application number
CN201710717481.1A
Other languages
Chinese (zh)
Other versions
CN107508882B (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201710717481.1A priority Critical patent/CN107508882B/en
Publication of CN107508882A publication Critical patent/CN107508882A/en
Application granted granted Critical
Publication of CN107508882B publication Critical patent/CN107508882B/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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of data transmission method, for reducing the flow of terminal user's waste.The embodiment of the present application method includes:The message to be transmitted at least one default application program that second terminal is installed is received by server;Whether the current network state that first terminal is judged by the server is first network state;If the current network state of the first terminal is first network state, control server does not send the message to be transmitted to the first terminal;If detect the current network state of the first terminal from first network Status Change be the second network state, the message to be transmitted is then sent to the first terminal by the server, wherein, the first network state and the second network state have carried out the state of network connection all referring to first terminal and server.Reach the effect for reducing terminal user's flow by such scheme.

Description

Data transmission method, related device and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a method for data transmission, a related apparatus, and a storage medium.
Background
At present, with the continuous development and popularization of mobile internet technology and application software technology, it has become a habit of users to communicate in work and life through instant messaging chat tools such as QQ and wechat.
Users now often chat using instant messaging chat tools such as WeChat, QQ, etc., sometimes users may join very many group chats, and in some cases where group chats are not important but do not wish to exit, users generally choose to mask group messages from disturbing reminders.
However, if a user chats with a terminal, and if the terminal is in a mobile network state, even if the new message of the group that is set by shielding does not appear, the terminal will still continuously receive the new message in the group, thereby wasting the traffic of the user. Thus causing some waste of traffic to the end user.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a related device and a storage medium, which are used for reducing waste of end user flow.
In view of this, a first aspect of the embodiments of the present application provides a data transmission method, including:
receiving a message to be transmitted of at least one preset application program installed in a second terminal through a server; judging whether the current network state of the first terminal is a first network state or not through the server; if the current network state of the first terminal is a first network state, the control server does not send the message to be transmitted to the first terminal; and if the current network state of the first terminal is detected to be changed from the first network state to the second network state, sending the message to be transmitted to the first terminal through the server, wherein the first network state and the second network state are both the states of network connection between the first terminal and the server.
Based on the first aspect, embodiments of the present application further provide a first implementation manner of the first aspect:
receiving, by the server, network state switching information sent by the first terminal, where the network state switching information is generated when a network state of the first terminal is changed; judging whether the network state switching information is matched with a first network state through the server;
or,
acquiring a network state message sent by the first terminal according to a preset acquisition period through the server, wherein the network state message is used for indicating the current network state of the first terminal; determining, by the server, whether the network status message matches the first network status.
Based on the first aspect or the first implementation manner of the first aspect, embodiments of the present application further provide a second implementation manner of the first aspect:
periodically detecting whether the current network state of the terminal is changed from a first network state to a second network state; and if the current network state of the terminal is detected to be changed from the first network state to the second network state, the message to be transmitted is sent to the terminal through the server.
Based on the first aspect, or the first implementation manner of the first aspect, or the second implementation manner of the first aspect, the present application provides an example of a third implementation manner of the first aspect:
the message to be transmitted contains preset keywords; or the message to be transmitted contains preset image content; or, the message to be transmitted contains a preset identifier; or the message to be transmitted is a message sent by a preset contact person; or the message to be transmitted is a message sent by a preset group; or the message to be transmitted is an electronic red packet message; or a combination thereof.
A second aspect of the present application provides a data transmission method, including:
judging whether the current network state of the first terminal is a first network state; if the current network state of the first terminal is the first network state, controlling the first terminal not to receive the message to be transmitted of at least one preset application program sent by the server; the first network state and the second network state refer to the state of connection between the first terminal and the server; and if the current network state of the first terminal is detected to be changed from the first network state to the second network state, controlling the first terminal to receive a message to be transmitted of at least one preset application program sent by the server, wherein the first network state and the second network state refer to the state of network connection between the first terminal and the server.
Based on the second aspect, the embodiments of the present application further provide a first implementation manner of the second aspect:
the control terminal receives the messages to be transmitted which meet preset conditions in the messages to be transmitted of at least one preset application program sent by the server.
A third aspect of the present application provides an apparatus for data transmission, including:
the receiving unit is used for receiving a message to be transmitted of at least one preset application program installed in the second terminal through the server;
the judging unit is used for judging whether the current network state of the first terminal is a first network state or not through the server;
a sending unit, configured to control the server not to send the message to be transmitted to the first terminal when the current network state of the first terminal is a first network state;
the sending unit is further configured to send the message to be transmitted to the first terminal through the server when it is detected that the current network state of the first terminal is changed from a first network state to a second network state, where the first network state and the second network state both refer to a state in which the first terminal and the server have performed network connection.
Based on the third aspect, the embodiments of the present application further provide a first implementation manner of the third aspect:
a receiving unit, configured to receive network state switching information sent by the first terminal, where the network state switching information is information generated when a network state of the first terminal is changed;
the judging unit is further used for judging whether the network state switching information is matched with the first network state through the server according to the network state switching information; or,
an obtaining unit, configured to obtain, by the server according to a preset period, a network status message sent by the first terminal, where the network status message is used to indicate a current network status of the first terminal;
the judging unit is further configured to judge, by the server, whether the network state message acquired by the acquiring unit matches the first network state.
Based on the third aspect or the first implementation manner of the third aspect, the present application provides a second implementation manner of the third aspect:
a detecting unit, configured to periodically detect whether a current network state of the first terminal is changed from a first network state to a second network state;
the sending unit is further configured to send the message to be transmitted to the first terminal through the server when the detecting unit detects that the current network state of the first terminal is changed from the first network state to the second network state.
Based on the third aspect, or the first implementation manner of the third aspect, or the second implementation manner of the third aspect, the present application provides a third implementation manner of the third aspect:
the message to be transmitted meets the preset conditions, and the method comprises the following steps:
the message to be transmitted contains preset keywords; or,
the message to be transmitted comprises preset image content; or,
the message to be transmitted comprises a preset identifier; or,
the message to be transmitted is a message sent by a preset contact person; or,
the message to be transmitted is a message sent by a preset group; or,
the message to be transmitted is an electronic red packet message; or,
combinations of the above.
A fourth aspect of the present application provides a data transmission apparatus, including:
the judging unit is used for judging whether the current network state of the first terminal is a first network state;
the control unit is used for controlling the first terminal not to receive the message to be transmitted of at least one preset application program sent by the server when the current network state of the first terminal is the first network state; the first network state and the second network state refer to the state of connection between the first terminal and the server;
the receiving unit is used for controlling the first terminal to receive a message to be transmitted of at least one preset application program sent by the server when the current network state of the first terminal is detected to be changed from the first network state to the second network state, wherein the first network state and the second network state refer to the state that the first terminal and the server are in network connection.
Based on the fourth aspect, the embodiments of the present application further provide the first implementation manner of the fourth aspect:
and the receiving unit is used for controlling the terminal to receive the message to be transmitted which meets the preset conditions in the message to be transmitted of at least one preset application program sent by the server.
A fifth aspect of embodiments of the present application provides a computer program product, where the computer program product includes computer software instructions, and the computer software instructions are loadable by a processor to implement a flow in the data transmission method of any one of the first aspect and the second aspect.
A sixth aspect of the embodiments of the present application provides a computer storage medium for storing computer software instructions for the data transmission apparatus, which includes a program designed to execute the data transmission apparatus.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the technical scheme, a message to be transmitted of at least one preset application program installed on a second terminal is received through a server. And after receiving the first network state, judging the current network state of the first terminal, and judging whether the first terminal is in the first network state. And if the terminal is in the first network state, the control server does not send the information to be transmitted to the first terminal. And if the network state of the first terminal is detected to be changed from the first network state to the second network state, the control server sends the message to be transmitted to the first terminal. When the terminal is in the first network state, the message to be transmitted is not sent to the terminal, so that the terminal does not need to receive the message, thereby wasting the flow. When the terminal is changed from the first network state to the second network state, the terminal does not need to consume the flow of the terminal to be transmitted when receiving the message to be transmitted, so that the waste of the flow of a terminal user can be reduced.
Drawings
FIG. 1 is a schematic view of a scenario of an embodiment of the present application;
fig. 2 is an embodiment of a data transmission method in an embodiment of the present application;
fig. 3 is another embodiment of a data transmission method in the embodiment of the present application;
fig. 4 is another embodiment of a data transmission method in the embodiment of the present application;
fig. 5 is another embodiment of a data transmission method in the embodiment of the present application;
FIG. 6 is a diagram of an embodiment of a data transmission device according to an embodiment of the present application;
FIG. 7 is another embodiment of a data transmission apparatus according to an embodiment of the present application;
fig. 8 is another embodiment of a data transmission apparatus according to an embodiment of the present application;
fig. 9 is another embodiment of a data transmission apparatus according to an embodiment of the present application;
fig. 10 is another embodiment of the data transmission device in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a data transmission method, a related device and a storage medium, which are used for reducing waste of user traffic.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As shown in fig. 1, fig. 1 is a schematic diagram of three-party information interaction between a first terminal, a second terminal, and a server, and an exemplary description is given below.
101. And the second terminal sends the message to be transmitted.
At least one preset application installed on the second terminal generates a message to be transmitted, such as an instant messaging chat application program of QQ, WeChat and the like, and after a user shields a group in the instant messaging chat application program of QQ, WeChat and the like, the shielding group transmits the message generated by the shielding group to the server.
102. When the first terminal is in the first network state, the server does not send the message to be transmitted to the first terminal.
And after receiving the message to be transmitted, the server judges the network state of the first terminal. And if the current network state of the first terminal is the first network state, the server does not send the received message to be transmitted to the first terminal.
103. The first terminal transmits the network status.
The first terminal sends the network state of the first terminal to the server. And after receiving the network state sent by the first terminal, the server detects the first network state.
104. It is detected whether the network status of the first terminal changes to the second network status.
And if the network state of the first terminal is changed from the first network state to the second network state, the server sends the message to be transmitted to the first terminal.
105. And when the first terminal is in the second network state, sending the message to be transmitted.
And when the network state of the first terminal is changed to the second network state, the server sends the message to be transmitted to the first terminal. The second network state is a network state that does not require the user to move data, such as a Wireless-Fidelity (Wi-Fi) network state. When the network state of the terminal is changed into the Wi-Fi network state, the terminal does not need to consume the flow of the terminal when receiving the message, and therefore waste of the flow of a terminal user can be reduced.
It should be noted that, in this scheme, the first network state of the first terminal refers to a network state that requires the user to spend mobile data, for example, a mobile data network state of a mobile phone or a mobile phone's mobile data network stateGeneral packet radio service(English: General Packet Radio Service, abbreviated as GPRS) or 3G or 4G. That is, the first network state in the scheme refers to the mobile data network state in particular. The second network state is a network state that does not require the user to expend moving data, such as a Wi-Fi network state.
Meanwhile, it should be noted that, in the embodiment of the present application, the execution subject may be a server, but does not refer to a certain device or some devices specifically, and in practical applications, the execution subject may also be a network device that covers the performance of the server, such as a data transmission device, and is not limited herein.
For convenience of description, the following scheme implementation subject is explained as a data transmission device, which is a network device on the server side. Referring to fig. 2, an embodiment of a method for data transmission in the embodiment of the present application includes:
201. and receiving the message to be transmitted of at least one preset application program installed in the second terminal through the server.
The data transmission device receives a message to be transmitted of at least one preset application program installed on the second terminal, such as instant messaging chat application programs including QQ, WeChat and the like, through the server, when a user shields groups in the instant messaging chat application programs including QQ, WeChat and the like, the shielding groups send the message generated by the shielding groups to the server, and the server receives the message to be transmitted of the shielding groups and stores the message on the server. The server is used for connecting and applying to the first terminal and the second terminal.
202. And judging whether the current network state of the first terminal is the first network state or not through the server.
The data transmission device judges whether the current network state of the terminal is the first network state through a built-in server. The first network state is a mobile data network state, for example, a GPRS or 3G or 4G internet access mode state of a mobile phone. In the prior art, whether a terminal is in a first network state or not, a message to be transmitted is sent to the terminal, and if the terminal is in the first network state, the mobile data traffic of the terminal itself needs to be consumed when the message is received, so that certain waste is caused to the traffic of a terminal user. If the terminal is not in the first network state, the terminal does not need to consume the mobile data traffic of the terminal itself when receiving the message. The traffic waste condition of the terminal user is reduced by judging the current network state of the terminal. If the first terminal is in the first network state, the data transmission apparatus executes step 203. If not, the data transmission apparatus executes step 204.
203. The control server does not send the message to be transmitted to the first terminal.
When the current network state of the first terminal is judged to be the first network state, the data transmission device controls the server not to send the received message to be transmitted to the first terminal and stores the message to be transmitted to the local, because the first network state is the mobile data network state and the self flow of the terminal needs to be consumed when the message is received. So that the terminal does not consume traffic reception messages in the first network state.
204. And sending the message to be transmitted to the first terminal through the server.
The data transmission device sets a preset period through the server, and then detects the current network state of the first terminal through the preset period. When the network state of the first terminal is changed from the first network state to the second network state, the data transmission device controls the server to transmit the message to be transmitted to the first terminal. The second network state is a network state that does not require the expenditure of user mobile data, such as a Wi-Fi network state. When the network state of the terminal is changed into the Wi-Fi network state, the terminal does not need to consume the flow of the terminal when receiving the message, and therefore waste of the flow of a terminal user can be reduced.
Optionally, when the data transmission device determines that the terminal is not in the first network state through the server, the data transmission device may also control the server to send the message to be transmitted to the terminal. When the terminal is not in the first network state, that is, the terminal is not in the state of using the mobile data network, the traffic of the terminal does not need to be consumed when the message to be transmitted is received.
In the embodiment of the application, a message to be transmitted sent by the second terminal is received first, and then the current network state of the first terminal is judged, and when the first terminal is in the first network state, the message to be transmitted is not sent to the first terminal. And if the first terminal is changed from the first network state to the second network state, the data transmission device sends the message to be transmitted to the first terminal through the server. By judging the network state of the first terminal and then operating the message to be transmitted, the waste of user flow is reduced.
It should be noted that, the above-mentioned determining whether the current network state of the first terminal is the first network state may be determined in different manners, and a first possible implementation manner is described below:
and receiving network state switching information sent by the terminal through the server, and judging whether the current network state of the terminal is the first network state according to the network state switching information to determine. Referring to fig. 3, another embodiment of the method for data transmission in the embodiment of the present application includes:
301. and receiving the message to be transmitted of at least one preset application program installed in the second terminal through the server.
Step 301 in the embodiment of the present application is similar to step 201 in the embodiment described above, and details are not repeated here.
302. And receiving the network switching state information sent by the first terminal through the server.
When the network state of the first terminal is changed, the first terminal sends network state switching information to the server, and the data transmission device receives the network state switching information through the server. The network state switching information is information generated when the network state of the first terminal is changed. And judging the network state of the first terminal by receiving the network state switching information.
303. And judging whether the current network state of the first terminal is the first network state or not through the server according to the network state switching information.
The network state switching information is information generated when the network state of the first terminal is changed. For example, the first terminal may generate the network state switching information when changing from the other network state to the first network state or from the first network state to the other network state. And the data transmission device judges the current network state of the first terminal through the server according to the sent network state switching information and judges whether the current network state of the terminal is in the first network state. If the current network status of the first terminal is the first network status, step 304 is executed. If the current network status of the first terminal is not the first network status, step 306 is executed.
304. The control server does not send the message to be transmitted to the first terminal.
Step 304 in the present embodiment is similar to step 203 in the above embodiments, and details thereof are not repeated here.
305. And sending the message to be transmitted to the first terminal through the server.
The data transmission device sets a preset period through the server, and then detects the current network state of the first terminal through the preset period. When the network state of the first terminal is changed from the first network state to the second network state, the data transmission device controls the server to send the message to be transmitted meeting the preset condition to the first terminal. The second network state is a network state that does not require the expenditure of user mobile data, such as a Wi-Fi network state. When the network state of the terminal is changed into the Wi-Fi network state, the terminal does not need to consume the flow of the terminal when receiving the message, and therefore waste of the flow of a terminal user can be reduced.
The message to be transmitted meeting the preset condition may be the message to be transmitted including a preset keyword, a preset image content, a preset identifier, a message sent by a preset contact, a message sent by a preset group, an electronic red packet message, or a combination thereof. The electronic red envelope is a red envelope which is distributed to the user through a third-party payment tool such as a payment treasure and a WeChat.
Optionally, when the data transmission device determines that the terminal is not in the first network state through the server, the data transmission device may also control the server to send the message to be transmitted to the terminal. When the terminal is not in the first network state, that is, the terminal is not in the state of using the mobile data network, the traffic of the terminal does not need to be consumed when the message to be transmitted is received.
In the embodiment of the application, the data transmission device first receives a message to be transmitted sent by the second terminal, then judges whether the first terminal is in the first network state through the server according to the received network state switching information sent by the first terminal. And when the first terminal is in the first network state, the control server does not send the message to be transmitted to the terminal. If the first terminal is in the first network state and the network state is changed from the first network state to the second network state, whether the information to be transmitted meets the preset condition is judged, if the information to be transmitted meets the preset condition, the information to be transmitted is sent to the terminal, the second network state is the Wi-Fi data network state, the information to be transmitted is sent to the terminal, the traffic of a user cannot be wasted, and the information to be transmitted is sent to the first terminal after the information to be transmitted meets the preset condition. In this way, waste of user traffic is reduced.
It should be noted that, the above-mentioned determining whether the current network state of the first terminal is the first network state may also be determined in different manners, and a second possible implementation manner is described below:
the current network state sent by the first terminal is obtained through the server according to a preset period, and whether the obtained current network state is the first network state or not is judged through the server to determine. Referring to fig. 4, another embodiment of the method for data transmission in the embodiment of the present application includes:
401. and receiving the message to be transmitted of at least one preset application program installed in the second terminal through the server.
Step 401 in this embodiment is similar to step 201 in the above embodiment, and details thereof are not repeated here.
402. And acquiring the current network state sent by the first terminal according to a preset period through the server.
The data transmission device acquires the current network state of the first terminal according to a preset period through the server, and judges the acquired network state after acquiring the network state of the first terminal.
It should be noted that the preset period may be a manually input numerical value, or a numerical value generated by analyzing collected data, and is not limited herein.
403. And judging whether the acquired current network state is the first network state or not through the server.
The data transmission device acquires the current network state of the first terminal through the server, judges the acquired current network state through the server and judges whether the acquired current network state of the first terminal is in the first network state.
404. The control server does not send the message to be transmitted to the first terminal.
Step 404 in this embodiment is similar to step 203 in the above embodiment, and detailed description thereof is omitted here.
405. And sending the message to be transmitted to the first terminal through the server.
Step 405 in this embodiment is similar to step 305 in the above embodiment, and detailed description thereof is omitted here.
In the embodiment of the application, the data transmission device periodically acquires the network state of the first terminal through the server according to a preset period, and when the acquired network state of the first terminal is the first network state, the data transmission device controls the server not to send the message to be transmitted to the first terminal. If the first terminal is in the first network state and the network state is changed from the first network state to the second network state, whether the information to be transmitted meets the preset condition is judged, if the information to be transmitted meets the preset condition, the information to be transmitted is sent to the terminal, the second network state is the Wi-Fi data network state, the information to be transmitted is sent to the terminal, the traffic of a user cannot be wasted, and the information to be transmitted is sent to the first terminal after the information to be transmitted meets the preset condition. In this way, waste of user traffic is reduced.
For convenience of description, the following implementation scheme is explained in which the data transmission apparatus is on the first terminal side, and referring to fig. 5, an embodiment of the data transmission method in the embodiment of the present application includes:
501. and judging whether the current network state of the first terminal is the first network state.
The data transmission device judges whether the current network state of the terminal is the first network state. The first network state is a mobile data network state, for example, a GPRS or 3G or 4G internet access mode state of a mobile phone. In the prior art, whether a terminal is in a first network state or not, a message to be transmitted is sent to the terminal, and if the terminal is in the first network state, the mobile data traffic of the terminal itself needs to be consumed when the message is received, so that certain waste is caused to the traffic of a terminal user. If the terminal is not in the first network state, the terminal does not need to consume the mobile data traffic of the terminal itself when receiving the message. The traffic waste condition of the terminal user is reduced by judging the current network state of the terminal. If the current network state of the terminal is the first network state, step 502 is executed, and if the current network state of the terminal is not the first network state, step 503 is executed.
502. And controlling the first terminal not to receive the message to be transmitted sent by the server.
When the current network state of the first terminal is judged to be the first network state, the first network state is the mobile data network state, and the flow of the terminal is consumed when the message is received, so that the data transmission device can control the first terminal not to receive the message to be transmitted sent by the server and store the message to be transmitted to the server. So that the terminal does not consume traffic reception messages in the first network state.
503. And controlling the first terminal to receive the message to be transmitted sent by the server.
The data transmission device sets a preset period through the server, and then detects the current network state of the first terminal through the preset period. When the network state of the first terminal is changed from the first network state to the second network state, the data transmission device controls the server to transmit the message to be transmitted to the first terminal. The second network state is a network state that does not require the expenditure of user mobile data, such as a Wi-Fi network state. When the network state of the terminal is changed into the Wi-Fi network state, the terminal does not need to consume the flow of the terminal when receiving the message, and therefore waste of the flow of a terminal user can be reduced.
Optionally, when the data transmission device determines that the terminal is not in the first network state through the server, the data transmission device may also control the server to send the message to be transmitted to the terminal. When the terminal is not in the first network state, that is, the terminal is not in the state of using the mobile data network, the traffic of the terminal does not need to be consumed when the message to be transmitted is received.
In the embodiment of the application, the data transmission device determines the current network state of the first terminal, and when the current network state of the first terminal is the first network state, the control server does not send the message to be transmitted to the first terminal. If the first terminal is in the first network state and the network state is changed from the first network state to the second network state, whether the information to be transmitted meets the preset condition is judged, if the information to be transmitted meets the preset condition, the information to be transmitted is sent to the terminal, the second network state is the WI-FI data network state, the information to be transmitted is sent to the terminal, the traffic of a user is not wasted, and the information to be transmitted is sent to the first terminal after the information to be transmitted meets the preset condition. In this way, waste of user traffic is reduced.
With reference to fig. 6, the data transmission method in the embodiment of the present application is described above, and the following describes the apparatus in the embodiment of the present application, where an embodiment of the data transmission apparatus in the embodiment of the present application includes:
a receiving unit 601, configured to receive, through a server, a message to be transmitted of at least one preset application installed in a second terminal;
a determining unit 602, configured to determine, by a server, whether a current network state of a first terminal is a first network state;
a sending unit 603, configured to control the server not to send the message to be transmitted to the first terminal when the current network state of the first terminal is a first network state;
the sending unit 603 is further configured to send the message to be transmitted to the first terminal through the server when it is detected that the current network state of the first terminal is changed from a first network state to a second network state, where the first network state and the second network state both refer to a state in which the first terminal and the server have performed network connection.
The detailed description of the functions of each unit in the embodiment of fig. 6 refers to the content described in the method for data transmission in the embodiment of fig. 2, and is not repeated here.
Referring to fig. 7, an embodiment of a data transmission apparatus in an embodiment of the present application includes:
a receiving unit 701, configured to receive network status switching information sent by the first terminal, where the network status switching information is information generated when a network status of the first terminal is changed;
a determining unit 702, configured to determine, by a server, whether a current network state of a first terminal is a first network state according to the network state switching information;
a sending unit 703, configured to control the server not to send the message to be transmitted to the first terminal when the current network state of the first terminal is the first network state;
a detecting unit 704, configured to periodically detect whether a current network state of the first terminal changes from a first network state to a second network state;
the sending unit 703 is further configured to send the message to be transmitted to the first terminal through the server when it is detected that the current network state of the first terminal is changed from a first network state to a second network state, where the first network state and the second network state both refer to a state in which the first terminal and the server have performed network connection.
The detailed description of the functions of each unit in the embodiment of fig. 7 refers to the content described in the method for data transmission in the embodiment of fig. 3, and is not repeated herein.
Referring to fig. 8, another embodiment of the data transmission apparatus in the embodiment of the present application includes:
an obtaining unit 801, configured to obtain, by the server according to a preset period, a current network state sent by the first terminal;
a determining unit 802, configured to determine, by the server, whether the current network state acquired by the acquiring unit is a first network state;
a sending unit 803, configured to control the server not to send the message to be transmitted to the first terminal when the current network state of the first terminal is the first network state;
a detecting unit 804, configured to periodically detect whether a current network state of the first terminal is changed from a first network state to a second network state;
the sending unit 803 is further configured to send, by the server, the to-be-transmitted message to the first terminal when it is detected that the current network state of the first terminal is changed from a first network state to a second network state, where the first network state and the second network state both refer to a state in which the first terminal and the server have performed network connection.
The detailed description of the functions of each unit in the embodiment of fig. 8 refers to the content described in the method for data transmission in the embodiment of fig. 4, and is not repeated herein.
Referring to fig. 9, another embodiment of the data transmission apparatus in the embodiment of the present application includes:
a determining unit 901, configured to determine whether a current network state of a first terminal is a first network state;
a control unit 902, configured to control the first terminal not to receive a to-be-transmitted message of at least one preset application sent by the server when a current network state of the first terminal is a first network state; the first network state and the second network state refer to the state of connection between the first terminal and the server;
a receiving unit 903, configured to control the first terminal to receive a to-be-transmitted message of at least one preset application program sent by the server when the detecting unit detects that the current network state of the first terminal is changed from the first network state to the second network state, where the first network state and the second network state both refer to a state in which the first terminal and the server have performed network connection.
The detailed description of the functions of each unit in the embodiment of fig. 9 refers to the content described in the method for data transmission in the embodiment of fig. 5, and is not repeated here.
In the above, the data transmission apparatus in the embodiment of the present application is described from the perspective of the modular functional entity, and in the following, the data transmission apparatus in the embodiment of the present application is described from the perspective of the hardware processing, please refer to fig. 10, and another embodiment of the data transmission apparatus in the embodiment of the present application includes:
the data transmission device in the embodiment of the present application may also be embodied in another form. Referring to fig. 10, the data transmission device of this embodiment includes: a processor 1001, a memory 1002, a transceiver 1003, said processor 1001, said memory 1002 and said transceiver 1003 being connected by a bus 1004, the transceiver 1003 may comprise a transmitter and a receiver, said memory 1002 storing computer programs, e.g. programs for data transmission. The processor 1001, when executing the computer program, implements the steps in the above-mentioned method embodiment of data transmission, such as the steps 201 and 204 shown in fig. 2. Alternatively, the processor 1001, when executing the computer program, implements the functions of each module/unit in each device embodiment described above, such as a determination unit, a reception unit, and the like.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the data transmission device. For example, the computer program may be divided into a receiving unit, a determining unit, and a transmitting unit, and the specific functions of the modules are as follows:
the receiving unit is used for receiving a message to be transmitted of at least one preset application program installed in the second terminal through the server;
the judging unit is used for judging whether the current network state of the terminal is a first network state;
a sending unit, configured to control the server not to send the message to be transmitted to the first terminal when the current network state of the first terminal is a first network state;
the data transmission device can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The data transmission device may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of a data transmission apparatus, and does not constitute a limitation of the data transmission apparatus, and may include more or less components than those shown, or combine some components, or different components, for example, the data transmission apparatus may further include an input-output device, a network access device, a bus, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is the control center of the data transmission apparatus and that connects the various parts of the overall multiple data transmission apparatus using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the apparatus for establishing communications by running or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modules/units integrated with the data transmission device may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a 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 stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned 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 other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A data transmission method is applied to a server connected with a first terminal and a second terminal, and is characterized by comprising the following steps:
receiving a message to be transmitted of at least one preset application program installed in a second terminal through a server;
judging whether the current network state of the first terminal is a first network state or not through the server;
if the current network state of the first terminal is a first network state, the control server does not send the message to be transmitted to the first terminal;
and if the current network state of the first terminal is detected to be changed from the first network state to the second network state, sending the message to be transmitted to the first terminal through the server, wherein the first network state and the second network state are both the states of network connection between the first terminal and the server.
2. The data transmission method according to claim 1, wherein the determining, by the server, whether the current network state of the first terminal is the first network state includes:
receiving, by the server, network state switching information sent by the first terminal, where the network state switching information is generated when a network state of the first terminal is changed;
judging whether the network state switching information is matched with a first network state through the server;
or,
acquiring a network state message sent by the first terminal according to a preset acquisition period through the server, wherein the network state message is used for indicating the current network state of the first terminal;
determining, by the server, whether the network status message matches the first network status.
3. The data transmission method according to any one of claims 1 to 2, wherein the sending, by the server, the message to be transmitted to the first terminal if it is detected that the current network state of the first terminal is changed from a first network state to a second network state, includes:
periodically detecting whether the current network state of the first terminal is changed from a first network state to a second network state;
and if the current network state of the first terminal is detected to be changed from the first network state to the second network state, the message to be transmitted is sent to the first terminal through the server.
4. The data transmission method according to claim 3, wherein sending the message to be transmitted to the first terminal through the server comprises:
sending the messages to be transmitted meeting preset conditions in the messages to be transmitted to the first terminal through the server;
the message to be transmitted meeting the preset condition comprises the following steps:
the message to be transmitted contains preset keywords; or,
the message to be transmitted comprises preset image content; or,
the message to be transmitted comprises a preset identifier; or,
the message to be transmitted is a message sent by a preset contact person; or,
the message to be transmitted is a message sent by a preset group; or,
the message to be transmitted is an electronic red packet message; or,
combinations of the above.
5. A data transmission method is applied to a first terminal connected with a server, wherein the server is used for receiving a message to be transmitted of at least one preset application program installed in a second terminal; the data transmission method is characterized by comprising the following steps:
judging whether the current network state of the first terminal is a first network state;
if the current network state of the first terminal is the first network state, controlling the first terminal not to receive the message to be transmitted of at least one preset application program sent by the server; the first network state and the second network state refer to the state of connection between the first terminal and the server;
and if the current network state of the first terminal is detected to be changed from the first network state to the second network state, controlling the first terminal to receive a message to be transmitted of at least one preset application program sent by the server, wherein the first network state and the second network state refer to the state of network connection between the first terminal and the server.
6. The data transmission method according to claim 5, wherein the receiving, by the control terminal, the message to be transmitted of at least one preset application program sent by the server comprises:
the control terminal receives the messages to be transmitted which meet preset conditions in the messages to be transmitted of at least one preset application program sent by the server.
7. A data transmission device is applied to a first terminal connected with a server, wherein the server is used for receiving a message to be transmitted of at least one preset application program installed in a second terminal; it is characterized by comprising:
the judging unit is used for judging whether the current network state of the first terminal is a first network state;
the control unit is used for controlling the first terminal not to receive the message to be transmitted of at least one preset application program sent by the server when the current network state of the first terminal is the first network state; the first network state and the second network state refer to the state of connection between the first terminal and the server;
the control unit is further configured to control the first terminal to receive a to-be-transmitted message of at least one preset application program sent by the server when it is detected that the current network state of the first terminal is changed from the first network state to the second network state, where the first network state and the second network state both refer to a state in which the first terminal and the server have performed network connection.
8. The data transmission apparatus according to claim 7, wherein the control unit includes:
and the receiving unit is used for controlling the terminal to receive the message to be transmitted which meets the preset conditions in the message to be transmitted of at least one preset application program sent by the server.
9. A computer arrangement, characterized in that the computer arrangement comprises a processor for implementing the steps of the data transmission method according to any one of claims 1 to 4 or 5 to 6 when executing a computer program stored in a memory.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when being executed by a processor, carries out the steps of the data transmission method according to any one of claims 1 to 4 or 5 to 6.
CN201710717481.1A 2017-08-18 2017-08-18 Data transmission method, related device and storage medium Active CN107508882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710717481.1A CN107508882B (en) 2017-08-18 2017-08-18 Data transmission method, related device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710717481.1A CN107508882B (en) 2017-08-18 2017-08-18 Data transmission method, related device and storage medium

Publications (2)

Publication Number Publication Date
CN107508882A true CN107508882A (en) 2017-12-22
CN107508882B CN107508882B (en) 2021-03-19

Family

ID=60691549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710717481.1A Active CN107508882B (en) 2017-08-18 2017-08-18 Data transmission method, related device and storage medium

Country Status (1)

Country Link
CN (1) CN107508882B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112512016A (en) * 2021-02-05 2021-03-16 智道网联科技(北京)有限公司 Data transmission method, device and system based on intelligent traffic and storage medium
CN113593186A (en) * 2021-05-17 2021-11-02 浙江建微科技有限公司 Multi-device landslide monitoring data processing method and device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638358A (en) * 2012-03-27 2012-08-15 上海量明科技发展有限公司 Method for performing finite shield by aiming at group message, client and system
CN104202343A (en) * 2014-09-26 2014-12-10 酷派软件技术(深圳)有限公司 Data transmission method, data transmission device and data transmission system
KR20150109298A (en) * 2014-03-19 2015-10-01 주식회사 하이퍼솔루션 Method for control continuous data distribution between femto cell and wifi
CN105025535A (en) * 2014-04-21 2015-11-04 中国移动通信集团设计院有限公司 A method, device and wireless communication terminal for switching access network
CN105554819A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Data transmission method and device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638358A (en) * 2012-03-27 2012-08-15 上海量明科技发展有限公司 Method for performing finite shield by aiming at group message, client and system
KR20150109298A (en) * 2014-03-19 2015-10-01 주식회사 하이퍼솔루션 Method for control continuous data distribution between femto cell and wifi
CN105025535A (en) * 2014-04-21 2015-11-04 中国移动通信集团设计院有限公司 A method, device and wireless communication terminal for switching access network
CN104202343A (en) * 2014-09-26 2014-12-10 酷派软件技术(深圳)有限公司 Data transmission method, data transmission device and data transmission system
CN105554819A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Data transmission method and device and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112512016A (en) * 2021-02-05 2021-03-16 智道网联科技(北京)有限公司 Data transmission method, device and system based on intelligent traffic and storage medium
CN113593186A (en) * 2021-05-17 2021-11-02 浙江建微科技有限公司 Multi-device landslide monitoring data processing method and device and readable storage medium

Also Published As

Publication number Publication date
CN107508882B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
US11240159B2 (en) Service link selection control method and device
CN106954225B (en) wireless roaming method and device and wireless equipment
CN107295594A (en) Network switching method, device and mobile terminal
CN110601977A (en) Configuration method and device of routing strategy and storage medium
CN105389175A (en) Application program sharing method and mobile terminal
CN110190871B (en) Method for controlling interference between antennas, electronic device and storage medium
US20200004614A1 (en) Broadcast Transmission Method, Terminal, and Storage Medium
CN107508882B (en) Data transmission method, related device and storage medium
CN110087226B (en) Flow statistical method and device, storage medium and electronic device
CN106953852B (en) Registration method, device and terminal device for broadcast receiver
US10536393B2 (en) Mail obtaining method, terminal, and system
CN107707449A (en) A kind of method of data transfer, relevant apparatus and storage medium
CN114285906B (en) Message processing method and device, electronic equipment and storage medium
EP3373137B1 (en) Method, apparatus and terminal device for sending broadcast
CN106874131A (en) Broadcast queue's method of adjustment, device and terminal device
US9924497B2 (en) Method for transmitting signal in device-to-device proximity service, base station, and user equipment
CN115150898A (en) Terminal configuration deactivation method and device and communication equipment
CN108011941B (en) Content push method, device, server and storage medium
CN111371896A (en) A network acceleration method, terminal, and storage medium
CN106209463A (en) Problem feedback method, device and feedback server
CN114080043B (en) Resource transmission method and device and communication equipment
CN113973270B (en) Message sending, message receiving method, device and communication device
CN102172054A (en) Method and device for sending short messages
CN105656795A (en) Flow control method of virtual machine and physical machine
CN113905019B (en) Data transmission method, device, equipment and medium based on terminal address management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant