CN103220191B - The automatic switching method of polytype network - Google Patents

The automatic switching method of polytype network Download PDF

Info

Publication number
CN103220191B
CN103220191B CN201310153001.5A CN201310153001A CN103220191B CN 103220191 B CN103220191 B CN 103220191B CN 201310153001 A CN201310153001 A CN 201310153001A CN 103220191 B CN103220191 B CN 103220191B
Authority
CN
China
Prior art keywords
network
connection
wireless connections
wireless
wired connection
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
CN201310153001.5A
Other languages
Chinese (zh)
Other versions
CN103220191A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201310153001.5A priority Critical patent/CN103220191B/en
Publication of CN103220191A publication Critical patent/CN103220191A/en
Application granted granted Critical
Publication of CN103220191B publication Critical patent/CN103220191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to Network Connection, particularly relate to a kind of method that automatic detection network connects and automatically carries out polytype network switching.The automatic switching method of polytype network of the present invention, mainly comprise the following steps: the wired and wireless network connection that detection in real time accesses, if wired connection success, then automatically into wired connection pattern, if wireless connections success, then automatically into wireless connections pattern, if wired connection and wireless connections success simultaneously, then judge to select wired connection or wireless connections according to priority.Beneficial effects of the present invention is, automatically carries out the switching of network connection in the environment of multiple network connects and deposits, and improves the ability that system automatically identifies and connects network, user-friendly.Present invention is particularly suitable for smart machine based on Android system.

Description

The automatic switching method of polytype network
Technical field
The present invention relates to Network Connection, particularly relate to a kind of network of detection automatically and connect and automatically carry out polytype The method of network switching.
Background technology
At present, along with the high speed development of science and technology, the technology innovation in TV domain is faster, Android platform Intelligent television is also more and more universal at the family of people, currently on the market and the most TV of people's family has all possessed network Intelligent function, therefore the mode of network insertion is the most varied, but universal several substantially can be summarized as follows: wired mode Connection route device, wireless mode connection route device and adsl broadband dialing these three mode.Certainly, for watching the consumption of TV In person, having greatly may be the deficientest to network knowledge, and the network configuration carrying out the most on a television set being correlated with can run into The biggest trouble, and network environment is the most extremely complex, it may appear that various professional problems, if so can be in intelligence On TV, netconfig function can be made intellectuality, the artificial workload participating in configuring is the smaller the better, so can be square greatly Just user.Therefore present disclosure is exactly that invention one on a television set allows the intelligent television can be for various in terms of network configuration Network carries out the method configured that automatically switches, the bigger use facilitating TV user, reduces the workload in terms of network configuration, Overturned relate on conventional Web TV multiple network access time, need user oneself to carry out the way of option and installment, its meaning is Advantage that is the most great and far-reaching, that embodied intelligent television, makes the feature that intelligent television is easy to use in terms of user operation Sufficiently embodied.
Summary of the invention
The invention of this reality is to be solved be technical problem is that, it is simply that propose the automatic switching method of one kind of multiple type networks.
The present invention solves the automatic switching method of above-mentioned technical problem the technical scheme is that polytype network, its feature It is, comprises the following steps:
A. after system start-up, in real time network service state is detected, when monitoring network service state and changing, sentence Whether this change disconnected is the change initiated by user operation, does not deals with, and returns step a after user operation completes, If it is not, then enter step b;
B. judge currently to be connected as wired connection or wireless connections, if wired connection, then enter step c, if wireless connections, Then enter and supplement d, if wired connection and wireless connections deposit, then entrance step e;
C. judge that pppoe dial-up connection Intranet or outer net are the most successful, the most then arranging network type is broadband dialing, if it is not, Then judge that Ethernet connects node the most successful, the most then arranging network type is wired connection, if it is not, the most do not revise network Type is set;
D. judge that wireless connections Intranet or outer net are the most successful, the most then arranging network type is wireless connections pattern, if it is not, Then show connection failure and point out user that wireless connections relevant parameter is configured, simultaneously scanning for the WAP signal of surrounding, Prompting user is attached and arranges network being wireless connection type;
E. judge that cable network connects outer net the most successful, the most then return step c, if it is not, then return step d.
Concrete, step e is further comprising the steps of:
E1. after cable network connects outer net failure, it is judged that it is the most failed that wireless network connects outer net, the most then step e2 is entered, If it is not, then enter step e3;
E2. detection wired connection Intranet is the most successful, the most then arranging network type is wireline mode, if it is not, then detect wireless Connect Intranet the most successful, the most then arranging network type is wireless mode, if it is not, then prompting user enters network settings dish Singly it is configured;
E3. judge whether wired connection is simultaneously connected with outer net success with wireless connections, the most then network is set automatically according to priority Connection type, if it is not, then return step b.
Concrete, the wired connection detected according to described priority and the signal intensity of wireless connections are arranged the most automatically.
The advantage of this programme there are provided the method automatically selecting network connection type according to signal intensity.
Concrete, described priority is defaulted as wired connection and is higher than wireless connections, and described priority can be by user at network settings dish Set up and put.
Concrete, described system is Android system.
Beneficial effects of the present invention is, automatically carries out the switching of network connection, improve in the environment of multiple network connects and deposits System identifies and connects the ability of network automatically, user-friendly.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that system initialization starts that network connects;
Fig. 2 is wireless device plug operating process schematic diagram in embodiment;
Fig. 3 is cable network plug operating process schematic diagram in embodiment;
Fig. 4 is network settings menu setting schematic flow sheets;
Fig. 5 is the schematic flow sheet arranging WIFI network.
Detailed description of the invention
The automatic switching method of the polytype network that the present invention proposes, connects in multiple network mainly for the smart machine that can network Enter the automated intelligent handover network connection mode under mode, detect the variable condition of access network the most in real time, when connecing After entering network appearance change, automatically identify the network type after changing and automatically set up network connection, predominantly detecting access in real time Wired with wireless network connection, if wired connection success, then automatically into wired connection pattern, if wireless connections success, Then automatically into wireless connections pattern, if wired connection and wireless connections success simultaneously, then judge to select wired company according to priority Connect or wireless connections, eliminate the numerous and diverse network of user and connect setting up procedure, particularly unfamiliar to network technology user.
Below in conjunction with the accompanying drawings and embodiment, the operation principle of the present invention is further described:
Embodiment:
As a example by intelligent television, intelligent television start after system initialize, network connect initialization flow process as it is shown in figure 1, The connection of detection wireless network and cable network whether successful connection, when after radio physical successful connection, passes through network state respectively The connection of management service detection network, after wireline physical successful connection, wired by the monitoring of cable network status monitor service Connect.Because intelligent television uses home network, usual wired connection steady in home network under current network technology Qualitative and speed is superior to wireless connections, and therefore first system detects whether wired connection connects, and is judged as after wired connection connection Ethernet and width dial-up connection state, if broadband dial-up connection success, just arranging current network pattern is width dialing mode, If broadband dialing connection is unsuccessful, just arranging current network pattern is Ethernet pattern.In the case of wired connection does not connects, it is Whether system detection private network connects, if private network connection, then arranging current network pattern is private network pattern, if not connecting, just starts inspection Surveying wireless connection conditions, if wireless connections connection, then arranging present mode is wireless connections pattern, if wireless connections do not connect, The most not changing present mode and enter network settings, in network settings and in private network pattern, moment detection connects the situation of outer net, If being connected to outer net, then exit private network pattern or network settings pattern.
As in figure 2 it is shown, handling process during wireless device plug action detected for intelligent television system.When appearance nothing being detected Line equipment plug situation, then start wireless device management service, disable wireless network when wireless device is pulled out, at wireless device Wireless network is made to use by the wireless driving of loading during insertion.The most whether detection user starts network settings menu and manually sets Putting network to connect, the most automatically change current network and arrange pattern, the input receiving user is arranged, if user is the most manual Arrange, then detect current network and connect, including wireless connections and wired connection.When cable network successful connection, detect nothing Whether the priority of gauze network higher than cable network, if wireless network priority is high, then and automatic lifting cable network connection mode Priority, and to arrange current connection mode be wired connection pattern.If wireless connections success, then detect current cable network and connect, If there is wired connection, then detecting the priority of wireless connections, if the priority of wireless connections is higher than wired connection, then arranging and working as Front connection mode is wireless connections pattern, if wireless connections do not connect, then prompts the user whether to need to enter network settings pattern.
As it is shown on figure 3, handling process during wireline equipment plug action detected for intelligent television system.When detection Ethernet pulls out During except action, directly disconnect cable network, if Ethernet insert action being detected, then set up cable network and connect.The most still Whether user to be detected starts network settings menu and manually arranges network connection, the most automatically changes current network and arranges Pattern, the input receiving user is arranged, if user is the most manually arranged, then detects current network and connects, by network state pipe The connection of reason service detection wireless network, by background monitoring program monitoring wired connection state.When Ethernet is pulled out, and Detect when wireless network connects, automatically switch to wireless network connection mode, if wireless network does not connects, do not repair yet Change current network connection mode.When background monitoring service routine monitor cable network connect time, detect and judge current Network connection priority, if cable network connection priority is relatively low, then the priority of automatic lifting wired connection, concrete is Wired connection network type according to detecting determines.If wired connection is not connected with successfully, then continue whether detection wireless connections become Merit, if success, then automatically switches to wireless network connection mode, if wireless connections are the most unsuccessful, does not the most revise current network Connection mode, and promote user carry out detection arrange.
As shown in Figure 4, the flow process of network settings menu setting network is passed through for user.After user starts network settings function, System halt all of automatic switchover process, and detect current connection mode and feed back to user, and update menu, user are set Carrying out network configuration by input equipments such as remote controllers, system preserves and arranges and the network schemer current according to arranging switching.
As it is shown in figure 5, when system detects entrance wifi pattern, it is judged that current cable network connection status, if not having Line connects, then switching present mode is wifi pattern, and arranges wireless connections priority higher than Ethernet.If being introduced into wifi Pattern, then arrange Ethernet priority higher than wireless network.
During network detects in real time, predominantly detect 8 connection status, be respectively as follows: in Ethernet connection status, Ethernet In net connection status, Ethernet outer net connection status, pppoe outer net connection status, wifi physical equipment connection status, wifi Net connection status, wifi outer net connection status and be enter network settings menu mode.In above-mentioned 8, state has a kind of appearance Change, then enter intelligent decision flow process and automatically switch.Concrete step is as follows:
Open the service thread of a various network state of background monitoring, 8 kinds of states change feelings that every 3 seconds circular tests are above-mentioned Condition;
If any one of above-mentioned 8 kinds of states change, then can enter network intelligence handoff algorithms and process;
Get rid of a kind of situation, it may be assumed that when user call network settings menu configure process voluntarily time, it is contemplated that can be with rear The Intelligent Service switching of platform clashes, so can directly return, steps out the process of network intelligence handoff algorithms.
After entering the process of network intelligence handoff algorithms, process in the following several ways:
1. when wireline physical successful connection, and when not having wireless device to connect:
The first step: detection pppoe dial-up connection Intranet or outer net are the most successful, if success, arranging network type is broadband Dialing;
Second step: if pppoe dial-up connection failure, detection ethernet connects AP whether function, if success, sets Putting network type is wired setting;
3rd step: if pppoe and ethernet detects failure, does not revise network settings type.
2. when wireless device successful connection, and when not having wireline physical to connect:
The first step: detection wireless connections Intranet or outer net successful connection, then arranging network type is wireless mode;
Second step: detection radio link failure, then prompting user is to the wireless configuration being correlated with, and ambient signals detected The strongest AP, prompting user inputs password and carries out wireless connections;Arrange network is wireless type simultaneously.
3. when wireline physical successful connection, and during wireless device successful connection:
The first step: detection cable network connects the situation of outer net, and such as successful connection, then arranging network type is wired or pppoe Pattern (concretely comprises the following steps repetition step 1);
Second step: such as the failure of wired connection outer net, detecting wireless connections outer net situation, if success, it is wireless for arranging network Pattern;
3rd step: be all connected with failure if wired with wireless connections outer net, the most discontinuously detect the situation of wired connection Intranet;
4th step: if the success of wired connection Intranet, then arranging network type is that wireline mode is not (in pppoe connection exists Net connection);
5th step: if the failure of wired connection Intranet, detect wireless connections Intranet situation, if success, current network mould is set Formula is wireless type;
Six steps: if wired all failed with wireless connections Intranet, then prompting user enters network settings menu, select wired, Pppoe or wireless carry out correspondence operation is set, then the network schemer of its correspondence is set.
4., when wired all successes with wireless connections outer net, according to the situation of home videos network transfer rate, ordinary circumstance is to have Gauze network is better than wireless network, therefore default setting is wired network types;Certain user can also pass through network settings menu and selects voluntarily Select the network type needing to connect, carry out the setting of priority.
5. when not having wireline physical to connect, and when also not having wireless device to connect: when this situation is not detected by any network insertion, Do not change current network schemer.
Intelligent television described in embodiment, based on Android platform, operates on Android system, because android The stronger portability of system, may operate on the smart machine of all Android systems in this approach, possesses well Professional platform independence, portable.

Claims (4)

1. the automatic switching method of polytype network, it is characterised in that comprise the following steps:
A. after system start-up, in real time network service state is detected, when monitoring network service state and changing, sentence Whether this change disconnected is the change initiated by user operation, does not deals with, and returns step a after user operation completes, If it is not, then enter step b;
B. judge currently to be connected as wired connection or wireless connections, if wired connection, then enter step c, if wireless connections, Then enter step d, if wired connection and wireless connections deposit, then entrance step e;
C. judge that pppoe dial-up connection Intranet or outer net are the most successful, the most then arranging network type is broadband dialing, if it is not, Then judge that Ethernet connects node the most successful, the most then arranging network type is wired connection, if it is not, the most do not revise network Type is set;
D. judge that wireless connections Intranet or outer net are the most successful, the most then arranging network type is wireless connections pattern, if it is not, Then show connection failure and point out user that wireless connections relevant parameter is configured, simultaneously scanning for the WAP signal of surrounding, Prompting user is attached and arranges network being wireless connection type;
E. judge that cable network connects outer net the most successful, the most then return step c, if it is not, then judge that wireless network connects Outer net is the most failed, the most then enter step f, if it is not, then enter step g;
F. detection wired connection Intranet is the most successful, the most then arranging network type is wireline mode, if it is not, then detect wireless Connect Intranet the most successful, the most then arranging network type is wireless mode, if it is not, then prompting user enters network settings dish Singly it is configured;
G. judge whether wired connection is simultaneously connected with outer net success with wireless connections, the most then network is set automatically according to priority Connection type, if it is not, then return step b.
The automatic switching method of polytype network the most according to claim 1, it is characterised in that described priority is root The most automatically arrange according to the signal intensity of the wired connection detected and wireless connections.
The automatic switching method of polytype network the most according to claim 1, it is characterised in that described priority is given tacit consent to For wired connection higher than wireless connections, described priority can be by user in network settings menu setting.
4. according to the automatic switching method of the polytype network described in claims 1 to 3 any one, it is characterised in that institute The system of stating is Android system.
CN201310153001.5A 2013-04-27 2013-04-27 The automatic switching method of polytype network Active CN103220191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310153001.5A CN103220191B (en) 2013-04-27 2013-04-27 The automatic switching method of polytype network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310153001.5A CN103220191B (en) 2013-04-27 2013-04-27 The automatic switching method of polytype network

Publications (2)

Publication Number Publication Date
CN103220191A CN103220191A (en) 2013-07-24
CN103220191B true CN103220191B (en) 2016-08-17

Family

ID=48817675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310153001.5A Active CN103220191B (en) 2013-04-27 2013-04-27 The automatic switching method of polytype network

Country Status (1)

Country Link
CN (1) CN103220191B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442160B (en) * 2013-08-02 2017-12-08 乐视致新电子科技(天津)有限公司 A kind of method for switching network and intelligent television
CN103594034B (en) * 2013-11-12 2017-02-15 上海滕维信息科技有限公司 Multi-screen combined electronic ink screen label with storing function and application method thereof
CN103594037B (en) * 2013-11-12 2017-02-15 上海滕维信息科技有限公司 Multi-screen electronic ink screen label displaying system and using method
CN103648036A (en) * 2013-11-15 2014-03-19 乐视致新电子科技(天津)有限公司 Arrangement method and arrangement apparatus of necessary arrangement items of intelligent television
CN103607662A (en) * 2013-11-21 2014-02-26 乐视致新电子科技(天津)有限公司 Method and apparatus for communication protocol control in intelligent television equipment
CN104158700A (en) * 2014-08-13 2014-11-19 福建富士通信息软件有限公司 Intelligent network configuration adjusting system and intelligent network configuration adjusting method based on network environment identification
CN104735737A (en) * 2015-02-04 2015-06-24 四川长虹电器股份有限公司 Automatically network switching method and device for set top box
CN104954484A (en) * 2015-06-30 2015-09-30 黑色水晶(北京)科技有限公司 IoT (Internet of Things) connection method and device
CN106972947A (en) * 2017-02-13 2017-07-21 长沙业鑫通讯技术有限公司 Redundancy intelligent entrance guard networking method based on 4G mobile networks and wired internet
CN107105463A (en) * 2017-03-28 2017-08-29 上海双微导航技术有限公司 A kind of method of GNSS device automatic switchover networking medium
CN107147546A (en) * 2017-05-31 2017-09-08 河南康联安防科技股份有限公司 Double net heartbeat inspecting method and system
CN108306763A (en) * 2018-01-05 2018-07-20 广东美的暖通设备有限公司 Household appliance and its network connection processing method, computer readable storage medium
CN109639314A (en) * 2018-12-28 2019-04-16 东莞亿动智能科技有限公司 Communication mode switching method, device, electric plating propulsion, control device and system
CN109982298A (en) * 2019-02-19 2019-07-05 深圳市和盈互联科技有限公司 It is a kind of that network method is matched based on Internet of Things Wi-Fi module
CN110392416B (en) * 2019-08-12 2021-06-29 广州鲁邦通物联网科技有限公司 Network selection method of android system
CN110392127B (en) * 2019-08-15 2022-01-11 中盈优创资讯科技有限公司 Network address space identification method and device
CN111093241A (en) * 2019-12-30 2020-05-01 安徽三拓智能科技有限公司 Intelligent network switching device and switching method
CN112636945A (en) * 2020-02-14 2021-04-09 西安诺瓦星云科技股份有限公司 Network communication method and device and media play control equipment
CN111885644B (en) * 2020-06-16 2022-09-30 太原市高远时代科技有限公司 Automatic switching method for wired network and wireless network
CN112333013B (en) * 2020-10-26 2023-07-11 北京自如信息科技有限公司 Self-adaptive networking method, device, router and storage medium
CN113873612B (en) * 2021-10-22 2024-03-01 北京小米移动软件有限公司 Method and device for accessing network and storage medium
CN114286452A (en) * 2021-12-27 2022-04-05 杭州圆规网络科技有限公司 Network connection holding method and device, storage medium, and electronic device
CN114666651B (en) * 2022-03-23 2024-03-12 成都飞鱼星科技股份有限公司 Novel intelligent wireless system
CN115550967A (en) * 2022-08-25 2022-12-30 深圳市格林科数码有限公司 Connection mode switching method and device based on wireless repeater

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1739884A1 (en) * 2000-10-04 2007-01-03 Sony Corporation Method for network selection
CN101841429A (en) * 2010-04-30 2010-09-22 广州合立正通信息网络集成有限公司 Method for implementing backup of wireless IP network, 3G and GPRS link
CN102111853A (en) * 2009-12-25 2011-06-29 联想(北京)有限公司 Method and device for automatically switching network connection as well as mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1739884A1 (en) * 2000-10-04 2007-01-03 Sony Corporation Method for network selection
CN102111853A (en) * 2009-12-25 2011-06-29 联想(北京)有限公司 Method and device for automatically switching network connection as well as mobile terminal
CN101841429A (en) * 2010-04-30 2010-09-22 广州合立正通信息网络集成有限公司 Method for implementing backup of wireless IP network, 3G and GPRS link

Also Published As

Publication number Publication date
CN103220191A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN103220191B (en) The automatic switching method of polytype network
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN104168381B (en) Realize the method and system that mobile phone is connected with intelligent imaging equipment
CN104035403B (en) Ibeacon technology based intelligent home control system and method
CN107465584A (en) Method for network access and device, the intelligent appliance of intelligent appliance
CN106376027A (en) Method for processing abnormity about access of mobile phone to network
CN105162971B (en) A kind of mobile intelligent terminal controls the method and system of intelligent domestic system
CN103048961A (en) Control method of intelligent household appliance
CN105242600A (en) Personalized intelligent water closet control system, control method thereof, and intelligent water closet
CN105207902A (en) Main-standby virtual gateway system and method based on SDN
CN105807619A (en) Small household electrical appliance wireless network control method
CN104640231B (en) The method for setting wireless network and system of intelligent appliance
CN105916189A (en) Terminal network distribution method and terminal network distribution apparatus
CN101420346A (en) Network connection state controlling method
CN107370644A (en) Inter-linked controlling method, device, computer-readable recording medium and computer equipment
CN107241247A (en) Method for network access and device, the intelligent appliance of intelligent appliance
CN105844881A (en) Method for establishing connection between robot and remote controller
CN106302078B (en) Group network system
CN105100955A (en) Set top box switching network method and device, and set top box provided with device
CN106154993A (en) A kind of device controller
CN106095274A (en) Interface display method and device are set
CN107682869A (en) The start of star-like self-organizing network is arranged net method and device
CN105282604B (en) A kind of television set and its information source intelligent selecting method
CN106487619A (en) A kind of method for switching network of Intelligent routing
CN103442160B (en) A kind of method for switching network and intelligent television

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