CN101420346A - Network connection state controlling method - Google Patents
Network connection state controlling method Download PDFInfo
- Publication number
- CN101420346A CN101420346A CNA2008103056408A CN200810305640A CN101420346A CN 101420346 A CN101420346 A CN 101420346A CN A2008103056408 A CNA2008103056408 A CN A2008103056408A CN 200810305640 A CN200810305640 A CN 200810305640A CN 101420346 A CN101420346 A CN 101420346A
- Authority
- CN
- China
- Prior art keywords
- state
- interface card
- network
- network interface
- wireless network
- 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
Abstract
The present invention relates to a network technology and a network interface card driving technology. The problem to be solved by the invention is providing a network connection state control method for performing intelligent discrimination and automatic switch to the work state of a current network and for configuring network state for the users automatically. The technical scheme of the present invention is starting a timing monitor with a predetermined cycle for detecting the states of a wired network interface card and a wireless network interface card constantly. The technical scheme comprises the following steps: a, when a predetermined cycle is finished, the timing monitor detects the state of the wired network interface card preferentially, and if the connection state of the wired network is normal, the wired network interface card is adopted for receiving and transmitting data; otherwise, step b is entered; B, the timing monitor detects the state of the wireless network interface card, if the connection state of the wireless network interface card is normal, the wireless network interface card is adopted for receiving and transmitting data; otherwise, network abnormity is pointed out for users. According to the present invention, the discrimination can be more convenient for users because the manual set process is omitted.
Description
Technical field
The present invention relates to network technology, interface card driving technology.
Background technology
Along with development of internet technology, seen on the market product has mostly possessed the function of network insertion at present, and some high-end product has also disposed the wireless network of band WIFI agreement except possessing wired ethernet.Present digital product becomes increasingly complex along with the development of technology becomes, such as, when relating to the network configuration that product is correlated with, most of users not the technology of decorrelation, and these technology have been there is no need, for them, configuration is welcome easily more.In general, wireless network card and wired network adapter on equipment can not worked simultaneously, because can cause the network state instability like this, the phenomenon of packet loss occurs.For internetwork switching, also there is this problem in the PC computer that has wireless network now, and what adopt equally is the manual configuration mode.
Summary of the invention
Technical problem to be solved by this invention is that the network connection state controlling method that provides a kind of operating state to existing network to carry out intelligent distinguishing and automatically switch is the automatic configuration network state of user.
The technical solution adopted in the present invention is that the timing watch-dog that starts a predetermined period continues to detect the state of wired network adapter and wireless network card, may further comprise the steps:
A, predetermined period arrive, and regularly watch-dog preferentially detects the state of wired network adapter, and is normal as the cable network connection status, then adopts the wired network adapter transceive data; Otherwise, enter step b;
B, timing watch-dog detect the state of wireless network card, and be normal as the wireless network card connection status, then adopts the wireless network card transceive data; Otherwise the prompting user network is unusual.
The invention has the beneficial effects as follows, save user's manual setting up procedure, use more convenient.
Description of drawings
Fig. 1 is a flow chart of the present invention
Embodiment
The present invention detects the connection situation of cable network earlier according to the state of wired network adapter driver work in system.As find that the cable network state is normal, then can under this mode, work on.Concrete steps are as shown in Figure 1:
After a, the system start-up, beginning initialization network, starting one-period is the timer of 3 second time;
B, predetermined period arrive, and regularly watch-dog preferentially detects the state of wired network adapter, and is normal as the cable network connection status, then adopts the wired network adapter transceive data; As find cable network in case recover normal, and then can switch to immediately under the cable network state, the temporary close radio network functions, otherwise, step c entered;
C, when cable network work is undesired, regularly watch-dog detects the state of wireless network card, and is normal as the wireless network card connection status, then adopts the wireless network card transceive data; Otherwise the prompting user network is unusual.
The connection situation is broadly divided into following several state:
The physical connection problem (as in the linux system, the order that detects the connection status of network has: mii-tool eth0 and ethtool eth0) that does not connect netting twine;
System drive loads unsuccessful;
Automatic configuration of IP address, gateway, DNS etc. are unsuccessful.
As run into above-mentioned several situation and connect when obstructed, the cable network of then can temporarily stopping using is checked the configuration status of wireless network;
Detect the configuring condition of wireless network equally with above-mentioned similar method, normal as finding the wireless network state, then under this wireless mode, work; As find undesired, then can be to its abnormal network cause of user prompt.
The detection wired network adapter of mentioning among the present invention and the connection status method of wireless network card have multiple, and there is diverse ways in the system at different, and the command tools under the linux system has special order mii-tool and ethtool to detect the network interface card operating state.
Claims (2)
- [claim 1] network connection state controlling method is characterized in that, the timing watch-dog that starts a predetermined period continues to detect the state of wired network adapter and wireless network card, may further comprise the steps:A, predetermined period arrive, and regularly watch-dog preferentially detects the state of wired network adapter, and is normal as the cable network connection status, then adopts the wired network adapter transceive data; Otherwise, enter step b;B, timing watch-dog detect the state of wireless network card, and be normal as the wireless network card connection status, then adopts the wireless network card transceive data; Otherwise the prompting user network is unusual.
- [claim 2] be network connection state controlling method according to claim 1, it is characterized in that, described predetermined period is 3 seconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008103056408A CN101420346A (en) | 2008-11-20 | 2008-11-20 | Network connection state controlling method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008103056408A CN101420346A (en) | 2008-11-20 | 2008-11-20 | Network connection state controlling method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101420346A true CN101420346A (en) | 2009-04-29 |
Family
ID=40630965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008103056408A Pending CN101420346A (en) | 2008-11-20 | 2008-11-20 | Network connection state controlling method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101420346A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868641A (en) * | 2012-08-29 | 2013-01-09 | 上海斐讯数据通信技术有限公司 | Method for controlling WAN (wide area network) end of router to be connected to or disconnected from Internet |
CN103001822A (en) * | 2012-08-29 | 2013-03-27 | 五八同城信息技术有限公司 | Network anomaly handling method and device |
CN103200066A (en) * | 2012-01-06 | 2013-07-10 | 株式会社理光 | Communications apparatus and method |
CN104320355A (en) * | 2014-10-30 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Network receiving and forwarding optimization method based on linux system file |
CN104836698A (en) * | 2014-05-29 | 2015-08-12 | 腾讯科技(北京)有限公司 | Method monitoring network environment and device |
CN105743782A (en) * | 2016-01-29 | 2016-07-06 | 深圳市美贝壳科技有限公司 | Routing control method when networks of multi-network-card equipment are switched |
CN106487619A (en) * | 2016-06-30 | 2017-03-08 | 深圳市美贝壳科技有限公司 | A kind of method for switching network of Intelligent routing |
WO2017124292A1 (en) * | 2016-01-19 | 2017-07-27 | 王晓光 | Venue connecting method and system for network video conference |
CN107229835A (en) * | 2017-06-28 | 2017-10-03 | 武汉联影医疗科技有限公司 | A kind of medical data processing method and medical service system |
CN110166727A (en) * | 2019-04-18 | 2019-08-23 | 视联动力信息技术股份有限公司 | A kind of networking of view and internet switching method, apparatus and system |
-
2008
- 2008-11-20 CN CNA2008103056408A patent/CN101420346A/en active Pending
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103200066A (en) * | 2012-01-06 | 2013-07-10 | 株式会社理光 | Communications apparatus and method |
US9197707B2 (en) | 2012-01-06 | 2015-11-24 | Ricoh Company, Ltd. | Network interface determining apparatus and method |
CN103200066B (en) * | 2012-01-06 | 2015-11-25 | 株式会社理光 | Communication equipment and method |
CN103001822A (en) * | 2012-08-29 | 2013-03-27 | 五八同城信息技术有限公司 | Network anomaly handling method and device |
CN102868641A (en) * | 2012-08-29 | 2013-01-09 | 上海斐讯数据通信技术有限公司 | Method for controlling WAN (wide area network) end of router to be connected to or disconnected from Internet |
CN103001822B (en) * | 2012-08-29 | 2016-07-06 | 五八同城信息技术有限公司 | The processing method of Network Abnormal and device |
CN104836698B (en) * | 2014-05-29 | 2018-06-08 | 腾讯科技(北京)有限公司 | The method and apparatus of monitoring network environment |
CN104836698A (en) * | 2014-05-29 | 2015-08-12 | 腾讯科技(北京)有限公司 | Method monitoring network environment and device |
CN104320355A (en) * | 2014-10-30 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Network receiving and forwarding optimization method based on linux system file |
WO2017124292A1 (en) * | 2016-01-19 | 2017-07-27 | 王晓光 | Venue connecting method and system for network video conference |
CN105743782A (en) * | 2016-01-29 | 2016-07-06 | 深圳市美贝壳科技有限公司 | Routing control method when networks of multi-network-card equipment are switched |
CN106487619A (en) * | 2016-06-30 | 2017-03-08 | 深圳市美贝壳科技有限公司 | A kind of method for switching network of Intelligent routing |
CN107229835A (en) * | 2017-06-28 | 2017-10-03 | 武汉联影医疗科技有限公司 | A kind of medical data processing method and medical service system |
CN110166727A (en) * | 2019-04-18 | 2019-08-23 | 视联动力信息技术股份有限公司 | A kind of networking of view and internet switching method, apparatus and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101420346A (en) | Network connection state controlling method | |
WO2010085998A3 (en) | Method for automatic selection of a mac protocol for a communication system and related system | |
CN103220191A (en) | Method for automatically switching multiple types of networks | |
CN102123055B (en) | Ethernet switch and method for modifying configuration of same | |
CN104967971A (en) | Method achieving bluetooth automatic return connection in Android system | |
CN101765237B (en) | Intelligent data card and method for realizing same | |
CN105780379B (en) | Washing machine work based reminding method and system | |
CN103987177B (en) | The method and system of factory reset | |
CN101859275A (en) | Method, system and mobile terminal for monitoring application program | |
CN101945042A (en) | Method and equipment for link aggregation | |
CN102854847A (en) | Electrical appliance management system and electrical appliance management method thereof | |
CN104105227A (en) | A WIFI module work method and device based on different application scenarios | |
CN102710629B (en) | Method for connecting network and system | |
CN109040751A (en) | A kind of control equipment of TV aging process | |
CN102186029A (en) | Television and network access method and device for same | |
CN102004535A (en) | Electronic system and resetting method thereof | |
EP2987333B1 (en) | Remote control for first and second apparatus | |
EP2611072B1 (en) | Method for linking ethernet communication for digital protective relay and the digital protective relay performing the same | |
WO2007118404A1 (en) | Mehtod, system and device for processing tasks in device management | |
KR101623477B1 (en) | Apparatus and Method for Vehicular Bluetooth Communication | |
CN101013972A (en) | Wireless modem-based mobile data network accessing method | |
CN203590226U (en) | Wireless repeater | |
CN105159129B (en) | Intelligent appliance control system and control method | |
CN104796268B (en) | Management and guarantee communicate smoothly method for controlling power supply, device and system | |
CN102984808A (en) | Control method for general packet radio service (GPRS) in 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 | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20090429 |