CN101287245B - Network switching method and device based on browser - Google Patents

Network switching method and device based on browser Download PDF

Info

Publication number
CN101287245B
CN101287245B CN2008101134173A CN200810113417A CN101287245B CN 101287245 B CN101287245 B CN 101287245B CN 2008101134173 A CN2008101134173 A CN 2008101134173A CN 200810113417 A CN200810113417 A CN 200810113417A CN 101287245 B CN101287245 B CN 101287245B
Authority
CN
China
Prior art keywords
network
cdma
gsm
browser
effective
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
CN2008101134173A
Other languages
Chinese (zh)
Other versions
CN101287245A (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.)
China Techfaith Wireless Communication Technology Ltd
Original Assignee
China Techfaith Wireless Communication Technology 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 China Techfaith Wireless Communication Technology Ltd filed Critical China Techfaith Wireless Communication Technology Ltd
Priority to CN2008101134173A priority Critical patent/CN101287245B/en
Publication of CN101287245A publication Critical patent/CN101287245A/en
Application granted granted Critical
Publication of CN101287245B publication Critical patent/CN101287245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a network switch method based on a browser and a device thereof. The method includes that one of two network loading types in dual-mode and dual-standby communication equipment is configured as a default network loading type. The method includes the steps that the browser is activated by network application; the default network loading type is obtained; whether the network of the default network leading type is available or not is judged, if yes, the network of the default network leading type is visited; and if not, whether the network of the other network leading type is available or not is judged; if the network of the other network leading type is available, the network of the other network leading type is visited. The method is used for leading the browser to shift the network loading automatically according to network conditions.

Description

A kind of method for switching network and device based on browser
Technical field
The present invention is a kind of method for switching network and device based on browser about the network carrying technology of dual-mode handset in the wireless communication field concretely.
Background technology
Growing along with mechanics of communication, embedded communication system has been broken through traditional communication mode that can only use a kind of network simultaneously, realized dual-mode dual-standby, promptly a communication apparatus can use CDMA and two kinds of networks of GSM simultaneously, and this uses for some have the user of specific demand to provide very easily.
At present, in the embedded communication system of dual-mode dual-standby, the draw-in groove of two cards generally is fixing the differentiation, if draw-in groove 1 is a cdma network, draw-in groove 2 is exactly the GSM network so, and the employed network carrying type of the card of each draw-in groove correspondence in the browser is respectively before also being to use that two kinds of cards set, and the user can use wherein any card logging in network easily like this.
But, can not select the network application of network carrying type for some, processing in the past all is given a kind of network carrying type, for example acquiescence uses CDMA to go online, if the acquiescence web search less than, perhaps this draw-in groove does not have card, user's normal logging in network just so, if this moment, an other card was existence and operable fully, but owing to be not transformed into the approach of this network, therefore lost the chance of browse network, so not only very inconvenient, also can not embody the superiority of dual-mode dual-standby communication apparatus.
Chinese patent application 200610149795.8 discloses the network selecting method of a kind of TD-SCDMA and GSM dual-mode handset, and this method is carried out network selection by searching the frequency range network that meets the demands.The disclosed technical scheme of this patent application can be herein incorporated, with as prior art of the present invention.
Summary of the invention
In order to overcome defective of the prior art, the invention provides a kind of method for switching network and device based on browser, use so that browser carries according to the network condition automatically switching network.
One of purpose of the present invention is, a kind of method for switching network based on browser is provided, and this method comprises: in two kinds of network carrying types of dual-mode dual-standby communication equipment, setting a kind of network carrying type is the default network bearer types; Said method comprising the steps of: activate browser by network application, and call the interface that described browser provides for described network application; In described interface, obtain described default network bearer types; According to the network state that corresponding platform provider provides, judge whether the network of described default network bearer types is available, if then enter the network of described default network bearer types; If not, according to the network state that corresponding platform provider provides, judge whether the network of described another network carrying type is available, if then enter the network of described another network carrying type.
One of purpose of the present invention is, a kind of network switching device shifter based on browser is provided, described device comprises: network carrying type setup unit, be used for two kinds of network carrying types at the dual-mode dual-standby communication equipment, and setting a kind of network carrying type is the default network bearer types; Browser activates the unit, is used for activating browser by network application, and calls the interface that described browser provides for described network application; Network carrying type acquiring unit is used for obtaining described default network bearer types at described interface; The network state that provides according to corresponding platform provider is provided first network connection unit, judges whether the network of described default network bearer types is available, if then carry out the connection of the network of described default network bearer types; If otherwise export the network invalid signals of described default network bearer types; Second network connection unit, the network state that provides according to corresponding platform provider is provided, receive the network invalid signals of described default network bearer types, and whether the network of judging described another network carrying type is available, if then carry out the connection of the network of described another network carrying type.
Beneficial effect of the present invention is: can allow the user use other one in two cards to block logging in network easily, browser carries according to the network condition automatically switching network.
Description of drawings
Fig. 1 is the structured flowchart of apparatus of the present invention embodiment;
Fig. 2 is the module frame chart of apparatus of the present invention embodiment;
Fig. 3 is the flow chart of the embodiment of the invention 1;
Fig. 4 is the flow chart of the embodiment of the invention 2.
Embodiment
Below in conjunction with description of drawings the specific embodiment of the present invention.As shown in Figure 1, be the structured flowchart of apparatus of the present invention embodiment.In dual-mode handset shown in Figure 1, comprise: antenna for mobile phone, radio frequency unit, baseband circuit, speech decoding/speech coding, central processing unit, keyboard, colorful display screen, memory, CDMA draw-in groove, GSM draw-in groove etc.Wherein also comprise: the network switching device shifter.
As shown in Figure 2, switching device shifter comprises: network carrying type setup unit, be used for two kinds of network carrying types at the dual-mode dual-standby communication equipment, and setting a kind of network carrying type is the default network bearer types; Browser activates the unit, is used to activate browser; Network carrying type acquiring unit is used to obtain described default network bearer types; First network connection unit is used to judge whether the network of described default network bearer types is available, if then carry out the connection of the network of described default network bearer types; If otherwise export the network invalid signals of described default network bearer types; Second network connection unit is used to receive the network invalid signals of described default network bearer types, and judges whether the network of described another network carrying type is available, if then carry out the connection of the network of described another network carrying type.
As shown in Figure 3, the method for switching network based on browser comprises: in two kinds of network carrying types of dual-mode dual-standby communication equipment, setting a kind of network carrying type is the default network bearer types; Said method comprising the steps of: activate browser by network application; Obtain described default network bearer types; Whether the network of judging described default network bearer types is available, if then enter the network of described default network bearer types; If not, judge then whether the network of described another network carrying type is available, if then enter the network of described another network carrying type.
Embodiment 1
Keeping original browser to use on the basis of the network carrying type that pre-sets, for providing the network application of prior selection network carrying type, those do not carry out the function of automatically switching network bearer types, concrete grammar is: different interfaces is called in these network applications when activating browser, with wap push is example, when wap push will start browser, call the interface that browser provides for wap push, in this interface:
The network carrying type of setting acquiescence is CDMA;
Carrying out network judges: judge according to the network state that platform provider provides, at first judge card whether effectively (comprise card whether exist and block whether the amount of money etc. is arranged), if card effectively, see so more whether cdma network has successfully been registered, if it is below all normal, just think that cdma network is available, otherwise just think that cdma network is unavailable.
If cdma network is available, adopt cdma network so.
If cdma network is unavailable, we judge GPRS network again, also be to judge, judge at first whether the GSM card is effective, if card effectively according to the network state that platform provider provides, judge whether to be registered to the GSM network again, if be registered to network, judge again whether GPRS adheres to successfully, if more than all normal, think that GPRS is available, otherwise think that GPRS is unavailable.
If GPRS network is available, changing bearer types so is GPRS, uses GPRS network to carry out network and connects.
If GPRS network is also unavailable, keep original network carrying type so.
Embodiment 2
Keeping original browser to use on the basis of the network carrying type that pre-sets,, those do not carry out the function of automatically switching network bearer types for providing the network application of prior selection network carrying type.
Concrete grammar is: the application (comprising browser itself) that all can access browser all provides definition in one is enumerated, each is applied in and enters before the browser, the enumerated value that this application is corresponding is saved in the global variable, for example, if from SMS, extract URL(uniform resource locator) (URL) back login browser, can preserve ACTIVE_BROWSER_FROM_SMS in this global variable so, browser indicates by this judges whether this application needs to judge bearer types according to network state, if, before logging in network, to judge so current network condition, if the network of acquiescence is effective, go to carry out next step operation with regard to the parameter of using this network so, if the network of acquiescence is invalid, so just automatically switch to the another one network, carry out next step operation after obtaining network parameter.
As shown in Figure 4, if described default network bearer types is CDMA, then: judge according to the network state that CDMA platform provider provides whether the CDMA card is effective,, then adopt cdma network, otherwise cdma network is unavailable if the CDMA card is effective; If cdma network is unavailable, then the network state that provides according to GSM platform provider judges whether the GSM card is effective, if the GSM card is effective, then the default bearing type is switched to GSM and uses GPRS network to carry out the network connection; If GPRS network is unavailable, then keep the network carrying type of CDMA for acquiescence.
If described default network bearer types is GSM, then: judge according to the network state that GSM platform provider provides whether the GSM card is effective,, then adopt GPRS network, otherwise GPRS network is unavailable if the GSM card is effective; If GPRS network is unavailable, then the network state that provides according to CDMA platform provider judges whether the CDMA card is effective, if the CDMA card is effective, then the default bearing type is switched to CDMA and uses cdma network to carry out the network connection; If cdma network is unavailable, then keep the network carrying type of GSM for acquiescence.
The embodiment of the invention can allow the user use other one in two cards to block logging in network easily, and browser carries according to the network condition automatically switching network.
Therefore above embodiment only is used to illustrate the present invention, but not is used to limit the present invention.

Claims (10)

1. method for switching network based on browser, this method comprises: in two kinds of network carrying types of dual-mode dual-standby communication equipment, setting a kind of network carrying type is the default network bearer types; It is characterized in that, said method comprising the steps of:
Activate browser by network application, and call the interface that described browser provides for described network application;
In described interface, obtain described default network bearer types;
According to the network state that corresponding platform provider provides, judge whether the network of described default network bearer types is available, if then enter the network of described default network bearer types; If not,
According to the network state that corresponding platform provider provides, judge whether the network of described another network carrying type is available, if then enter the network of described another network carrying type.
2. method according to claim 1 is characterized in that, describedly activates browser by network application and comprises: by short message or WAP Push message activation browser.
3. method according to claim 1 is characterized in that, described two kinds of network carrying types comprise: CDMA and GSM.
4. method according to claim 3 is characterized in that, if described default network bearer types is CDMA, then:
Judge according to the network state that CDMA platform provider provides whether the CDMA card is effective,, then adopt cdma network, otherwise cdma network is unavailable if the CDMA card is effective;
If cdma network is unavailable, then the network state that provides according to GSM platform provider judges whether the GSM card is effective, if the GSM card is effective, then the default bearing type is switched to GSM and uses GPRS network to carry out the network connection; If GPRS network is unavailable,
Then keep the network carrying type of CDMA for acquiescence.
5. method according to claim 3 is characterized in that, if described default network bearer types is GSM, then:
Judge according to the network state that GSM platform provider provides whether the GSM card is effective,, then adopt GPRS network, otherwise GPRS network is unavailable if the GSM card is effective;
If GPRS network is unavailable, then the network state that provides according to CDMA platform provider judges whether the CDMA card is effective, if the CDMA card is effective, then the default bearing type is switched to CDMA and uses cdma network to carry out the network connection; If cdma network is unavailable,
Then keep the network carrying type of GSM for acquiescence.
6. network switching device shifter based on browser is characterized in that described device comprises:
Network carrying type setup unit is used for two kinds of network carrying types at the dual-mode dual-standby communication equipment, and setting a kind of network carrying type is the default network bearer types;
Browser activates the unit, is used for activating browser by network application, and calls the interface that described browser provides for described network application;
Network carrying type acquiring unit is used for obtaining described default network bearer types at described interface;
The network state that provides according to corresponding platform provider is provided first network connection unit, judges whether the network of described default network bearer types is available, if then carry out the connection of the network of described default network bearer types; If otherwise export the network invalid signals of described default network bearer types;
Second network connection unit, the network state that provides according to corresponding platform provider is provided, receive the network invalid signals of described default network bearer types, and whether the network of judging described another network carrying type is available, if then carry out the connection of the network of described another network carrying type.
7. device according to claim 6 is characterized in that, describedly activates browser by network application and comprises: by short message or WAP Push message activation browser.
8. device according to claim 6 is characterized in that, described two kinds of network carrying types comprise: CDMA and GSM.
9. device according to claim 8 is characterized in that, if described default network bearer types is CDMA, then:
Described first network connection unit judges according to the network state that CDMA platform provider provides whether the CDMA card is effective, if the CDMA card is effective, then adopt cdma network, otherwise cdma network is unavailable;
If cdma network is unavailable, the network state that then described second network connection unit provides according to GSM platform provider judges whether the GSM card is effective, if the GSM card is effective, then the default bearing type is switched to GSM and uses GPRS network to carry out the network connection; If GPRS network is unavailable, then keep the network carrying type of CDMA for acquiescence.
10. device according to claim 8 is characterized in that, if described default network bearer types is GSM, then:
Described first network connection unit judges according to the network state that GSM platform provider provides whether the GSM card is effective, if the GSM card is effective, then adopt GPRS network, otherwise GPRS network is unavailable;
If GPRS network is unavailable, the network state that then described second network connection unit provides according to CDMA platform provider judges whether the CDMA card is effective, if the CDMA card is effective, then the default bearing type is switched to CDMA and use cdma network to carry out the network connection; If cdma network is unavailable, then keep the network carrying type of GSM for acquiescence.
CN2008101134173A 2008-05-29 2008-05-29 Network switching method and device based on browser Active CN101287245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101134173A CN101287245B (en) 2008-05-29 2008-05-29 Network switching method and device based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101134173A CN101287245B (en) 2008-05-29 2008-05-29 Network switching method and device based on browser

Publications (2)

Publication Number Publication Date
CN101287245A CN101287245A (en) 2008-10-15
CN101287245B true CN101287245B (en) 2011-06-22

Family

ID=40059163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101134173A Active CN101287245B (en) 2008-05-29 2008-05-29 Network switching method and device based on browser

Country Status (1)

Country Link
CN (1) CN101287245B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685303B (en) * 2011-03-09 2016-06-08 腾讯科技(深圳)有限公司 Communication means and device
CN104883716A (en) * 2014-02-27 2015-09-02 宇龙计算机通信科技(深圳)有限公司 Network processing apparatus and network switching method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741644A (en) * 2004-08-23 2006-03-01 英华达(南京)科技有限公司 Method for realizing time slicing to automatic switching optimal dial network mode on dual-mode mobile telephone
CN101044771A (en) * 2004-11-03 2007-09-26 诺基亚公司 Inter-system hand-over of a mobile terminal operable with a first and a second radio access network
CN101068413A (en) * 2007-04-16 2007-11-07 中兴通讯股份有限公司 Double-mode mobile terminal personal identification number processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741644A (en) * 2004-08-23 2006-03-01 英华达(南京)科技有限公司 Method for realizing time slicing to automatic switching optimal dial network mode on dual-mode mobile telephone
CN101044771A (en) * 2004-11-03 2007-09-26 诺基亚公司 Inter-system hand-over of a mobile terminal operable with a first and a second radio access network
CN101068413A (en) * 2007-04-16 2007-11-07 中兴通讯股份有限公司 Double-mode mobile terminal personal identification number processing method

Also Published As

Publication number Publication date
CN101287245A (en) 2008-10-15

Similar Documents

Publication Publication Date Title
CN105307228B (en) A kind of method for switching network of mobile terminal, device and mobile terminal
CN107820331B (en) Call method, device, computer equipment and readable storage medium
EP2302973B1 (en) Apparatus and method for reducing power consumption in multi-mode portable terminal
KR101456625B1 (en) Method and apparatus for speed dial by mobile country code/mobile network code in mobile communication system
CN106604369A (en) Terminal device with dual-mode switching function
EP1503602B1 (en) Methods and apparatus for performing a subscriber identity module (SIM) initialization procedure
CN101098529A (en) Internet session initiation on personal cellular telecommunications devices, and customization protocol therefor
CN101252730A (en) Call hand-over method of single chip double-card mobile terminal
CN102149153A (en) Network automatic switching method and device for mobile communication device terminal
CN110730484B (en) Double-card 4G multi-mode mobile terminal and implementation method thereof
JP2011508464A (en) Wireless communication device, universal IC card, and related method and communication device
CN105744646B (en) A kind of mobile terminal and communication means
CN106455027A (en) Network standard adjustment method and mobile terminal
CN105657663A (en) Network switching method and device
CN101287245B (en) Network switching method and device based on browser
CN107708138B (en) Network access method, terminal and storage medium
US8494578B2 (en) Method for display of dual standby portable terminal and apparatus thereof
KR100687226B1 (en) Method for automatic setting by using SIM information in mobile communication station
CN104219373A (en) Dual-mode cell phone, and system and method for controlling communication of dual-mode cell phone
CN107396435A (en) Radio circuit control method, mobile terminal and computer-readable recording medium
KR101555470B1 (en) Mobile communication terminal and server and system having improved web browsing function and method thereof
US6975886B2 (en) Telecommunication terminal and a method for communicating with a server by means of a telecommunication terminal
CN100512481C (en) System and method for measuring adjacent region between different mode networks
CN105657701A (en) Calling method and device based on eSIM (embedded subscriber identity module) card
CN101668321B (en) Control method, device and system for connecting network by multimode mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant