Disclosure of Invention
The invention mainly aims to provide a method for solving the problem that in the prior art, a router discards a multicast data packet without multicasting, so that terminal equipment cannot acquire an SSID (service set identifier) and a password of the router, and further the terminal equipment cannot successfully access the router.
In order to achieve the above object, a first aspect of embodiments of the present invention provides a method for accessing an intelligent terminal device to the internet, where the method includes:
s1: starting a soft wireless access point mode of the intelligent terminal equipment;
s2: establishing wireless network connection with a mobile terminal through a soft wireless access point mode of the intelligent terminal equipment;
s3: acquiring a service set identifier and a password of a router sent by the mobile terminal and the number of intelligent terminal equipment to be accessed;
s4: sending the obtained service set identifier and the obtained password of the router to the intelligent terminal equipment to be accessed in a multicast mode;
s5: and if the intelligent terminal equipment to be accessed is completely accessed to the Internet, closing the soft wireless access point mode of the intelligent terminal equipment.
With reference to the first aspect of the embodiment of the present invention, in a first implementation manner of the first aspect of the embodiment of the present invention, the step S1 includes: starting a soft wireless access point mode of the intelligent terminal equipment, and starting a first timer t0 to start timing;
the step S3 includes:
s3.1: waiting for the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed, and starting a second timer t1 to start timing;
s3.2: judging whether the service set identification and the password of the router sent by the mobile terminal and the number of intelligent terminal equipment to be accessed are obtained; if yes, go to step S4; otherwise, executing step S3.3;
s3.3: judging whether the time difference value between the second timer t1 and the first timer t0 is smaller than a preset first time or not; if yes, executing step S3.1; otherwise, executing step 3.4;
s3.4: closing a soft wireless access point mode of the intelligent terminal equipment, starting a monitoring mode of the intelligent terminal equipment, and capturing and analyzing a wireless data packet;
s3.5: judging whether the service set identification and the password of the router and the number of the intelligent terminal devices to be accessed are obtained within a preset second time; if so, starting a soft wireless access point mode of the intelligent terminal equipment and executing the step S4; otherwise, step S1 is executed.
With reference to the first aspect of the embodiment of the present invention, in a second implementation manner of the first aspect of the embodiment of the present invention, the step S3 includes: and starting the Web server of the intelligent terminal equipment, and acquiring the service set identification and the password of the router sent by the mobile terminal and the quantity of the intelligent terminal equipment to be accessed through the Web server.
With reference to the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, the step S4 includes: and sending the obtained service set identifier and the obtained password of the router to the intelligent terminal equipment to be accessed in a multicast mode within a preset third time.
In combination with the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, the fourth possible implementation manner of the first aspect of the embodiment of the present invention determines that all the to-be-accessed intelligent terminal devices have been accessed to the internet by:
acquiring state information of the indicator lamp to be accessed into the intelligent terminal equipment for judgment;
or searching in a local area network for judgment;
or the judgment is carried out through the information of the server received by the mobile terminal.
In addition, to achieve the above object, a second aspect of the embodiments of the present invention provides an apparatus for accessing an intelligent terminal device to the internet, where the apparatus includes: the system comprises a starting module, an establishing module, an obtaining module, a sending module and a closing module;
the starting module is used for starting a soft wireless access point mode of the intelligent terminal equipment;
the establishing module is used for establishing wireless network connection with a mobile terminal through a soft wireless access point mode of the intelligent terminal equipment;
the acquisition module is used for acquiring the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed;
the sending module is configured to send the service set identifier and the password of the router, which are obtained by the obtaining module, to the to-be-accessed intelligent terminal device in a multicast mode;
and the closing module is used for closing the soft wireless access point mode of the intelligent terminal equipment if the intelligent terminal equipment to be accessed is completely accessed to the Internet.
With reference to the second aspect of the embodiment of the present invention, in a first implementation manner of the second aspect of the embodiment of the present invention, the starting module is configured to start a soft wireless access point mode of an intelligent terminal device, and start a first timer t0 to start timing;
the acquisition module comprises a waiting unit, a first judgment unit, a second judgment unit, an opening unit and a third judgment unit;
the waiting unit is configured to wait for the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed, and start a second timer t1 to start timing;
the first judging unit is used for judging whether the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed are acquired; if the data is acquired, generating an enabling signal to the sending module; otherwise, generating an enabling signal to the second judging unit;
the second judging unit is configured to judge whether a time difference between the second timer t1 and the first timer t0 is less than a preset first time according to an enable signal of the first judging unit; if the current value is less than the preset value, generating an enabling signal to the waiting unit; otherwise, generating an enabling signal to the starting unit;
the starting unit is used for closing the soft wireless access point mode of the intelligent terminal equipment, starting the monitoring mode of the intelligent terminal equipment and capturing and analyzing a wireless data packet according to the enabling signal of the second judging unit;
the third judging unit is used for judging whether the service set identifier and the password of the router and the number of the intelligent terminal devices to be accessed are acquired within a preset second time; if the access point is acquired, starting a soft wireless access point mode of the intelligent terminal equipment and generating an enabling signal to the sending module; otherwise, generating an enabling signal to the starting module.
With reference to the second aspect of the present invention, in a second implementation manner of the second aspect of the present invention, the obtaining module is configured to start a Web server of the intelligent terminal device, and obtain, by using the Web server, a service set identifier and a password of the router, which are sent by the mobile terminal, and a number of the intelligent terminal devices to be accessed.
In combination with the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, the sending module is configured to send the obtained service set identifier and the obtained password of the router to the to-be-accessed intelligent terminal device in a multicast manner within a preset third time.
In combination with the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, the fourth possible implementation manner of the second aspect of the embodiment of the present invention determines that all the to-be-accessed intelligent terminal devices have been accessed to the internet by:
acquiring state information of the indicator lamp to be accessed into the intelligent terminal equipment for judgment;
or searching in a local area network for judgment;
or the judgment is carried out through the information of the server received by the mobile terminal.
The method and the device for accessing the intelligent terminal equipment to the internet, provided by the embodiment of the invention, have the advantages that the service set identification and the password of the router are obtained in a mode of combining the soft wireless access point and the multicast data packet monitoring, and the access of a plurality of intelligent terminal equipment to the internet is realized. The problem of in the prior art scheme, the router abandons the multicast data package and does not carry out the multicast for intelligent terminal equipment can't obtain the service set sign and the password of router, and then leads to intelligent terminal equipment can't successfully access to the router is solved. Finally, the intelligent terminal equipment can be safely, stably and efficiently accessed to the Internet, and the installation operation steps of the user are simplified.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Implementation of various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves.
The following described embodiments of the present invention mainly include a mobile terminal, an intelligent terminal device, and a router in an implementation environment thereof.
The intelligent terminal equipment comprises intelligent terminal equipment which is accessed to the Internet and intelligent terminal equipment to be accessed. The intelligent terminal device refers to those intelligent devices with multimedia functions, which support audio, video, data and other functions, such as: video phones, conference terminals, computers with built-in multimedia functions, and the like.
The mobile terminal includes, but is not limited to, a smart phone, a tablet computer, a Personal Digital Assistant (PDA), and other electronic devices having an input means.
The router, which is a device for connecting each local area network and wide area network in the internet, can automatically select and set a route according to the condition of a channel, and sends signals according to the front and back sequence by using an optimal path.
The intelligent terminal device, the mobile terminal, the intelligent terminal to be accessed and the router are connected through a wireless network. In one possible implementation mode, the intelligent terminal device, the mobile terminal, the intelligent terminal to be accessed and the router are connected through Wi-Fi.
As shown in fig. 1, a first embodiment of the present invention provides a method for accessing an intelligent terminal device to the internet, where the method includes:
s1: starting a soft wireless access point mode of the intelligent terminal equipment;
in this embodiment, starting the soft radio access point requires starting a hostapd process, which enables the wireless network card of the intelligent terminal device to switch to a Master mode, simulating the radio access point function (which may be generally regarded as a router), that is, the soft radio access point. The hostapd functions as an authentication server of the wireless access point and is responsible for controlling and managing the access and authentication of the terminal. The wireless network card can be switched to an AP/Master mode through hostapd; by modifying the configuration file, an open WEP, WPA or WPA2 wireless network can be established; various parameters of the wireless network card can be set by modifying the configuration file, including frequency, signal, Beacon packet time interval, whether to send a Beacon packet, how to respond to a probe request and the like.
S2: establishing wireless network connection with a mobile terminal through a soft wireless access point mode of intelligent terminal equipment;
in the present embodiment, the mobile terminal includes, but is not limited to, a smart phone, a tablet computer, a PDA, and the like.
In this embodiment, a hostapd process is started, so that the intelligent terminal device enters a soft wireless access point mode, at this time, a mobile terminal is used to scan a hotspot name created by the intelligent terminal device, and the intelligent terminal device starts a DHCP (Dynamic Host Configuration Protocol) service, and then allocates a Dynamic ip address to the mobile terminal connected to the soft wireless access point, thereby establishing a wireless network connection.
S3: acquiring a service set identifier and a password of a router sent by a mobile terminal and the number of intelligent terminal equipment to be accessed;
in this embodiment, the intelligent terminal device starts the Web server, and the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed can be obtained through the Web server.
S4: sending the obtained service set identification and the obtained password of the router to the intelligent terminal equipment to be accessed in a multicast mode;
in this embodiment, the intelligent terminal device sends out the service set identifier and the password of the router in a multicast manner, so that the wireless data packet can be captured and analyzed when the intelligent terminal device to be accessed is in the monitoring mode, and the service set identifier and the password of the router are obtained. When the intelligent terminal device is used as a soft wireless access point to send the multicast data packet, the multicast source is the intelligent terminal device, so that the RPF check does not fail. Secondly, although the intelligent terminal device serves as a soft wireless access point to simulate a router function, the device does not have a WMM (Wi-Fi multimedia or wireless multimedia) function, so that the phenomena of discarding multicast data packets and not carrying out multicast can not occur.
In this embodiment, the obtained service set identifier and password of the router may be sent to the to-be-accessed intelligent terminal device in a multicast manner within a preset time. The preset time can be set by a user, and the general settable sending time is 30 seconds.
S5: and if the intelligent terminal equipment to be accessed is completely accessed to the Internet, closing the soft wireless access point mode of the intelligent terminal equipment.
In this embodiment, it may be determined that all the to-be-accessed intelligent terminal devices have been accessed to the internet in the following manner:
mode 1: acquiring state information of an indicator lamp to be accessed into the intelligent terminal equipment for judgment;
if the intelligent terminal equipment to be accessed is provided with the indicator lamp, whether the intelligent terminal equipment to be accessed obtains the service set identifier and the password of the router or not can be distinguished according to the state information of the indicator lamp.
Mode 2: searching in the local area network for judgment;
mode 3: and judging through the information of the server received by the mobile terminal.
After the intelligent terminal equipment to be accessed acquires the service set identification and the password of the router, network connection is carried out according to the service set identification and the password, the server is informed after the connection is successful, and the server sends the information that the intelligent terminal equipment to be accessed is successfully connected with the internet to the mobile terminal.
In this embodiment, after the soft wireless access point mode of the intelligent terminal device is closed, the closed intelligent terminal device may access the internet through the acquired service set identifier and password of the router.
Further, if the to-be-accessed intelligent terminal device does not have all access to the internet, step S4 may be continuously executed, that is, the obtained service set identifier and password of the router are continuously sent to the to-be-accessed intelligent terminal device in a multicast manner.
The method for accessing the intelligent terminal equipment to the internet, provided by the embodiment of the invention, can be used for acquiring the service set identification and the password of the router by combining the soft wireless access point and the multicast data packet monitoring mode, so that a plurality of intelligent terminal equipment can be accessed to the internet. The problem of in the prior art scheme, the router abandons the multicast data package and does not carry out the multicast for intelligent terminal equipment can't obtain the service set sign and the password of router, and then leads to intelligent terminal equipment can't successfully access to the router is solved. Finally, the intelligent terminal equipment can be safely, stably and efficiently accessed to the Internet, and the installation operation steps of the user are simplified.
As shown in fig. 2, a second embodiment of the present invention provides a method for accessing an intelligent terminal device to the internet, where the method includes:
s1: starting a soft wireless access point mode of the intelligent terminal equipment, and starting a first timer t0 to start timing;
s2: establishing wireless network connection with a mobile terminal through a soft wireless access point mode of intelligent terminal equipment;
s3.1: waiting for the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed, and starting a second timer t1 to start timing;
s3.2: judging whether the service set identification and the password of the router sent by the mobile terminal and the number of intelligent terminal equipment to be accessed are obtained; if yes, go to step S4; otherwise, executing step S3.3;
in this embodiment, the intelligent terminal device starts the Web server, and the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed can be obtained through the Web server.
S3.3: judging whether the time difference value between the second timer t1 and the first timer t0 is less than a preset first time or not; if yes, executing step S3.1; otherwise, executing step 3.4;
in this embodiment, the preset first time can be set by the user, and the general settable first time is 60 seconds.
S3.4: closing a soft wireless access point mode of the intelligent terminal equipment, starting a monitoring mode of the intelligent terminal equipment, and capturing and analyzing a wireless data packet;
s3.5: judging whether the service set identification and the password of the router and the number of the intelligent terminal devices to be accessed are obtained within a preset second time; if so, starting a soft wireless access point mode of the intelligent terminal equipment and executing the step S4; otherwise, executing step S1;
in this embodiment, the preset second time can be set by the user, and the general settable second time is 60 seconds.
S4: sending the obtained service set identification and the obtained password of the router to the intelligent terminal equipment to be accessed in a multicast mode;
in this embodiment, the obtained service set identifier and password of the router may be sent to the to-be-accessed intelligent terminal device in a multicast manner within a preset time. The preset time can be set by a user, and the general settable sending time is 30 seconds.
S5: and if the intelligent terminal equipment to be accessed is completely accessed to the Internet, closing the soft wireless access point mode of the intelligent terminal equipment.
In this embodiment, it may be determined that all the to-be-accessed intelligent terminal devices have been accessed to the internet in the following manner:
mode 1: acquiring state information of an indicator lamp to be accessed into the intelligent terminal equipment for judgment;
if the intelligent terminal equipment to be accessed is provided with the indicator lamp, whether the intelligent terminal equipment to be accessed obtains the service set identifier and the password of the router or not can be distinguished according to different state information of the indicator lamp.
Mode 2: searching in the local area network for judgment;
mode 3: and judging through the information of the server received by the mobile terminal.
After the intelligent terminal equipment to be accessed acquires the service set identification and the password of the router, network connection is carried out according to the service set identification and the password, the server is informed after the connection is successful, and the server sends the information that the intelligent terminal equipment to be accessed is successfully connected with the internet to the mobile terminal.
Further, if the to-be-accessed intelligent terminal device does not have all access to the internet, step S4 may be continuously executed, that is, the obtained service set identifier and password of the router are continuously sent to the to-be-accessed intelligent terminal device in a multicast manner.
In this embodiment, after the soft wireless access point mode of the intelligent terminal device is closed, the closed intelligent terminal device may access the internet through the acquired service set identifier and password of the router.
As an example, please refer to fig. 5. The IPCs 1-4 in fig. 5 are 4 intelligent terminal devices, and one of the intelligent terminal devices can be selected optionally, for example: the intelligent terminal equipment IPC1 starts the soft wireless access point mode of the selected intelligent terminal equipment IPC 1; at this time, wireless network connection can be established with the mobile phone through the soft wireless access point mode of the intelligent terminal equipment IPC 1; the mobile phone can send the service set identification and the password of the router and the number (IPC2-IPC4) of the intelligent terminal equipment to be accessed to the mobile phone; after acquiring the service set identifier and the password of the router, the intelligent terminal equipment IPC1 sends the service set identifier and the password to the intelligent terminal equipment IPC2-IPC4 to be accessed in a multicast mode; if the intelligent terminal equipment IPC2-IPC4 is completely accessed to the Internet, the soft wireless access point mode of the intelligent terminal equipment IPC1 is closed; otherwise, the intelligent terminal devices IPC1 continue to send by multicast until all the intelligent terminal devices IPC2-IPC4 access to the internet.
The method for accessing the intelligent terminal equipment to the internet, provided by the embodiment of the invention, can be used for acquiring the service set identification and the password of the router by combining the soft wireless access point and the multicast data packet monitoring mode, so that a plurality of intelligent terminal equipment can be accessed to the internet. The problem of in the prior art scheme, the router abandons the multicast data package and does not carry out the multicast for intelligent terminal equipment can't obtain the service set sign and the password of router, and then leads to intelligent terminal equipment can't successfully access to the router is solved. Finally, the intelligent terminal equipment can be safely, stably and efficiently accessed to the Internet, and the installation operation steps of the user are simplified.
The invention further provides an apparatus.
Referring to fig. 3, fig. 3 is a device for accessing an intelligent terminal to the internet according to a third embodiment of the present invention, where the device 200 includes: the system comprises a starting module 201, an establishing module 202, an obtaining module 203, a sending module 204 and a closing module 205;
a starting module 201, configured to start a soft wireless access point mode of an intelligent terminal device;
in this embodiment, starting the soft radio access point requires starting a hostapd process, which enables the wireless network card of the intelligent terminal device to switch to a Master mode, simulating the radio access point function (which may be generally regarded as a router), that is, the soft radio access point. The hostapd functions as an authentication server of the wireless access point and is responsible for controlling and managing the access and authentication of the terminal. The wireless network card can be switched to an AP/Master mode through hostapd; by modifying the configuration file, an open WEP, WPA or WPA2 wireless network can be established; various parameters of the wireless network card can be set by modifying the configuration file, including frequency, signal, Beacon packet time interval, whether to send a Beacon packet, how to respond to a probe request and the like.
The establishing module 202 is used for establishing wireless network connection with a mobile terminal through a soft wireless access point mode of the intelligent terminal equipment;
in the present embodiment, the mobile terminal includes, but is not limited to, a smart phone, a tablet computer, a PDA, and the like.
In this embodiment, a hostapd process is started, so that the intelligent terminal device enters a soft wireless access point mode, at this time, a mobile terminal is used to scan a hotspot name created by the intelligent terminal device, and the intelligent terminal device starts a DHCP (Dynamic Host Configuration Protocol) service, and then allocates a Dynamic ip address to the mobile terminal connected to the soft wireless access point, thereby establishing a wireless network connection.
The obtaining module 203 is configured to obtain a service set identifier and a password of the router sent by the mobile terminal, and the number of the intelligent terminal devices to be accessed;
in this embodiment, the obtaining module may be configured to start a Web server of the intelligent terminal device, and obtain, by the Web server, a service set identifier and a password of the router sent by the mobile terminal, and the number of the intelligent terminal devices to be accessed.
The sending module 204 is configured to send the service set identifier and the password of the router, which are obtained by the obtaining module, to the to-be-accessed intelligent terminal device in a multicast mode;
in this embodiment, the intelligent terminal device sends out the service set identifier and the password of the router in a multicast manner, so that the wireless data packet can be captured and analyzed when the intelligent terminal device to be accessed is in the monitoring mode, and the service set identifier and the password of the router are obtained. When the intelligent terminal device is used as a soft wireless access point to send the multicast data packet, the multicast source is the intelligent terminal device, so that the RPF check does not fail. Secondly, although the intelligent terminal device serves as a soft wireless access point to simulate a router function, the device does not have a WMM (Wi-Fi multimedia or wireless multimedia) function, so that the phenomena of discarding multicast data packets and not carrying out multicast can not occur.
In this embodiment, the sending module 204 may be configured to send the obtained service set identifier and the obtained password of the router to the to-be-accessed intelligent terminal device in a multicast manner within a preset third time. The preset third time can be set by the user, and the general settable sending time is 30 seconds.
A closing module 205, configured to close the soft wireless access point mode of the intelligent terminal device if the to-be-accessed intelligent terminal device has been completely accessed to the internet.
In this embodiment, it may be determined that all the to-be-accessed intelligent terminal devices have been accessed to the internet in the following manner:
mode 1: acquiring state information of an indicator lamp to be accessed into the intelligent terminal equipment for judgment;
if the intelligent terminal equipment to be accessed is provided with the indicator lamp, whether the intelligent terminal equipment to be accessed obtains the service set identifier and the password of the router or not can be distinguished according to different state information of the indicator lamp.
Mode 2: searching in the local area network for judgment;
mode 3: and judging through the information of the server received by the mobile terminal.
After the intelligent terminal equipment to be accessed acquires the service set identification and the password of the router, network connection is carried out according to the service set identification and the password, the server is informed after the connection is successful, and the server sends the information that the intelligent terminal equipment to be accessed is successfully connected with the internet to the mobile terminal.
In this embodiment, after the soft wireless access point mode of the intelligent terminal device is closed, the closed intelligent terminal device may access the internet through the acquired service set identifier and password of the router.
Further, if the to-be-accessed intelligent terminal device is not completely accessed to the internet, the function of the sending module 204 may be continuously executed, that is, the obtained service set identifier and password of the router are continuously sent to the to-be-accessed intelligent terminal device in a multicast manner.
The device for accessing the intelligent terminal equipment to the internet, provided by the embodiment of the invention, acquires the service set identification and the password of the router in a mode of combining the soft wireless access point and the multicast data packet monitoring, and realizes the access of a plurality of intelligent terminal equipment to the internet. The problem of in the prior art scheme, the router abandons the multicast data package and does not carry out the multicast for intelligent terminal equipment can't obtain the service set sign and the password of router, and then leads to intelligent terminal equipment can't successfully access to the router is solved. Finally, the intelligent terminal equipment can be safely, stably and efficiently accessed to the Internet, and the installation operation steps of the user are simplified.
Referring to fig. 4, fig. 4 is a device for accessing an intelligent terminal device to the internet according to a fourth embodiment of the present invention, where the device 200 includes: the system comprises a starting module 201, an establishing module 202, an obtaining module 203, a sending module 204 and a closing module 205;
a starting module 201, configured to start a soft wireless access point mode of an intelligent terminal device, and start a first timer t0 to start timing;
the establishing module 202 is used for establishing wireless network connection with a mobile terminal through a soft wireless access point mode of the intelligent terminal equipment;
the acquiring module 203 includes a waiting unit 2031, a first judging unit 2032, a second judging unit 2033, an opening unit 2034, and a third judging unit 2035;
a waiting unit 2031, configured to wait for the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed, and start a second timer t1 to start timing;
a first determining unit 2032, configured to determine whether to acquire a service set identifier and a password of a router sent by a mobile terminal, and the number of intelligent terminal devices to be accessed; if the request is obtained, an enable signal is generated and sent to the sending module 204; otherwise, an enable signal is generated to the second judging unit 2033;
in this embodiment, the intelligent terminal device starts the Web server, and the service set identifier and the password of the router sent by the mobile terminal and the number of the intelligent terminal devices to be accessed can be obtained through the Web server.
A second judging unit 2033, configured to judge whether a time difference between the second timer t1 and the first timer t0 is less than a preset first time according to the enable signal of the first judging unit 2032; if the value is less than the threshold value, an enable signal is generated to the waiting unit 2031; otherwise, an enable signal is generated to the turn-on unit 2034;
in this embodiment, the preset first time can be set by the user, and the general settable first time is 60 seconds.
An opening unit 2034, configured to close a soft wireless access point mode of the intelligent terminal device, open a monitoring mode of the intelligent terminal device, and capture and analyze a wireless data packet according to the enable signal of the second determination unit;
a third determining unit 2035 configured to determine whether the service set identifier and the password of the router and the number of the intelligent terminal devices to be accessed are obtained within a preset second time; if the access point is acquired, the soft wireless access point mode of the intelligent terminal device is started, and an enabling signal is generated and sent to the sending module 204; otherwise, an enable signal is generated to the start module 201.
In this embodiment, the preset second time can be set by the user, and the general settable second time is 60 seconds.
The sending module 204 is configured to send the service set identifier and the password of the router, which are obtained by the obtaining module, to the to-be-accessed intelligent terminal device in a multicast mode;
in this embodiment, the sending module 204 may be configured to send the obtained service set identifier and the obtained password of the router to the to-be-accessed intelligent terminal device in a multicast manner within a preset third time. The preset third time can be set by the user, and the general settable sending time is 30 seconds.
A closing module 205, configured to close the soft wireless access point mode of the intelligent terminal device if the to-be-accessed intelligent terminal device has been completely accessed to the internet.
In this embodiment, it may be determined that all the to-be-accessed intelligent terminal devices have been accessed to the internet in the following manner:
mode 1: acquiring state information of an indicator lamp to be accessed into the intelligent terminal equipment for judgment;
if the intelligent terminal equipment to be accessed is provided with the indicator lamp, whether the intelligent terminal equipment to be accessed obtains the service set identifier and the password of the router or not can be distinguished according to different state information of the indicator lamp.
Mode 2: searching in the local area network for judgment;
mode 3: and judging through the information of the server received by the mobile terminal.
After the intelligent terminal equipment to be accessed acquires the service set identification and the password of the router, network connection is carried out according to the service set identification and the password, the server is informed after the connection is successful, and the server sends the information that the intelligent terminal equipment to be accessed is successfully connected with the internet to the mobile terminal.
In this embodiment, after the soft wireless access point mode of the intelligent terminal device is closed, the closed intelligent terminal device may access the internet through the acquired service set identifier and password of the router.
Further, if the to-be-accessed intelligent terminal device is not completely accessed to the internet, the function of the sending module 204 may be continuously executed, that is, the obtained service set identifier and password of the router are continuously sent to the to-be-accessed intelligent terminal device in a multicast manner.
As an example, please refer to fig. 5. The IPCs 1-4 in fig. 5 are 4 intelligent terminal devices, and one of the intelligent terminal devices can be selected optionally, for example: the intelligent terminal equipment IPC1 starts the soft wireless access point mode of the selected intelligent terminal equipment IPC 1; at this time, wireless network connection can be established with the mobile phone through the soft wireless access point mode of the intelligent terminal equipment IPC 1; the mobile phone can send the service set identification and the password of the router and the number (IPC2-IPC4) of the intelligent terminal equipment to be accessed to the mobile phone; after acquiring the service set identifier and the password of the router, the intelligent terminal equipment IPC1 sends the service set identifier and the password to the intelligent terminal equipment IPC2-IPC4 to be accessed in a multicast mode; if the intelligent terminal equipment IPC2-IPC4 is completely accessed to the Internet, the soft wireless access point mode of the intelligent terminal equipment IPC1 is closed; otherwise, the intelligent terminal devices IPC1 continue to send by multicast until all the intelligent terminal devices IPC2-IPC4 access to the internet.
The device for accessing the intelligent terminal equipment to the internet, provided by the embodiment of the invention, acquires the service set identification and the password of the router in a mode of combining the soft wireless access point and the multicast data packet monitoring, and realizes the access of a plurality of intelligent terminal equipment to the internet. The problem of in the prior art scheme, the router abandons the multicast data package and does not carry out the multicast for intelligent terminal equipment can't obtain the service set sign and the password of router, and then leads to intelligent terminal equipment can't successfully access to the router is solved. Finally, the intelligent terminal equipment can be safely, stably and efficiently accessed to the Internet, and the installation operation steps of the user are simplified.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent flow transformations that may be applied to the present invention and the accompanying drawings, or directly or indirectly applied to other related arts, are encompassed by the present invention.