Nothing Special   »   [go: up one dir, main page]

CN105049219B - Flow booking method and system, mobile terminal and server - Google Patents

Flow booking method and system, mobile terminal and server Download PDF

Info

Publication number
CN105049219B
CN105049219B CN201510462979.9A CN201510462979A CN105049219B CN 105049219 B CN105049219 B CN 105049219B CN 201510462979 A CN201510462979 A CN 201510462979A CN 105049219 B CN105049219 B CN 105049219B
Authority
CN
China
Prior art keywords
flow
user
ordering
server
mobile terminal
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
CN201510462979.9A
Other languages
Chinese (zh)
Other versions
CN105049219A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510462979.9A priority Critical patent/CN105049219B/en
Publication of CN105049219A publication Critical patent/CN105049219A/en
Application granted granted Critical
Publication of CN105049219B publication Critical patent/CN105049219B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1453Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
    • H04L12/1467Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network involving prepayment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Medical Treatment And Welfare Office Work (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure is directed to a kind of flow booking method and system, mobile terminal and server, it is related to field of communication technology.The described method includes:The flow ordering information of acquisition for mobile terminal user, flow ordering information include the mark of user and order set meal type;Judge whether mobile terminal is in networking state;When mobile terminal is not presently within networking state, flow is generated according to flow ordering information and orders short message, and short message is ordered to server transmitted traffic, server is used to order flow according to flow order short message for user.The disclosure is by obtaining the flow ordering information of user, judge whether mobile terminal networks again, if mobile terminal is not networked, flow is then generated according to flow ordering information and orders short message, and short message is ordered to server transmitted traffic, server can help user to order flow after receiving flow and ordering short message, the mode that this flow is ordered can also realize that flow is ordered independent of network in the case of no network.

Description

Flow ordering method and system, mobile terminal and server
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a traffic ordering method and system, a mobile terminal, and a server.
Background
With the development of mobile terminal technology, people are difficult to leave a wireless network in daily life, but 3G and 4G traffic cost in China is generally high, traffic is low, and the traffic is easy to use up. After the flow is used up, the user needs to order the flow.
The existing flow purchase can be realized through a third-party application, the third-party application provides an interface for ordering the flow for a user, the user sends a flow ordering request to a third-party server through a button of the interface, and the third-party server finishes the flow ordering of the user.
However, the traffic subscription method depends on the network, and the user usually has no network when needing to subscribe the traffic, so that the requirement of the user for subscribing the traffic cannot be solved in most cases.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a traffic ordering method and system, a mobile terminal, and a server.
According to a first aspect of embodiments of the present disclosure, there is provided a traffic ordering method, the method including:
the method comprises the steps that a mobile terminal obtains flow ordering information of a user, wherein the flow ordering information comprises an identification of the user and an ordering package type;
judging whether the mobile terminal is in a networking state or not;
when the mobile terminal is not in a networking state currently, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to a server, wherein the server is used for ordering the flow for the user according to the flow ordering short message;
when the server is used for subscribing the flow for the user from an operator server, generating a flow subscription short message according to the flow subscription information, wherein the flow subscription short message comprises the following steps:
generating a traffic ordering short message comprising the traffic ordering information, wherein the server is used for acquiring the traffic ordering information in the traffic ordering short message; determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user; converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic; generating a flow order comprising the user identification and the converted order package type; sending the flow order to an operator server corresponding to the user characteristics;
or,
when the server is an operator server, generating a traffic order short message according to the traffic order information, including:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the mobile terminal, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
and generating a flow ordering short message comprising the user identification and the converted ordering package type.
According to an implementation manner of the first aspect of the present disclosure, the method further includes:
and when the mobile terminal is in a networking state currently, generating a flow ordering message according to the flow ordering information, and sending the flow ordering message to the server through the Internet, wherein the server is used for ordering the flow for the user according to the flow ordering message.
According to another implementation manner of the first aspect of the present disclosure, the obtaining, by the mobile terminal, user traffic subscription information includes:
providing a flow ordering interface, wherein the flow ordering interface is used for a user to input the flow ordering information;
and acquiring the flow ordering information input by the user through the flow ordering interface.
According to another implementation manner of the first aspect of the present disclosure, the determining whether the mobile terminal is currently in a networking state includes:
sending a test message to the server, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
when a response message sent by the server is received, determining that the mobile terminal is currently in a networking state; when the response message sent by the server is not received, determining that the mobile terminal is not in a networking state currently;
or, the determining whether the mobile terminal is currently in a networking state includes:
and calling a network information interface in the mobile terminal to judge whether the mobile terminal is in a networking state currently.
According to a second aspect of the embodiments of the present disclosure, there is provided a traffic ordering method, the method including:
the method comprises the steps that a server receives a flow ordering short message sent by a mobile terminal, wherein the flow ordering short message is generated according to flow ordering information, and the flow ordering information comprises an identification of a user and an ordering package type;
according to the flow subscription short message, subscribing the flow for the user from an operator server;
the subscribing the flow for the user from the operator server according to the flow subscription short message comprises the following steps:
acquiring flow ordering information in the flow ordering short message;
ordering flow for the user according to the flow ordering information;
the subscribing to the traffic for the user according to the traffic subscription information includes:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
generating a flow order comprising the user identification and the converted order package type;
and sending the flow order to an operator server corresponding to the user characteristic.
According to an implementation of the second aspect of the disclosure, the method further comprises:
receiving a flow ordering message sent by a mobile terminal through the Internet, wherein the flow ordering message is generated according to the flow ordering information;
and subscribing the flow for the user from an operator server according to the flow subscription message.
According to another implementation of the second aspect of the disclosure, the method further comprises:
receiving a test message sent by the mobile terminal, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
and sending a response message to the mobile terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided a mobile terminal, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring flow ordering information of a user, and the flow ordering information comprises an identifier of the user and an ordering package type;
the judging module is used for judging whether the mobile terminal is in a networking state or not;
the processing module is used for generating a flow ordering short message according to the flow ordering information and sending the flow ordering short message to a server when the mobile terminal is not in a networking state currently, and the server is used for ordering the flow for the user according to the flow ordering short message;
when the server is configured to subscribe to the traffic for the user from an operator server, the processing module is specifically configured to:
generating a traffic ordering short message comprising the traffic ordering information, wherein the server is used for acquiring the traffic ordering information in the traffic ordering short message; determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user; converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic; generating a flow order comprising the user identification and the converted order package type; sending the flow order to an operator server corresponding to the user characteristics;
or,
when the server is an operator server, the processing module is specifically configured to:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the mobile terminal, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
and generating a flow ordering short message comprising the user identification and the converted ordering package type.
According to an implementation manner of the third aspect of the present disclosure, the processing module is further configured to:
and when the mobile terminal is in a networking state currently, generating a flow ordering message according to the flow ordering information, and sending the flow ordering message to the server through the Internet, wherein the server is used for ordering the flow for the user according to the flow ordering message.
According to another implementation manner of the third aspect of the present disclosure, the obtaining module includes:
the providing submodule is used for providing a flow ordering interface, and the flow ordering interface is used for a user to input the flow ordering information;
and the obtaining submodule is used for obtaining the flow ordering information input by the user through the flow ordering interface.
According to another implementation manner of the third aspect of the present disclosure, the determining module is specifically configured to:
sending a test message to the server, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
when a response message sent by the server is received, determining that the mobile terminal is currently in a networking state; when the response message sent by the server is not received, determining that the mobile terminal is not in a networking state currently;
or, the determining module is specifically configured to:
and calling a network information interface in the mobile terminal to judge whether the mobile terminal is in a networking state currently.
According to a fourth aspect of embodiments of the present disclosure, there is provided a server, including:
the receiving module is used for receiving a flow ordering short message sent by the mobile terminal, wherein the flow ordering short message is generated according to flow ordering information, and the flow ordering information comprises an identification of a user and an ordering package type;
the processing module is used for subscribing the flow for the user from the operator server according to the flow subscription short message;
the processing module comprises:
the acquisition submodule is used for acquiring the flow ordering information in the flow ordering short message;
the processing submodule is used for ordering the flow for the user according to the flow ordering information;
the processing submodule is specifically configured to:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
generating a flow order comprising the user identification and the converted order package type;
and sending the flow order to an operator server corresponding to the user characteristic.
According to an implementation manner of the fourth aspect of the present disclosure, the processing module is further configured to:
receiving a flow ordering message sent by a mobile terminal through the Internet, wherein the flow ordering message is generated according to the flow ordering information;
and subscribing the flow for the user from an operator server according to the flow subscription message.
According to another implementation manner of the fourth aspect of the present disclosure, the receiving module is further configured to:
receiving a test message sent by the mobile terminal, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
the server further comprises: and the sending module is used for sending a response message to the mobile terminal.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a mobile terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring flow ordering information of a user, wherein the flow ordering information comprises an identifier of the user and an ordering package type;
judging whether the mobile terminal is in a networking state or not;
when the mobile terminal is not in a networking state currently, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to a server, wherein the server is used for ordering the flow for the user according to the flow ordering short message;
when the server is used for subscribing the flow for the user from an operator server, generating a flow subscription short message according to the flow subscription information, wherein the flow subscription short message comprises the following steps:
generating a traffic ordering short message comprising the traffic ordering information, wherein the server is used for acquiring the traffic ordering information in the traffic ordering short message; determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user; converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic; generating a flow order comprising the user identification and the converted order package type; sending the flow order to an operator server corresponding to the user characteristics;
or,
when the server is an operator server, generating a traffic order short message according to the traffic order information, including:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the mobile terminal, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
and generating a flow ordering short message comprising the user identification and the converted ordering package type.
According to a sixth aspect of embodiments of the present disclosure, there is provided a server, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a flow ordering short message sent by a mobile terminal, wherein the flow ordering short message is generated according to flow ordering information, and the flow ordering information comprises an identification of a user and an ordering package type;
according to the flow subscription short message, subscribing the flow for the user from an operator server;
the subscribing the flow for the user from the operator server according to the flow subscription short message comprises the following steps:
acquiring flow ordering information in the flow ordering short message;
ordering flow for the user according to the flow ordering information;
the subscribing to the traffic for the user according to the traffic subscription information includes:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
generating a flow order comprising the user identification and the converted order package type;
and sending the flow order to an operator server corresponding to the user characteristic.
According to a seventh aspect of embodiments of the present disclosure, there is provided a traffic ordering system comprising a mobile terminal according to any one of the preceding claims and a server according to any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
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 invention and together with the description, serve to explain the principles of the invention.
FIG. 1A is a diagram illustrating an application scenario, according to an example embodiment.
FIG. 1B is a diagram illustrating an application scenario, according to an example embodiment.
Fig. 2 is a flow chart illustrating a method of traffic ordering according to an example embodiment.
Fig. 3 is a flow chart illustrating a method of traffic ordering according to an example embodiment.
Fig. 4 is a flow chart illustrating a method of traffic ordering according to an example embodiment.
Fig. 5 is a flow chart illustrating a method of traffic ordering according to an example embodiment.
Fig. 6 is a block diagram illustrating a mobile terminal according to an example embodiment.
Fig. 7 is a block diagram illustrating a mobile terminal according to an example embodiment.
FIG. 8 is a block diagram illustrating a server in accordance with an exemplary embodiment.
FIG. 9 is a block diagram illustrating a server in accordance with an example embodiment.
FIG. 10 is a block diagram illustrating an apparatus in accordance with an example embodiment.
FIG. 11 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Fig. 12 is a block diagram illustrating a traffic ordering system in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
For the convenience of description of the embodiments, two application scenarios of the embodiments in the present disclosure are briefly introduced below:
a first application scenario, see fig. 1A, includes a mobile terminal 1 (e.g. a smart phone), a server 2 and an operator server 3. When needing to order the flow, the mobile terminal 1 sends a flow ordering message or a flow ordering short message to the server 2; the server 2 sends a flow ordering request to the operator server 3 according to the flow ordering message or the flow ordering short message, thereby completing the flow ordering for the user. The application scenario may include operator servers 3 of multiple operators, and the servers 2 are connected to the operator servers 3, respectively.
A second application scenario, see fig. 1B, includes a mobile terminal 1 (e.g. a smart phone) and an operator server 3. When the mobile terminal 1 needs to subscribe to the traffic, it sends a traffic subscription message or a traffic subscription short message to the operator server 3, thereby completing the subscription of the traffic for the user.
It should be noted that the above-mentioned types of devices are only examples, and the disclosure is not limited thereto.
Fig. 2 is a flowchart illustrating a traffic subscription method according to an exemplary embodiment, where the traffic subscription method is applied to a mobile terminal, as shown in fig. 2, and includes the following steps:
in step S11, the mobile terminal obtains traffic order information of the user, where the traffic order information includes an identification of the user and an order package type.
Wherein, the user identification is the mobile phone number of the user generally; the subscription package type is typically determined from packages provided by the operator, with the package flow or tariff for each subscription package type being different.
In step S12, it is determined whether the mobile terminal is in a networked state.
Step S12 is specifically to determine whether the mobile terminal is connected to the internet.
In step S13, when the mobile terminal is not currently in the networking state, a traffic order short message is generated according to the traffic order information, and the traffic order short message is sent to a server, where the server is configured to order traffic for the user according to the traffic order short message.
The method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
Fig. 3 is a flowchart illustrating a traffic subscription method according to an exemplary embodiment, where the traffic subscription method is applied to a mobile terminal, as shown in fig. 3, and includes the following steps:
in step S21, a flow ordering interface is provided for the user to input flow ordering information.
When a user needs to order a flow, the user can click on an icon of an application for ordering the flow, thereby entering a flow ordering interface. The flow ordering interface can be composed of input boxes, check boxes and the like, and a user can input or select an ordering package type through the flow ordering interface.
Wherein, the user identification is the mobile phone number of the user generally; the subscription package type is typically determined from packages provided by the operator, with the package flow or tariff for each subscription package type being different.
In step S22, traffic order information input by the user through the traffic order interface is obtained, and the traffic order information includes the user' S identification and the order package type.
In step S23, it is determined whether the mobile terminal is currently in a networking state, and when the mobile terminal is currently in the networking state, step S24 is performed, and when the mobile terminal is not currently in the networking state, step S25 is performed.
Step S23 is specifically to determine whether the mobile terminal is connected to the internet. In the embodiment of the present disclosure, whether the mobile terminal is currently in the networking state is determined, which may be implemented in the following manner:
sending a test message to a server, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
when a response message sent by a server is received, determining that the mobile terminal is currently in a networking state; and when the response message sent by the server is not received, determining that the mobile terminal is not in the networking state currently.
In the embodiment of the present disclosure, whether the mobile terminal is currently in the networking state is determined, which may be implemented in the following manner:
and calling a network information interface in the mobile terminal to judge whether the mobile terminal is in a networking state currently.
The mobile terminal calls getActiveNetworkInfo () in a connectivityManager class to obtain NetworkInfo, and judges whether the network is connected or not according to the inconnected () method of the NetworkInfo.
It should be noted that step S23 can also be executed before step S21, which is not limited by the present disclosure.
In step S24, a traffic order message is generated according to the traffic order information, and the traffic order message is sent to a server through the internet, and the server is used for ordering traffic for the user according to the traffic order message.
In this step, since the mobile terminal is currently in a networking state, a traffic subscription message may be transmitted through the network to implement traffic subscription.
In this step, the server may be a server for subscribing to traffic for the user from an operator server (corresponding to the application scenario shown in fig. 1A), or may be an operator server (corresponding to the application scenario shown in fig. 1B).
In step S25, a traffic order short message is generated according to the traffic order information, and the traffic order short message is sent to a server, where the server is configured to order traffic for a user according to the traffic order short message.
In this step, since the mobile terminal is not currently in the networking state, the traffic subscription can be realized only by sending the traffic subscription message.
When the server is used to subscribe to traffic for the user from the operator server (corresponding to the application scenario shown in fig. 1A), the step S25 generates a traffic subscription short message according to the traffic subscription information, including:
and generating a flow ordering short message comprising flow ordering information. The traffic ordering short message can comprise traffic ordering information or information obtained by encoding the traffic ordering information, and the encoding mode only needs to be agreed between the server and the mobile terminal.
When the server is an operator server (corresponding to the application scenario shown in fig. 1B), the step S25 generates the traffic order short message according to the traffic order information, including:
the method comprises the following steps: and determining the user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user.
The user identifier is usually a mobile phone number, and the method for determining the user characteristics according to the mobile phone number generally comprises the following steps: and determining the attribution and the operator of the user according to the first few digits of the mobile phone number. In this step, the mobile terminal is not currently in the networking state, so that the first digits of the mobile phone number and the corresponding rules of the user's home location and the operator need to be stored in the mobile terminal in advance.
Step two: and converting the ordered package type by adopting a coding rule corresponding to the user characteristic.
The method comprises the steps that the type of the ordered packages is converted by the coding rules corresponding to the user characteristics, wherein the coding rules adopted by different attributions and operators are possibly different. For example, the subscription package type is 100M, and is converted into GPRS100 using the encoding rule.
Step three: and generating a flow ordering short message comprising the identification of the user and the converted ordering package type.
Interfaces of operator servers corresponding to different user characteristics are preset in the mobile terminal, and each interface comprises a coding rule corresponding to the user characteristics and the operator server corresponding to the user characteristics. And after the flow ordering short message is generated, sending the flow ordering short message to an operator server corresponding to the user characteristic.
The method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
Fig. 4 is a flowchart illustrating a traffic subscription method according to an exemplary embodiment, where the traffic subscription method is applied to a server, as shown in fig. 4, and includes the following steps:
in step S31, the server receives a traffic order message sent by the mobile terminal, where the traffic order message is generated according to traffic order information, and the traffic order information includes an identifier of the user and an order package type.
The flow ordering short message is sent by the mobile terminal in an unconnected state. The user's identification is usually the user's mobile phone number; the subscription package type is typically determined from packages provided by the operator, with the package flow or tariff for each subscription package type being different.
In step S32, the user is subscribed to traffic from the operator server according to the traffic subscription short message.
The method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
Fig. 5 is a flowchart illustrating a traffic subscription method according to an exemplary embodiment, where the traffic subscription method is applied to a server, as shown in fig. 5, and includes the following steps:
in step S41, the server receives a traffic order message sent by the mobile terminal, where the traffic order message is generated according to traffic order information, and the traffic order information includes an identifier of a user and an order package type
Wherein, the flow ordering information is sent by the mobile terminal in the networking state. The user's identification is usually the user's mobile phone number; the subscription package type is typically determined from packages provided by the operator, with the package flow or tariff for each subscription package type being different.
In step S42, the traffic order information in the traffic order message is obtained.
The traffic ordering short message can comprise traffic ordering information or information obtained by encoding the traffic ordering information, and the encoding mode only needs to be agreed between the server and the mobile terminal.
Correspondingly, acquiring the traffic ordering information in the traffic ordering short message: only the flow ordering information in the short message needs to be directly acquired, or the information coded by the flow ordering information is acquired and then correspondingly decoded.
In step S43, the user is subscribed to the traffic according to the traffic subscription information.
In this embodiment, subscribing to traffic for the user according to the traffic subscription information includes:
the method comprises the following steps: and determining the user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user.
The user identifier is usually a mobile phone number, and the method for determining the user characteristics according to the mobile phone number generally comprises the following steps: and determining the attribution and the operator of the user according to the first few digits of the mobile phone number. In this step, the mobile terminal is not currently in the networking state, so that the first digits of the mobile phone number and the corresponding rules of the user's home location and the operator need to be stored in the mobile terminal in advance.
Step two: and converting the ordered package type by adopting a coding rule corresponding to the user characteristic.
The method comprises the steps that the type of the ordered packages is converted by the coding rules corresponding to the user characteristics, wherein the coding rules adopted by different attributions and operators are possibly different. For example, the subscription package type is 100M, and is converted into GPRS100 using the encoding rule.
Step three: a traffic order is generated that includes the user's identification and the converted order package type.
The flow order may be a short message or a message sent through the internet.
Step four: and sending the flow order to an operator server corresponding to the user characteristics.
The server is preset with interfaces of operator servers corresponding to different user characteristics, and each interface comprises a coding rule corresponding to the user characteristic and the operator server corresponding to the user characteristic. And after the flow order is generated, sending the flow order to an operator server corresponding to the user characteristics.
Further, the method further comprises:
receiving a flow ordering message sent by a mobile terminal through the Internet, wherein the flow ordering message is generated according to the flow ordering information; and subscribing the flow for the user from the operator server according to the flow subscription message.
Here, the method for subscribing to traffic for the user from the operator server according to the traffic subscription message may be the same as step S43, and is not described in detail.
Further, the method further comprises:
receiving a test message sent by the mobile terminal, wherein the test message is used for testing whether the mobile terminal is in a networking state currently; and sending a response message to the mobile terminal, wherein the response message indicates that the mobile terminal is in the networking state currently.
The method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
Fig. 6 is a block diagram illustrating a mobile terminal according to an exemplary embodiment, the mobile terminal, as shown in fig. 6, including:
an obtaining module 501, configured to obtain flow ordering information of a user, where the flow ordering information includes an identifier of the user and an ordering package type.
Wherein, the user identification is the mobile phone number of the user generally; the subscription package type is typically determined from packages provided by the operator, with the package flow or tariff for each subscription package type being different.
The determining module 502 is configured to determine whether the mobile terminal is in a networking state, specifically, whether the mobile terminal is connected to the internet.
The processing module 503 is configured to generate a flow subscription short message according to the flow subscription information and send the flow subscription short message to a server when the mobile terminal is not currently in a networking state, where the server is configured to subscribe the flow for the user according to the flow subscription short message.
The method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
Fig. 7 is a block diagram illustrating a mobile terminal according to an exemplary embodiment, as shown in fig. 7, the mobile terminal including:
the obtaining module 601 is configured to obtain flow ordering information of a user, where the flow ordering information includes an identifier of the user and an ordering package type.
Wherein, the user identification is the mobile phone number of the user generally; the subscription package type is typically determined from packages provided by the operator, with the package flow or tariff for each subscription package type being different.
The determining module 602 is configured to determine whether the mobile terminal is in a networking state, specifically, whether the mobile terminal is connected to the internet.
The processing module 603 is configured to generate a traffic order short message according to the traffic order information and send the traffic order short message to a server when the mobile terminal is not currently in a networking state, where the server is configured to order traffic for a user according to the traffic order short message.
Further, the processing module 603 is further configured to:
when the mobile terminal is in a networking state, generating a flow ordering message according to the flow ordering information, and sending the flow ordering message to a server through the Internet, wherein the server is used for ordering the flow for a user according to the flow ordering message.
In this embodiment of the disclosure, the obtaining module 601 includes:
providing a submodule 6011, configured to provide a flow ordering interface, where the flow ordering interface is used for a user to input flow ordering information;
the obtaining sub-module 6012 is configured to obtain traffic ordering information input by a user through a traffic ordering interface.
In the embodiment of the present disclosure, the determining module 602 determines whether the mobile terminal is currently in the networking state, which may be implemented by the following method:
sending a test message to a server, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
when a response message sent by a server is received, determining that the mobile terminal is currently in a networking state; when the response message sent by the server is not received, determining that the mobile terminal is not in a networking state currently;
in the embodiment of the present disclosure, the determining module 602 determines whether the mobile terminal is currently in the networking state, which may also be implemented in the following manner:
and calling a network information interface in the mobile terminal to judge whether the mobile terminal is in a networking state currently.
The mobile terminal calls getActiveNetworkInfo () in a connectivityManager class to obtain NetworkInfo, and judges whether the network is connected or not according to the inconnected () method of the NetworkInfo.
The server may be a server for subscribing to traffic for the user from an operator server, or may be an operator server.
In this embodiment of the disclosure, when the server is used to subscribe to traffic for the user from the operator server, the processing module 603 is specifically configured to:
and generating a flow ordering short message comprising flow ordering information. The traffic ordering short message can comprise traffic ordering information or information obtained by encoding the traffic ordering information, and the encoding mode only needs to be agreed between the server and the mobile terminal.
When the server is an operator server, the processing module 603 is specifically configured to:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user; converting the type of the ordered package by adopting a coding rule corresponding to the user characteristic; and generating a flow ordering short message comprising the identification of the user and the converted ordering package type.
The user identifier is usually a mobile phone number, and the method for determining the user characteristics according to the mobile phone number generally comprises the following steps: and determining the attribution and the operator of the user according to the first few digits of the mobile phone number. However, in this step, the mobile terminal is not currently in the networking state, so the corresponding rules of the first few digits of the mobile phone number and the home location and the operator of the user need to be stored in the mobile terminal in advance. The processing module 603 may first obtain the corresponding rule, and then determine the user characteristics according to the corresponding rule.
The method comprises the steps that the type of the ordered packages is converted by the coding rules corresponding to the user characteristics, wherein the coding rules adopted by different attributions and operators are possibly different. For example, the subscription package type is 100M, and is converted into GPRS100 using the encoding rule.
Interfaces of operator servers corresponding to different user characteristics are preset in the mobile terminal, and each interface comprises a coding rule corresponding to the user characteristics and the operator server corresponding to the user characteristics. And after the flow ordering short message is generated, sending the flow ordering short message to an operator server corresponding to the user characteristic.
The method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
Fig. 8 is a block diagram illustrating a server according to an example embodiment, the server including, as shown in fig. 8:
the receiving module 701 is configured to receive a flow ordering short message sent by the mobile terminal, where the flow ordering short message is generated according to flow ordering information, and the flow ordering information includes an identifier of a user and an ordering package type.
The flow ordering short message is sent by the mobile terminal in an unconnected state. The user's identification is usually the user's mobile phone number; the subscription package type is typically determined from packages provided by the operator, with the package flow or tariff for each subscription package type being different.
A processing module 702, configured to subscribe to traffic for a user from an operator server according to a traffic subscription short message.
The method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
Fig. 9 is a block diagram illustrating a server according to an example embodiment, the server including, as shown in fig. 9:
the receiving module 801 is configured to receive a traffic order short message sent by a mobile terminal, where the traffic order short message is generated according to traffic order information, and the traffic order information includes an identifier of a user and an order package type.
The flow ordering short message is sent by the mobile terminal in an unconnected state. The user's identification is usually the user's mobile phone number; the subscription package type is typically determined from packages provided by the operator, with the package flow or tariff for each subscription package type being different.
A processing module 802, configured to subscribe to traffic for a user from an operator server according to a traffic subscription short message.
Further, the processing module 802 is further configured to:
receiving a flow ordering message sent by a mobile terminal through the Internet, wherein the flow ordering message is generated according to the flow ordering information; and subscribing the flow for the user from the operator server according to the flow subscription message.
In an embodiment of the present disclosure, the processing module 802 includes:
the obtaining sub-module 8021 is configured to obtain traffic order information in the traffic order short message.
The traffic ordering short message can comprise traffic ordering information or information obtained by encoding the traffic ordering information, and the encoding mode only needs to be agreed between the server and the mobile terminal.
Correspondingly, acquiring the traffic ordering information in the traffic ordering short message: only the flow ordering information in the short message needs to be directly acquired, or the information coded by the flow ordering information is acquired and then correspondingly decoded.
And a processing sub-module 8022, configured to subscribe the flow for the user according to the flow subscription information.
Further, processing sub-module 8022 is configured to:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user; converting the type of the ordered package by adopting a coding rule corresponding to the user characteristic; generating a flow ordering order comprising the user identification and the converted ordering package type; and sending the flow order to an operator server corresponding to the user characteristics.
The user identifier is usually a mobile phone number, and the method for determining the user characteristics according to the mobile phone number generally comprises the following steps: and determining the attribution and the operator of the user according to the first few digits of the mobile phone number. However, in this step, the mobile terminal is not currently in the networking state, so that the corresponding rules of the first digits of the mobile phone number and the home location and the operator of the user need to be stored in advance on the mobile terminal, and the processing sub-module 8022 first obtains the corresponding rules, and then can determine the user characteristics according to the corresponding rules.
The method comprises the steps that the type of the ordered packages is converted by the coding rules corresponding to the user characteristics, wherein the coding rules adopted by different attributions and operators are possibly different. For example, the subscription package type is 100M, and is converted into GPRS100 using the encoding rule.
The server is preset with interfaces of operator servers corresponding to different user characteristics, and each interface comprises a coding rule corresponding to the user characteristic and the operator server corresponding to the user characteristic. And after the flow order is generated, sending the flow order to an operator server corresponding to the user characteristics.
In this embodiment of the disclosure, the receiving module 801 is further configured to:
receiving a test message sent by the mobile terminal, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
the server further comprises: a sending module 803, configured to send a response message to the mobile terminal, where the response message indicates that the mobile terminal is currently in a networking state.
The method comprises the steps of obtaining flow ordering information of a user, judging whether the mobile terminal is networked or not, if the mobile terminal is not networked, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to the server, wherein the server can help the user to order the flow after receiving the flow ordering short message, and the flow ordering mode is independent of a network and can realize flow ordering even in the absence of the network.
With regard to the apparatus in the above-described 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 elaborated here.
Fig. 10 is a block diagram illustrating an apparatus 900 for traffic subscription in accordance with an example embodiment. For example, the apparatus 900 may be a mobile terminal.
Referring to fig. 10, the apparatus 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 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.
Power component 906 provides power to the various components of device 900. The power components 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a 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, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 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.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 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.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may detect an open/closed state of the device 900, the relative positioning of the components, such as a display and keypad of the apparatus 900, the sensor assembly 914 may also detect a change in the position of the apparatus 900 or a component of the apparatus 900, the presence or absence of user contact with the apparatus 900, orientation or acceleration/deceleration of the apparatus 900, and a change in the temperature of the apparatus 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (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 exemplary embodiment, the apparatus 900 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 exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method 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.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus, enable the apparatus to perform a method of traffic ordering, the method comprising:
acquiring flow ordering information of a user, wherein the flow ordering information comprises an identifier of the user and an ordering package type;
judging whether the mobile terminal is in a networking state or not;
and when the mobile terminal is not in a networking state currently, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to a server, wherein the server is used for ordering the flow for the user according to the flow ordering short message.
Fig. 11 is a block diagram illustrating an apparatus 1900 for traffic subscription according to an example embodiment. For example, the apparatus 1900 may be provided as a server. Referring to FIG. 11, the device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, processing component 1922 is configured to execute instructions to perform the method traffic ordering method described above.
The device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input/output (I/O) interface 1958. The device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Fig. 12 illustrates a traffic ordering system according to an exemplary embodiment, and as shown in fig. 12, the system includes a mobile terminal 1100 according to the corresponding embodiment of fig. 6 or 7 and a server 1200 according to the corresponding embodiment of fig. 8 or 9.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention 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 invention is limited only by the appended claims.

Claims (17)

1. A method for traffic ordering, the method comprising:
the method comprises the steps that a mobile terminal obtains flow ordering information of a user, wherein the flow ordering information comprises an identification of the user and an ordering package type;
judging whether the mobile terminal is in a networking state or not;
when the mobile terminal is not in a networking state currently, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to a server, wherein the server is used for ordering the flow for the user according to the flow ordering short message;
when the server is used for subscribing the flow for the user from an operator server, generating a flow subscription short message according to the flow subscription information, wherein the flow subscription short message comprises the following steps:
generating a traffic ordering short message comprising the traffic ordering information, wherein the server is used for acquiring the traffic ordering information in the traffic ordering short message; determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user; converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic; generating a flow order comprising the user identification and the converted order package type; sending the flow order to an operator server corresponding to the user characteristics;
or,
when the server is an operator server, generating a traffic order short message according to the traffic order information, including:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the mobile terminal, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
and generating a flow ordering short message comprising the user identification and the converted ordering package type.
2. The method of claim 1, further comprising:
and when the mobile terminal is in a networking state currently, generating a flow ordering message according to the flow ordering information, and sending the flow ordering message to the server through the Internet, wherein the server is used for ordering the flow for the user according to the flow ordering message.
3. The method according to claim 1 or 2, wherein the mobile terminal obtains the user traffic subscription information, and comprises:
providing a flow ordering interface, wherein the flow ordering interface is used for a user to input the flow ordering information;
and acquiring the flow ordering information input by the user through the flow ordering interface.
4. The method according to claim 1 or 2, wherein the determining whether the mobile terminal is currently in a networking state comprises:
sending a test message to the server, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
when a response message sent by the server is received, determining that the mobile terminal is currently in a networking state; when the response message sent by the server is not received, determining that the mobile terminal is not in a networking state currently;
or, the determining whether the mobile terminal is currently in a networking state includes:
and calling a network information interface in the mobile terminal to judge whether the mobile terminal is in a networking state currently.
5. A method for traffic ordering, the method comprising:
the method comprises the steps that a server receives a flow ordering short message sent by a mobile terminal, wherein the flow ordering short message is generated according to flow ordering information, and the flow ordering information comprises an identification of a user and an ordering package type;
according to the flow subscription short message, subscribing the flow for the user from an operator server;
the subscribing the flow for the user from the operator server according to the flow subscription short message comprises the following steps:
acquiring flow ordering information in the flow ordering short message;
ordering flow for the user according to the flow ordering information;
the subscribing to the traffic for the user according to the traffic subscription information includes:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
generating a flow order comprising the user identification and the converted order package type;
and sending the flow order to an operator server corresponding to the user characteristic.
6. The method of claim 5, further comprising:
receiving a flow ordering message sent by a mobile terminal through the Internet, wherein the flow ordering message is generated according to the flow ordering information;
and subscribing the flow for the user from an operator server according to the flow subscription message.
7. The method of claim 5 or 6, further comprising:
receiving a test message sent by the mobile terminal, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
and sending a response message to the mobile terminal.
8. A mobile terminal, characterized in that the mobile terminal comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring flow ordering information of a user, and the flow ordering information comprises an identifier of the user and an ordering package type;
the judging module is used for judging whether the mobile terminal is in a networking state or not;
the processing module is used for generating a flow ordering short message according to the flow ordering information and sending the flow ordering short message to a server when the mobile terminal is not in a networking state currently, and the server is used for ordering the flow for the user according to the flow ordering short message;
when the server is configured to subscribe to the traffic for the user from an operator server, the processing module is specifically configured to:
generating a traffic ordering short message comprising the traffic ordering information, wherein the server is used for acquiring the traffic ordering information in the traffic ordering short message; determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user; converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic; generating a flow order comprising the user identification and the converted order package type; sending the flow order to an operator server corresponding to the user characteristics;
or,
when the server is an operator server, the processing module is specifically configured to:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the mobile terminal, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
and generating a flow ordering short message comprising the user identification and the converted ordering package type.
9. The mobile terminal of claim 8, wherein the processing module is further configured to:
and when the mobile terminal is in a networking state currently, generating a flow ordering message according to the flow ordering information, and sending the flow ordering message to the server through the Internet, wherein the server is used for ordering the flow for the user according to the flow ordering message.
10. The mobile terminal of claim 8, wherein the obtaining module comprises:
the providing submodule is used for providing a flow ordering interface, and the flow ordering interface is used for a user to input the flow ordering information;
and the obtaining submodule is used for obtaining the flow ordering information input by the user through the flow ordering interface.
11. The mobile terminal of claim 8, wherein the determining module is specifically configured to:
sending a test message to the server, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
when a response message sent by the server is received, determining that the mobile terminal is currently in a networking state; when the response message sent by the server is not received, determining that the mobile terminal is not in a networking state currently;
or, the determining module is specifically configured to:
and calling a network information interface in the mobile terminal to judge whether the mobile terminal is in a networking state currently.
12. A server, characterized in that the server comprises:
the receiving module is used for receiving a flow ordering short message sent by the mobile terminal, wherein the flow ordering short message is generated according to flow ordering information, and the flow ordering information comprises an identification of a user and an ordering package type;
the processing module is used for subscribing the flow for the user from the operator server according to the flow subscription short message;
the processing module comprises:
the acquisition submodule is used for acquiring the flow ordering information in the flow ordering short message;
the processing submodule is used for ordering the flow for the user according to the flow ordering information;
the processing submodule is specifically configured to:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
generating a flow order comprising the user identification and the converted order package type;
and sending the flow order to an operator server corresponding to the user characteristic.
13. The server according to claim 12, wherein the processing module is further configured to:
receiving a flow ordering message sent by a mobile terminal through the Internet, wherein the flow ordering message is generated according to the flow ordering information;
and subscribing the flow for the user from an operator server according to the flow subscription message.
14. The server according to claim 12, wherein the receiving module is further configured to:
receiving a test message sent by the mobile terminal, wherein the test message is used for testing whether the mobile terminal is in a networking state currently;
the server further comprises: and the sending module is used for sending a response message to the mobile terminal.
15. A mobile terminal, characterized in that the mobile terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring flow ordering information of a user, wherein the flow ordering information comprises an identifier of the user and an ordering package type;
judging whether the mobile terminal is in a networking state or not;
when the mobile terminal is not in a networking state currently, generating a flow ordering short message according to the flow ordering information, and sending the flow ordering short message to a server, wherein the server is used for ordering the flow for the user according to the flow ordering short message;
when the server is used for subscribing the flow for the user from an operator server, generating a flow subscription short message according to the flow subscription information, wherein the flow subscription short message comprises the following steps:
generating a traffic ordering short message comprising the traffic ordering information, wherein the server is used for acquiring the traffic ordering information in the traffic ordering short message; determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user; converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic; generating a flow order comprising the user identification and the converted order package type; sending the flow order to an operator server corresponding to the user characteristics;
or,
when the server is an operator server, generating a traffic order short message according to the traffic order information, including:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the mobile terminal, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
and generating a flow ordering short message comprising the user identification and the converted ordering package type.
16. A server, characterized in that the server comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a flow ordering short message sent by a mobile terminal, wherein the flow ordering short message is generated according to flow ordering information, and the flow ordering information comprises an identification of a user and an ordering package type;
according to the flow subscription short message, subscribing the flow for the user from an operator server;
the subscribing the flow for the user from the operator server according to the flow subscription short message comprises the following steps:
acquiring flow ordering information in the flow ordering short message;
ordering flow for the user according to the flow ordering information;
the subscribing to the traffic for the user according to the traffic subscription information includes:
determining user characteristics according to the user identification, wherein the user characteristics comprise the home location and the operator of the user;
converting the ordered package type by adopting a coding rule corresponding to the user characteristic according to interfaces of operator servers corresponding to different user characteristics preset in the server, wherein the interfaces comprise the coding rule corresponding to the user characteristic and the operator servers corresponding to the user characteristic;
generating a flow order comprising the user identification and the converted order package type;
and sending the flow order to an operator server corresponding to the user characteristic.
17. A traffic ordering system, characterized in that the system comprises a mobile terminal according to any of claims 8-11 and a server according to any of claims 12-14.
CN201510462979.9A 2015-07-31 2015-07-31 Flow booking method and system, mobile terminal and server Active CN105049219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510462979.9A CN105049219B (en) 2015-07-31 2015-07-31 Flow booking method and system, mobile terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510462979.9A CN105049219B (en) 2015-07-31 2015-07-31 Flow booking method and system, mobile terminal and server

Publications (2)

Publication Number Publication Date
CN105049219A CN105049219A (en) 2015-11-11
CN105049219B true CN105049219B (en) 2018-05-08

Family

ID=54455441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510462979.9A Active CN105049219B (en) 2015-07-31 2015-07-31 Flow booking method and system, mobile terminal and server

Country Status (1)

Country Link
CN (1) CN105049219B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515906A (en) * 2015-12-10 2016-04-20 小米科技有限责任公司 Traffic information calibration method, device and terminal
CN105578512B (en) * 2016-03-24 2019-05-31 北京奇虎科技有限公司 Method, apparatus and traffic server for mobile terminal traffic alignment
EP3429234B1 (en) 2016-04-27 2020-09-02 Huawei Technologies Co., Ltd. Method for providing traffic package and related device
CN106130743A (en) * 2016-07-01 2016-11-16 江苏省公用信息有限公司 A kind of flow processing method
CN106789120A (en) * 2016-12-12 2017-05-31 中兴通讯股份有限公司 A kind of charge on traffic method, system and control server
CN107548056B (en) * 2017-08-31 2021-01-01 北京博思汇众科技股份有限公司 Roaming data processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008048075A1 (en) * 2006-10-19 2008-04-24 Insprit Co., Ltd. System of providing integrated push service and method therof
CN102196408A (en) * 2011-05-11 2011-09-21 华为软件技术有限公司 Communication service plan subscription method, service using control method, equipment and system
CN102595305A (en) * 2012-02-07 2012-07-18 中国联合网络通信集团有限公司 Processing method and system for customizing teleservice packages

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008048075A1 (en) * 2006-10-19 2008-04-24 Insprit Co., Ltd. System of providing integrated push service and method therof
CN102196408A (en) * 2011-05-11 2011-09-21 华为软件技术有限公司 Communication service plan subscription method, service using control method, equipment and system
CN102595305A (en) * 2012-02-07 2012-07-18 中国联合网络通信集团有限公司 Processing method and system for customizing teleservice packages

Also Published As

Publication number Publication date
CN105049219A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN105049219B (en) Flow booking method and system, mobile terminal and server
CN104219092B (en) The compatibility method of a kind of router administration application and router firmware and device
CN105472771B (en) Wireless connection method and device
CN109565451B (en) Method and device for using network slice
CN105430625B (en) Communication information transfer method, apparatus and system
CN107071862B (en) Account number binding method and device and intelligent equipment
KR101642019B1 (en) Method, apparatus, program, and recording medium of verifying terminal
CN109451786B (en) Unmanned aerial vehicle management method and device and communication connection establishment method and device
CN105100074A (en) Data operation processing method, device and terminal equipment
CN105427161A (en) Monetary exchange rate exchange method and device
CN105163290B (en) roaming prompting method and device
CN111294850B (en) Measurement reporting method and device, and terminal equipment information acquisition method and device
CN106453982A (en) Method and apparatus for dialing telephone number, fixed telephone and mobile terminal
CN106412481B (en) Reminding method, device and terminal based on VoLTE video calling
CN105472006A (en) File transfer method, device and system
CN106506808B (en) Method and device for prompting communication message
CN104780256A (en) Address book management method and device and intelligent terminal
CN107885464B (en) Data storage method, device and computer readable storage medium
CN107395724B (en) Network request method and device
CN108401518B (en) Channel coordination method and device
CN107039054B (en) The way of recording and device
CN104994211A (en) Incoming call prompting method, device and system
CN106354532B (en) Application account information processing method and device
CN106462680A (en) Method and device for abnormal information prompting
CN107734072B (en) Processing method and device for push information

Legal Events

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