CN105100135A - Network sharing setting method and device - Google Patents
Network sharing setting method and device Download PDFInfo
- Publication number
- CN105100135A CN105100135A CN201410177906.0A CN201410177906A CN105100135A CN 105100135 A CN105100135 A CN 105100135A CN 201410177906 A CN201410177906 A CN 201410177906A CN 105100135 A CN105100135 A CN 105100135A
- Authority
- CN
- China
- Prior art keywords
- network
- terminal
- access
- ethernet
- wireless
- 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
- 238000000034 method Methods 0.000 title claims abstract description 58
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 13
- 238000001514 detection method Methods 0.000 claims description 10
- 230000008859 change Effects 0.000 abstract description 10
- 230000006870 function Effects 0.000 description 21
- 230000008569 process Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a network sharing setting method and device, and belongs to the technical field of terminals. The method comprises the steps that current accessible network connection types are detected, and the network connection types at least include an ethernet and a wireless network; network access modes corresponding to the current accessible network connection types are acquired, and the network connection modes includes access settings aiming at the ethernet and the wireless network; and the terminals are set to be accessed to the network according to the network access modes, and the network sharing function of the wireless network card in the terminals is started to establish a wireless access point. The network connection modes corresponding to the current accessible network connection types are acquired, and the terminals are accessed to the network according to the access settings aiming at the wireless network and the ethernet in the network access modes so as to perform network sharing. The terminals are ensured not to convert the network access types in network sharing due to instability of the accessed wireless network in network sharing so that use restrictions of the current used applications caused by change of the network are not generated.
Description
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for setting network sharing.
Background
With the development of terminal technology, users frequently use terminals to access the internet in work and life. Typically, a terminal will access the internet through an access wireless network.
When the wireless network does not exist in the environment where the terminal is located, or the wireless network accessed by the terminal only can access the internal network, or only the personal computer is allowed to access the wireless network or the Ethernet to access the external network in the current environment, the terminal cannot access the Internet through the access wireless network under the three conditions. At this time, the personal computer with the wireless network card can be used to access the currently accessible network, and the wireless access point function of the wireless network card is started to perform network sharing, so that the terminal used by the user is accessed to the wireless access point provided by the personal computer, and the internet is accessed through the network accessed by the personal computer. When the wireless network and the Ethernet both can be accessed by the personal computer in the current environment, the personal computer preferentially selects to access the wireless network for network sharing.
The inventors found that the related art has at least the following problems:
if the wireless network provided in the current environment is not stable, the personal computer can be switched between the Ethernet access network and the wireless network access network in the network sharing process, so that certain applications which can only be used in the Ethernet or the wireless network are limited when being switched to the non-use environment, and the normal working use of users is influenced.
Disclosure of Invention
In order to solve the problems of the related art, the embodiments of the present disclosure provide a method and an apparatus for setting network sharing. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for setting network sharing, including: (ii) a
When a terminal starts a network sharing function, detecting the current accessible network connection type, wherein the network connection type at least comprises an Ethernet and a wireless network;
acquiring a network access mode corresponding to the currently accessible network connection type, wherein the network connection mode comprises access settings aiming at the Ethernet and the wireless network;
and setting the terminal to access a network according to the network access mode, and starting a network sharing function of a wireless network card in the terminal to create a wireless access point.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for setting network sharing, including:
the terminal comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting the current accessible network connection type when the terminal starts a network sharing function, and the network connection type at least comprises an Ethernet and a wireless network;
an obtaining module, configured to obtain a network access mode corresponding to the currently accessible network connection type, where the network connection mode includes access settings for the ethernet and the wireless network;
and the setting module is used for setting the terminal to access the network according to the network access mode and starting the network sharing function of the wireless network card in the terminal to create the wireless access point.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: and accessing the network for network sharing according to the access setting aiming at the wireless network and the Ethernet in the network access mode by acquiring the network connection mode corresponding to the current accessible network connection type. The method and the device ensure that the network access type can not be switched when the terminal carries out network sharing because the accessed wireless network is unstable when the terminal carries out network sharing, so that the use limitation of the application in use can not be caused by network change.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of setting network sharing according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of setting network sharing according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of setting network sharing according to an exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of setting network sharing according to an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating an apparatus for setting network sharing according to an example embodiment;
fig. 6 is a schematic diagram illustrating a terminal structure according to an exemplary embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Example one
The embodiment of the present disclosure provides a method for setting network sharing, and referring to fig. 1, the method flow includes:
in step 101, when the terminal starts the network sharing function, detecting a currently accessible network connection type, where the network connection type at least includes an ethernet network and a wireless network, and the method of this embodiment is used in the terminal;
in step 102, a network access mode corresponding to a currently accessible network connection type is obtained, where the network connection mode includes access settings for an ethernet network and a wireless network, and the method of this embodiment is used in a terminal;
in step 103, the terminal is set to access the network according to the network access mode, and the network sharing function of the wireless network card in the terminal is started to create a wireless access point, and the method of the embodiment is used in the terminal;
the network connection mode corresponding to the currently accessible network connection type is obtained, and the network is accessed according to the access setting aiming at the wireless network and the Ethernet in the network access mode so as to carry out network sharing. The method and the device ensure that the network access type can not be switched when the terminal carries out network sharing because the accessed wireless network is unstable when the terminal carries out network sharing, so that the use limitation of the application in use can not be caused by network change.
Example two
The embodiment of the present disclosure provides a method for setting network sharing, and referring to fig. 2, the method flow includes:
in step 201, when the terminal starts the network sharing function, the currently accessible network connection type is detected, where the network connection type includes at least ethernet and a wireless network, and the method of this embodiment is used in the terminal.
Since the network connection types include two types, namely, ethernet and wireless network, it is necessary to detect the two types of network connection respectively to check whether there is an accessible ethernet or an accessible wireless network.
The process for detecting whether there is an accessible ethernet network is: setting a terminal to forbid accessing a network through a wireless network and sending a network exploration instruction; and if the feedback data packet aiming at the network exploration instruction is received, determining that the accessible Ethernet exists.
Further, the process of setting the terminal to prohibit accessing the network through the wireless network may be: setting a wireless network card of the terminal to be forbidden; for the network exploration instruction, a ping command may be used.
The procedure for detecting whether there is an accessible wireless network is: setting a terminal to forbid accessing to a network through the Ethernet and sending a network exploration instruction; and determining that the accessible wireless network exists if the feedback data packet aiming at the network exploration instruction is received.
Further, the process of setting the terminal to prohibit accessing the network through the ethernet may be: setting the Ethernet card of the terminal to be forbidden; for the network exploration instruction, a ping command may be used.
In step 202, if the currently accessible network connection type is only ethernet, it is determined that the terminal accesses the network through the ethernet, and the terminal is set to prohibit accessing the network through the wireless network.
In the embodiment of the present disclosure, the detected currently accessible network connection type is only ethernet.
Therefore, when only the ethernet network is present, in order to ensure that the terminals do not have a problem of network switching or the like during the process of sharing the network, access to the network through the wireless network is prohibited, and the wireless network card may be set to be disabled or the function of accessing the wireless network card to the network may be temporarily turned off.
After the setting, if an accessible wireless network appears in the current environment, the terminal does not access the wireless network.
In step 203, the terminal is set to access the network according to the network access mode, and the network sharing function of the wireless network card in the terminal is started to create the wireless access point.
The network connection mode corresponding to the currently accessible network connection type is obtained, and the network is accessed according to the access setting aiming at the wireless network and the Ethernet in the network access mode so as to carry out network sharing. The method and the device ensure that the network access type can not be switched when the terminal carries out network sharing because the accessed wireless network is unstable when the terminal carries out network sharing, so that the use limitation of the application in use can not be caused by network change.
EXAMPLE III
The embodiment of the present disclosure provides a method for setting network sharing, referring to fig. 3, the method flow includes:
in step 301, when the terminal starts the network sharing function, the currently accessible network connection type is detected, where the network connection type includes at least ethernet and a wireless network, and the method of this embodiment is used in the terminal.
Since the network connection types include two types, namely, ethernet and wireless network, it is necessary to detect the two types of network connection respectively to check whether there is an accessible ethernet or an accessible wireless network.
The process for detecting whether there is an accessible ethernet network is: setting a terminal to forbid accessing a network through a wireless network and sending a network exploration instruction; and if the feedback data packet aiming at the network exploration instruction is received, determining that the accessible Ethernet exists.
Further, the process of setting the terminal to prohibit accessing the network through the wireless network may be: setting a wireless network card of the terminal to be forbidden; for the network exploration instruction, a ping command may be used.
The procedure for detecting whether there is an accessible wireless network is: setting a terminal to forbid accessing to a network through the Ethernet and sending a network exploration instruction; and determining that the accessible wireless network exists if the feedback data packet aiming at the network exploration instruction is received.
Further, the process of setting the terminal to prohibit accessing the network through the ethernet may be: setting the Ethernet card of the terminal to be forbidden; for the network exploration instruction, a ping command may be used.
In step 302, if the currently accessible network connection type is only the wireless network, it is determined that the terminal accesses the network through the wireless network, and the terminal is set to be prohibited from accessing the network through the ethernet.
In the embodiment of the present disclosure, the detected currently accessible network connection type is only the wireless network.
Therefore, when only a wireless network exists, in order to ensure that a terminal does not have a network switch or other problems while sharing a network, access to the network through the ethernet network is prohibited, and the ethernet card may be disabled or the function of accessing the ethernet card to the network may be temporarily turned off.
After the setting, if an accessible ethernet network appears in the current environment, the terminal will not access the ethernet network.
In step 303, the terminal is set to access the network according to the network access mode, and the network sharing function of the wireless network card in the terminal is started to create the wireless access point.
The network connection mode corresponding to the currently accessible network connection type is obtained, and the network is accessed according to the access setting aiming at the wireless network and the Ethernet in the network access mode so as to carry out network sharing. The method and the device ensure that the network access type can not be switched when the terminal carries out network sharing because the accessed wireless network is unstable when the terminal carries out network sharing, so that the use limitation of the application in use can not be caused by network change.
Example four
The embodiment of the present disclosure provides a method for setting network sharing, referring to fig. 4, the method flow includes:
in step 401, when the terminal starts the network sharing function, detecting a currently accessible network connection type, where the network connection type includes at least an ethernet network and a wireless network.
Since the network connection types include two types, namely, ethernet and wireless network, it is necessary to detect the two types of network connection respectively to check whether there is an accessible ethernet or an accessible wireless network.
The process for detecting whether there is an accessible ethernet network is: setting a terminal to forbid accessing a network through a wireless network and sending a network exploration instruction; and if the feedback data packet aiming at the network exploration instruction is received, determining that the accessible Ethernet exists.
Further, the process of setting the terminal to prohibit accessing the network through the wireless network may be: setting a wireless network card of the terminal to be forbidden; for the network exploration instruction, a ping command may be used.
The procedure for detecting whether there is an accessible wireless network is: setting a terminal to forbid accessing to a network through the Ethernet and sending a network exploration instruction; and determining that the accessible wireless network exists if the feedback data packet aiming at the network exploration instruction is received.
Further, the process of setting the terminal to prohibit accessing the network through the ethernet may be: setting the Ethernet card of the terminal to be forbidden; for the network exploration instruction, a ping command may be used.
In step 402, if the currently accessible network connection type includes ethernet and wireless network, acquiring a preset specified access type, determining that the terminal accesses the network through the specified access type, and setting the terminal to prohibit accessing the network through other network connection types other than the specified access type; the specified access type belongs to one of an ethernet network and a wireless network included in the network connection type, and the method of the present embodiment is used in a terminal.
In the embodiment of the present disclosure, the detected currently accessible network connection types are ethernet and wireless.
The specified access type may be preset by a user or may be set by default of the system, and is not limited herein.
When the designated access type is ethernet, access to the network via the wireless network is prohibited, that is, the wireless network card is disabled, or the function of accessing the wireless network card to the network may be temporarily turned off.
When the designated access type is the wireless network, the access to the network through the ethernet network is prohibited, that is, the ethernet card is set to be disabled, or the function of accessing the ethernet card to the network can be temporarily shut down.
In step 403, the terminal is set to access the network according to the network access mode, and the network sharing function of the wireless network card in the terminal is started to create the wireless access point.
The network connection mode corresponding to the currently accessible network connection type is obtained, and the network is accessed according to the access setting aiming at the wireless network and the Ethernet in the network access mode so as to carry out network sharing. The method and the device ensure that the network access type can not be switched when the terminal carries out network sharing because the accessed wireless network is unstable when the terminal carries out network sharing, so that the use limitation of the application in use can not be caused by network change.
EXAMPLE five
An embodiment of the present disclosure provides an apparatus for setting network sharing, and referring to fig. 5, the apparatus includes:
a detecting module 501, configured to detect a currently accessible network connection type when a terminal starts a network sharing function, where the network connection type at least includes an ethernet network and a wireless network;
an obtaining module 502, configured to obtain a network access mode corresponding to a currently accessible network connection type, where the network connection mode includes access settings for an ethernet network and a wireless network;
the setting module 503 is configured to set the terminal to access the network according to the network access manner, and start the network sharing function of the wireless network card in the terminal to create the wireless access point.
The detection module 501 includes:
the first detection unit is used for setting the terminal to forbid the access to the network through the Ethernet and sending a network exploration instruction; if a feedback data packet aiming at the network exploration instruction is received, determining that an accessible wireless network exists;
the second detection unit is used for setting the terminal to forbid the access to the network through the wireless network and sending a network exploration instruction; and if the feedback data packet aiming at the network exploration instruction is received, determining that the accessible Ethernet exists.
The obtaining module 502 includes:
and the first acquisition unit is used for determining that the terminal accesses the network through the Ethernet and setting that the terminal forbids the access of the network through the wireless network if the currently accessible network connection type is only the Ethernet.
The obtaining module 502 includes:
and the second acquisition unit is used for determining that the terminal accesses the network through the wireless network and setting that the terminal is prohibited from accessing the network through the Ethernet if the currently accessible network connection type is only the wireless network.
The obtaining module 502 includes:
a third obtaining unit, configured to obtain a preset specified access type if the currently accessible network connection type includes an ethernet network and a wireless network, determine that the terminal accesses the network through the specified access type, and set the terminal to prohibit the terminal from accessing the network through other network connection types other than the specified access type; the specified access type belongs to one of an ethernet network and a wireless network included in the network connection type.
The network connection mode corresponding to the currently accessible network connection type is obtained, and the network is accessed according to the access setting aiming at the wireless network and the Ethernet in the network access mode so as to carry out network sharing. The method and the device ensure that the network access type can not be switched when the terminal carries out network sharing because the accessed wireless network is unstable when the terminal carries out network sharing, so that the use limitation of the application in use can not be caused by network change.
EXAMPLE six
An embodiment of the present disclosure provides a terminal device, as shown in fig. 6, which is a block diagram of a terminal device shown according to an exemplary embodiment. For example, the terminal device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 6, the terminal device 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operations of the terminal device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on the terminal device 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 606 provides power to the various components of terminal device 600. Power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal device 600.
The multimedia component 608 includes a screen providing an output interface between the terminal device 600 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal device 600 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive an external audio signal when the terminal device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the terminal device 600. For example, sensor component 614 may detect an open/closed state of device 600, the relative positioning of components, such as a display and keypad of terminal device 600, the change in position of terminal device 600 or a component of terminal device 600, the presence or absence of user contact with terminal device 600, orientation or acceleration/deceleration of terminal device 600, and a change in temperature of terminal device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the terminal device 600 and other devices in a wired or wireless manner. The terminal device 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the terminal device 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the terminal device to perform a method of setting network sharing, the method comprising:
when the terminal starts a network sharing function, detecting the current accessible network connection type, wherein the network connection type at least comprises an Ethernet and a wireless network;
acquiring a network access mode corresponding to a currently accessible network connection type, wherein the network connection mode comprises access settings aiming at an Ethernet and a wireless network;
the terminal is set to access the network according to the network access mode, and the network sharing function of the wireless network card in the terminal is started to create the wireless access point.
Optionally, the detecting the currently accessible network connection type includes:
setting a terminal to forbid accessing to a network through the Ethernet and sending a network exploration instruction; if a feedback data packet aiming at the network exploration instruction is received, determining that an accessible wireless network exists;
or,
setting a terminal to forbid accessing a network through a wireless network and sending a network exploration instruction; and if the feedback data packet aiming at the network exploration instruction is received, determining that the accessible Ethernet exists.
Optionally, the obtaining of the network access mode corresponding to the currently accessible network connection type includes:
and if the currently accessible network connection type is only Ethernet, determining that the terminal accesses the network through the Ethernet, and setting the terminal to prohibit accessing the network through the wireless network.
Optionally, the obtaining of the network access mode corresponding to the currently accessible network connection type includes:
and if the currently accessible network connection type is only the wireless network, determining that the terminal accesses the network through the wireless network, and setting the terminal to prohibit accessing the network through the Ethernet.
Optionally, the obtaining of the network access mode corresponding to the currently accessible network connection type includes:
if the current accessible network connection type comprises the Ethernet and the wireless network, acquiring a preset specified access type, determining that the terminal accesses the network through the specified access type, and setting the terminal to forbid the terminal from accessing the network through other network connection types except the specified access type; the specified access type belongs to one of an ethernet network and a wireless network included in the network connection type.
The network connection mode corresponding to the currently accessible network connection type is obtained, and the network is accessed according to the access setting aiming at the wireless network and the Ethernet in the network access mode so as to carry out network sharing. The method and the device ensure that the network access type can not be switched when the terminal carries out network sharing because the accessed wireless network is unstable when the terminal carries out network sharing, so that the use limitation of the application in use can not be caused by network change.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A method of setting up network sharing, the method comprising:
when a terminal starts a network sharing function, detecting the current accessible network connection type, wherein the network connection type at least comprises an Ethernet and a wireless network;
acquiring a network access mode corresponding to the currently accessible network connection type, wherein the network connection mode comprises access settings aiming at the Ethernet and the wireless network;
and setting the terminal to access a network according to the network access mode, and starting a network sharing function of a wireless network card in the terminal to create a wireless access point.
2. The method of claim 1, wherein the detecting a currently accessible network connection type comprises:
setting the terminal to forbid the access to the network through the Ethernet and sending a network exploration instruction; if a feedback data packet aiming at the network exploration instruction is received, determining that an accessible wireless network exists;
or,
setting the terminal to forbid the access to the network through a wireless network and sending a network exploration instruction; and if the feedback data packet aiming at the network exploration instruction is received, determining that the accessible Ethernet exists.
3. The method according to claim 1, wherein the acquiring the network access mode corresponding to the currently accessible network connection type includes:
and if the currently accessible network connection type is only Ethernet, determining that the terminal accesses the network through the Ethernet, and setting the terminal to prohibit accessing the network through a wireless network.
4. The method according to claim 1, wherein the acquiring the network access mode corresponding to the currently accessible network connection type includes:
and if the currently accessible network connection type is only the wireless network, determining that the terminal accesses the network through the wireless network, and setting the terminal to be forbidden to access the network through the Ethernet.
5. The method of claim 1, wherein the obtaining the network access mode corresponding to the currently accessible network connection type comprises:
if the current accessible network connection type comprises Ethernet and wireless network, acquiring a preset specified access type, determining that the terminal accesses the network through the specified access type, and setting the terminal to prohibit the terminal from accessing the network through other network connection types except the specified access type; the specified access type belongs to one of an ethernet network and a wireless network included in the network connection type.
6. An apparatus for setting up network sharing, the apparatus comprising:
the terminal comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting the current accessible network connection type when the terminal starts a network sharing function, and the network connection type at least comprises an Ethernet and a wireless network;
an obtaining module, configured to obtain a network access mode corresponding to the currently accessible network connection type, where the network connection mode includes access settings for the ethernet and the wireless network;
and the setting module is used for setting the terminal to access the network according to the network access mode and starting the network sharing function of the wireless network card in the terminal to create the wireless access point.
7. The apparatus of claim 6, wherein the detection module comprises:
the first detection unit is used for setting the terminal to forbid the access to the network through the Ethernet and sending a network exploration instruction; if a feedback data packet aiming at the network exploration instruction is received, determining that an accessible wireless network exists;
the second detection unit is used for setting the terminal to forbid the access to the network through a wireless network and sending a network exploration instruction; and if the feedback data packet aiming at the network exploration instruction is received, determining that the accessible Ethernet exists.
8. The apparatus of claim 6, wherein the obtaining module comprises:
and the first acquisition unit is used for determining that the terminal accesses the network through the Ethernet and setting that the terminal is prohibited from accessing the network through a wireless network if the currently accessible network connection type is only the Ethernet.
9. The apparatus of claim 6, wherein the obtaining module comprises:
and the second acquisition unit is used for determining that the terminal accesses the network through the wireless network and setting that the terminal is prohibited from accessing the network through the Ethernet if the currently accessible network connection type is only the wireless network.
10. The apparatus of claim 6, wherein the obtaining module comprises:
a third obtaining unit, configured to obtain a preset specified access type if the currently accessible network connection type includes an ethernet network and a wireless network, determine that the terminal accesses the network through the specified access type, and set the terminal to prohibit the terminal from accessing the network through other network connection types other than the specified access type; the specified access type belongs to one of an ethernet network and a wireless network included in the network connection type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410177906.0A CN105100135A (en) | 2014-04-29 | 2014-04-29 | Network sharing setting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410177906.0A CN105100135A (en) | 2014-04-29 | 2014-04-29 | Network sharing setting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105100135A true CN105100135A (en) | 2015-11-25 |
Family
ID=54579675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410177906.0A Pending CN105100135A (en) | 2014-04-29 | 2014-04-29 | Network sharing setting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105100135A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105516327A (en) * | 2015-12-18 | 2016-04-20 | 联想(北京)有限公司 | Method for sharing network, electronic device and system |
CN108494895A (en) * | 2018-04-04 | 2018-09-04 | 广州视源电子科技股份有限公司 | Interactive intelligent panel, network domain conflict control method, device and medium |
WO2019071800A1 (en) * | 2017-10-13 | 2019-04-18 | 广州视源电子科技股份有限公司 | Electronic device and network sharing method and device |
-
2014
- 2014-04-29 CN CN201410177906.0A patent/CN105100135A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105516327A (en) * | 2015-12-18 | 2016-04-20 | 联想(北京)有限公司 | Method for sharing network, electronic device and system |
CN105516327B (en) * | 2015-12-18 | 2019-01-15 | 联想(北京)有限公司 | Method, electronic equipment and the system of shared network |
WO2019071800A1 (en) * | 2017-10-13 | 2019-04-18 | 广州视源电子科技股份有限公司 | Electronic device and network sharing method and device |
CN108494895A (en) * | 2018-04-04 | 2018-09-04 | 广州视源电子科技股份有限公司 | Interactive intelligent panel, network domain conflict control method, device and medium |
WO2019192199A1 (en) * | 2018-04-04 | 2019-10-10 | 广州视源电子科技股份有限公司 | Interactive smart tablet, network domain conflict control method and device, and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9860844B2 (en) | Method and apparatus of temperature control | |
US10292004B2 (en) | Method, device and medium for acquiring location information | |
US10610152B2 (en) | Sleep state detection method, apparatus and system | |
US20170064182A1 (en) | Method and device for acquiring image file | |
EP3151117A1 (en) | Method and device for delaying information broadcasting | |
EP3136793A1 (en) | Method and apparatus for awakening electronic device | |
RU2649936C2 (en) | Method and apparatus for connecting external device | |
EP3176776A1 (en) | Luminance adjusting method and apparatus, computer program and recording medium | |
EP3076745B1 (en) | Methods and apparatuses for controlling wireless access point | |
EP2981116A1 (en) | Method and apparatus for accessing wi-fi network and computer program product | |
US10922444B2 (en) | Method and apparatus for displaying application interface | |
US20170013456A1 (en) | Method and device for testing a terminal | |
US10318069B2 (en) | Method for controlling state of touch screen, and electronic device and medium for implementing the same | |
EP3322227B1 (en) | Methods and apparatuses for controlling wireless connection, computer program and recording medium | |
CN110262692B (en) | Touch screen scanning method, device and medium | |
WO2018000710A1 (en) | Method and device for displaying wifi signal icon and mobile terminal | |
CN104360875B (en) | Privacy mode starts method and apparatus | |
CN106170141B (en) | Mobile terminal network switching method and device | |
CN107371222B (en) | Virtual card disabling method and device | |
CN106506808B (en) | Method and device for prompting communication message | |
CN105991626A (en) | Network access method and network access device | |
CN105100135A (en) | Network sharing setting method and device | |
CN109922203B (en) | Terminal, screen off method and device | |
CN103973883B (en) | A kind of method and device controlling voice-input device | |
CN106922005B (en) | Method and device for accessing wireless access point and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20151125 |