CN102917472A - Method and system for adjustment of internet access priority - Google Patents
Method and system for adjustment of internet access priority Download PDFInfo
- Publication number
- CN102917472A CN102917472A CN2011102179510A CN201110217951A CN102917472A CN 102917472 A CN102917472 A CN 102917472A CN 2011102179510 A CN2011102179510 A CN 2011102179510A CN 201110217951 A CN201110217951 A CN 201110217951A CN 102917472 A CN102917472 A CN 102917472A
- Authority
- CN
- China
- Prior art keywords
- module
- access network
- wifi
- network connection
- priority
- 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.)
- Pending
Links
Images
Landscapes
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
一种网络连接优先级调整系统,该系统用于:读取切换开关连接的GPIO脚的GPIO信号;当该GPIO信号为1时,通过控制电路点亮WIFI指示灯,设置以WIFI优先接入网络;当该GPIO信号为0时,通过控制电路点亮3G指示灯,设置以3G优先接入网络;根据优先级设置控制移动上网设备进行网络连接。本发明还提供一种网络连接优先级调整方法。本发明可以方便地设置移动上网设备进行网络连接的优先级。
A network connection priority adjustment system, the system is used to: read the GPIO signal of the GPIO pin connected to the switch; when the GPIO signal is 1, light the WIFI indicator light through the control circuit, and set the WIFI priority to access the network ; When the GPIO signal is 0, the 3G indicator light is lit through the control circuit, and the 3G priority is set to access the network; according to the priority setting, the mobile Internet device is controlled to connect to the network. The invention also provides a network connection priority adjustment method. The present invention can conveniently set the priority of the network connection of the mobile Internet equipment.
Description
技术领域 technical field
本发明涉及一种优先级调整方法及系统,尤其是涉及一种网络连接优先级调整方法及系统。The present invention relates to a priority adjustment method and system, in particular to a network connection priority adjustment method and system.
背景技术 Background technique
几乎所有的移动上网设备都同时具有3G和WIFI模块,以满足用户随时随地接入互联网的需求。目前市场份额最大的两个移动平台的操作系统是Apple的iOS系统和Google的Android系统,采用这两种操作系统的移动上网设备在3G和WIFI均打开时优先接入WIFI网络,在无可用的WIFI时则连接3G网络。Almost all mobile Internet devices have both 3G and WIFI modules to meet the needs of users to access the Internet anytime and anywhere. At present, the operating systems of the two mobile platforms with the largest market share are Apple's iOS system and Google's Android system. Mobile Internet devices using these two operating systems will preferentially access the WIFI network when both 3G and WIFI are turned on. When using WIFI, connect to 3G network.
采用这种策略的好处是可以节省昂贵的3G费用,但同时也存在一个问题:当WIFI有故障不能接入互联网时,系统仍然是忽略3G网络而直接使用WIFI,用户只能手动去关闭WIFI,在需要使用WIFI时再手动打开,使用非常麻烦,给用户带来很大不便。更严重的是,如果用户的设备同时打开了WIFI和3G,刚开始时WIFI不能连接网络,用户采用3G接入互联网处理一些重要事务,如下单、转帐、交易等,正在处理时扫描到了WIFI信号,用户的设备便自动关闭3G连接到WIFI,而WIFI却不能连接到之前的网络,这样就可能给用户带来很大损失。针对Android及iOS的这种缺陷,目前已有采用软件方式编写应用程序来设置优先使用WIFI或3G连接网络的方法,但仍需用户手动进入设置项进行设置,如果设置菜单层数过多,就会给用户带来不便,而且也不能直观地看出当前网络连接的优先级别。The advantage of adopting this strategy is that it can save expensive 3G fees, but there is also a problem: when WIFI fails to connect to the Internet, the system still ignores the 3G network and uses WIFI directly, and the user can only manually turn off WIFI. Open manually again when needing to use WIFI, use very troublesome, bring great inconvenience to the user. What's more serious is that if the user's device turns on WIFI and 3G at the same time, WIFI cannot connect to the network at the beginning, and the user uses 3G to access the Internet to process some important affairs, such as placing orders, transferring funds, transactions, etc., and the WIFI signal is scanned during processing , the user's equipment automatically turns off 3G to connect to WIFI, but WIFI cannot connect to the previous network, which may bring great losses to the user. Aiming at this defect of Android and iOS, there is currently a method of using software to write an application program to set the priority to use WIFI or 3G to connect to the network, but the user still needs to manually enter the setting item for setting. If there are too many layers of the setting menu, it will It will cause inconvenience to the user, and it is impossible to intuitively see the priority level of the current network connection.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种网络连接优先级调整方法,可以方便地设置移动上网设备进行网络连接的优先级。In view of the above, it is necessary to provide a method for adjusting network connection priority, which can conveniently set the priority of network connection of mobile Internet devices.
鉴于以上内容,还有必要提供一种网络连接优先级调整系统,可以方便地设置移动上网设备进行网络连接的优先级。In view of the above content, it is also necessary to provide a network connection priority adjustment system, which can conveniently set the priority of the mobile Internet device for network connection.
所述网络连接优先级调整方法包括:读取步骤:读取移动上网设备的切换开关连接的GPIO脚的GPIO信号;第一指示步骤:当该GPIO信号为第一数值时,通过控制电路点亮WIFI指示灯,然后执行第一设置步骤;第一设置步骤:设置以WIFI优先接入网络,然后执行控制步骤;第二指示步骤:当该GPIO信号为第二数值时,通过控制电路点亮3G指示灯,然后执行第二设置步骤;第二设置步骤:设置以3G优先接入网络,然后执行控制步骤;及控制步骤:根据优先级设置控制该移动上网设备进行网络连接。The network connection priority adjustment method includes: a reading step: reading the GPIO signal of the GPIO pin connected to the switch of the mobile Internet device; a first indication step: when the GPIO signal is the first value, the control circuit lights up WIFI indicator, and then perform the first setting step; the first setting step: set WIFI to access the network first, and then perform the control step; the second indication step: when the GPIO signal is the second value, light up the 3G through the control circuit indicator light, and then execute the second setting step; the second setting step: set 3G priority to access the network, and then execute the control step; and control step: control the mobile Internet access device to connect to the network according to the priority setting.
所述网络连接优先级调整系统包括:读取模块,用于读取移动上网设备的切换开关连接的GPIO脚的GPIO信号;指示模块,用于当该GPIO信号为第一数值时,通过控制电路点亮WIFI指示灯;设置模块,用于当该GPIO信号为第一数值时,设置以WIFI优先接入网络;所述指示模块还用于当该GPIO信号为第二数值时,通过控制电路点亮3G指示灯;所述设置模块还用于当该GPIO信号为第二数值时,设置以3G优先接入网络;及控制模块,用于根据优先级设置控制该移动上网设备进行网络连接。The network connection priority adjustment system includes: a reading module, used to read the GPIO signal of the GPIO pin connected to the switch of the mobile Internet device; an indicating module, used for when the GPIO signal is the first value, through the control circuit Light up the WIFI indicator light; the setting module is used to set the priority access network with WIFI when the GPIO signal is the first value; the indicating module is also used to control the circuit point when the GPIO signal is the second value Turn on the 3G indicator light; the setting module is also used to set 3G priority to access the network when the GPIO signal is the second value; and the control module is used to control the mobile Internet access device to connect to the network according to the priority setting.
相较于现有技术,所述的网络连接优先级调整方法及系统,可以通过拨动切换开关快速方便地调整WIFI及3G这两种网络连接方式的优先级,而且可以通过WIFI指示灯及3G指示灯直观地看出当前网络连接的优先级别。Compared with the prior art, the described network connection priority adjustment method and system can quickly and conveniently adjust the priority of the two network connection modes of WIFI and 3G by flipping the switch, and can adjust the priority of the two network connection modes through the WIFI indicator light and 3G The indicator light visually shows the priority level of the current network connection.
附图说明 Description of drawings
图1是本发明网络连接优先级调整系统较佳实施例的应用环境图。FIG. 1 is an application environment diagram of a preferred embodiment of the network connection priority adjustment system of the present invention.
图2A-2B是本发明所使用的切换开关及指示灯示意图。2A-2B are schematic diagrams of the switch and indicator light used in the present invention.
图3是本发明网络连接优先级调整系统较佳实施例的功能模块图。Fig. 3 is a functional block diagram of a preferred embodiment of the network connection priority adjustment system of the present invention.
图4是本发明网络连接优先级调整方法较佳实施例的流程图。Fig. 4 is a flow chart of a preferred embodiment of the network connection priority adjustment method of the present invention.
图5A-5B是图4中步骤S22的具体流程图。5A-5B are specific flowcharts of step S22 in FIG. 4 .
主要元件符号说明Description of main component symbols
如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.
具体实施方式 Detailed ways
参阅图1所示,是本发明网络连接优先级调整系统较佳实施例的应用环境图。所述网络连接优先级调整系统10运行于移动上网设备1中。所述移动上网设备1中还包括切换开关20、WIFI指示灯30、3G指示灯40、WIFI模块50及3G模块60。在本实施例中,所述移动上网设备1可以是智能手机、平板电脑、MID(Mobile InternetDevice,移动互联网设备)等。所述WIFI指示灯30及3G指示灯40可以是LED灯,通过控制电路点亮或熄灭。所述WIFI模块50及3G模块60用于采用WIFI或3G方式连接网络。Referring to FIG. 1 , it is an application environment diagram of a preferred embodiment of the network connection priority adjustment system of the present invention. The network connection
参阅图2A-2B所示,是本发明所使用的切换开关及指示灯示意图。所述切换开关20连接GPIO(General Purpose Input Output,通用输入/输出)脚,触发所述GPIO脚的GPIO信号为1或0。当切换开关20拨到左边时(如图2A所示),GPIO信号为1,所述WIFI指示灯30被点亮,指示网络连接以WIFI优先;当切换开关20拨到右边时(如图2B所示),GPIO信号为0,所述3G指示灯40被点亮,指示网络连接以3G优先。在所述网络连接优先级调整系统10运行过程中,若用户拨动所述切换开关20,会触发GPIO信号变化,所述网络连接优先级调整系统10检测到GPIO信号的变化后,会重新设置网络连接的优先级。Referring to Figs. 2A-2B, it is a schematic diagram of a switch and an indicator light used in the present invention. The
参阅图3所示,是本发明网络连接优先级调整系统较佳实施例的功能模块图。Refer to FIG. 3 , which is a functional block diagram of a preferred embodiment of the network connection priority adjustment system of the present invention.
所述网络连接优先级调整系统10包括读取模块100、判断模块200、指示模块300、设置模块400及控制模块500。The network connection
所述读取模块100用于读取所述切换开关20连接的GPIO脚的GPIO信号。The
所述判断模块200用于判断该GPIO信号为1或0。The
所述指示模块300用于当该GPIO信号为1时,通过控制电路点亮所述WIFI指示灯30。The
所述设置模块400用于当该GPIO信号为1时,设置以WIFI优先接入网络。The
所述指示模块300还用于当该GPIO信号为0时,通过控制电路点亮所述3G指示灯40。The
所述设置模块400还用于当该GPIO信号为0时,设置以3G优先接入网络。The
所述控制模块500用于根据优先级设置控制所述移动上网设备1进行网络连接。当设置WIFI优先时,所述控制模块500首先判断所述WIFI模块50是否能够接入网络,当所述WIFI模块50能够接入网络时,控制所述WIFI模块50采用WIFI方式进行网络连接;当所述WIFI模块50无法接入网络时,继续判断所述3G模块60是否能够接入网络,当所述3G模块60能够接入网络时,控制所述3G模块60采用3G方式进行网络连接;当所述3G模块60也无法接入网络时,提示网络连接失败。当设置3G优先时,所述控制模块500首先判断所述3G模块60是否能够接入网络,当所述3G模块60能够接入网络时,控制所述3G模块60采用3G方式进行网络连接;当所述3G模块60无法接入网络时,继续判断所述WIFI模块50是否能够接入网络,当所述WIFI模块50能够接入网络时,控制所述WIFI模块50采用WIFI方式进行网络连接;当所述WIFI模块50也无法接入网络时,提示网络连接失败。The
参阅图4所示,是本发明网络连接优先级调整方法较佳实施例的流程图。Referring to FIG. 4 , it is a flow chart of a preferred embodiment of the network connection priority adjustment method of the present invention.
步骤S10,所述读取模块100读取所述切换开关20连接的GPIO脚的GPIO信号。Step S10 , the
步骤S12,所述判断模块200判断该GPIO信号为1或0。当该GPIO信号为1(第一数值)时,执行步骤S14;当该GPIO信号为0(第二数值)时,执行步骤S18。可以理解,在其他实施例中,也可以设定第一数值为0,第二数值为1。Step S12, the
步骤S14,所述指示模块300通过控制电路点亮所述WIFI指示灯30。Step S14, the
步骤S16,所述设置模块400设置以WIFI优先接入网络,然后执行步骤S22。In step S16, the
步骤S18,所述指示模块300通过控制电路点亮所述3G指示灯40。Step S18, the
步骤S20,所述设置模块400设置以3G优先接入网络,然后执行步骤S22。In step S20, the
步骤S22,所述控制模块500根据优先级设置控制所述移动上网设备1进行网络连接。Step S22, the
参阅图5A-5B所示,是图4中步骤S22的具体流程图。Referring to FIGS. 5A-5B , it is a specific flowchart of step S22 in FIG. 4 .
其中,图5A是当设置WIFI优先时,所述步骤S22的具体流程图。Wherein, FIG. 5A is a specific flow chart of step S22 when WIFI priority is set.
步骤S200,所述控制模块500判断所述WIFI模块50是否能够接入网络。当所述WIFI模块50能够接入网络时,执行步骤S202;当所述WIFI模块50无法接入网络时,执行步骤S204。Step S200, the
步骤S202,所述控制模块500控制所述WIFI模块50采用WIFI方式进行网络连接。Step S202, the
步骤S204,所述控制模块500判断所述3G模块60是否能够接入网络。当所述3G模块60能够接入网络时,执行步骤S206;当所述3G模块60也无法接入网络时,执行步骤S208。Step S204, the
步骤S206,所述控制模块500控制所述3G模块60采用3G方式进行网络连接。Step S206, the
步骤S208,所述控制模块500提示网络连接失败。Step S208, the
图5B是当设置3G优先时,所述步骤S22的具体流程图。FIG. 5B is a specific flow chart of step S22 when 3G priority is set.
步骤S201,所述控制模块500判断所述3G模块60是否能够接入网络。当所述3G模块60能够接入网络时,执行步骤S203;当所述3G模块60无法接入网络时,执行步骤S205。Step S201, the
步骤S203,所述控制模块500控制所述3G模块60采用3G方式进行网络连接。Step S203, the
步骤S205,所述控制模块500判断所述WIFI模块50是否能够接入网络。当所述WIFI模块50能够接入网络时,执行步骤S207;当所述WIFI模块50也无法接入网络时,执行步骤S209。Step S205, the
步骤S207,所述控制模块500控制所述WIFI模块50采用WIFI方式进行网络连接。Step S207, the
步骤S209,所述控制模块500提示网络连接失败。Step S209, the
综上所述,使用本发明网络连接优先级调整方法及系统,可以通过拨动所述切换开关20快速方便地调整WIFI及3G这两种网络连接方式的优先级,用户不需要退出当前任务,而且可以通过所述WIFI指示灯30及3G指示灯40直观地看出当前网络连接的优先级别。In summary, using the network connection priority adjustment method and system of the present invention, the priority of the two network connection modes of WIFI and 3G can be quickly and conveniently adjusted by flipping the
以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced. Without departing from the spirit and scope of the technical solution of the present invention.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102179510A CN102917472A (en) | 2011-08-01 | 2011-08-01 | Method and system for adjustment of internet access priority |
TW100127312A TW201309072A (en) | 2011-08-01 | 2011-08-02 | Method and system for adjusting priority of network connections |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102179510A CN102917472A (en) | 2011-08-01 | 2011-08-01 | Method and system for adjustment of internet access priority |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102917472A true CN102917472A (en) | 2013-02-06 |
Family
ID=47615646
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102179510A Pending CN102917472A (en) | 2011-08-01 | 2011-08-01 | Method and system for adjustment of internet access priority |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102917472A (en) |
TW (1) | TW201309072A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103441996A (en) * | 2013-08-16 | 2013-12-11 | 上海理工大学 | Method and system for transmitting files in concurrent mode |
CN105472678A (en) * | 2014-07-31 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Wireless network switching method, wireless network switching device and terminal equipment |
CN108471622A (en) * | 2018-06-12 | 2018-08-31 | Oppo广东移动通信有限公司 | WiFi connection adjustment method and device, mobile terminal and storage medium |
CN104301919B (en) * | 2014-10-22 | 2018-09-04 | 小米科技有限责任公司 | Information transferring method and related device |
CN109451548A (en) * | 2018-12-27 | 2019-03-08 | 南京阿达尔电子科技有限公司 | Method based on gateway hot standby communication between multiple network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070037547A1 (en) * | 2005-08-09 | 2007-02-15 | Lg Electronics Inc. | Changing an operation state and recovering a network of a wlan device |
CN101325769A (en) * | 2008-07-16 | 2008-12-17 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and method for automatically switching network channel |
CN101388819A (en) * | 2008-10-17 | 2009-03-18 | 深圳市同洲电子股份有限公司 | Network access method, system and mobile terminal |
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN101790225A (en) * | 2010-03-16 | 2010-07-28 | 华为终端有限公司 | Power management method and device for on-line module |
-
2011
- 2011-08-01 CN CN2011102179510A patent/CN102917472A/en active Pending
- 2011-08-02 TW TW100127312A patent/TW201309072A/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070037547A1 (en) * | 2005-08-09 | 2007-02-15 | Lg Electronics Inc. | Changing an operation state and recovering a network of a wlan device |
CN101325769A (en) * | 2008-07-16 | 2008-12-17 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and method for automatically switching network channel |
CN101388819A (en) * | 2008-10-17 | 2009-03-18 | 深圳市同洲电子股份有限公司 | Network access method, system and mobile terminal |
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN101790225A (en) * | 2010-03-16 | 2010-07-28 | 华为终端有限公司 | Power management method and device for on-line module |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103441996A (en) * | 2013-08-16 | 2013-12-11 | 上海理工大学 | Method and system for transmitting files in concurrent mode |
CN103441996B (en) * | 2013-08-16 | 2016-09-28 | 上海理工大学 | The method and system of concurrent transmission file |
CN105472678A (en) * | 2014-07-31 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Wireless network switching method, wireless network switching device and terminal equipment |
CN104301919B (en) * | 2014-10-22 | 2018-09-04 | 小米科技有限责任公司 | Information transferring method and related device |
CN108471622A (en) * | 2018-06-12 | 2018-08-31 | Oppo广东移动通信有限公司 | WiFi connection adjustment method and device, mobile terminal and storage medium |
CN108471622B (en) * | 2018-06-12 | 2021-08-17 | Oppo广东移动通信有限公司 | WiFi connection adjustment method, device, mobile terminal, and storage medium |
CN109451548A (en) * | 2018-12-27 | 2019-03-08 | 南京阿达尔电子科技有限公司 | Method based on gateway hot standby communication between multiple network |
Also Published As
Publication number | Publication date |
---|---|
TW201309072A (en) | 2013-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9955341B2 (en) | Method for preventing call-up operation errors and system using the same | |
CN105183352B (en) | Method and device for realizing more gesture recognition in terminal black screen state | |
CN104424895B (en) | Display backlight adjustment method and backlight adjustment device | |
CN102917472A (en) | Method and system for adjustment of internet access priority | |
US20140080485A1 (en) | Electronic device and method for changing network connection | |
US20150133101A1 (en) | Terminal and method for activating terminal | |
US9431983B2 (en) | Volume adjusting method, volume adjusting apparatus and electronic device using the same | |
CN104023145A (en) | Method and device for automatically starting automatic backlight adjustment of mobile terminal | |
CN105847535B (en) | A kind of display screen brightness adjustment method and mobile terminal | |
CN103513869A (en) | Display method and device for terminal lock screen interface and widget | |
CN104950716B (en) | A kind of apparatus control method and device | |
CN103025019B (en) | Mobile terminal and rapid lighting method thereof | |
CN104298347A (en) | Method and device for controlling screen of electronic display device and display system | |
WO2017076015A1 (en) | Mifi control method and device | |
CN105843730A (en) | An information prompt method and device based on an indicator light | |
CN105517131B (en) | Method, device and terminal for frequency band processing in a communication terminal | |
CN105204052A (en) | User terminal positioning mode switching method and user terminal | |
CN106097984B (en) | Method and device for starting proximity sensor in backlight adjustment and mobile terminal | |
CN105517084A (en) | Service processing method, service processing apparatus and mobile terminal in hybrid network types | |
CN105788565A (en) | Method and device for adjusting brightness | |
CN105739686A (en) | Control method and device of mobile terminal | |
CN105430724A (en) | A frequency band processing method and device in a communication terminal, and a communication terminal | |
CN105472824A (en) | Illuminating brightness adjusting method and illuminating brightness adjusting device, illuminating method and illuminating device | |
CN105843357A (en) | Method of maintaining normal application operation in power-saving management and electronic equipment | |
CN106713599A (en) | Terminal lighting application control method, device and 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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130206 |
|
WD01 | Invention patent application deemed withdrawn after publication |