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
terminal
network state
message
transmitted
server
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

A kind of method of data transfer, relevant apparatus and storage medium
Technical field
The application is related to the communications field, more particularly to a kind of method of data transfer, relevant apparatus and storage medium.
Background technology
At present, with the continuous development and popularization of development of Mobile Internet technology and application software technology, it is by QQ, wechat etc. Shi Tongxin chat tool be operated and life in terms of communication contact into user one kind custom.
User is often chatted using the chat tool of the instant messagings such as wechat, QQ now, and sometimes user may Very more group chats can be added, some group chats are inessential but are unwilling again in the case of exiting, and user can be typically selected group Message screening disturbs in order to avoid causing to remind.
But if user when using terminal is chatted, if terminal is under mobile network's state, even if entering The new information for the group that shielding of having gone is set occurs without prompting, but terminal still can constantly receive the new information in group, from And cause to waste the situation of the flow of user.So as to cause certain waste to the flow of terminal user.
The content of the invention
The embodiment of the present application provides a kind of method of data transfer, relevant apparatus and storage medium, for reducing end The waste of end subscriber flow.
In view of this, the embodiment of the present application first aspect provides a kind of data transmission method, including:
The message to be transmitted at least one default application program that second terminal is installed is received by server;Pass through institute State server and judge whether the current network state of first terminal is first network state;If the current network of the first terminal State is first network state, then controls server not send the message to be transmitted to the first terminal;If detect institute State the current network state of first terminal from first network Status Change be the second network state, then by the server to institute State first terminal and send the message to be transmitted, wherein, the first network state and the second network state are whole all referring to first End has carried out the state of network connection with server.
Based in a first aspect, the embodiment of the present application also provides the first embodiment of first aspect:
The network state handover information of the first terminal transmission, the network state switching are received by the server Caused message when message changes for the network state of the first terminal;The network is judged by the server Whether state handover information matches with first network state;
Or
The network status messages of the first terminal transmission are obtained according to the default acquisition cycle by the server, it is described Network status messages are used for the current network state for indicating the first terminal;Network status messages are judged by the server Whether match with first network state.
Based in a first aspect, or first aspect the first embodiment, the embodiment of the present application additionally provides first aspect Second of embodiment:
Whether the current network state for periodically detecting the terminal is network-like for second from first network Status Change State;If detect the current network state of the terminal from first network Status Change be the second network state, by described Server sends the message to be transmitted to the terminal.
Based in a first aspect, or first aspect the first embodiment, or second of embodiment of first aspect, this Application embodiment additionally provides the third embodiment of first aspect:
Preset keyword is included in message to be transmitted;Or pre-set image content is included in message to be transmitted;Or treat Transmit in message comprising default mark;Or message to be transmitted is the message that default contact person sends;Or message to be transmitted To preset the message that group sends;Or message to be transmitted is electronics red packet message;Or above-mentioned combinations thereof.
The application second aspect provides a kind of data transmission method, including:
Whether the current network state for judging first terminal is first network state;If the current network state of first terminal For first network state, then the to be transmitted of first terminal not at least one default application program transmitted by the reception server is controlled Message;Wherein, the state that the first network state and the second network state are connected all referring to first terminal with server;If inspection It is the second network state that the current network state of first terminal, which is measured, from first network Status Change, then controls first terminal to receive The message to be transmitted of at least one default application program transmitted by server, wherein, the first network state and the second net Network state has carried out the state of network connection all referring to first terminal and server.
Based on second aspect, the embodiment of the present application additionally provides the first embodiment of second aspect:
Control and meet to preset in the message to be transmitted of at least one default application program transmitted by terminal the reception server The message to be transmitted of condition.
The application third aspect provides a kind of device of data transfer, including:
Receiving unit, for receiving the to be passed of at least one default application program for being installed of second terminal by server Defeated message;
Judging unit, for judging whether the current network state of first terminal is first network state by server;
Transmitting element, for when the current network state of the first terminal is first network state, controlling server The message to be transmitted is not sent to the first terminal;
The transmitting element is additionally operable to, when the current network state for detecting the first terminal becomes from first network state During more the second network state, the message to be transmitted is sent to the first terminal by the server, wherein, described the One network state and the second network state have carried out the state of network connection all referring to first terminal and server.
Based on the third aspect, the embodiment of the present application additionally provides the first embodiment of the third aspect:
Receiving unit, the network state handover information sent for receiving the first terminal, the network state switching Caused information when information changes for the network state of the first terminal;
The judging unit is additionally operable to, and judges network state by the server according to the network state handover information Whether handover information matches with first network state;Or
Acquiring unit, it is network-like transmitted by the first terminal for being obtained by the server according to predetermined period State message, the network status messages are used for the current network state for indicating the first terminal;
The judging unit is additionally operable to judge whether is network status messages that acquiring unit gets by the server Match with first network state.
Based on the first embodiment of the third aspect, or the third aspect, the embodiment of the present application additionally provides the third aspect Second of embodiment:
Detection unit, for whether periodically detecting the current network state of the first terminal from first network state It is changed to the second network state;
The transmitting element is additionally operable to, when detection unit detects the current network state of the first terminal from the first net When network Status Change is the second network state, the message to be transmitted is sent to the first terminal by server.
Based on second of embodiment of the first embodiment of the third aspect, or the third aspect, or the third aspect, sheet Application embodiment additionally provides the third embodiment of the third aspect:
The message to be transmitted meets preparatory condition, including:
Preset keyword is included in message to be transmitted;Or
Pre-set image content is included in message to be transmitted;Or
Default mark is included in message to be transmitted;Or
Message to be transmitted is the message that default contact person sends;Or
Message to be transmitted is the message that default group sends;Or
Message to be transmitted is electronics red packet message;Or
Above-mentioned combinations thereof.
The application fourth aspect provides a kind of data transmission device, including:
Judging unit, for judging whether the current network state of first terminal is first network state;
Control unit, for when the current network state of first terminal is first network state, control first terminal to be not The message to be transmitted of at least one default application program transmitted by the reception server;Wherein, the first network state and The state that two network states are connected all referring to first terminal with server;
Receiving unit, for when detect the current network state of first terminal from first network Status Change be the second net During network state, the message to be transmitted of at least one default application program transmitted by first terminal the reception server is controlled, 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.
Based on fourth aspect, the embodiment of the present application additionally provides the first embodiment of fourth aspect:
Receiving unit, for controlling at least one the to be transmitted of default application program transmitted by terminal the reception server to disappear Meet the message to be transmitted of preparatory condition in breath.
The aspect of the embodiment of the present application the 5th provides a kind of computer program product, and the computer program product includes calculating Machine software instruction, the computer software instructions can be loaded by processor to realize in above-mentioned first aspect or second aspect Flow in the data transmission method of any one.
The aspect of the embodiment of the present application the 6th provides a kind of computer-readable storage medium, and the computer-readable storage medium is used to store For the computer software instructions used in above-mentioned data transmission device, it includes being used to perform the journey designed by data transmission device Sequence.
As can be seen from the above technical solutions, the embodiment of the present application has advantages below:
In technical scheme, first pass through server and receive at least one of second terminal installation and default apply journey The message to be transmitted of sequence.After receiving again to the current network state of first terminal judge whether judge first terminal In first network state.If being in first network state, control server does not send information to be transmitted to first terminal.If When detecting the network state of first terminal from first network Status Change to the second network state, then server is controlled to first Terminal sends message to be transmitted.When terminal is in first network state, message to be transmitted is not sent to terminal so that terminal is not Need to receive message so as to waste flow.When terminal is from first network Status Change to the second network state, terminal is received and treated Transmission message need not expend the flow of itself, occur so as to reduce the situation of the waste of terminal user's flow.
Brief description of the drawings
Fig. 1 is a schematic diagram of a scenario of the embodiment of the present application;
Fig. 2 is one embodiment of data transmission method in the embodiment of the present application;
Fig. 3 is another embodiment of data transmission method in the embodiment of the present application;
Fig. 4 is another embodiment of data transmission method in the embodiment of the present application;
Fig. 5 is another embodiment of data transmission method in the embodiment of the present application;
Fig. 6 is one embodiment of data transmission device in the embodiment of the present application;
Fig. 7 is another embodiment of data transmission device in the embodiment of the present application;
Fig. 8 is another embodiment of data transmission device in the embodiment of the present application;
Fig. 9 is another embodiment of data transmission device in the embodiment of the present application;
Figure 10 is another embodiment of data transmission device in the embodiment of the present application.
Embodiment
The embodiment of the present application provides a kind of method of data transfer, relevant apparatus and storage medium, is used for reducing The waste of family flow.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection Enclose.
Term " first ", " second ", " the 3rd " " in the description and claims of this application and above-mentioned accompanying drawing The (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It should manage The data that solution so uses can exchange in the appropriate case, so that the embodiments described herein can be with except illustrating herein Or the order beyond the content of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, product or equipment need not limit In those steps or unit for clearly listing, but may include not list clearly or for these processes, method, production The intrinsic other steps of product or equipment or unit.
As shown in figure 1, Fig. 1 is the schematic diagram of first terminal, second terminal and server tripartite's information exchange, enter below Row exemplary description.
101st, second terminal sends message to be transmitted.
At least one default application program of the second terminal installation produces message to be transmitted, for example QQ, wechat etc. are i.e. When communication chat application program, after user carries out shielding setting to the group in the instant messaging chat application such as QQ, wechat, Message caused by itself is sent to server by shielding group.
102nd, when first terminal is in first network state, server does not send message to be transmitted to first terminal.
After server receives message to be transmitted, the network state of first terminal is judged.If first terminal Current network state is first network state, then the message to be transmitted received is not sent to first terminal by server.
103rd, first terminal sends network state.
Own net state is sent to server by first terminal.Server receives the network state of first terminal transmission Afterwards, first network state is detected.
Whether the network state for the 104th, detecting first terminal is changed to the second network state.
If the network state of first terminal is from first network Status Change to the second network state, server will be to be passed Defeated message is sent to first terminal.
105th, when first terminal is in the second network state, message to be transmitted is sent.
When the network state of first terminal is altered to the second network state, message waiting for transmission is sent to by server One terminal.Second network state is that need not spend the network state of user's mobile data, such as Wireless Fidelity (English: Wireless-Fidelity, write a Chinese character in simplified form:Wi-Fi) network state.When the network state of terminal is changed to Wi-Fi network state, Terminal receives message and avoids the need for expending the flow of itself, so as to reach the waste for reducing terminal user's flow.
It should be noted that the first network state of first terminal refers to need to spend user's mobile data in this programme Network state, such as the mobile data network state of mobile phone mobile phone in other wordsGeneral packet radio service(English: General Packet Radio Service, write a Chinese character in simplified form:GPRS) or 3G or 4G network access.That is first network in this programme State refers in particular to mobile data network state.Second network state is that need not spend the network state of user's mobile data, such as Wi-Fi network state.
Simultaneously, it is necessary to which explanation, in the embodiment of the present application, executive agent can be server, but and be not specific to Some or certain some devices, in actual applications, executive agent can also be the network equipment for covering server performance, such as A kind of data transmission device, is not limited specifically herein.
For convenience of description, following scheme executive agent is illustrated for data transmission device, and the data transmission device is clothes The network equipment of business device side.Below referring to Fig. 2, one embodiment of the method for data transfer includes in the embodiment of the present application:
201st, the message to be transmitted at least one default application program that second terminal is installed is received by server.
Data transmission device first receives treating at least one default application program of second terminal installation by server Message, such as the instant messaging chat application such as QQ, wechat are transmitted, when user is to the instant messaging chat application such as QQ, wechat After group in program carries out shielding setting, message caused by itself is sent to server by shielding group, and server receives shielding After the message to be transmitted of group, storage is on the server.The server is used to connect and be applied to first terminal and second terminal.
202nd, judge whether the current network state of first terminal is first network state by server.
Data transmission device judges whether the current network state of terminal is first network state by built-in server. The first network state is mobile data network state, such as the GPRS or 3G of mobile phone or 4G network access state.Existing Have under technology, no matter whether terminal is under first network state, can all send message to be transmitted to terminal, if terminal is in the Need to expend the mobile data flow of terminal itself under one network state, then when receiving message, so as to the flow to terminal user Cause certain waste.If terminal is not under first network state, terminal, which receives message, need not expend terminal itself Mobile data flow.By judging the current network state of terminal situation is wasted to reduce the flow of terminal user.If first eventually End is in first network state, then data transmission device performs step 203.If it is not at first network state, data transfer Device performs step 204.
203rd, server is controlled not send message to be transmitted to first terminal.
When the current network state for judging first terminal is first network state, because first network state is movement Data network state, need to expend the flow of terminal itself when receiving message, so data transmission device can control server will The message to be transmitted received is not sent to first terminal, and message to be transmitted is stored to local.So that terminal is Flow is not expended under one network state and receives message.
204th, message to be transmitted is sent to first terminal by server.
Data transmission device sets a default cycle by server, then by the default cycle to first terminal Current network state is detected.When the network state of first terminal is from first network Status Change to the second network state, Data transmission device just controls server that message waiting for transmission is sent into first terminal.Second network state is need not Spend the network state of user's mobile data, such as Wi-Fi network state.When the network state of terminal is changed to Wi-Fi network During state, terminal receives message and avoids the need for expending the flow of itself, so as to reach the waste for reducing terminal user's flow.
Optionally, when data transmission device judges that terminal is not under first network state by server, data Transmitting device can also control server to send message to be transmitted to terminal.When terminal is not under first network state, i.e., eventually When end is not at using under mobile data network state, the flow that message to be transmitted avoids the need for expending terminal is received.
In the embodiment of the present application, the message to be transmitted that second terminal is sent first is received, then by first terminal Current network state is judged, when first terminal is in first network state, then it is whole to first not to send message to be transmitted End.If first terminal is from first network Status Change to the second network state, data transmission device will be treated by server Transmission message is sent to first terminal.By judging the network state of first terminal, then message to be transmitted is grasped Make, so as to reach the waste for reducing customer flow.
It should be noted that whether the above-mentioned current network state for judging first terminal is that first network state can pass through Different modes is determined, and below the first possible implementation is illustrated:
The network state handover information sent by server receiving terminal, judge eventually further according to network state handover information Whether the current network state at end is first network state to be determined.Below referring to Fig. 3, data in the embodiment of the present application Another embodiment of the method for transmission includes:
301st, the message to be transmitted at least one default application program that second terminal is installed is received by server.
Step 301 is similar with step 201 in above-described embodiment in the embodiment of the present application, and specific here is omitted.
302nd, the network switching status information of first terminal transmission is received by server.
When the network state of first terminal changes, first terminal can send network state switching letter to server Breath, data transmission device receive the network state handover information by server.Network state handover information is first terminal Network state caused information when changing.Judge the net of first terminal by receiving network state handover information Network state.
303rd, judge whether the current network state of first terminal is by server according to network state handover information One network state.
Caused information when network state handover information changes for the network state of first terminal.Such as the One terminal from other network states is altered to first network state or during from first network Status Change to other network states Network state handover information can be produced.Network state handover information is sent to clothes by the network state of first terminal after changing Business device, current network of the data transmission device according to the network state handover information sended over by server to first terminal State is judged, judges whether the current network state of terminal is in first network state.If the current network of first terminal State is first network state, then performs step 304.If the current network state of first terminal is not first network state, Perform step 306.
304th, server is controlled not send message to be transmitted to first terminal.
Step 304 is similar with step 203 in above-described embodiment in the embodiment of the present application, and specific here is omitted.
305th, message to be transmitted is sent to first terminal by server.
Data transmission device sets a default cycle by server, then by the default cycle to first terminal Current network state is detected.When the network state of first terminal is from first network Status Change to the second network state, Data transmission device just controls server that the message waiting for transmission for meeting preparatory condition is sent into first terminal.Second net Network state is that need not spend the network state of user's mobile data, such as Wi-Fi network state.When the network state of terminal becomes More Wi-Fi network state when, terminal receive message avoid the need for expending the flow of itself, so as to reach reduce terminal use The waste of family flow.
Message to be transmitted meets that preparatory condition can be included in message to be transmitted in preset keyword or pre-set image The message or electronics red packet message or above-mentioned that the message or default group that perhaps default mark or default contact person send are sent Combinations thereof.Electronics red packet refers to the red packet distributed by the Third-party payment such as Alipay, wechat instrument to user.
Optionally, when data transmission device judges that terminal is not under first network state by server, data Transmitting device can also control server to send message to be transmitted to terminal.When terminal is not under first network state, i.e., eventually When end is not at using under mobile data network state, the flow that message to be transmitted avoids the need for expending terminal is received.
In the embodiment of the present application, data transmission device is firstly received the message to be transmitted of second terminal transmission, then The network state handover information sent by receiving first terminal, judges first terminal further according to the information by server Whether it is under first network state.When first terminal is in first network state, then server is controlled not sent to terminal Message to be transmitted.If first terminal is under first network state, network state is from first network Status Change to the second net During network state, then judge whether information to be transmitted meets preparatory condition, if meeting condition, message to be transmitted is sent to end End, second network state is Wi-Fi data network states, and the flow of user can't be wasted by being sent to terminal, to be transmitted Message also simultaneously need to be then forwarded to first terminal after meeting preparatory condition.Reduce the wave of customer flow in this way Take.
It should be noted that whether the above-mentioned current network state for judging first terminal is that first network state can also lead to Different modes is crossed to be determined, second of possible implementation is illustrated below:
The current network state of first terminal transmission is obtained according to predetermined period by server, then is judged by server Whether the current network state got is first network state to determine.Below referring to Fig. 4, data in the embodiment of the present application Another embodiment of the method for transmission includes:
401st, the message to be transmitted at least one default application program that second terminal is installed is received by server.
Step 401 is similar with step 201 in above-described embodiment in the embodiment of the present application, and specific here is omitted.
402nd, the current network state of first terminal transmission is obtained according to predetermined period by server.
Data transmission device obtains the current network state of first terminal by server according to a default cycle, obtains After getting first terminal network state, then the network state to getting judges.
It should be noted that the numerical value that the default cycle can be manually entered, can also be by gathered data through undue Caused numerical value, is not limited specifically herein after analysis.
403rd, whether the current network state for judging to get by server is first network state.
Data transmission device gets the current network state of first terminal by server, then by server to obtaining To current network state judged, judge whether get the current network state of first terminal is in first network shape State.
404th, server is controlled not send message to be transmitted to first terminal.
Step 404 is similar with step 203 in above-described embodiment in the embodiment of the present application, and specific here is omitted.
405th, message to be transmitted is sent to first terminal by server.
Step 405 is similar with step 305 in above-described embodiment in the embodiment of the present application, and specific here is omitted.
In the embodiment of the present application, data transmission device periodically obtains first terminal by server according to the default cycle Network state, when the first terminal network state got is first network state, then control server not to first eventually End sends message to be transmitted.If first terminal under first network state, network state from first network Status Change to During the second network state, then judge whether information to be transmitted meets preparatory condition, if meeting condition, message to be transmitted is sent To terminal, second network state is Wi-Fi data network states, and the flow of user can't be wasted by being sent to terminal, be treated The message of transmission also needs to be then forwarded to first terminal after meeting preparatory condition simultaneously.Reduce customer flow in this way Waste.
For convenience of description, following scheme executive agent be data transmission device be illustrated in first terminal side, under request in person Refering to Fig. 5, one embodiment of the method for data transfer includes in the embodiment of the present application:
Whether the current network state for the 501st, judging first terminal is first network state.
Data transmission device judges whether the current network state of terminal is first network state.The first network state For mobile data network state, such as the GPRS or 3G of mobile phone or 4G network access state.Under the prior art, no matter terminal Whether it is under first network state, can all sends message to be transmitted to terminal, if terminal is under first network state, connect The mobile data flow of consuming terminal itself is needed when receiving message, so as to cause certain waste to the flow of terminal user.If Terminal is not under first network state, then terminal, which receives message, need not expend the mobile data flow of terminal itself.Pass through Judge that the current network state of terminal wastes situation to reduce the flow of terminal user.If judged result is the current network of terminal State is first network state, then step 502 is performed, if the current network state that judged result is terminal is not first network shape State, then perform step 503.
502nd, controlling first terminal, the reception server does not send message to be transmitted.
When the current network state for judging first terminal is first network state, because first network state is movement Data network state, need to expend the flow of terminal itself when receiving message, so data transmission device can control first terminal The message to be transmitted that the reception server is not sent, and message to be transmitted is stored to server.So that terminal is first Flow is not expended under network state and receives message.
503rd, message to be transmitted transmitted by first terminal the reception server is controlled.
Data transmission device sets a default cycle by server, then by the default cycle to first terminal Current network state is detected.When the network state of first terminal is from first network Status Change to the second network state, Data transmission device just controls server that message waiting for transmission is sent into first terminal.Second network state is need not Spend the network state of user's mobile data, such as Wi-Fi network state.When the network state of terminal is changed to Wi-Fi network During state, terminal receives message and avoids the need for expending the flow of itself, so as to reach the waste for reducing terminal user's flow.
Optionally, when data transmission device judges that terminal is not under first network state by server, data Transmitting device can also control server to send message to be transmitted to terminal.When terminal is not under first network state, i.e., eventually When end is not at using under mobile data network state, the flow that message to be transmitted avoids the need for expending terminal is received.
In the embodiment of the present application, data transmission device is by judging the current network state of first terminal, when first eventually When the current network state at end is first network state, then server is controlled not send message to be transmitted to first terminal.If the One terminal when network state is from first network Status Change to the second network state, then judges under first network state Whether information to be transmitted meets preparatory condition, if meeting condition, message to be transmitted is sent into terminal, described second is network-like State is WI-FI data network states, and the flow of user can't be wasted by being sent to terminal, and message waiting for transmission also needs full simultaneously First terminal is then forwarded to after sufficient preparatory condition.Reduce the waste of customer flow in this way.
The data transmission method in the embodiment of the present application is described above, below to the dress in the embodiment of the present application Put and be described, referring to Fig. 6, one embodiment of data transmission device includes in the embodiment of the present application:
Receiving unit 601, for receiving at least one default application program for being installed of second terminal by server Message to be transmitted;
Judging unit 602, for judging whether the current network state of first terminal is first network shape by server State;
Transmitting element 603, for when the current network state of the first terminal is first network state, control to service Device does not send the message to be transmitted to the first terminal;
The transmitting element 603 is additionally operable to, when detecting the current network state of the first terminal from first network shape When state is changed to the second network state, the message to be transmitted is sent to the first terminal by the server, wherein, institute State first network state and the second network state has carried out the state of network connection all referring to first terminal and server.
The method of data transfer is retouched in the embodiment of detailed description reference picture 2 of the function of unit in Fig. 6 embodiments The content stated, is not repeated specifically herein.
Referring to Fig. 7, one embodiment of data transmission device includes in the embodiment of the present application:
Receiving unit 701, the network state handover information sent for receiving the first terminal, the network state are cut Change caused information when the network state that information is the first terminal changes;
Judging unit 702, for judging the current network of first terminal by server according to network state handover information Whether state is first network state;
Transmitting element 703, for when the current network state of the first terminal is first network state, control to service Device does not send the message to be transmitted to the first terminal;
Detection unit 704, for whether periodically detecting the current network state of the first terminal from first network Status Change is the second network state;
The transmitting element 703 is additionally operable to, when detecting the current network state of the first terminal from first network shape When state is changed to the second network state, the message to be transmitted is sent to the first terminal by the server, wherein, institute State first network state and the second network state has carried out the state of network connection all referring to first terminal and server.
The method of data transfer is retouched in the embodiment of detailed description reference picture 3 of the function of unit in Fig. 7 embodiments The content stated, is not repeated specifically herein.
Below referring to Fig. 8, another embodiment of data transmission device includes in the embodiment of the present application:
Acquiring unit 801, for obtaining working as transmitted by the first terminal according to predetermined period by the server Preceding network state;
Judging unit 802, for by the server judge current network state that acquiring unit gets whether be First network state;
Transmitting element 803, for when the current network state of the first terminal is first network state, control to service Device does not send the message to be transmitted to the first terminal;
Detection unit 804, for whether periodically detecting the current network state of the first terminal from first network Status Change is the second network state;
The transmitting element 803 is additionally operable to, when detecting the current network state of the first terminal from first network shape When state is changed to the second network state, the message to be transmitted is sent to the first terminal by the server, wherein, institute State first network state and the second network state has carried out the state of network connection all referring to first terminal and server.
The method of data transfer is retouched in the embodiment of detailed description reference picture 4 of the function of unit in Fig. 8 embodiments The content stated, is not repeated specifically herein.
Below referring to Fig. 9, another embodiment of data transmission device includes in the embodiment of the present application:
Judging unit 901, for judging whether the current network state of first terminal is first network state;
Control unit 902, for when the current network state of first terminal is first network state, controlling first terminal The not message to be transmitted of at least one default application program transmitted by the reception server;Wherein, the first network state and The state that second network state is connected all referring to first terminal with server;
Receiving unit 903, for detecting the current network state of first terminal from first network state when detection unit It is changed to the second network state, controls the to be transmitted of at least one default application program transmitted by first terminal the reception server Message, wherein, the first network state and the second network state have carried out network connection all referring to first terminal and server State.
The method of data transfer is retouched in the embodiment of detailed description reference picture 5 of the function of unit in Fig. 9 embodiments The content stated, is not repeated specifically herein.
The data transmission device in the embodiment of the present application is described the angle of slave module functional entity above, below The data transmission device in the embodiment of the present application is described from the angle of hardware handles, referring to Fig. 10, the application is implemented Another embodiment of data transmission device in example includes:
Data transmission device in the embodiment of the present application can also be in another form embodiment.Shown in reference picture 10, The data transmission device of the embodiment includes:Processor 1001, memory 1002, transceiver 1003, the processor 1001, institute State memory 1002 and the transceiver 1003 is connected by bus 1004, transceiver 1003 can include transmitter with receiving Device, the memory 1002 are stored with computer program, such as the program of data transfer.The processor 1001 performs the meter The step in the embodiment of the method for above-mentioned data transfer, such as the step 201-204 shown in Fig. 2 are realized during calculation machine program.Or The processor 1001 realizes the function of each module/unit in above-mentioned each device embodiment, example when performing the computer program Such as judging unit, receiving unit.
Exemplary, the computer program can be divided into one or more module/units, one or more Individual module/unit is stored in the memory, and by the computing device, to complete the application.It is one or more Individual module/unit can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used to describe institute State implementation procedure of the computer program in the device of the data transfer.For example, the computer program can be divided into Receiving unit, judging unit, transmitting element, each module concrete function are as follows:
Receiving unit, for receiving the to be passed of at least one default application program for being installed of second terminal by server Defeated message;
Judging unit, for judging whether the current network state of terminal is first network state;
Transmitting element, for when the current network state of the first terminal is first network state, controlling server The message to be transmitted is not sent to the first terminal;
The data transmission device can be that desktop PC, notebook, palm PC and cloud server etc. calculate Equipment.The data transmission device may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that The schematic diagram is only the restriction of the example of data transmission device, not structure paired data transmitting device, can be included than figure Show more or less parts, either combine some parts or different parts, such as the data transmission device can be with Including input-output equipment, network access equipment, bus etc..
Alleged processor can be CPU (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng the processor is the control centre of the data transmission device, and using various interfaces and connection, entirely more data pass The various pieces of defeated device.
The memory can be used for storing the computer program and/or module, and the processor is by running or performing The computer program and/or module being stored in the memory, and the data being stored in memory are called, described in realization Establish the various functions of the device of communication.The memory can mainly include storing program area and storage data field, wherein, storage Program area can storage program area, application program (such as sound-playing function, image player function needed at least one function Deng) etc.;Storage data field can store uses created data (such as voice data, phone directory etc.) etc. according to mobile phone.This Outside, memory can include high-speed random access memory, can also include nonvolatile memory, such as hard disk, internal memory, insert Connect formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory Block (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
If the integrated module/unit of the data transmission device is realized in the form of SFU software functional unit and as independently Production marketing or in use, can be stored in a computer read/write memory medium.Based on such understanding, the application All or part of flow in above-described embodiment method is realized, the hardware of correlation can also be instructed come complete by computer program Into described computer program can be stored in a computer-readable recording medium, and the computer program is being executed by processor When, can be achieved above-mentioned each embodiment of the method the step of.Wherein, the computer program includes computer program code, described Computer program code can be source code form, object identification code form, executable file or some intermediate forms etc..The meter Calculation machine computer-readable recording medium can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, Mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..Need what is illustrated It is that the content that the computer-readable medium includes can be fitted according to legislation in jurisdiction and the requirement of patent practice When increase and decrease, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium, which does not include electric carrier wave, to be believed Number and telecommunication signal.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the application Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
Described above, above example is only to illustrate the technical scheme of the application, rather than its limitations;Although with reference to before Embodiment is stated the application is described in detail, it will be understood by those within the art that:It still can be to preceding State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical scheme of the application.

Claims (10)

  1. A kind of 1. data transmission method, applied to the server being connected with first terminal and second terminal, it is characterised in that described Data transmission 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 is not sent out to the first terminal Send the message to be transmitted;
    If detecting, the current network state of the first terminal from first network Status Change is the second network state, is passed through The server sends the message to be transmitted to the first terminal, wherein, the first network state and second network-like State has carried out the state of network connection all referring to first terminal and server.
  2. 2. data transmission method according to claim 1, it is characterised in that described to judge first eventually by the server Whether the current network state at end is first network state, including:
    The network state handover information of the first terminal transmission, the network state handover request are received by the server Caused message when being changed for the network state of the first terminal;
    Judge whether the network state handover information matches with first network state by the server;
    Or
    The network status messages of the first terminal transmission, the network are obtained according to the default acquisition cycle by the server Status message is used for the current network state for indicating the first terminal;
    Judge whether network status messages match with first network state by the server.
  3. 3. data transmission method according to any one of claim 1 to 2, it is characterised in that if it is described detect it is described The current network state of first terminal from first network Status Change be the second network state, then by the server to described First terminal sends the message to be transmitted, including:
    Whether the current network state for periodically detecting the first terminal is network-like for second from first network Status Change State;
    If detecting, the current network state of the first terminal from first network Status Change is the second network state, is passed through The server sends the message to be transmitted to the first terminal.
  4. 4. data transmission method according to claim 3, it is characterised in that by the server to the first terminal The message to be transmitted is sent, including:
    The message to be transmitted for meeting preparatory condition in the message to be transmitted is sent to the first terminal by the server;
    The message to be transmitted for meeting preparatory condition, including:
    Preset keyword is included in message to be transmitted;Or
    Pre-set image content is included in message to be transmitted;Or
    Default mark is included in message to be transmitted;Or
    Message to be transmitted is the message that default contact person sends;Or
    Message to be transmitted is the message that default group sends;Or
    Message to be transmitted is electronics red packet message;Or
    Above-mentioned combinations thereof.
  5. 5. a kind of data transmission method, applied to the first terminal being connected with server, the server is used to receive second eventually Hold the message to be transmitted at least one default application program installed;Characterized in that, the data transmission method includes:
    Whether the current network state for judging first terminal is first network state;
    If the current network state of first terminal is first network state, control first terminal is not transmitted by the reception server The message to be transmitted of at least one default application program;Wherein, the first network state and the second network state are all referring to The state that one terminal is connected with server;
    If detecting, the current network state of first terminal from first network Status Change is the second network state, controls first The message to be transmitted of at least one default application program transmitted by terminal the reception server, wherein, the first network state The state of network connection has been carried out all referring to first terminal and server with the second network state.
  6. 6. data transmission method according to claim 5, it is characterised in that transmitted by the control terminal the reception server The message to be transmitted of at least one default application program include:
    Meet preparatory condition in the message to be transmitted of at least one default application program transmitted by control terminal the reception server Message to be transmitted.
  7. 7. a kind of data transmission device, applied to the first terminal being connected with server, the server is used to receive second eventually Hold the message to be transmitted at least one default application program installed;It is characterised in that it includes:
    Judging unit, for judging whether the current network state of first terminal is first network state;
    Control unit, for when the current network state of first terminal is first network state, control first terminal not to receive The message to be transmitted of at least one default application program transmitted by server;Wherein, the first network state and the second net The state that network state is connected all referring to first terminal with server;
    Described control unit is additionally operable to, when detect the current network state of first terminal from first network Status Change be second During network state, the message to be transmitted of at least one default application program transmitted by first terminal the reception server is controlled, its In, the first network state and the second network state have carried out the state of network connection all referring to first terminal and server.
  8. 8. data transmission device according to claim 7, it is characterised in that described control unit includes:
    Receiving unit, in the message to be transmitted for controlling at least one default application program transmitted by terminal the reception server Meet the message to be transmitted of preparatory condition.
  9. 9. a kind of computer installation, it is characterised in that the computer installation includes processor, and the processor is deposited for execution The data transmission method as described in any one in Claims 1-4 or 5 to 6 being realized during the computer program stored in reservoir Step.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program Realized when being executed by processor as described in any one in Claims 1-4 or 5 to 6 the step of data transmission method.
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 中国移动通信集团设计院有限公司 Access network switching method, apparatus and wireless communication terminal
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 中国移动通信集团设计院有限公司 Access network switching method, apparatus and wireless communication terminal
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
CN107295594B (en) Method for switching network, device and mobile terminal
CN103891363B (en) System and method for monitoring backstage application affairs
CN107484190A (en) Method for connecting network, mobile terminal and computer-readable recording medium
CN106851779A (en) A kind of method and mobile terminal for recognizing access point and focus
CN108022126A (en) Definite method, apparatus, server and the storage medium of prize drawing qualification
CN107343325A (en) A kind of data transmission method, device and terminal
CN109526020A (en) Data transmission method and Related product
CN107277878A (en) Method for switching network, device and mobile terminal
CN107508882A (en) A kind of method of data transfer, relevant apparatus and storage medium
CN107911547A (en) Interactive system, the method for interface layout
CN107197493B (en) A kind of method for switching network, network switching device and intelligent terminal
CN107426721A (en) A kind of wireless network resource regulates and controls method and device
CN108096838A (en) Gift bag gets method, apparatus, server, mobile terminal and storage medium
CN107707449A (en) A kind of method of data transfer, relevant apparatus and storage medium
CN107241758A (en) Network control method, network control unit and intelligent terminal
WO2019144803A1 (en) Traffic statistics method and apparatus, storage medium, and electronic apparatus
CN107231647A (en) Network detecting method, network detection means and intelligent terminal
CN106507408A (en) A kind of terminal control method and handheld terminal
CN109343944A (en) Data processing method, device, terminal and the storage medium of eSIM card
CN107872533A (en) Information-pushing method, device, server and storage medium
CN107154895A (en) A kind of method for message transmission and server, computer installation and storage medium
CN101442433B (en) System and method for managing access to services of an account for an electronic communication device
CN107124353A (en) A kind of method of Message Processing, device, computer installation and storage medium
CN107333286A (en) Wifi hotspot connection management method, device and terminal device
CN108021639A (en) Information-pushing method, device, server and storage medium

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