CN104113425A - Charge mode setting and detecting method, MiFi equipment and mobile terminal - Google Patents

Charge mode setting and detecting method, MiFi equipment and mobile terminal Download PDF

Info

Publication number
CN104113425A
CN104113425A CN201410342609.7A CN201410342609A CN104113425A CN 104113425 A CN104113425 A CN 104113425A CN 201410342609 A CN201410342609 A CN 201410342609A CN 104113425 A CN104113425 A CN 104113425A
Authority
CN
China
Prior art keywords
charging way
control frame
mifi equipment
mobile terminal
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410342609.7A
Other languages
Chinese (zh)
Other versions
CN104113425B (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201410342609.7A priority Critical patent/CN104113425B/en
Publication of CN104113425A publication Critical patent/CN104113425A/en
Application granted granted Critical
Publication of CN104113425B publication Critical patent/CN104113425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention is applicable to the communication field and provides a charge mode setting and detecting method, MiFi equipment and a mobile terminal. The charge mode setting method comprises that the MiFi equipment obtains a data charging mode; the MiFi equipment writes the data charging mode into a Wi-Fi control frame, wherein the Wi-Fi control frame has a field which labels the current charging mode; the MiFi equipment sends the Wi-Fi control frame to the mobile terminal. According to the charge mode setting and detecting method and the MiFi equipment, an operating system and application programs of the mobile terminal can intelligently save data traffic according to the current Wi-Fi connection charging mode due to the facts that the MiFi equipment writes the data charging mode into the Wi-Fi control frame and sends the Wi-Fi control frame to be mobile terminal, the mobile terminal receives the Wi-Fi control frame sent by the MiFi equipment and analyzes the Wi-Fi control frame, and then the current Wi-Fi connection charging mode is obtained.

Description

Arrange and detect method, MiFi equipment and the mobile terminal of charging way
Technical field
The invention belongs to the communications field, relate in particular to a kind of method, MiFi equipment and mobile terminal that arranges and detect charging way.
Background technology
The mode of mobile terminal accessing Internet generally has two kinds: the mobile data networks such as 2G/3G/4G and Wi-Fi network.Mobile data network is generally by flow charging, and expensive, and the flow exceeding may cause higher rate; Wi-Fi network is generally to transfer wired network (as ADSL broadband network, fiber optic network etc.) to wireless network, and these networks are generally pressed time charge, do not worry flow during use.So mobile terminal operating system can be divided into mobile data network or Wi-Fi network current residing network, application program will determine whether showing abundant picture and video information according to residing network environment, under mobile data network environment, close the control of playing up of some consumed flow, to reach the economical object of province's flow.
MiFi equipment is portable wideband wireless device, integrates modulator-demodulator, router and access point three function, be a kind of equipment that Mobile data signal is changed into Wi-Fi signal, and MiFi has met the demand that people move focus greatly.But because MiFi equipment has changed into Wi-Fi signal by Mobile data signal, it is the network environment of limit flow not that mobile terminal operating system and application program can be used as current residing network environment, and then show the information such as abundant picture, video, can consume a large amount of data network flux like this, to user, bring loss.
Summary of the invention
The object of the present invention is to provide a kind of method, MiFi equipment and mobile terminal that arranges and detect charging way, be intended to solve because MiFi equipment has changed into Wi-Fi signal by Mobile data signal, it is the network environment of limit flow not that mobile terminal operating system and application program can be used as current residing network environment, cause a large amount of data network flux of mobile terminal consumption, to user, bring the problem of loss.
First aspect, the invention provides a kind of method that charging way is set, and described method comprises:
MiFi equipment obtains the charging way of data;
MiFi equipment writes the charging way of described data in the control frame of Wi-Fi, has the field of the current charging way of mark in the control frame of described Wi-Fi;
MiFi equipment sends the control frame of described Wi-Fi to mobile terminal.
Second aspect, the invention provides a kind of MiFi equipment, and described MiFi equipment comprises:
Acquisition module, for obtaining the charging way of data;
Writing module, for the charging way of described data being write to the control frame of Wi-Fi, has the field of the current charging way of mark in the control frame of described Wi-Fi;
Sending module, for sending the control frame of described Wi-Fi to mobile terminal.
The third aspect, the invention provides a kind of method that detects charging way, and described method comprises:
Mobile terminal receives the control frame of the Wi-Fi of MiFi equipment transmission, has the field of the current charging way of mark in the control frame of described Wi-Fi;
Mobile terminal is resolved the control frame of described Wi-Fi, obtains the charging way that current Wi-Fi connects.
Fourth aspect, the invention provides a kind of mobile terminal, and described mobile terminal comprises:
Control frame receiver module, for receiving the control frame of the Wi-Fi of MiFi equipment transmission, has the field of the current charging way of mark in the control frame of described Wi-Fi;
Parsing module, for resolving the control frame of described Wi-Fi, obtains the charging way that current Wi-Fi connects.
In the present invention, because MiFi equipment writes the charging way of data in the control frame of Wi-Fi, and to mobile terminal, send the control frame of described Wi-Fi, mobile terminal receives the control frame of the Wi-Fi of MiFi equipment transmission, and resolve the control frame of described Wi-Fi, obtain the charging way that current Wi-Fi connects.Therefore the charging way intelligence that, the operating system of mobile terminal and application program can connect according to current Wi-Fi is saved data traffic.
Accompanying drawing explanation
Fig. 1 is the setting that provides of the embodiment of the present invention and the mutual schematic diagram of method that detects charging way.
Fig. 2 is the method flow diagram that charging way is set that the embodiment of the present invention one provides.
Fig. 3 is the structural representation of the control frame of Wi-Fi in the method that charging way is set that provides of the embodiment of the present invention one.
Fig. 4 is the MiFi device structure schematic diagram that the embodiment of the present invention two provides.
Fig. 5 is the method flow diagram of the detection charging way that provides of the embodiment of the present invention three.
Fig. 6 is the mobile terminal structure schematic diagram that the embodiment of the present invention four provides.
Embodiment
In order to make object of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, below by specific embodiment, describe.
embodiment mono-:
Refer to Fig. 1 and Fig. 2, the method that charging way is set that the embodiment of the present invention one provides comprises the following steps:
S101, MiFi equipment obtain the charging way of data.
Because the data set meal of operator may be charged by flow and the mode such as charged according to time, so MiFi equipment need to obtain the charging way of data.
In the embodiment of the present invention one, S101 specifically can comprise the following steps:
MiFi equipment sends charging way to operator and obtains instruction; Being specially MiFi equipment sends and carries the control command that content is Inquire Fare_Type to operator;
The form of Inquire Fare_Type is:
Request is sent by MiFi equipment, and content is empty.
The charging way of the data of the described MiFi equipment that MiFi equipment reception operator returns; Be specially the response that MiFi equipment receives the Fare_Type that operator returns.
Response sends after receiving by operator the request that MiFi equipment sends, the value that content is fare_type.
In the embodiment of the present invention one, S101 can be also specifically:
MiFi equipment receives the charging way of the data of user configured described MiFi equipment.
Be specifically as follows: MiFi equipment provides the setting option that can configure, and configuration item comprises: automatically from operator, obtain, charge by flow and charged according to time, can be selected by user current charging way when the configuration MiFi equipment.
S102, MiFi equipment write the charging way of described data in the control frame of Wi-Fi, have the field of the current charging way of mark in the control frame of described Wi-Fi.
Be specially: the control frame of described Wi-Fi is in the control frame of the Wi-Fi of prior art, to increase a Fare_Type field, as shown in Figure 3.
This field accounts for a byte, and for the current charging way of mark, specific definition is:
During newly-increased charging way, need enumerate inner increase related definition at this; Type_max represents the maximum quantity of charging way.
S103, MiFi equipment send the control frame of described Wi-Fi to mobile terminal.
In the embodiment of the present invention one, because MiFi equipment writes the charging way of data in the control frame of Wi-Fi, and to mobile terminal, send the control frame of described Wi-Fi, so mobile terminal can, by resolving the control frame of described Wi-Fi, obtain current charging way.Therefore, the operating system of mobile terminal and application program can be saved data traffic according to current charging way intelligence.
embodiment bis-:
Refer to Fig. 4, the MiFi equipment that the embodiment of the present invention two provides comprises: acquisition module 11, writing module 12 and sending module 13, wherein,
Acquisition module 11, for obtaining the charging way of data;
Writing module 12, for the charging way of described data being write to the control frame of Wi-Fi, has the field of the current charging way of mark in the control frame of described Wi-Fi;
Sending module 13, for sending the control frame of described Wi-Fi to mobile terminal.
In the embodiment of the present invention two, described acquisition module specifically can comprise:
Instruction sending module, obtains instruction for sending charging way to operator; Be specially to operator and send and carry the control command that content is Inquire Fare_Type;
The form of Inquire Fare_Type is:
Request is sent by MiFi equipment, and content is empty.
Charging way receiver module, for receiving the charging way of the data of the described MiFi equipment that operator returns; Be specially the response that MiFi equipment receives the Fare_Type that operator returns.
Response sends after receiving by operator the request that MiFi equipment sends, the value that content is fare_type.
In the embodiment of the present invention two, described acquisition module specifically can be for receiving the charging way of the data of user configured described MiFi equipment.
Be specifically as follows: MiFi equipment provides the setting option that can configure, and configuration item comprises: automatically from operator, obtain, charge by flow and charged according to time, can be selected by user current charging way when the configuration MiFi equipment.
In the embodiment of the present invention two, the control frame of described Wi-Fi is in the control frame of the Wi-Fi of prior art, to increase a Fare_Type field, as shown in Figure 3.
This field accounts for a byte, and for the current charging way of mark, specific definition is:
During newly-increased charging way, need enumerate inner increase related definition at this; Type_max represents the maximum quantity of charging way.
embodiment tri-:
Refer to figure Fig. 2 and 5, the method for the detection charging way that the embodiment of the present invention three provides comprises the following steps:
S201, mobile terminal receive the control frame of the Wi-Fi of MiFi equipment transmission, have the field of the current charging way of mark in the control frame of described Wi-Fi.
Be specially: the control frame of described Wi-Fi is in the control frame of the Wi-Fi of prior art, to increase a Fare_Type field, as shown in Figure 3.
S202, mobile terminal are resolved the control frame of described Wi-Fi, obtain the charging way that current Wi-Fi connects.
In the embodiment of the present invention three, described S202 specifically comprises the following steps:
Mobile terminal operating system is in the Wi-Fi network that is connected to the field that comprises the current charging way of mark time, bottom layer driving parses described field, pass to ccf layer, identify the charging way of current Wi-Fi network of living in, and as the application programming interfaces of ccf layer, offer the application program use of application layer.
In the embodiment of the present invention three, after S202, described method can also comprise the following steps:
The operating system of mobile terminal judges the charging way that current Wi-Fi connects;
The charging way that the upper level applications of mobile terminal connects according to described current Wi-Fi is controlled the opening and closing that show control; Be specially: if the charging way that current Wi-Fi connects is to charge by flow, closes according to demand and consume the demonstration control that surpasses predetermined amount of flow; If charged according to time, open according to demand the demonstration control that surpasses predetermined amount of flow.Thereby application program just can intelligence be saved flow.
In the embodiment of the present invention three, because mobile terminal receives the control frame of the Wi-Fi of the field with the current charging way of mark that MiFi equipment sends, and resolve the control frame of described Wi-Fi, obtain the charging way that current Wi-Fi connects.Therefore the charging way intelligence that, the operating system of mobile terminal and application program can connect according to current Wi-Fi is saved data traffic.
embodiment tetra-:
Refer to Fig. 6, the mobile terminal that the embodiment of the present invention four provides comprises: control frame receiver module 21 and parsing module 22, wherein,
Control frame receiver module 21, for receiving the control frame of the Wi-Fi of MiFi equipment transmission, has the field of the current charging way of mark in the control frame of described Wi-Fi; Be specially: the control frame of described Wi-Fi is in the control frame of the Wi-Fi of prior art, to increase a Fare_Type field, as shown in Figure 3.
Parsing module 22, for resolving the control frame of described Wi-Fi, obtains the charging way that current Wi-Fi connects.
In the embodiment of the present invention four, described parsing module specifically can be for: operating system is in the Wi-Fi network that is connected to the field that comprises the current charging way of mark time, bottom layer driving parses described field, pass to ccf layer, identify the charging way of current Wi-Fi network of living in, and as the application programming interfaces of ccf layer, offer the application program use of application layer.
In the embodiment of the present invention four, described mobile terminal can also comprise:
Judge module, judges for operating system the charging way that current Wi-Fi connects;
Control module, the charging way connecting according to described current Wi-Fi for upper level applications is controlled the opening and closing that show control; Be specially: if the charging way that current Wi-Fi connects is to charge by flow, closes according to demand and consume the demonstration control that surpasses predetermined amount of flow; If charged according to time, open according to demand the demonstration control that surpasses predetermined amount of flow.Thereby application program just can intelligence be saved flow.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the method that charging way is set, is characterized in that, described method comprises:
MiFi equipment obtains the charging way of data;
MiFi equipment writes the charging way of described data in the control frame of Wi-Fi, has the field of the current charging way of mark in the control frame of described Wi-Fi;
MiFi equipment sends the control frame of described Wi-Fi to mobile terminal.
2. the method for claim 1, is characterized in that, the charging way that described MiFi equipment obtains data specifically comprises:
MiFi equipment sends charging way to operator and obtains instruction;
The charging way of the data of the described MiFi equipment that MiFi equipment reception operator returns.
3. the method for claim 1, is characterized in that, the charging way that described MiFi equipment obtains data is specially:
MiFi equipment receives the charging way of the data of user configured described MiFi equipment.
4. a MiFi equipment, is characterized in that, described MiFi equipment comprises:
Acquisition module, for obtaining the charging way of data;
Writing module, for the charging way of described data being write to the control frame of Wi-Fi, has the field of the current charging way of mark in the control frame of described Wi-Fi;
Sending module, for sending the control frame of described Wi-Fi to mobile terminal.
5. MiFi equipment as claimed in claim 4, is characterized in that, described acquisition module specifically comprises:
Instruction sending module, obtains instruction for sending charging way to operator;
Charging way receiver module, for receiving the charging way of the data of the described MiFi equipment that operator returns.
6. MiFi equipment as claimed in claim 4, is characterized in that, described acquisition module is specifically for receiving the charging way of the data of user configured described MiFi equipment.
7. a method that detects charging way, is characterized in that, described method comprises:
Mobile terminal receives the control frame of the Wi-Fi of MiFi equipment transmission, has the field of the current charging way of mark in the control frame of described Wi-Fi;
Mobile terminal is resolved the control frame of described Wi-Fi, obtains the charging way that current Wi-Fi connects.
8. method as claimed in claim 7, is characterized in that, described mobile terminal is resolved the control frame of described Wi-Fi, and after obtaining the charging way of current Wi-Fi connection, described method also comprises:
The operating system of mobile terminal judges the charging way that current Wi-Fi connects;
The charging way that the upper level applications of mobile terminal connects according to described current Wi-Fi is controlled the opening and closing that show control.
9. a mobile terminal, is characterized in that, described mobile terminal comprises:
Control frame receiver module, for receiving the control frame of the Wi-Fi of MiFi equipment transmission, has the field of the current charging way of mark in the control frame of described Wi-Fi;
Parsing module, for resolving the control frame of described Wi-Fi, obtains the charging way that current Wi-Fi connects.
10. mobile terminal as claimed in claim 9, is characterized in that, described mobile terminal also comprises:
Judge module, judges for operating system the charging way that current Wi-Fi connects;
Control module, the charging way connecting according to described current Wi-Fi for upper level applications is controlled the opening and closing that show control.
CN201410342609.7A 2014-07-17 2014-07-17 Set and detect method, MiFi equipment and the mobile terminal of charging mode Active CN104113425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410342609.7A CN104113425B (en) 2014-07-17 2014-07-17 Set and detect method, MiFi equipment and the mobile terminal of charging mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410342609.7A CN104113425B (en) 2014-07-17 2014-07-17 Set and detect method, MiFi equipment and the mobile terminal of charging mode

Publications (2)

Publication Number Publication Date
CN104113425A true CN104113425A (en) 2014-10-22
CN104113425B CN104113425B (en) 2017-12-05

Family

ID=51710062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410342609.7A Active CN104113425B (en) 2014-07-17 2014-07-17 Set and detect method, MiFi equipment and the mobile terminal of charging mode

Country Status (1)

Country Link
CN (1) CN104113425B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516026A (en) * 2015-11-20 2016-04-20 小米科技有限责任公司 Hot spot networking control method and device
CN105554820A (en) * 2015-12-31 2016-05-04 宇龙计算机通信科技(深圳)有限公司 WIFI hotspot traffic controlling method and system, and intelligent terminal
CN106953828A (en) * 2016-01-06 2017-07-14 中文在线数字出版集团股份有限公司 A kind of EPUB hybrid protection method and systems based on mobile network
CN108337629A (en) * 2017-08-31 2018-07-27 北京博思汇众科技股份有限公司 Equipment for surfing the net information write-in method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246233A (en) * 2005-03-04 2006-09-14 Ntt Docomo Inc Charging system and charging method
CN101667920A (en) * 2008-09-03 2010-03-10 中国移动通信集团上海有限公司 Charging method and system and ticket generating device
CN101686135A (en) * 2008-09-28 2010-03-31 中兴通讯股份有限公司 Method for realizing IMS multimedia conference service charging
CN101919204A (en) * 2007-12-18 2010-12-15 阿尔卡特朗讯美国公司 Charging in IMS networks for sessions that are transferred between access networks
CN102083028A (en) * 2009-12-01 2011-06-01 华为技术有限公司 Video call charging method, video call charging equipment and video call charging system
EP2627034A1 (en) * 2012-02-09 2013-08-14 Vodafone Holding GmbH System and method for policy and/or charging control in a mobile communication network
CN103517372A (en) * 2012-06-21 2014-01-15 中国移动通信集团公司 Method for selecting access point in wireless local area network, device and system thereof
CN103716860A (en) * 2012-10-09 2014-04-09 华为技术有限公司 Method and apparatus for processing Wifi frame
CN103826217A (en) * 2012-11-16 2014-05-28 中国移动通信集团公司 WLAN user service access method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246233A (en) * 2005-03-04 2006-09-14 Ntt Docomo Inc Charging system and charging method
CN101919204A (en) * 2007-12-18 2010-12-15 阿尔卡特朗讯美国公司 Charging in IMS networks for sessions that are transferred between access networks
CN101667920A (en) * 2008-09-03 2010-03-10 中国移动通信集团上海有限公司 Charging method and system and ticket generating device
CN101686135A (en) * 2008-09-28 2010-03-31 中兴通讯股份有限公司 Method for realizing IMS multimedia conference service charging
CN102083028A (en) * 2009-12-01 2011-06-01 华为技术有限公司 Video call charging method, video call charging equipment and video call charging system
EP2627034A1 (en) * 2012-02-09 2013-08-14 Vodafone Holding GmbH System and method for policy and/or charging control in a mobile communication network
CN103517372A (en) * 2012-06-21 2014-01-15 中国移动通信集团公司 Method for selecting access point in wireless local area network, device and system thereof
CN103716860A (en) * 2012-10-09 2014-04-09 华为技术有限公司 Method and apparatus for processing Wifi frame
CN103826217A (en) * 2012-11-16 2014-05-28 中国移动通信集团公司 WLAN user service access method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516026A (en) * 2015-11-20 2016-04-20 小米科技有限责任公司 Hot spot networking control method and device
CN105554820A (en) * 2015-12-31 2016-05-04 宇龙计算机通信科技(深圳)有限公司 WIFI hotspot traffic controlling method and system, and intelligent terminal
CN106953828A (en) * 2016-01-06 2017-07-14 中文在线数字出版集团股份有限公司 A kind of EPUB hybrid protection method and systems based on mobile network
CN106953828B (en) * 2016-01-06 2021-02-26 中文在线数字出版集团股份有限公司 EPUB hybrid protection method and system based on mobile network
CN108337629A (en) * 2017-08-31 2018-07-27 北京博思汇众科技股份有限公司 Equipment for surfing the net information write-in method and device

Also Published As

Publication number Publication date
CN104113425B (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN108695921B (en) Data backup method, wireless charging device, mobile terminal and storage medium
CN104821612B (en) Charging circuit and electronic equipment with charging circuit
US20130130646A1 (en) Mobile communication terminal and method for managing sim cards
CN110166996B (en) Apparatus and method for transmitting content in portable terminal
CN104113425A (en) Charge mode setting and detecting method, MiFi equipment and mobile terminal
CN101547231A (en) Information sharing system
CN101876904A (en) Mobile terminal, and method and device for outputting running state of application programs
CN102883214A (en) Multi-terminal mutual-transmission and mutual-control method and smart television terminal
CN103092658A (en) Intelligent mobile communication terminal application program installation method and system
CN103687060A (en) Terminal communication method, terminal communication device and terminals
CN105706168A (en) System and method for reducing memory I/O power via data masking
CN103530034B (en) On mobile phone, method and the system that content editor experiences is strengthened based on NFC technique
CN108536370A (en) A kind of input interface switching method and device, electronic equipment
CN104468723A (en) Application account information synchronizing method and system based on NFC technology
CN203782384U (en) Intelligent operation panel for industrial sewing machine
CN103458317B (en) The media play controlling method of intelligent terminal and system
CN102984568A (en) Method and system for controlling mobile terminal through remote control
US20150147962A1 (en) Method for processing data and electronic device thereof
CN103024011B (en) A kind of method and system of control MHL playback equipment
CN204156992U (en) Intelligent doorbell
CN209297429U (en) integrated control intelligent charging management unit
US20080228327A1 (en) Solar cell outdoor control system
CN204576649U (en) A kind of house access control system
CN103391475A (en) Display device and intelligent device
KR101599905B1 (en) Wireless communication module and method for providing automatic configuration of network

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