Movatterモバイル変換


[0]ホーム

URL:


CN110769395B - Traffic-free service synchronization method and device - Google Patents

Traffic-free service synchronization method and device
Download PDF

Info

Publication number
CN110769395B
CN110769395BCN201911046018.4ACN201911046018ACN110769395BCN 110769395 BCN110769395 BCN 110769395BCN 201911046018 ACN201911046018 ACN 201911046018ACN 110769395 BCN110769395 BCN 110769395B
Authority
CN
China
Prior art keywords
client
operator
sim card
state
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911046018.4A
Other languages
Chinese (zh)
Other versions
CN110769395A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co LtdfiledCriticalBeijing Dajia Internet Information Technology Co Ltd
Priority to CN201911046018.4ApriorityCriticalpatent/CN110769395B/en
Publication of CN110769395ApublicationCriticalpatent/CN110769395A/en
Application grantedgrantedCritical
Publication of CN110769395BpublicationCriticalpatent/CN110769395B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The disclosure relates to a flow-free service synchronization method, which is applied to a server side and comprises the following steps: receiving a state acquisition request sent by a client, wherein the state acquisition request specifies an SIM card identifier corresponding to a mobile network used by the client; determining whether a representation operator opens the state information of the flow-free service aiming at the client side or not according to the SIM card identification; and returning the state information to the client so that the client determines whether to provide the flow-free service according to the state information. In the scheme, the state information is stored in the server, and the client can acquire the state information from the server to determine whether to provide the traffic-free service instead of sending a query request to an operator. Therefore, the client does not need to maintain the operator access interface and the protocol, and can normally provide the traffic-free service under the condition of upgrading the operator interface and the protocol.

Description

Flow-free service synchronization method and device
Technical Field
The present disclosure relates to the field of computer software applications, and in particular, to a method and an apparatus for traffic-free service synchronization.
Background
With the popularization of mobile networks and the increase of network speed, a client (such as a video platform and a comprehensive social client) installed in a mobile terminal (such as a mobile phone) of a mobile network can be used to generally release a traffic-free package or a traffic package to a user, that is, the user can use the client without consuming traffic of the mobile network provided by an operator.
In the related art, when a client detects that a user starts to use a flow of a mobile network provided by any operator to acquire content in the client, the operator needs to query whether a SIM card currently used by a terminal opens a flow-free service, so as to determine whether to provide the flow-free service for the user.
In practical application, the client side needs to access the interface through a specific protocol provided by an operator for inquiring the flow-free service, and because different operators use different communication protocols and the same operator may update the interface and the protocol irregularly, the client side also needs to update synchronously, otherwise, the client side cannot normally inquire the opening state of the flow-free service, and further cannot normally provide the flow-free service.
Disclosure of Invention
The disclosure provides a traffic-free service synchronization method, a traffic-free service synchronization device, an electronic device and a storage medium, so as to at least solve the problem that a client needs to be upgraded synchronously with an operator or cannot normally provide a traffic-free service when the client maintains an interface and a protocol of the operator. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for traffic-free service synchronization is provided, which is applied to a server, and the method includes:
receiving a state acquisition request sent by a client, wherein the state acquisition request specifies an SIM card identifier corresponding to a mobile network used by the client;
determining state information representing whether an operator opens a flow-free service for the client according to the SIM card identifier;
and returning the state information to the client so that the client determines whether to provide the flow-free service according to the state information.
In a possible implementation manner, after determining, according to the SIM card identifier, status information that characterizes whether an operator turns on a traffic-free service for the client, the method further includes:
determining whether the client meets a preset interface access condition; the interface access condition includes at least one of: the operator corresponding to the SIM card identifier, the storage duration of the state information corresponding to the SIM card identifier exceeding a preset time limit and the interface access priority of the client higher than a preset priority threshold can be obtained;
and under the condition that the client side is determined to meet the interface access condition, returning a state query protocol of an operator corresponding to the SIM card identifier to the client side so that the client side queries whether to open the flow-free service for the operator corresponding to the SIM card identifier based on the state query protocol.
In one possible implementation manner, the determining whether the client side meets a preset interface access condition includes:
under the condition that the state information corresponding to the SIM card identification is determined to be the opened flow-free service, determining whether the storage duration of the state information corresponding to the SIM card identification exceeds a preset time limit or not;
and determining that the client meets the interface access condition when the preset time limit is exceeded.
In a possible implementation manner, the determining whether the client side meets a preset interface access condition includes:
determining whether an operator corresponding to the SIM card identifier can be obtained;
determining that the client satisfies the interface access condition in a case that a corresponding operator is available.
In a possible implementation manner, the determining whether the client side meets a preset interface access condition includes:
determining the interface access priority of the client according to the storage duration of the state information corresponding to the SIM card identifier;
and under the condition that the priority of the client is higher than a preset priority threshold value, determining that the client meets the interface access condition.
In a possible implementation manner, after returning a status query agreement of an operator corresponding to the SIM card identifier to the client, the method further includes:
receiving a state information updating request sent by the client, wherein the state information updating request is used for requesting to update state information;
and updating the state information according to the state information updating request so as to return the updated state information to the client terminal under the condition of receiving the state acquiring request subsequently.
According to a second aspect of the embodiments of the present disclosure, a traffic-free service synchronization method is provided, and is applied to a client, where the method includes:
under the condition that the mobile network is monitored to be started, initiating a state acquisition request to the server, wherein the state acquisition request specifies an SIM card identifier corresponding to the mobile network used by the client, so that the server returns state information representing whether an operator opens a flow-free service for the client according to the SIM card identifier;
and determining whether to provide a traffic-free service according to the state information returned by the server.
In one possible implementation, the mode of the mobile network being turned on includes at least one of the following:
the client uses the mobile network, the current network is switched from the wireless network to the mobile network and the SIM card providing the mobile network is switched in the starting process.
In a possible implementation manner, after initiating the status obtaining request to the server, the method further includes:
receiving a state query protocol of an operator corresponding to the SIM card identifier sent by the server;
and sending a state query request to an operator corresponding to the SIM card identifier based on the state query protocol so as to enable the operator to return state information based on the state query protocol.
In a possible implementation manner, after sending the status query request to the operator corresponding to the SIM card identifier, the method further includes:
determining whether to provide a traffic-free service for the client according to the state information returned by the operator;
and/or the presence of a gas in the gas,
and sending a state information updating request to the server, wherein the request carries the state information returned by the operator, so that the server updates the locally stored state information.
According to a third aspect of the embodiments of the present disclosure, there is provided a traffic-free service synchronization apparatus, which is applied to a server, the apparatus including:
the system comprises a receiving module, a sending module and a sending module, wherein the receiving module is configured to execute a state acquisition request sent by a receiving client, and the state acquisition request specifies an SIM card identifier corresponding to a mobile network used by the client;
the query module is configured to execute the state information of determining whether the operator opens the flow-free service aiming at the client side or not according to the SIM card identification;
and the sending module is configured to execute the status information returning to the client so that the client determines whether to provide the traffic-free service according to the status information.
In one possible implementation, the apparatus further includes: the judging module is configured to determine whether the client meets a preset interface access condition after determining whether the state information representing that whether the operator opens the flow-free service for the client is provided according to the SIM card identifier; the interface access condition includes at least one of: the operator corresponding to the SIM card identifier, the storage duration of the state information corresponding to the SIM card identifier exceeding a preset time limit and the interface access priority of the client higher than a preset priority threshold can be obtained;
the sending module is further configured to execute a status query protocol of the operator corresponding to the SIM card identifier returned to the client when it is determined that the client meets the interface access condition, so that the client queries whether to open a traffic exempt service for the operator corresponding to the SIM card identifier based on the status query protocol.
In a possible implementation manner, the determining module is specifically configured to perform:
under the condition that the state information corresponding to the SIM card identification is determined to be the opened flow-free service, determining whether the storage duration of the state information corresponding to the SIM card identification exceeds a preset time limit;
and determining that the client meets the interface access condition when the preset time limit is exceeded.
In one possible implementation, the determining module is specifically configured to perform:
determining whether an operator corresponding to the SIM card identifier can be obtained;
determining that the client satisfies the interface access condition in a case that a corresponding operator is available.
In one possible implementation, the determining module is specifically configured to perform:
determining the interface access priority of the client according to the storage duration of the state information corresponding to the SIM card identifier;
and under the condition that the priority of the client is higher than a preset priority threshold value, determining that the client meets the interface access condition.
In a possible implementation manner, the receiving module is further configured to perform receiving a status information update request sent by the client, where the status information update request is used for requesting to update status information;
the device further comprises: and the updating module is configured to update the state information according to the state information updating request so as to return the updated state information to the client terminal subsequently under the condition of receiving the state acquiring request.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a traffic-free service synchronization apparatus, which is applied to a client, the apparatus including:
the request sending module is configured to execute the step of initiating a state acquisition request to the server under the condition that the mobile network is monitored to be started, wherein the state acquisition request specifies an SIM card identifier corresponding to the mobile network used by the client, so that the server returns state information representing whether an operator opens a flow-free service for the client according to the SIM card identifier;
and the service providing module is configured to execute the determination of whether to provide the traffic-free service according to the state information returned by the server.
In one possible implementation, the manner in which the mobile network is turned on includes at least one of:
and the client uses the mobile network, the current network is switched to the mobile network from the wireless network in the starting process, and the SIM card for providing the mobile network is switched.
In one possible implementation, the apparatus further includes: the data receiving module is configured to execute a state acquisition request sent to the server and then receive a state query protocol of an operator corresponding to the SIM card identifier sent by the server;
the request sending module is further configured to execute sending a status query request to an operator corresponding to the SIM card identifier based on the status query protocol, so that the operator returns status information based on the status query protocol.
In one possible implementation, the apparatus further includes: the state determining module is configured to determine whether to provide a traffic-free service for the client according to state information returned by an operator after sending a state query request to the operator corresponding to the SIM card identifier;
and/or the presence of a gas in the gas,
the request sending module is further configured to execute sending of a state information updating request to the server, where the request carries state information returned by the operator, so that the server updates locally stored state information.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the traffic-free service synchronization method as described in any one of the first aspect and possible implementations of the first aspect.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a storage medium, where instructions are executed by a processor of an electronic device, so that the electronic device can execute the traffic-exempt service synchronization method according to any one of the first aspect and possible implementations of the first aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising one or more instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the operations performed by the traffic exempt service synchronization method of any one of the first aspect and possible implementations of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the state information is stored in the server and used for representing whether each SIM card opens the flow-free service aiming at each client, and the client can acquire the state information from the server to determine whether to provide the flow-free service without sending a query request to an operator. Therefore, the client does not need to maintain the operator access interface and the protocol, and can normally provide the traffic-free service under the condition of upgrading the operator interface and the protocol.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is an architectural diagram illustrating traffic free service synchronization in accordance with an exemplary embodiment;
FIG. 2 is an interaction flow diagram illustrating a method of traffic-free service synchronization in accordance with an exemplary embodiment;
FIG. 3 is a one-sided flow diagram illustrating a traffic-free service synchronization method in accordance with an exemplary embodiment;
FIG. 4 is another single-sided flow diagram illustrating a traffic-free service synchronization method in accordance with an exemplary embodiment;
FIG. 5 is another interaction flow diagram illustrating a method of traffic-free service synchronization in accordance with an exemplary embodiment;
FIG. 6 illustrates a schematic diagram of an architecture of a traffic free service synchronizer according to an exemplary embodiment;
FIG. 7 is another block diagram of a traffic-free service synchronization apparatus, according to an example embodiment;
FIG. 8 is a schematic diagram illustrating yet another architecture of a traffic free service synchronization apparatus in accordance with an illustrative embodiment;
FIG. 9 is a schematic diagram illustrating one configuration of an electronic device in accordance with one illustrative embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure.
In the embodiment of the present specification, a system of an application is a C/S (client/server) architecture, a flow-free service synchronization process relates to a server and a client of the system, and a corresponding schematic diagram of the system architecture is shown in fig. 1 and includes aserver device 10 and aclient device 20.
The client device may be a terminal device such as a smart phone and a tablet computer, which can be equipped with a SIM card, and the client may be an application installed in the terminal device, such as an online video APP, a social APP, and the like; the specific form of the server-side device may be a specific server or a server cluster. In addition, the client device and the server device may be communicatively connected through various forms of networks, which is not limited in this specification.
Fig. 2 is an interaction flow diagram illustrating a traffic-free service synchronization method according to an example embodiment, which may include the following steps:
in step S21, the client initiates a status acquisition request to the server when monitoring that the mobile network is turned on.
In order to provide corresponding services to users who have opened the traffic-free service in time, the client needs to monitor the mobile network opening action of the client in the client device. The mobile network may specifically be started in a number of ways:
in one example, a mobile network may be used for clients during startup. For example, when a client device (e.g., a mobile phone) of a user currently uses a mobile network, the client will use the mobile network to receive and send data during a starting process after the user opens the client.
In another example, a handover from a wireless network to a mobile network may be made for the current network. For example, the network used when the client is started is a wireless network, but in the using process of the client, the wireless network of the client device (such as a mobile phone) is closed and the mobile network is opened, and then the client is the current network, that is, the wireless network is switched to the mobile network.
In yet another example, a SIM card of the mobile network may be provided for handover. For example, 2 SIM cards are inserted into a client device (e.g., a mobile phone), and in a use process of the client, a currently used mobile network is switched from the card 1 to the card 2, so that even if the client determines that the card 1 opens a traffic-free service for the client, it still needs to determine whether the switched card 2 opens the traffic-free service for the client.
Of course, the mobile network may be opened in other manners, which need not be limited in theory in the embodiments of the present description, and those skilled in the art may flexibly set the manner according to actual situations.
After monitoring that the mobile network is started, the client initiates a state acquisition request to the server, wherein the request specifies an SIM card identifier corresponding to the mobile network used by the client, so that the server determines the flow-free service starting state of the SIM card identifier for the client through the SIM card identifier.
It can be understood that the SIM card identifier referred to in this specification may also be a mobile phone identifier or a client identifier, and as long as the purpose of obtaining the status information of the traffic-free service from the service end and the operator through the identifier can be achieved, the specification does not need to limit the specific form of the identifier theoretically.
In step S22, the service end receives a status acquisition request sent by the client, and determines, according to the SIM card identifier, status information indicating whether an operator opens a traffic-free service for the client.
In step S23, the server returns the status information to the client.
For convenience of description, S22 is explained in conjunction with S23.
In this specification, the traffic-free service object is a client, specifically: the traffic-free service object can be an account number currently logged in by the client, so that the server can determine the state information corresponding to the client through the SIM card identifier corresponding to the account number logged in by the client; under the condition that the client does not log in the account currently, if the current equipment of the client is provided with the SIM card, the flow-free service can be provided through the installed SIM card, namely, an object of the flow-free service can also be the SIM card installed in the current equipment of the client, so that the server can determine the state information corresponding to the client through the identification of the installed SIM card; and so on.
In one embodiment, as shown in table 1 below:
TABLE 1
SIM card identificationClient terminalTraffic free service state
Card 1Certain video clientHas been opened
Card 2Certain social clientIs not opened
The server can pre-store the corresponding relation of the opened or unopened states of different SIM card identifications, different clients and the flow-free service. After receiving the state acquisition request with the assigned SIM card identifier, the server can determine the state information corresponding to the SIM card identifier according to the corresponding relation in the table, wherein the state information is used for representing whether the SIM card identifier opens the flow-free service for the client.
Certainly, the service end may also pre-store state information used for representing whether the SIM card identifier opens the traffic-free service for the client in other manners, which is not limited in this specification.
After the server determines the state information, the server can return the determined state information to the client.
In practical application, if the client maintains the status query protocol of the operator, the client needs to be synchronously upgraded after the operator upgrades the interface and the protocol, otherwise, the flow-free service cannot be normally provided for the user, but the forced upgrade of the client also affects the use experience of the user on the client.
In order to solve the problems, the service end maintains the state query protocol of each operator in the scheme, and after the operator upgrades the interface and the protocol, only synchronous upgrade needs to be carried out on the service end, so that the use experience of a user cannot be influenced.
Therefore, the service end can further return the status query agreement of the operator to the client end, so that the client end can query the current status information of the operator by using the status query agreement. Optionally, the server may send the aforementioned status information to the client together with the status query protocol.
In practical application, during a peak period when a user uses a client, a status query request sent by the client to an operator may exceed the carrying capacity of the operator, so that a server can selectively return a status query protocol to the client based on a preset load balancing policy, thereby limiting and scheduling access from the client to an operator interface. The load balancing policy may be implemented based on the prior art, which is not described in this specification, and as long as the current limitation and scheduling of access from the client to the operator interface can be implemented to reduce the pressure of the operator interface on processing access, the embodiment of this specification does not theoretically need to limit a specific form of the load balancing policy.
In a specific embodiment, after determining, by the service end according to the SIM card identifier, whether a representation operator opens the status information of the traffic-free service for the client, it may further determine whether the client meets a preset interface access condition. The interface access condition may specifically include:
in one example, the condition may be that an operator corresponding to the SIM card identification can be obtained. For example, the service end may determine an operator corresponding to the SIM card identifier according to the IP address used by the client, or determine a corresponding operator according to a digital field indicating the operator in an IMSI Number (International Mobile subscriber identity Number) of the SIM card, or determine a corresponding operator according to operator information manually filled, or the like.
Correspondingly, when the server determines whether the client meets a preset interface access condition, specifically, whether an operator corresponding to the SIM card identifier can be obtained can be determined, and if the operator corresponding to the SIM card identifier can be obtained, it can be determined that the client meets the interface access condition.
In another example, the condition may be that the storage duration of the state information corresponding to the SIM card identifier exceeds a preset time limit. The time limit can be set by operation and maintenance personnel according to experience; or based on the open cycle of the traffic-free service of the operator, the open cycle is obtained and set through algorithm calculation; and the like, which are not limited in this specification.
And only after the state information corresponding to the SIM card identifier is stored for a certain time, the client is informed to inquire new state information to the operator again. Therefore, by setting the storage duration period, the condition information of the same SIM card identifier aiming at the same client can be prevented from being inquired for many times in a short period, and the access times of the client to the operator interface are reduced under the condition of not influencing the accuracy of the stored condition information.
Correspondingly, when the server determines whether the client meets a preset interface access condition, specifically, under the condition that the state information corresponding to the SIM card identifier is determined to be opened, it is determined whether the storage duration of the state information corresponding to the SIM card identifier exceeds a preset time limit, and if the storage duration exceeds the preset time limit, it is determined that the client meets the interface access condition.
In yet another example, the condition may be that the interface access priority of the client is above a preset priority threshold. For example, the server may determine the load capacity of the operator a in advance, and further determine the number N of clients that can access the interface of the operator a in a unit time, thereby setting a priority threshold N +1 in advance, and only the N clients with priorities higher than the priority threshold can access the interface of the operator a, thereby avoiding exceeding the load capacity of the operator.
Correspondingly, when the server determines whether the client meets the preset interface access condition, specifically, the interface access priority of the client may be determined according to the storage duration of the state information corresponding to the SIM card identifier, for example, the longer the storage duration, the higher the priority. And then determining that the client meets the interface access condition under the condition that the priority of the client is higher than a preset priority threshold.
It is understood that the interface access condition includes one or more of the above-mentioned exemplary conditions, and may also include other one or more conditions that are not illustrated, and those skilled in the art may flexibly set the conditions according to practical situations, and the embodiments of the present specification do not limit this.
And the server side can return a state query protocol of an operator corresponding to the SIM card identification to the client side under the condition that the client side is determined to meet the interface access condition.
And after receiving the state query agreement of the operator corresponding to the SIM card identifier sent by the server, the client can send a state query request to the operator corresponding to the SIM card identifier based on the state query agreement.
When a client sends a status query request to an operator, the client must send the request through the mobile network of the operator. Although the client sends the status query request to the operator after monitoring that the mobile network is turned on, the client may still fail to initiate the status query request or receive the query result returned by the operator due to the fact that the client is not currently connected to the mobile network of the operator because the mobile network is unstable.
And under the condition that the client receives the state information returned by the operator, the current flow-free service state of the client aiming at the SIM card identifier can be determined according to the state information.
Further, the client may also upload new state information to the server, that is, send a state information update request to the server according to the determined activated or unopened state, where the state information update request is used to request to update state information indicating whether an operator activates a traffic-free service for the client.
And after receiving the state information updating request sent by the client, the server updates the state information according to the state information updating request so as to return the updated state information to the client in the subsequent condition of receiving the state acquisition request. That is, the state information pre-stored by the server may be the state information queried and uploaded by the previous client.
In step S24, the client determines whether to provide a traffic-free service according to the status information returned by the server.
If the state information represents that the flow-free service is opened, the flow-free service is provided, and the client side can not consume the flow of the mobile network when the client side subsequently sends and receives data in the using process of the user.
And if the state information representation does not open the flow-free service, the flow-free service is not provided, and the client needs to consume the flow of the mobile network in the subsequent data sending and receiving in the user using process.
In addition, the client can also perform other processing actions according to the state information. For example, if it is determined that the flow-exempt service is not opened, recommendation information may be further displayed in the client interface, so that the recommended user handles the flow-exempt package; for another example, if it is determined that the traffic-exempt service has been opened, richer multimedia content may be further presented in the client; and so on.
In order to more clearly describe the traffic-free service synchronization scheme in the embodiment of the present specification, the following describes the traffic-free service synchronization method executed by the client and the server from a single-side perspective respectively:
fig. 3 is a flowchart of a flow-free service synchronization method executed by a server, which may specifically include the following steps:
in S31, a state acquisition request sent by a client is received, where the state acquisition request specifies an SIM card identifier corresponding to a mobile network used by the client;
in S32, determining, according to the SIM card identifier, status information indicating whether an operator opens a traffic-free service for the client;
in S33, the status information is returned to the client, so that the client determines whether to provide a traffic exempt service according to the status information.
Fig. 4 is a flowchart of a flow-free service synchronization method executed by a client, which may specifically include the following steps:
in S41, when it is monitored that the mobile network is turned on, a state acquisition request is initiated to the server, so that the server returns state information indicating whether an operator opens a traffic-free service for the client according to the SIM card identifier; the state acquisition request specifies an SIM card identifier corresponding to a mobile network used by the client;
in S42, it is determined whether to provide a traffic-free service according to the status information returned by the server.
For details of the single-side execution method of the client and the server, reference may be made to the description of the foregoing embodiments, which are not described herein again.
The traffic-free service synchronization method provided in the present specification is described below with reference to a more specific example.
Assuming that the operator a corresponds to the SIM card 1 inserted in the mobile phone used by the user, an interaction flow between the operator a, the client a and the server may be as shown in fig. 5.
Under the condition that the client a starts to use the mobile network of the operator A, the client a sends a state acquisition request to the server, wherein the request specifies the SIM card identifier corresponding to the used mobile network of the operator A, namely the identifier of the currently inserted card 1 in the mobile phone, for example, the request carries the IMSI number of the card 1.
After receiving the request of the client a, the server searches in the corresponding relationship among the locally pre-stored SIM card identifier IMSI number, the client identifier and the state information according to the IMSI number carried in the request, and determines that the flow-free service of the card 1 for the client a is in an opened state if the found IMSI number of the card 1 and the state information corresponding to the client a are opened.
In addition, the server determines that the card 1 corresponds to the operator a according to the corresponding number field in the IMSI number carried in the request, and determines that the stored duration of the found state information is greater than a preset duration (for example, 24 hours), so that the server can obtain a state query protocol which is locally upgraded in advance and is synchronized with the operator.
And the server returns the inquired state information and the acquired state inquiry protocol to the client a.
The client a provides a flow-free service for the client according to the state information of 'opened', namely, the user does not consume the mobile network flow of the operator A when using the client a, and the mobile network flow cost is not generated.
And the client a accesses the interface of the operator A according to the state query protocol and sends a state query request.
After receiving the state query request, the operator a obtains the information related to the flow-free service of the card 1 from the inside, and the obtaining process may involve sensitive data such as a user mobile phone number, a tariff package and the like, so that the information is obtained and processed only from the inside of the operator a and is not sent to the client a or the server, thereby ensuring the information security of the user.
And the operator A returns the acquired state information to the client a.
The client a uploads the state information to the server.
And the server side updates the state information in the corresponding relation stored locally according to the state information, for example, if the state information is 'unopened' or 'expired' and the like, the state information is updated to 'unopened'.
When the subsequent client a sends a state acquisition request carrying the IMSI number of the card 1 to the server, the server may return updated state information, that is, "not open," and the client a will not provide the flow-free service.
Fig. 6 is a block diagram illustrating a traffic-free service synchronization apparatus according to an exemplary embodiment, which is applied to theserver device 10 shown in fig. 1.
Referring to fig. 6, the apparatus may include areceiving module 110, aquerying module 120, and atransmitting module 130.
The receivingmodule 110 is configured to execute receiving a status obtaining request sent by a client, where the status obtaining request specifies an SIM card identifier corresponding to a mobile network used by the client;
thequery module 120 is configured to execute determining, according to the SIM card identifier, status information that characterizes whether an operator opens a traffic-free service for the client;
the sendingmodule 130 is configured to perform returning the status information to the client, so that the client determines whether to provide the traffic-exempt service according to the status information.
In one possible implementation, referring to fig. 7, the apparatus further includes: the judgingmodule 140 is configured to determine whether the client meets a preset interface access condition after determining, according to the SIM card identifier, whether a state information representing whether an operator opens a traffic-free service for the client; the interface access condition includes at least one of: the operator corresponding to the SIM card identifier, the storage duration of the state information corresponding to the SIM card identifier exceeding a preset time limit and the interface access priority of the client higher than a preset priority threshold can be obtained;
the sendingmodule 130 is further configured to execute a status query protocol for returning the operator corresponding to the SIM card identifier to the client if it is determined that the client meets the interface access condition, so that the client queries the operator corresponding to the SIM card identifier whether to open a traffic exempt service for the operator based on the status query protocol.
In a possible implementation manner, the determiningmodule 140 is specifically configured to perform:
under the condition that the state information corresponding to the SIM card identification is determined to be the opened flow-free service, determining whether the storage duration of the state information corresponding to the SIM card identification exceeds a preset time limit or not;
and determining that the client meets the interface access condition when the preset time limit is exceeded.
In a possible implementation manner, the determiningmodule 140 is specifically configured to perform:
determining whether an operator corresponding to the SIM card identifier can be obtained;
and determining that the client meets the interface access condition under the condition that the corresponding operator can be obtained.
In a possible implementation manner, the determiningmodule 140 is specifically configured to perform:
determining the interface access priority of the client according to the storage duration of the state information corresponding to the SIM card identifier;
and under the condition that the priority of the client is higher than a preset priority threshold value, determining that the client meets the interface access condition.
In a possible implementation manner, the receivingmodule 110 is further configured to perform receiving a status information updating request sent by the client, where the status information updating request is used for requesting to update status information;
referring to fig. 7, the apparatus further comprises: an updatingmodule 150 configured to update the state information according to the state information updating request, so as to subsequently return the updated state information to the client when receiving the state obtaining request.
It can be understood that the determiningmodule 140 and theupdating module 150 may be configured in the apparatus at the same time as shown in fig. 7, or may be configured in the apparatus separately from the determiningmodule 140, and therefore the structure shown in fig. 7 should not be construed as limiting the embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating a traffic-free service synchronization apparatus applied to theclient device 20 shown in fig. 1 according to an exemplary embodiment.
Referring to fig. 8, the apparatus may include arequest module 210 and aservice providing module 220.
Therequest sending module 210 is configured to execute, when it is monitored that a mobile network is started, initiating a state obtaining request to the server, where the state obtaining request specifies an SIM card identifier corresponding to the mobile network used by the client, so that the server returns, according to the SIM card identifier, state information indicating whether an operator opens a traffic-free service for the client;
theservice providing module 220 is configured to determine whether to provide a traffic-free service according to the status information returned by the server.
In one possible implementation, the mode of the mobile network being turned on includes at least one of the following:
and the client uses the mobile network, the current network is switched to the mobile network from the wireless network in the starting process, and the SIM card for providing the mobile network is switched.
In one possible implementation, the apparatus further includes: the data receiving module is configured to execute a state acquisition request sent to the server and then receive a state query protocol of an operator corresponding to the SIM card identifier sent by the server;
the request sending module is further configured to execute sending a status query request to an operator corresponding to the SIM card identifier based on the status query protocol, so that the operator returns status information based on the status query protocol.
In one possible implementation, the apparatus further includes: the state determining module is configured to determine whether to provide a traffic-free service for the client according to state information returned by an operator after sending a state query request to the operator corresponding to the SIM card identifier; and/or the presence of a gas in the atmosphere,
therequest sending module 210 is further configured to execute sending a status information update request to the server, where the request carries status information returned by the operator, so that the server updates locally stored status information.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, theelectronic device 90 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a server, and the like.
FIG. 9 is a block diagram of an electronic device shown in accordance with an example embodiment. For example, theelectronic device 90 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a server, and the like.
Referring to fig. 9, theelectronic device 90 may include one or more of the following components: aprocessing component 910, amemory 920, apower component 930, amultimedia component 940, anaudio component 950, an input/output (I/O)interface 960, asensor component 970, and acommunication component 980.
Theprocessing component 910 generally controls the overall operation of theelectronic device 90, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing component 910 may include one ormore processors 911 to execute instructions to perform all or part of the steps of the methods described above. Further, theprocessing component 910 can include one or more modules that facilitate interaction between theprocessing component 910 and other components. For example, theprocessing component 910 may include a multimedia module to facilitate interaction between themultimedia component 940 and theprocessing component 910.
Thememory 920 is configured to store various types of data to support operations at theelectronic device 90. Examples of such data include instructions for any application or method operating on theelectronic device 90, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 920 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Thepower supply component 930 provides power to the various components of theelectronic device 90. Thepower components 930 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for theelectronic device 90.
Themultimedia component 940 includes a screen that provides an output interface between theelectronic device 90 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 940 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when theelectronic device 90 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Theaudio component 950 is configured to output and/or input audio signals. For example, theaudio component 950 may include a Microphone (MIC) configured to receive an external audio signal when theelectronic device 90 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in thememory 920 or transmitted via thecommunication component 980. In some embodiments,audio component 950 also includes a speaker for outputting audio signals.
The I/O interface 960 provides an interface between theprocessing component 910 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Thesensor assembly 970 includes one or more sensors for providing various aspects of status assessment for theelectronic device 90. For example, thesensor assembly 970 may detect the open/closed status of theelectronic device 90, the relative positioning of the components, such as the display and keypad of theelectronic device 90, the change in position of theelectronic device 90 or a component of theelectronic device 90, the presence or absence of user contact with theelectronic device 90, the orientation or acceleration/deceleration of theelectronic device 90, and the change in temperature of theelectronic device 90. Thesensor assembly 970 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 970 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 970 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 980 is configured to facilitate wired or wireless communication between theelectronic device 90 and other devices. Theelectronic device 90 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, thecommunication component 980 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunications component 980 also includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, theelectronic device 90 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an embodiment of the present disclosure, a non-transitory computer-readable storage medium comprising instructions, such as thememory 920 comprising instructions, executable by theprocessor 911 of theelectronic device 90 to perform the method of obtaining a viewing time duration is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. In an embodiment of the present disclosure, an application program is further provided, and when the application program is executed by a processor of an electronic device, the electronic device is enabled to execute the traffic-free service synchronization method, so as to obtain the same technical effect.
In an embodiment of the present disclosure, a computer program product is further provided, which when executed by a processor of an electronic device, enables the electronic device to execute the above traffic-free service synchronization method, so as to achieve the same technical effect.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

CN201911046018.4A2019-10-302019-10-30Traffic-free service synchronization method and deviceActiveCN110769395B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911046018.4ACN110769395B (en)2019-10-302019-10-30Traffic-free service synchronization method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911046018.4ACN110769395B (en)2019-10-302019-10-30Traffic-free service synchronization method and device

Publications (2)

Publication NumberPublication Date
CN110769395A CN110769395A (en)2020-02-07
CN110769395Btrue CN110769395B (en)2022-07-22

Family

ID=69333491

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911046018.4AActiveCN110769395B (en)2019-10-302019-10-30Traffic-free service synchronization method and device

Country Status (1)

CountryLink
CN (1)CN110769395B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111698100B (en)*2020-06-152023-05-23北京达佳互联信息技术有限公司Data processing method, system and related equipment
CN111836320B (en)*2020-07-232023-08-18闻泰通讯股份有限公司Sim card switching control method and device, mobile terminal and storage medium
CN113067867B (en)*2021-03-182022-10-28中国联合网络通信集团有限公司Method for synchronizing applications, synchronization server, computer device and storage medium
CN116827915A (en)*2022-03-282023-09-29华为技术有限公司 Communication methods, devices and systems

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103888928A (en)*2014-03-042014-06-25华为技术有限公司Business strategy control method and system
CN104967688A (en)*2015-06-302015-10-07北京奇虎科技有限公司 Method, mobile terminal and system for accessing network by using traffic-free platform
WO2015196697A1 (en)*2014-06-232015-12-30西安中兴新软件有限责任公司Method and device for collecting statistics on user traffic and computer storage medium
CN105827593A (en)*2016-03-082016-08-03中国联合网络通信集团有限公司Traffic-free fraud user recognition method and recognition system
CN107135085A (en)*2017-05-032017-09-05网宿科技股份有限公司 Statistical control method and system for directional flow
CN108616835A (en)*2018-04-262018-10-02腾讯科技(深圳)有限公司Internet resources acquisition methods, device, system and storage medium based on browser
CN109525654A (en)*2018-11-022019-03-26北京奇艺世纪科技有限公司A kind of data acquisition, sending method, device, client and server
CN110198530A (en)*2019-05-312019-09-03中国联合网络通信集团有限公司Exempt from scheduling processing method, device, equipment and the storage medium of traffic service
CN110290226A (en)*2019-08-122019-09-27山东五牛技术服务有限责任公司A kind of general client and server-side mating interface protocol method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103888928A (en)*2014-03-042014-06-25华为技术有限公司Business strategy control method and system
WO2015196697A1 (en)*2014-06-232015-12-30西安中兴新软件有限责任公司Method and device for collecting statistics on user traffic and computer storage medium
CN105306287A (en)*2014-06-232016-02-03西安中兴新软件有限责任公司Method and equipment for counting user flow
CN104967688A (en)*2015-06-302015-10-07北京奇虎科技有限公司 Method, mobile terminal and system for accessing network by using traffic-free platform
CN105827593A (en)*2016-03-082016-08-03中国联合网络通信集团有限公司Traffic-free fraud user recognition method and recognition system
CN107135085A (en)*2017-05-032017-09-05网宿科技股份有限公司 Statistical control method and system for directional flow
CN108616835A (en)*2018-04-262018-10-02腾讯科技(深圳)有限公司Internet resources acquisition methods, device, system and storage medium based on browser
CN109525654A (en)*2018-11-022019-03-26北京奇艺世纪科技有限公司A kind of data acquisition, sending method, device, client and server
CN110198530A (en)*2019-05-312019-09-03中国联合网络通信集团有限公司Exempt from scheduling processing method, device, equipment and the storage medium of traffic service
CN110290226A (en)*2019-08-122019-09-27山东五牛技术服务有限责任公司A kind of general client and server-side mating interface protocol method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Exploring Time Flexibility in Wireless Data Plans;Z. Wang;《Exploring Time Flexibility in Wireless Data Plans》;20180928;全文*
定向流量包产品的技术研究;韩媛;《电子测试》;20180915(第18期);全文*

Also Published As

Publication numberPublication date
CN110769395A (en)2020-02-07

Similar Documents

PublicationPublication DateTitle
CN110769395B (en)Traffic-free service synchronization method and device
CN105847067A (en)Method and device for upgrading Zigbee equipment
CN104660685A (en)Method and device for obtaining equipment information
CN105049416A (en)Method and apparatus for accessing to wifi network
CN112003893A (en)Resource downloading method and device
CN103986969A (en)Application management method, device and system
CN106371327A (en)Control right sharing method and device
CN108206998A (en)Obtain the method and device of end message
CN110945883A (en) Method and device for receiving paging signaling, and method and device for sending paging signaling
CN112770341A (en)Calling method and device
CN112260787B (en)Equipment time delay adjustment method and device, electronic equipment and storage medium
CN112583896B (en)Session management method, session management device, electronic equipment, session management server and storage medium
CN106095405B (en)Icon updating method and device
CN105208089A (en)Information display method, apparatus and system
CN108391464B (en)System message receiving method and device and system message sending method and device
CN110690979B (en)Group message processing method, device, server, client and storage medium
WO2020029025A1 (en)Flight path configuration method and device
CN104618987B (en)Access the method and device of network
CN105227426B (en)Application interface switching method and device and terminal equipment
CN105991626A (en)Network access method and network access device
CN105187154A (en)Response packet reception time delay method and response packet reception time delay device
CN112769677A (en)Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN107172199B (en)State updating method and device of mobile terminal
CN109245992B (en)Request processing method and device, electronic equipment and storage medium
CN108012258B (en)Data traffic management method and device for virtual SIM card, terminal and server

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp