Nothing Special   »   [go: up one dir, main page]

WO2018090830A1 - Method and apparatus allowing smart terminal device to access internet - Google Patents

Method and apparatus allowing smart terminal device to access internet Download PDF

Info

Publication number
WO2018090830A1
WO2018090830A1 PCT/CN2017/109039 CN2017109039W WO2018090830A1 WO 2018090830 A1 WO2018090830 A1 WO 2018090830A1 CN 2017109039 W CN2017109039 W CN 2017109039W WO 2018090830 A1 WO2018090830 A1 WO 2018090830A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
smart terminal
internet
router
password
Prior art date
Application number
PCT/CN2017/109039
Other languages
French (fr)
Chinese (zh)
Inventor
邱伟华
Original Assignee
深圳市阿凡达智控有限公司
贝斯拓欧洲控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市阿凡达智控有限公司, 贝斯拓欧洲控股有限公司 filed Critical 深圳市阿凡达智控有限公司
Publication of WO2018090830A1 publication Critical patent/WO2018090830A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for accessing an Internet by an intelligent terminal device.
  • WiFi Wireless-Fidelity
  • the data transmission method of WiFi technology is through electromagnetic waves. Due to the unbounded nature of electromagnetic waves, any wireless terminal device can receive signals from each other within a certain range. In order to solve the security problem of the data transmission method of the WiFi technology, it is usually necessary to encrypt the data transmission mode. Common encryption methods are WEP, WPA, WPA2, and the difficulty of cracking increases step by step. At present, the security protection capability of the WPA2 encryption method is excellent, and the wireless access point (AP) of the general household and public places is encrypted. When a wireless device connects to a specified hotspot, it needs to know the service set identifier (SSID), encryption mode, and secret key of the hotspot.
  • SSID service set identifier
  • the SSID and password of the router cannot be directly added.
  • the existing access is obtained by multicasting the SSID and password of the router.
  • the router will discard multicast packets and not multicast. For example, when a multicast packet arrives at the router and the router performs reverse path forwarding (RPF) check, if the RPF check fails, the router discards the multicast packet and does not perform multicast.
  • RPF reverse path forwarding
  • the router is open When WMM (Wi-Fi multimedia or wireless multimedia) is enabled, the router will increase the priority of the voice or video data packet, that is, preferentially forward the audio or video data packet, so that the wireless data packet containing the SSID and the password cannot be forwarded, the router The multicast packet will be discarded without multicasting. If the router does not multicast, the terminal device cannot obtain the SSID and password of the router, and the intelligent terminal device cannot successfully access the router.
  • WMM Wi-Fi multimedia or wireless multimedia
  • the main purpose of the present invention is to provide a method for solving the problem that the router discards the multicast data packet without multicasting, so that the terminal device cannot obtain the SSID and password of the router, and the terminal device cannot successfully access the terminal device.
  • the problem with the router is to provide a method for solving the problem that the router discards the multicast data packet without multicasting, so that the terminal device cannot obtain the SSID and password of the router, and the terminal device cannot successfully access the terminal device.
  • a first aspect of the embodiments of the present invention provides a method for an intelligent terminal device to access the Internet, where the method includes the following steps:
  • S2 establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device
  • S4 The service set identifier and the password of the obtained router are sent to the to-be-accessed intelligent terminal device in a multicast manner, so that the to-be-accessed intelligent terminal device accesses the Internet.
  • the step S1 includes: starting a wireless connection mode of the smart terminal device, and starting the first timer t0 to start timing. ;
  • the step S3 includes:
  • step S3.2 determining whether the service set identifier and password of the router sent by the mobile terminal are obtained; if yes, executing step S4; otherwise, performing step S3.3;
  • S3.4 Turn off the wireless connection mode of the smart terminal device, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
  • S3.5 Determine whether the service set identifier and password of the router are obtained in the preset second time; if yes, start the wireless connection mode of the smart terminal device and perform step S4; otherwise, perform step S1.
  • the step S3 includes: starting a web server of the smart terminal device, and acquiring the web server by using the web server The service set identifier and password of the router sent by the mobile terminal.
  • the step S4 includes: acquiring the service set of the router The identifier and the password are sent to the smart terminal device to be accessed in a preset third time by using a multicast mode.
  • a fourth possible implementation manner of the first aspect of the embodiments of the present invention, in conjunction with the first aspect of the embodiment of the present invention, after the step S4, the method further includes:
  • the fifth possible implementation manner of the first aspect of the embodiment of the present invention determines that the to-be-accessed smart terminal device has been All access to the Internet:
  • a second aspect of the embodiments of the present invention provides an apparatus for accessing an Internet by an intelligent terminal device, where the apparatus includes: a startup module, an establishment module, an acquisition module, a sending module, and a shutdown module;
  • the startup module is configured to start a wireless connection mode of the smart terminal device
  • the establishing module is configured to establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
  • the acquiring module is configured to acquire a service set identifier and a password of a router sent by the mobile terminal;
  • the sending module is configured to send the service set identifier and the password of the router acquired by the acquiring module to the to-be-accessed intelligent terminal device in a multicast manner, so that the smart terminal device to be accessed is accessed. the Internet.
  • the startup module is configured to start a wireless connection mode of the smart terminal device, and start the first timer t0 to start.
  • the obtaining module includes a waiting unit, a first determining unit, a second determining unit, an opening unit, and a third determining unit;
  • the waiting unit is configured to wait for a service set identifier and a password of the router sent by the mobile terminal, and start a second timer t1 to start timing;
  • the first determining unit is configured to determine whether the router sent by the mobile terminal is obtained. a service set identifier and a password; if obtained, generating an enable signal to the sending module; otherwise, generating an enable signal to the second determining unit;
  • the second determining unit is configured to determine, according to an enable signal of the first determining unit, whether a time difference between the second timer t1 and the first timer t0 is less than a preset first time; If not, generating an enable signal to the waiting unit; otherwise generating an enable signal to the open unit;
  • the opening unit is configured to: close the wireless connection mode of the smart terminal device according to the enable signal of the second determining unit, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
  • the third determining unit is configured to determine whether the service set identifier and password of the router are obtained in the preset second time; if yes, the wireless connection mode of the smart terminal device is started and an enable signal is generated. Transmitting the module; otherwise generating an enable signal to the boot module.
  • the acquiring module is configured to start a web server of the smart terminal device, and obtain the web server by using the web server.
  • the service set identifier and password of the router sent by the mobile terminal.
  • the sending module is configured to obtain the service of the obtained router
  • the set identifier and the password are sent to the smart terminal device to be accessed in a preset third time by using a multicast mode.
  • the apparatus further includes a shutdown module
  • the acquiring module is further configured to acquire the number of the smart terminal devices to be accessed;
  • the closing module is configured to close the wireless connection mode of the smart terminal device if the to-be-accessed smart terminal device has all accessed the Internet.
  • the fifth possible implementation manner of the second aspect of the embodiment of the present invention determines that the to-be-accessed intelligent terminal device has all access to the Internet in:
  • a third aspect of the embodiments of the present invention provides a device for accessing an Internet by an intelligent terminal device, where the device includes: a memory and a processor;
  • At least one program instruction is stored in the memory; the processor implements the method of the first aspect of the embodiments of the present invention by loading and executing the at least one program instruction.
  • a fourth aspect of the embodiments of the present invention provides a computer readable storage medium, where the computer readable storage medium stores at least one program instruction, and the at least one program instruction is processed by the smart terminal device.
  • the method for accessing the Internet by the smart terminal device according to the first aspect of the present invention is implemented when the device is executed.
  • the method and device for accessing the Internet by the intelligent terminal device obtain the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby realizing multiple intelligent terminal devices Access to the Internet.
  • the router discards the multicast data packet without multicasting, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router.
  • the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
  • FIG. 1 is a schematic flowchart of a method for an intelligent terminal device to access an Internet according to a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for accessing an Internet by a smart terminal device according to a second embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for accessing an Internet by a smart terminal device according to a third embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for accessing an Internet by a smart terminal device according to a fourth embodiment of the present invention.
  • the embodiments described below in the present invention mainly include a mobile terminal, a smart terminal device, a smart terminal device to be accessed, and a router in an implementation environment thereof.
  • the smart terminal device includes an intelligent terminal device that has access to the Internet and a smart terminal device to be accessed.
  • Intelligent terminal devices are those with multimedia functions. These devices support functions such as audio, video, and data, such as videophones, conference terminals, computers with built-in multimedia functions, and so on.
  • the smart terminal device is a smart terminal device that can establish a wireless network connection with other smart terminal devices including the smart terminal device to be accessed, and can transmit and receive data through the foregoing connection, thereby transmitting and receiving Service set ID and password.
  • the smart terminal device to be accessed is a terminal device without input means, and the SSID and password of the router cannot be directly added.
  • the mobile terminal includes, but is not limited to, an electronic device having an input means such as a smart phone, a tablet computer, a personal digital assistant (PDA), and the like, which cannot directly perform data transmission with the smart terminal device to be accessed.
  • an electronic device having an input means such as a smart phone, a tablet computer, a personal digital assistant (PDA), and the like, which cannot directly perform data transmission with the smart terminal device to be accessed.
  • PDA personal digital assistant
  • a router is a device that connects to various local area networks and wide area networks in the Internet. It automatically selects and sets routes according to the channel conditions, and sends signals in order of optimal path.
  • the intelligent terminal device, the mobile terminal, the intelligent terminal to be accessed, and the router are connected through a wireless network.
  • the smart terminal device, the mobile terminal, the smart terminal to be accessed, and the router are connected by Wi-Fi.
  • a first embodiment of the present invention provides a method for an intelligent terminal device to access the Internet, and the method includes the following steps:
  • the wireless connection mode includes a soft wireless access point mode, a Bluetooth mode, an infrared mode, a WiFi mode, and the like, which is not limited in this embodiment.
  • the wireless wireless access point mode is taken as an example in the wireless connection mode.
  • Hostapd can switch the wireless network card of the smart terminal device to Master mode, and simulate the wireless access point function (usually can be considered as a router), that is, a soft wireless access point.
  • the function of hostapd is to act as the authentication server of the wireless access point, which is responsible for controlling the access and authentication of the management terminal.
  • the host network can switch the wireless network card to AP/Master mode.
  • an open WEP, WPA or WPA2 wireless network can be established.
  • various parameters of the wireless network card including frequency and signal, can be set. , Beacon packet time interval, whether to send Beacon packets, how to respond to probe requests, and so on.
  • the mobile terminal includes, but is not limited to, a smartphone, a tablet, a PDA, and the like.
  • the hostapd process is started, so that the smart terminal device enters the wireless connection mode.
  • the mobile terminal can scan the hotspot name created by the smart terminal device, and the smart terminal device starts DHCP (Dynamic Host Configuration Protocol, dynamic host).
  • DHCP Dynamic Host Configuration Protocol, dynamic host.
  • a mobile IP terminal connected to the soft wireless access point can be assigned a dynamic IP address to establish a wireless network connection.
  • the smart terminal device starts the web server, and the service set identifier and password of the router sent by the mobile terminal can be obtained through the web server.
  • the smart terminal device further obtains, by using a web server, the number of the smart terminal devices to be accessed sent by the mobile terminal.
  • S4 The service set identifier and the password of the obtained router are sent to the smart terminal device to be accessed by the multicast mode, so that the smart terminal device to be accessed is connected to the Internet;
  • the smart terminal device sends the service set identifier and password of the router in a multicast manner, so that when the smart terminal device is in the monitoring mode, the wireless data packet can be captured and parsed, thereby obtaining The service set ID and password of the router.
  • the smart terminal device sends a multicast packet as a soft wireless access point
  • the multicast source is the smart terminal device itself, so the RPF check does not fail.
  • WMM Wi-Fi multimedia or wireless multimedia
  • the service set identifier and the password of the obtained router are sent to the intelligent terminal device to be accessed in a preset third time by using the multicast mode, so as to prevent the smart terminal device from performing multicast for a long time. It consumes a lot of electricity.
  • the preset third time can be set by the user.
  • the general configurable send time is 30 seconds.
  • the method may further include:
  • the smart terminal device to be accessed is all accessed to the Internet by:
  • Manner 1 Obtain the status information of the indicator light of the intelligent terminal device to be accessed for judgment
  • the smart terminal device to be accessed is set with an indicator, you can distinguish whether the smart terminal device to be accessed obtains the service set identifier and password of the router according to the status information of the indicator.
  • Method 2 Search within the local area network for judgment
  • Mode 3 Judging by the information of the server received by the mobile terminal.
  • the network connection is performed according to the service set identifier and the password.
  • the server is notified, and the server sends the information that the smart terminal device to be connected to the Internet is successfully connected to the network.
  • the closed smart terminal device can access the Internet through the acquired service set identifier and password of the router.
  • step S4 the process may continue to be performed in step S4, that is, the service set identifier and the password of the obtained router are continuously sent to the smart terminal to be accessed through the multicast mode. device.
  • the method for accessing the Internet by the intelligent terminal device obtains the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby implementing access of multiple intelligent terminal devices.
  • the Internet Solved the prior art solution, the router discarding group The broadcast packet is not multicasted, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router.
  • the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
  • a second embodiment of the present invention provides a method for an intelligent terminal device to access the Internet, and the method includes the following steps:
  • step S3.2 determining whether the service set identifier and password of the router sent by the mobile terminal are obtained; if yes, step S4 is performed; otherwise, step S3.3 is performed;
  • step S4 it is determined whether the service set identifier and password of the router sent by the mobile terminal, and the number of the smart terminal devices to be accessed are obtained; if yes, step S4 is performed; otherwise, step S3.3 is performed. ;
  • the smart terminal device starts the web server, and the service set identifier and password of the router sent by the mobile terminal can be obtained through the web server.
  • the smart terminal device further obtains, by using a web server, the number of the smart terminal devices to be accessed sent by the mobile terminal.
  • S3.3 determining whether the time difference between the second timer t1 and the first timer t0 is less than a preset first time; if less, executing step S3.1; otherwise performing step 3.4;
  • the preset first time can be set by the user, and the general presettable can be set.
  • the first time is 60 seconds.
  • S3.4 Turn off the wireless connection mode of the smart terminal device, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
  • step S3.5 determining whether the service set identifier and password of the router are obtained in the preset second time; if yes, the wireless connection mode of the smart terminal device is started and step S4 is performed; otherwise, step S1 is performed;
  • step S4 it is determined whether the service set identifier and password of the router and the number of the smart terminal devices to be accessed are obtained in the preset second time. If yes, start the wireless connection mode of the smart terminal device and perform step S4; otherwise, perform step S1;
  • the preset second time can be set by the user, and the second time that the preset can be set is generally 60 seconds.
  • S4 Send the service set identifier and password of the obtained router to the smart terminal device to be accessed through multicast mode;
  • the service set identifier and the password of the obtained router are sent to the intelligent terminal device to be accessed in a preset third time by using the multicast mode, so as to prevent the smart terminal device from performing multicast for a long time. It consumes a lot of electricity.
  • the preset third time can be set by the user, and the general settable sending time is 30 seconds.
  • the smart terminal device to be accessed is all accessed to the Internet by:
  • Manner 1 Obtain the status information of the indicator light of the intelligent terminal device to be accessed for judgment
  • the smart terminal device to be connected is set with an indicator, you can follow the different status of the indicator. It distinguishes whether the smart terminal device to be accessed acquires the service set identifier and password of the router.
  • Method 2 Search within the local area network for judgment
  • Mode 3 Judging by the information of the server received by the mobile terminal.
  • the network connection is performed according to the service set identifier and the password.
  • the server is notified, and the server sends the information that the smart terminal device to be connected to the Internet is successfully connected to the network.
  • step S4 the process may continue to be performed in step S4, that is, the service set identifier and the password of the obtained router are continuously sent to the smart terminal to be accessed through the multicast mode. device.
  • the closed smart terminal device can access the Internet through the acquired service set identifier and password of the router.
  • the IPC1-IPC4 of FIG. 5 is four intelligent terminal devices, and one of the smart terminal devices can be arbitrarily selected, for example, the intelligent terminal device IPC1, and the wireless connection mode of the selected smart terminal device IPC1 is activated; at this time, the smart terminal device IPC1 can be adopted.
  • the wireless connection mode establishes a wireless network connection with the mobile phone; the mobile phone can send the service set identifier and password of the router, and the number of intelligent terminal devices to be accessed (IPC2-IPC4) to the mobile phone; the intelligent terminal device IPC1 acquires the service set of the router.
  • the intelligent terminal device IPC2-IPC4 After the identifier and password are sent to the intelligent terminal device IPC2-IPC4 to be accessed by multicast; if the smart terminal device IPC2-IPC4 is all connected to the Internet, the wireless connection mode of the smart terminal device IPC1 is turned off; otherwise, The intelligent terminal device IPC1 continues to transmit in multicast mode until all intelligent terminal devices IPC2-IPC4 are connected to the Internet.
  • the number of devices to be accessed may be acquired while obtaining the service set identifier and password sent by the mobile terminal, or may be acquired as step S5 before step S6.
  • the method for accessing the Internet by the intelligent terminal device obtains the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby implementing access of multiple intelligent terminal devices. the Internet.
  • the router discards the multicast data packet without multicasting, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router.
  • the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
  • the invention further provides an apparatus.
  • FIG. 3 is a device for accessing the Internet by the smart terminal device according to the third embodiment of the present invention.
  • the device 200 includes: a startup module 201, an establishing module 202, an obtaining module 203, and a sending module 204.
  • the startup module 201 is configured to start a wireless connection mode of the smart terminal device
  • the start of the soft wireless access point needs to start the hostapd process, and the hostapd can switch the wireless network card of the smart terminal device to the master mode, and simulate the function of the wireless access point (which can be generally regarded as a router), that is, soft wireless. Access the access point.
  • the function of hostapd is to act as the authentication server of the wireless access point, which is responsible for controlling the access and authentication of the management terminal.
  • the host network can switch the wireless network card to AP/Master mode.
  • an open WEP, WPA or WPA2 wireless network can be established.
  • various parameters of the wireless network card including frequency and signal, can be set. , Beacon packet time interval, whether to send Beacon packets, how to respond to probe requests, and so on.
  • the establishing module 202 is configured to establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
  • the mobile terminal includes, but is not limited to, a smartphone, a tablet, a PDA, and the like.
  • the hostapd process is started, so that the smart terminal device enters the wireless connection.
  • the mobile terminal can scan the hotspot name created by the smart terminal device, and the smart terminal device starts the DHCP (Dynamic Host Configuration Protocol) service, and can connect to the soft wireless access point.
  • the mobile terminal allocates a dynamic IP address to establish 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;
  • the obtaining module is configured to start a web server of the smart terminal device, and obtain a service set identifier and a password of the router sent by the mobile terminal through the web server.
  • the sending module 204 is configured to send the service set identifier and password of the router acquired by the acquiring module to the smart terminal device to be accessed by using the multicast mode;
  • the smart terminal device sends the service set identifier and password of the router in a multicast manner, so that when the smart terminal device is in the monitoring mode, the wireless data packet can be captured and parsed, thereby obtaining The service set ID and password of the router.
  • the smart terminal device sends a multicast packet as a soft wireless access point
  • the multicast source is the smart terminal device itself, so the RPF check does not fail.
  • WMM Wi-Fi multimedia or wireless multimedia
  • the sending module 204 is configured to send the service set identifier and the password of the obtained router to the to-be-accessed smart terminal device in a preset third time.
  • the preset third time can be set by the user, and the general settable sending time is 30 seconds.
  • the smart terminal device further includes a shutdown module 205, and the shutdown module 205 is configured to disable the wireless connection mode of the smart terminal device if all the smart terminal devices to be accessed are all connected to the Internet.
  • Manner 1 Obtain the status information of the indicator light of the intelligent terminal device to be accessed for judgment
  • the service set identifier and password of the router can be obtained according to different status information of the indicator.
  • Method 2 Search within the local area network for judgment
  • Mode 3 Judging by the information of the server received by the mobile terminal.
  • the network connection is performed according to the service set identifier and the password.
  • the server is notified, and the server sends the information that the smart terminal device to be connected to the Internet is successfully connected to the network.
  • the closed smart terminal device can access the Internet through the acquired service set identifier and password of the router.
  • the function of the sending module 204 can be continued, that is, the service set identifier and password of the obtained router are continuously sent to the standby mode. Into the smart terminal device.
  • the device for accessing the Internet by the smart terminal device acquires the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby implementing access of multiple intelligent terminal devices. the Internet.
  • the router discards the multicast data packet without multicasting, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router.
  • the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
  • FIG. 4 is a device for accessing the Internet by the smart terminal device according to the fourth embodiment of the present invention.
  • the device 200 includes: a startup module 201, an establishment module 202, an acquisition module 203, a sending module 204, and a shutdown module 205.
  • the startup module 201 is configured to start a wireless connection mode of the smart terminal device, and start a first timer t0 to start timing;
  • the establishing module 202 is configured to establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
  • the obtaining module 203 includes a waiting unit 2031, a first determining unit 2032, a second determining unit 2033, an opening unit 2034, and a third determining unit 2035;
  • the waiting unit 2031 is configured to wait for a service set identifier and a password of the router sent by the mobile terminal, and start a second timer t1 to start timing;
  • the waiting unit 2031 is configured to wait for a service set identifier and a password of the router sent by the mobile terminal, and a quantity of the smart terminal device to be accessed, and start a second timer t1 to start timing;
  • the first determining unit 2032 is configured to determine whether the service set identifier and password of the router sent by the mobile terminal are acquired; if yes, an enable signal is generated to the sending module 204; otherwise, an enable signal is generated to the second determining unit 2033;
  • the first determining unit 2032 is configured to determine whether the service set identifier and password of the router sent by the mobile terminal, and the number of the smart terminal device to be accessed are obtained; if yes, generate an enable signal to the sending module. 204; otherwise generate an enable signal to the second determining unit 2033;
  • the smart terminal device starts the web server, and the service set identifier and password of the router sent by the mobile terminal can be obtained through the web server.
  • the second determining unit 2033 is configured to determine, according to the enable signal of the first determining unit 2032, whether the time difference between the second timer t1 and the first timer t0 is less than a preset first time; if less, generate The signal can be sent to the waiting unit 2031; otherwise, the enable signal is generated to the opening unit 2034;
  • the preset first time can be set by the user, and the first preset time of the preset can be set to 60 seconds.
  • the opening unit 2034 is configured to: close the wireless connection mode of the smart terminal device according to the enable signal of the second determining unit, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
  • the third determining unit 2035 is configured to determine whether the service set identifier and the password of the router are obtained in the preset second time; if yes, the wireless connection mode of the smart terminal device is started and an enable signal is generated to the sending module. 204; Otherwise, an enable signal is generated to the startup module 201.
  • the third determining unit 2035 is configured to determine whether the service set identifier and password of the router and the number of the smart terminal devices to be accessed are obtained in the preset second time; if yes, the smart device is started.
  • the wireless connection mode of the terminal device generates an enable signal to the transmitting module 204; otherwise, an enable signal is generated to the startup module 201.
  • the preset second time can be set by the user, and the second time that the preset can be set is generally 60 seconds.
  • the sending module 204 is configured to send the service set identifier and password of the router acquired by the acquiring module to the smart terminal device to be accessed by using the multicast mode;
  • the sending module 204 is configured to send the service set identifier and the password of the obtained router to the to-be-accessed smart terminal device in a preset third time.
  • the preset third time can be set by the user, and the general settable sending time is 30 seconds.
  • the obtaining module is further configured to obtain the number of the smart terminal devices to be accessed.
  • the closing module 205 is configured to: if the to-be-accessed smart terminal device has all access to the Internet, turn off the wireless connection mode of the smart terminal device.
  • the smart terminal device to be accessed is all accessed to the Internet by:
  • Manner 1 Obtain the status information of the indicator light of the intelligent terminal device to be accessed for judgment
  • the smart terminal device to be connected is set with an indicator, you can follow the different status of the indicator. It distinguishes whether the smart terminal device to be accessed acquires the service set identifier and password of the router.
  • Method 2 Search within the local area network for judgment
  • Mode 3 Judging by the information of the server received by the mobile terminal.
  • the network connection is performed according to the service set identifier and the password.
  • the server is notified, and the server sends the information that the smart terminal device to be connected to the Internet is successfully connected to the network.
  • the closed smart terminal device can access the Internet through the acquired service set identifier and password of the router.
  • the function of the sending module 204 can be continued, that is, the service set identifier and password of the obtained router are continuously sent to the standby mode. Into the smart terminal device.
  • the IPC1-IPC4 of FIG. 5 is four intelligent terminal devices, and one of the smart terminal devices can be arbitrarily selected, for example, the intelligent terminal device IPC1, and the wireless connection mode of the selected smart terminal device IPC1 is activated; at this time, the smart terminal device IPC1 can be adopted.
  • the wireless connection mode establishes a wireless network connection with the mobile phone; the mobile phone can send the service set identifier and password of the router, and the number of intelligent terminal devices to be accessed (IPC2-IPC4) to the mobile phone; the intelligent terminal device IPC1 acquires the service set of the router.
  • the intelligent terminal device IPC2-IPC4 After the identifier and password are sent to the intelligent terminal device IPC2-IPC4 to be accessed by multicast; if the smart terminal device IPC2-IPC4 is all connected to the Internet, the wireless connection mode of the smart terminal device IPC1 is turned off; otherwise, The intelligent terminal device IPC1 continues to transmit in multicast mode until all intelligent terminal devices IPC2-IPC4 are connected to the Internet.
  • the device for accessing the Internet by the smart terminal device acquires the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby implementing access of multiple intelligent terminal devices.
  • the Internet Solved the prior art solution, the router discarding group The broadcast packet is not multicasted, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router.
  • the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
  • a fifth embodiment of the present invention provides a device for accessing an Internet by an intelligent terminal device, where the device includes: a memory and a processor;
  • At least one program instruction is stored in the memory; the processor implements the methods of the first embodiment and the second embodiment of the present invention by loading and executing the at least one program instruction.
  • a sixth embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores at least one program instruction, and the at least one program instruction is implemented by a processor in the smart terminal device to implement the present invention.
  • a method for accessing an Internet by an intelligent terminal device according to an embodiment and a second embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a method and apparatus allowing a smart terminal device to access the Internet, the method comprising: starting a wireless connection mode of a smart terminal device; establishing a wireless network connection with a mobile terminal by means of the wireless connection mode of the smart terminal device; acquiring a service set identifier and password, sent by the mobile terminal, of a router; sending, in a multicast manner, the acquired service set identifier and password of the router to the smart terminal device awaiting access; and if each smart terminal device awaiting access has accessed the Internet, then disabling the wireless connection mode of the smart terminal device. In the present invention, the service set identifier and password of the router are acquired by way of combining the soft wireless access of an access point and monitoring a multicast data packet, so that a plurality of smart terminal devices access the Internet; and the smart terminal devices can access the Internet securely, stably and efficiently, thus simplifying an installation and operation step of a user.

Description

一种智能终端设备接入互联网的方法及装置Method and device for connecting intelligent terminal device to internet 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种智能终端设备接入互联网的方法及装置。The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for accessing an Internet by an intelligent terminal device.
背景技术Background technique
随着物联网产业的快速发展,无线传输技术应用越来越广泛,常见的无线技术有紫蜂协议(Zigbee)、Z-Wave,蓝牙及无线保真(Wireless-Fidelity,WiFi)等技术。基于WiFi技术的智能家居产品最为常见,其优势在于传输速度快,可直接连接路由器上网,而且成本较低,生活中也最为普及。With the rapid development of the Internet of Things industry, wireless transmission technology is becoming more and more widely used. Common wireless technologies include Zigbee, Z-Wave, Bluetooth and Wireless-Fidelity (WiFi). The smart home products based on WiFi technology are the most common, and the advantage is that the transmission speed is fast, the router can be directly connected to the Internet, and the cost is low, and the life is also the most popular.
WiFi技术的数据传输方式是通过电磁波,由于电磁波的无界性,任意无线终端设备在一定范围内都能接收彼此发出的信号。为了解决WiFi技术的数据传输方式的安全性问题,通常需要对数据传输方式进行加密。常见的加密方式有WEP,WPA,WPA2,破解难度逐级增加。目前WPA2加密方式的安全防护能力非常出色,一般家用以及公共场合的无线访问接入点(Wireless Access Point,AP)都会进行加密。无线设备连接指定的热点时,需要知道该热点的服务集标识(Service Set Identifier,SSID),加密方式,秘钥等信息。The data transmission method of WiFi technology is through electromagnetic waves. Due to the unbounded nature of electromagnetic waves, any wireless terminal device can receive signals from each other within a certain range. In order to solve the security problem of the data transmission method of the WiFi technology, it is usually necessary to encrypt the data transmission mode. Common encryption methods are WEP, WPA, WPA2, and the difficulty of cracking increases step by step. At present, the security protection capability of the WPA2 encryption method is excellent, and the wireless access point (AP) of the general household and public places is encrypted. When a wireless device connects to a specified hotspot, it needs to know the service set identifier (SSID), encryption mode, and secret key of the hotspot.
对于没有输入手段的终端设备,无法直接添加路由器的SSID和密码。现有的接入是通过组播的方式获取到路由器的SSID和密码的。然而在一些情况下,路由器会抛弃组播数据包,不进行组播。例如,当组播数据包到达路由器,路由器作反向路径转发(Reverse path forwarding,RPF)检查时,如果RPF检查失败,路由器则抛弃该组播数据包,不进行组播。另外,路由器开 启WMM(Wi-Fi多媒体或无线多媒体)时,路由器会把语音或者视频数据包的优先级提高,即优先转发音频或视频的数据包,导致含有SSID和密码的无线数据包转发不出去,路由器将抛弃该组播数据包,不进行组播。如果路由器不组播,终端设备就无法获取到路由器的SSID和密码,进而导致智能终端设备无法成功接入到路由器。For terminal devices that do not have input means, the SSID and password of the router cannot be directly added. The existing access is obtained by multicasting the SSID and password of the router. However, in some cases, the router will discard multicast packets and not multicast. For example, when a multicast packet arrives at the router and the router performs reverse path forwarding (RPF) check, if the RPF check fails, the router discards the multicast packet and does not perform multicast. In addition, the router is open When WMM (Wi-Fi multimedia or wireless multimedia) is enabled, the router will increase the priority of the voice or video data packet, that is, preferentially forward the audio or video data packet, so that the wireless data packet containing the SSID and the password cannot be forwarded, the router The multicast packet will be discarded without multicasting. If the router does not multicast, the terminal device cannot obtain the SSID and password of the router, and the intelligent terminal device cannot successfully access the router.
发明内容Summary of the invention
本发明的主要目的在于提出一种,旨在解决现有技术方案中,路由器抛弃组播数据包不进行组播,使得终端设备无法获取到路由器的SSID和密码,进而导致终端设备无法成功接入到路由器的问题。The main purpose of the present invention is to provide a method for solving the problem that the router discards the multicast data packet without multicasting, so that the terminal device cannot obtain the SSID and password of the router, and the terminal device cannot successfully access the terminal device. The problem with the router.
为实现上述目的,本发明实施例第一方面提供一种智能终端设备接入互联网的方法,所述方法包括步骤:To achieve the above objective, a first aspect of the embodiments of the present invention provides a method for an intelligent terminal device to access the Internet, where the method includes the following steps:
S1:启动智能终端设备的无线连接模式;S1: starting a wireless connection mode of the smart terminal device;
S2:通过所述智能终端设备的无线连接模式与一移动终端建立无线网络连接;S2: establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
S3:获取所述移动终端发送的路由器的服务集标识和密码;S3: Obtain a service set identifier and a password of the router sent by the mobile terminal;
S4:将获取到的路由器的服务集标识和密码,通过组播方式发送给所述待接入智能终端设备,以供所述待接入智能终端设备接入互联网。S4: The service set identifier and the password of the obtained router are sent to the to-be-accessed intelligent terminal device in a multicast manner, so that the to-be-accessed intelligent terminal device accesses the Internet.
结合本发明实施例的第一方面,本发明实施例的第一方面的第一种实现方式中,所述步骤S1包括:启动智能终端设备的无线连接模式,并启动第一计时器t0开始计时;With reference to the first aspect of the embodiments of the present invention, in a first implementation manner of the first aspect of the embodiment, the step S1 includes: starting a wireless connection mode of the smart terminal device, and starting the first timer t0 to start timing. ;
所述步骤S3包括:The step S3 includes:
S3.1:等待所述移动终端发送的路由器的服务集标识和密码,并启动第二计时器t1开始计时; S3.1: Waiting for the service set identifier and password of the router sent by the mobile terminal, and starting the second timer t1 to start timing;
S3.2:判断是否获取到所述移动终端发送的路由器的服务集标识和密码;若获取到,则执行步骤S4;否则执行步骤S3.3;S3.2: determining whether the service set identifier and password of the router sent by the mobile terminal are obtained; if yes, executing step S4; otherwise, performing step S3.3;
S3.3:判断所述第二计时器t1与所述第一计时器t0的时间差值是否小于预设的第一时间;若小于,则执行步骤S3.1;否则执行步骤3.4;S3.3: determining whether the time difference between the second timer t1 and the first timer t0 is less than a preset first time; if less, executing step S3.1; otherwise performing step 3.4;
S3.4:关闭所述智能终端设备的无线连接模式,开启所述智能终端设备的监听模式,抓取并解析无线数据包;S3.4: Turn off the wireless connection mode of the smart terminal device, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
S3.5:判断在预设的第二时间内,是否获取到路由器的服务集标识和密码;若获取到,则启动智能终端设备的无线连接模式并执行步骤S4;否则执行步骤S1。S3.5: Determine whether the service set identifier and password of the router are obtained in the preset second time; if yes, start the wireless connection mode of the smart terminal device and perform step S4; otherwise, perform step S1.
结合本发明实施例的第一方面,本发明实施例的第一方面的第二种实现方式中,所述步骤S3包括:启动所述智能终端设备的Web服务器,并通过所述Web服务器获取所述移动终端发送的路由器的服务集标识和密码。With reference to the first aspect of the embodiments of the present invention, in a second implementation manner of the first aspect of the embodiments, the step S3 includes: starting a web server of the smart terminal device, and acquiring the web server by using the web server The service set identifier and password of the router sent by the mobile terminal.
本发明实施例的第一方面的第三种可能实现方式,结合本发明实施例的第一方面或者第一方面的第一种实现方式,所述步骤S4包括:将获取到的路由器的服务集标识和密码,通过组播方式在预设的第三时间内发送给所述待接入智能终端设备。A third possible implementation manner of the first aspect of the embodiment of the present invention, in combination with the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, the step S4 includes: acquiring the service set of the router The identifier and the password are sent to the smart terminal device to be accessed in a preset third time by using a multicast mode.
本发明实施例的第一方面的第四种可能实现方式,结合本发明实施例的第一方面,所述步骤S4之后还包括:A fourth possible implementation manner of the first aspect of the embodiments of the present invention, in conjunction with the first aspect of the embodiment of the present invention, after the step S4, the method further includes:
S5:获取所述待接入智能终端设备的数量;S5: Obtain the number of the smart terminal devices to be accessed;
S6:若所述待接入智能终端设备已全部接入到互联网中,则关闭所述智能终端设备的无线连接模式。S6: If the to-be-accessed smart terminal device is all connected to the Internet, the wireless connection mode of the smart terminal device is turned off.
本发明实施例的第一方面的第五种可能实现方式,结合本发明实施例的第一方面的第四种实现方式,通过以下方式判断所述待接入智能终端设备已 全部接入到互联网中:The fifth possible implementation manner of the first aspect of the embodiment of the present invention, in combination with the fourth implementation manner of the first aspect of the embodiment of the present invention, determines that the to-be-accessed smart terminal device has been All access to the Internet:
获取所述待接入智能终端设备的指示灯的状态信息进行判断;Obtaining status information of the indicator light of the intelligent terminal device to be accessed for determining;
或者在局域网内搜索进行判断;Or search within the local area network for judgment;
或者通过所述移动终端接收的服务器的信息进行判断。Or determining by the information of the server received by the mobile terminal.
此外,为实现上述目的,本发明实施例第二方面提供一种智能终端设备接入互联网的装置,所述装置包括:启动模块、建立模块、获取模块、发送模块及关闭模块;In addition, in order to achieve the above object, a second aspect of the embodiments of the present invention provides an apparatus for accessing an Internet by an intelligent terminal device, where the apparatus includes: a startup module, an establishment module, an acquisition module, a sending module, and a shutdown module;
所述启动模块,用于启动智能终端设备的无线连接模式;The startup module is configured to start a wireless connection mode of the smart terminal device;
所述建立模块,用于通过所述智能终端设备的无线连接模式与一移动终端建立无线网络连接;The establishing module is configured to establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
所述获取模块,用于获取所述移动终端发送的路由器的服务集标识和密码;The acquiring module is configured to acquire a service set identifier and a password of a router sent by the mobile terminal;
所述发送模块,用于将所述获取模块获取到的路由器的服务集标识和密码,通过组播方式发送给所述待接入智能终端设备,以供所述待接入智能终端设备接入互联网。The sending module is configured to send the service set identifier and the password of the router acquired by the acquiring module to the to-be-accessed intelligent terminal device in a multicast manner, so that the smart terminal device to be accessed is accessed. the Internet.
结合本发明实施例的第二方面,本发明实施例的第二方面的第一种实现方式中,所述启动模块,用于启动智能终端设备的无线连接模式,并启动第一计时器t0开始计时;With reference to the second aspect of the embodiments of the present invention, in a first implementation manner of the second aspect of the embodiment, the startup module is configured to start a wireless connection mode of the smart terminal device, and start the first timer t0 to start. Timing
所述获取模块包括等待单元、第一判断单元、第二判断单元、开启单元、第三判断单元;The obtaining module includes a waiting unit, a first determining unit, a second determining unit, an opening unit, and a third determining unit;
所述等待单元,用于等待所述移动终端发送的路由器的服务集标识和密码,并启动第二计时器t1开始计时;The waiting unit is configured to wait for a service set identifier and a password of the router sent by the mobile terminal, and start a second timer t1 to start timing;
所述第一判断单元,用于判断是否获取到所述移动终端发送的路由器的 服务集标识和密码;若获取到,则生成使能信号给所述发送模块;否则生成使能信号给所述第二判断单元;The first determining unit is configured to determine whether the router sent by the mobile terminal is obtained. a service set identifier and a password; if obtained, generating an enable signal to the sending module; otherwise, generating an enable signal to the second determining unit;
所述第二判断单元,用于根据所述第一判断单元的使能信号,判断所述第二计时器t1与所述第一计时器t0的时间差值是否小于预设的第一时间;若小于,则生成使能信号给所述等待单元;否则生成使能信号给所述开启单元;The second determining unit is configured to determine, according to an enable signal of the first determining unit, whether a time difference between the second timer t1 and the first timer t0 is less than a preset first time; If not, generating an enable signal to the waiting unit; otherwise generating an enable signal to the open unit;
所述开启单元,用于根据所述第二判断单元的使能信号,关闭所述智能终端设备的无线连接模式,开启所述智能终端设备的监听模式,抓取并解析无线数据包;The opening unit is configured to: close the wireless connection mode of the smart terminal device according to the enable signal of the second determining unit, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
所述第三判断单元,用于判断在预设的第二时间内,是否获取到路由器的服务集标识和密码;若获取到,则启动智能终端设备的无线连接模式并生成使能信号给所述发送模块;否则生成使能信号给所述启动模块。The third determining unit is configured to determine whether the service set identifier and password of the router are obtained in the preset second time; if yes, the wireless connection mode of the smart terminal device is started and an enable signal is generated. Transmitting the module; otherwise generating an enable signal to the boot module.
结合本发明实施例的第二方面,本发明实施例的第二方面的第二种实现方式中,所述获取模块,用于启动所述智能终端设备的Web服务器,并通过所述Web服务器获取所述移动终端发送的路由器的服务集标识和密码。With reference to the second aspect of the embodiments of the present invention, in a second implementation manner of the second aspect of the embodiments, the acquiring module is configured to start a web server of the smart terminal device, and obtain the web server by using the web server. The service set identifier and password of the router sent by the mobile terminal.
本发明实施例的第二方面的第三种可能实现方式,结合本发明实施例的第二方面或者第二方面的第一种实现方式,所述发送模块,用于将获取到的路由器的服务集标识和密码,通过组播方式在预设的第三时间内发送给所述待接入智能终端设备。A third possible implementation manner of the second aspect of the embodiment of the present invention, 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 obtain the service of the obtained router The set identifier and the password are sent to the smart terminal device to be accessed in a preset third time by using a multicast mode.
本发明实施例的第二方面的第四种可能实现方式,结合本发明实施例的第二方面,所述装置还包括关闭模块;A fourth possible implementation manner of the second aspect of the embodiments of the present invention, in combination with the second aspect of the embodiments of the present invention, the apparatus further includes a shutdown module;
所述获取模块,还用于获取所述待接入智能终端设备的数量;The acquiring module is further configured to acquire the number of the smart terminal devices to be accessed;
所述关闭模块,用于若所述待接入智能终端设备已全部接入到互联网中,则关闭所述智能终端设备的无线连接模式。 The closing module is configured to close the wireless connection mode of the smart terminal device if the to-be-accessed smart terminal device has all accessed the Internet.
本发明实施例的第二方面的第五种可能实现方式,结合本发明实施例的第二方面的第四种实现方式,通过以下方式判断所述待接入智能终端设备已全部接入到互联网中:The fifth possible implementation manner of the second aspect of the embodiment of the present invention, in combination with the fourth implementation manner of the second aspect of the embodiment of the present invention, determines that the to-be-accessed intelligent terminal device has all access to the Internet in:
获取所述待接入智能终端设备的指示灯的状态信息进行判断;Obtaining status information of the indicator light of the intelligent terminal device to be accessed for determining;
或者在局域网内搜索进行判断;Or search within the local area network for judgment;
或者通过所述移动终端接收的服务器的信息进行判断。Or determining by the information of the server received by the mobile terminal.
为实现上述目的,本发明实施例的第三方面提供一种智能终端设备接入互联网的装置所述装置包括:存储器和处理器;In order to achieve the above object, a third aspect of the embodiments of the present invention provides a device for accessing an Internet by an intelligent terminal device, where the device includes: a memory and a processor;
存储器中存储有至少一条程序指令;处理器通过加载并执行所述至少一条程序指令以实现本发明实施例的第一方面的方法。At least one program instruction is stored in the memory; the processor implements the method of the first aspect of the embodiments of the present invention by loading and executing the at least one program instruction.
为实现上述目的,本发明实施例的第四方面提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序指令,所述至少一条程序指令被智能终端设备内的处理器执行时实现本发明实施例第一方面所述的智能终端设备接入互联网的方法。In order to achieve the above object, a fourth aspect of the embodiments of the present invention provides a computer readable storage medium, where the computer readable storage medium stores at least one program instruction, and the at least one program instruction is processed by the smart terminal device. The method for accessing the Internet by the smart terminal device according to the first aspect of the present invention is implemented when the device is executed.
本发明实施例提供的智能终端设备接入互联网的方法及装置,通过软无线访问接入点和监听组播数据包相结合的方式获取路由器的服务集标识和密码,实现了多个智能终端设备接入互联网。解决了现有技术方案中,路由器抛弃组播数据包不进行组播,使得智能终端设备无法获取到路由器的服务集标识和密码,进而导致智能终端设备无法成功接入到路由器的问题。最终可以使智能终端设备安全、稳定、高效地接入互联网,简化了用户的安装操作步骤。 The method and device for accessing the Internet by the intelligent terminal device provided by the embodiment of the present invention obtain the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby realizing multiple intelligent terminal devices Access to the Internet. In the prior art solution, the router discards the multicast data packet without multicasting, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router. In the end, the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
附图说明DRAWINGS
图1为本发明第一实施例的智能终端设备接入互联网的方法流程示意图;1 is a schematic flowchart of a method for an intelligent terminal device to access an Internet according to a first embodiment of the present invention;
图2为本发明第二实施例的智能终端设备接入互联网的方法流程示意图;2 is a schematic flowchart of a method for accessing an Internet by a smart terminal device according to a second embodiment of the present invention;
图3为本发明第三实施例的智能终端设备接入互联网的装置结构示意图;3 is a schematic structural diagram of an apparatus for accessing an Internet by a smart terminal device according to a third embodiment of the present invention;
图4为本发明第四实施例的智能终端设备接入互联网的装置结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for accessing an Internet by a smart terminal device according to a fourth embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
现在将参考附图描述实现本发明各个实施例的。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。Various embodiments of the present invention will now be described with reference to the drawings. In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se.
本发明以下所描述的实施例,在其实施环境中,主要包括移动终端、智能终端设备、待接入智能终端设备和路由器。The embodiments described below in the present invention mainly include a mobile terminal, a smart terminal device, a smart terminal device to be accessed, and a router in an implementation environment thereof.
其中,智能终端设备包括已接入互联网的智能终端设备和待接入智能终端设备。智能终端设备是指那些具有多媒体功能的智能设备这些设备支持音频、视频、数据等方面的功能,如:可视电话、会议终端、内置多媒体功能的计算机等等。在一种可能的实施方式中,智能终端设备为可以与包括待接入智能终端设备在内的其他智能终端设备建立无线网络连接的智能终端设备,能通过上述连接进行数据传输,从而发送和接收服务集标识和密码。待接入智能终端设备为没有输入手段的终端设备,无法直接添加路由器的SSID和密码。 The smart terminal device includes an intelligent terminal device that has access to the Internet and a smart terminal device to be accessed. Intelligent terminal devices are those with multimedia functions. These devices support functions such as audio, video, and data, such as videophones, conference terminals, computers with built-in multimedia functions, and so on. In a possible implementation manner, the smart terminal device is a smart terminal device that can establish a wireless network connection with other smart terminal devices including the smart terminal device to be accessed, and can transmit and receive data through the foregoing connection, thereby transmitting and receiving Service set ID and password. The smart terminal device to be accessed is a terminal device without input means, and the SSID and password of the router cannot be directly added.
移动终端包括但不限于智能手机、平板电脑、掌上电脑(Personal Digital Assistant,PDA)等等具有输入手段的电子设备,其无法与待接入智能终端设备直接进行数据传输。The mobile terminal includes, but is not limited to, an electronic device having an input means such as a smart phone, a tablet computer, a personal digital assistant (PDA), and the like, which cannot directly perform data transmission with the smart terminal device to be accessed.
路由器,是连接因特网中各局域网、广域网的设备,它会根据信道的情况自动选择和设定路由,以最佳路径,按前后顺序发送信号。A router is a device that connects to various local area networks and wide area networks in the Internet. It automatically selects and sets routes according to the channel conditions, and sends signals in order of optimal path.
智能终端设备、移动终端、待接入智能终端和路由器通过无线网络进行连接。在一种可能的实施方式中,智能终端设备、移动终端、待接入智能终端和路由器之间通过Wi-Fi进行连接。The intelligent terminal device, the mobile terminal, the intelligent terminal to be accessed, and the router are connected through a wireless network. In a possible implementation manner, the smart terminal device, the mobile terminal, the smart terminal to be accessed, and the router are connected by Wi-Fi.
如图1所示,本发明第一实施例提出一种智能终端设备接入互联网的方法,该方法包括步骤:As shown in FIG. 1 , a first embodiment of the present invention provides a method for an intelligent terminal device to access the Internet, and the method includes the following steps:
S1:启动智能终端设备的无线连接模式;S1: starting a wireless connection mode of the smart terminal device;
在本实施例中,无线连接模式包括软无线访问接入点模式、蓝牙模式、红外模式、WiFi模式等等,本实施例对此不作限定。In this embodiment, the wireless connection mode includes a soft wireless access point mode, a Bluetooth mode, an infrared mode, a WiFi mode, and the like, which is not limited in this embodiment.
在本实施例中,以无线连接模式为软无线访问接入点模式为例进行举例说明。启动软无线访问接入点需要启动hostapd进程,hostapd能够使得智能终端设备的无线网卡切换为Master模式,模拟无线访问接入点功能(通常可以认为是路由器),即软无线访问接入点。hostapd的功能就是作为无线访问接入点的认证服务器,负责控制管理终端的接入和认证。通过hostapd可以将无线网卡切换为AP/Master模式;通过修改配置文件,可以建立一个开放式的WEP,WPA或WPA2的无线网络;通过修改配置文件可以设置无线网卡的各种参数,包括频率、信号、Beacon包时间间隔,是否发送Beacon包,如何响应探针请求等等。In this embodiment, the wireless wireless access point mode is taken as an example in the wireless connection mode. To start a soft wireless access point, you need to start the hostapd process. Hostapd can switch the wireless network card of the smart terminal device to Master mode, and simulate the wireless access point function (usually can be considered as a router), that is, a soft wireless access point. The function of hostapd is to act as the authentication server of the wireless access point, which is responsible for controlling the access and authentication of the management terminal. The host network can switch the wireless network card to AP/Master mode. By modifying the configuration file, an open WEP, WPA or WPA2 wireless network can be established. By modifying the configuration file, various parameters of the wireless network card, including frequency and signal, can be set. , Beacon packet time interval, whether to send Beacon packets, how to respond to probe requests, and so on.
S2:通过智能终端设备的无线连接模式与一移动终端建立无线网络连接; S2: establishing a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
在本实施例中,移动终端包括但不限于智能手机、平板电脑、PDA等等。In this embodiment, the mobile terminal includes, but is not limited to, a smartphone, a tablet, a PDA, and the like.
在本实施例中,启动hostapd进程,从而使得智能终端设备进入无线连接模式,此时使用移动终端就可以扫描到智能终端设备创建的热点名称,智能终端设备启动DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)服务,就可以为连接到该软无线访问接入点的移动终端分配一个动态ip地址,进而建立无线网络连接。In this embodiment, the hostapd process is started, so that the smart terminal device enters the wireless connection mode. At this time, the mobile terminal can scan the hotspot name created by the smart terminal device, and the smart terminal device starts DHCP (Dynamic Host Configuration Protocol, dynamic host). By configuring the protocol service, a mobile IP terminal connected to the soft wireless access point can be assigned a dynamic IP address to establish a wireless network connection.
S3:获取移动终端发送的路由器的服务集标识和密码;S3: Obtain a service set identifier and a password of the router sent by the mobile terminal;
在本实施例中,智能终端设备启动Web服务器,通过Web服务器可获取移动终端发送的路由器的服务集标识和密码。In this embodiment, the smart terminal device starts the web server, and the service set identifier and password of the router sent by the mobile terminal can be obtained through the web server.
可选地,在本实施例中,智能终端设备还通过Web服务器获取移动终端发送的待接入智能终端设备的数量。Optionally, in this embodiment, the smart terminal device further obtains, by using a web server, the number of the smart terminal devices to be accessed sent by the mobile terminal.
S4:将获取到的路由器的服务集标识和密码,通过组播方式发送给待接入智能终端设备,以供待接入智能终端设备接入互联网;S4: The service set identifier and the password of the obtained router are sent to the smart terminal device to be accessed by the multicast mode, so that the smart terminal device to be accessed is connected to the Internet;
在本实施例中,智能终端设备把路由器的服务集标识和密码以组播的方式发送出去,使得待接入智能终端设备在监控模式下时,可抓取并解析无线数据包,从而获取到路由器的服务集标识和密码。由于智能终端设备作为软无线访问接入点发送组播数据包的时候,组播源就是智能终端设备本身,所以RPF检查不存在失败。其次,智能终端设备虽然作为软无线访问接入点模拟路由器功能,但是设备上没有WMM(Wi-Fi多媒体或无线多媒体)功能,因此不会发生抛弃组播数据包、不进行组播的现象。In this embodiment, the smart terminal device sends the service set identifier and password of the router in a multicast manner, so that when the smart terminal device is in the monitoring mode, the wireless data packet can be captured and parsed, thereby obtaining The service set ID and password of the router. When the smart terminal device sends a multicast packet as a soft wireless access point, the multicast source is the smart terminal device itself, so the RPF check does not fail. Secondly, although the smart terminal device functions as a soft wireless access point analog router, there is no WMM (Wi-Fi multimedia or wireless multimedia) function on the device, so the phenomenon of discarding multicast data packets and not performing multicasting does not occur.
在本实施例中,可将获取到的路由器的服务集标识和密码,通过组播方式在预设的第三时间内发送给待接入智能终端设备,避免智能终端设备因为长时间进行组播而消耗大量电量。其中,预设的第三时间可由用户进行设置, 一般的可设置发送时间为30秒。In this embodiment, the service set identifier and the password of the obtained router are sent to the intelligent terminal device to be accessed in a preset third time by using the multicast mode, so as to prevent the smart terminal device from performing multicast for a long time. It consumes a lot of electricity. The preset third time can be set by the user. The general configurable send time is 30 seconds.
此外,在本实施例中,在步骤S4之后还可包括:In addition, in this embodiment, after step S4, the method may further include:
S5:获取所述待接入智能终端设备的数量;S5: Obtain the number of the smart terminal devices to be accessed;
S6:若待接入智能终端设备已全部接入到互联网中,则关闭智能终端设备的无线连接模式。S6: If all the smart terminal devices to be accessed are all connected to the Internet, the wireless connection mode of the smart terminal device is turned off.
在本实施例中,可通过以下方式判断待接入智能终端设备已全部接入到互联网中:In this embodiment, the smart terminal device to be accessed is all accessed to the Internet by:
方式1:获取待接入智能终端设备的指示灯的状态信息进行判断;Manner 1: Obtain the status information of the indicator light of the intelligent terminal device to be accessed for judgment;
如果待接入智能终端设备设置有指示灯,可以根据指示灯的状态信息区分待接入智能终端设备是否获取到路由器的服务集标识和密码。If the smart terminal device to be accessed is set with an indicator, you can distinguish whether the smart terminal device to be accessed obtains the service set identifier and password of the router according to the status information of the indicator.
方式2:在局域网内搜索进行判断;Method 2: Search within the local area network for judgment;
方式3:通过移动终端接收的服务器的信息进行判断。Mode 3: Judging by the information of the server received by the mobile terminal.
待接入智能终端设备获取到路由器的服务集标识和密码之后,根据该服务集标识和密码进行网络连接,连接成功之后通知服务器,由服务器将待接入智能终端设备成功连接互联网的信息发送给移动终端。After the smart terminal device obtains the service set identifier and password of the router, the network connection is performed according to the service set identifier and the password. After the connection is successful, the server is notified, and the server sends the information that the smart terminal device to be connected to the Internet is successfully connected to the network. Mobile terminal.
在本实施例中,关闭智能终端设备的无线连接模式之后,该关闭的智能终端设备可通过获取到的路由器的服务集标识和密码接入互联网。In this embodiment, after the wireless connection mode of the smart terminal device is turned off, the closed smart terminal device can access the Internet through the acquired service set identifier and password of the router.
进一步地,若待接入智能终端设备没有全部接入到互联网中,则可继续执行步骤S4,即继续将获取到的路由器的服务集标识和密码,通过组播方式发送给待接入智能终端设备。Further, if all the smart terminal devices to be accessed are not connected to the Internet, the process may continue to be performed in step S4, that is, the service set identifier and the password of the obtained router are continuously sent to the smart terminal to be accessed through the multicast mode. device.
本发明实施例提供的智能终端设备接入互联网的方法,通过软无线访问接入点和监听组播数据包相结合的方式获取路由器的服务集标识和密码,实现了多个智能终端设备接入互联网。解决了现有技术方案中,路由器抛弃组 播数据包不进行组播,使得智能终端设备无法获取到路由器的服务集标识和密码,进而导致智能终端设备无法成功接入到路由器的问题。最终可以使智能终端设备安全、稳定、高效地接入互联网,简化了用户的安装操作步骤。The method for accessing the Internet by the intelligent terminal device provided by the embodiment of the present invention obtains the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby implementing access of multiple intelligent terminal devices. the Internet. Solved the prior art solution, the router discarding group The broadcast packet is not multicasted, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router. In the end, the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
如图2所示,本发明第二实施例提出一种智能终端设备接入互联网的方法,该方法包括步骤:As shown in FIG. 2, a second embodiment of the present invention provides a method for an intelligent terminal device to access the Internet, and the method includes the following steps:
S1:启动智能终端设备的无线连接模式,并启动第一计时器t0开始计时;S1: starting the wireless connection mode of the smart terminal device, and starting the first timer t0 to start timing;
S2:通过智能终端设备的无线连接模式与一移动终端建立无线网络连接;S2: establishing a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
S3.1:等待移动终端发送的路由器的服务集标识和密码,并启动第二计时器t1开始计时;S3.1: Waiting for the service set identifier and password of the router sent by the mobile terminal, and starting the second timer t1 to start timing;
在一种可能的实施方式中,等待移动终端发送的路由器的服务集标识和密码、及待接入智能终端设备的数量,并启动第二计时器t1开始计时;In a possible implementation manner, waiting for the service set identifier and password of the router sent by the mobile terminal, and the number of the smart terminal devices to be accessed, and starting the second timer t1 to start timing;
S3.2:判断是否获取到移动终端发送的路由器的服务集标识和密码;若获取到,则执行步骤S4;否则执行步骤S3.3;S3.2: determining whether the service set identifier and password of the router sent by the mobile terminal are obtained; if yes, step S4 is performed; otherwise, step S3.3 is performed;
在一种可能的实施方式中,判断是否获取到移动终端发送的路由器的服务集标识和密码、及待接入智能终端设备的数量;若获取到,则执行步骤S4;否则执行步骤S3.3;In a possible implementation, it is determined whether the service set identifier and password of the router sent by the mobile terminal, and the number of the smart terminal devices to be accessed are obtained; if yes, step S4 is performed; otherwise, step S3.3 is performed. ;
在本实施例中,智能终端设备启动Web服务器,可通过Web服务器可获取移动终端发送的路由器的服务集标识和密码。In this embodiment, the smart terminal device starts the web server, and the service set identifier and password of the router sent by the mobile terminal can be obtained through the web server.
可选地,在本实施例中,智能终端设备还通过Web服务器获取移动终端发送的待接入智能终端设备的数量。S3.3:判断第二计时器t1与第一计时器t0的时间差值是否小于预设的第一时间;若小于,则执行步骤S3.1;否则执行步骤3.4;Optionally, in this embodiment, the smart terminal device further obtains, by using a web server, the number of the smart terminal devices to be accessed sent by the mobile terminal. S3.3: determining whether the time difference between the second timer t1 and the first timer t0 is less than a preset first time; if less, executing step S3.1; otherwise performing step 3.4;
在本实施例中,预设的第一时间可由用户进行设置,一般的可设置预设 的第一时间为60秒。In this embodiment, the preset first time can be set by the user, and the general presettable can be set. The first time is 60 seconds.
S3.4:关闭智能终端设备的无线连接模式,开启智能终端设备的监听模式,抓取并解析无线数据包;S3.4: Turn off the wireless connection mode of the smart terminal device, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
S3.5:判断在预设的第二时间内,是否获取到路由器的服务集标识和密码;若获取到,则启动智能终端设备的无线连接模式并执行步骤S4;否则执行步骤S1;S3.5: determining whether the service set identifier and password of the router are obtained in the preset second time; if yes, the wireless connection mode of the smart terminal device is started and step S4 is performed; otherwise, step S1 is performed;
在一种可能的实施方式中,判断在预设的第二时间内,是否获取到路由器的服务集标识和密码、及待接入智能终端设备的数量。若获取到,则启动智能终端设备的无线连接模式并执行步骤S4;否则执行步骤S1;In a possible implementation manner, it is determined whether the service set identifier and password of the router and the number of the smart terminal devices to be accessed are obtained in the preset second time. If yes, start the wireless connection mode of the smart terminal device and perform step S4; otherwise, perform step S1;
在本实施例中,预设的第二时间可由用户进行设置,一般的可设置预设的第二时间为60秒。In this embodiment, the preset second time can be set by the user, and the second time that the preset can be set is generally 60 seconds.
S4:将获取到的路由器的服务集标识和密码,通过组播方式发送给待接入智能终端设备;S4: Send the service set identifier and password of the obtained router to the smart terminal device to be accessed through multicast mode;
在本实施例中,可将获取到的路由器的服务集标识和密码,通过组播方式在预设的第三时间内发送给待接入智能终端设备,避免智能终端设备因为长时间进行组播而消耗大量电量。其中,预设的第三时间可由用户进行设置,一般的可设置发送时间为30秒。In this embodiment, the service set identifier and the password of the obtained router are sent to the intelligent terminal device to be accessed in a preset third time by using the multicast mode, so as to prevent the smart terminal device from performing multicast for a long time. It consumes a lot of electricity. The preset third time can be set by the user, and the general settable sending time is 30 seconds.
S5:若待接入智能终端设备已全部接入到互联网中,则关闭智能终端设备的无线连接模式。S5: If the smart terminal devices to be accessed are all connected to the Internet, the wireless connection mode of the smart terminal device is turned off.
在本实施例中,可通过以下方式判断待接入智能终端设备已全部接入到互联网中:In this embodiment, the smart terminal device to be accessed is all accessed to the Internet by:
方式1:获取待接入智能终端设备的指示灯的状态信息进行判断;Manner 1: Obtain the status information of the indicator light of the intelligent terminal device to be accessed for judgment;
如果待接入智能终端设备设置有指示灯,可以根据指示灯的不同状态信 息区分待接入智能终端设备是否获取到路由器的服务集标识和密码。If the smart terminal device to be connected is set with an indicator, you can follow the different status of the indicator. It distinguishes whether the smart terminal device to be accessed acquires the service set identifier and password of the router.
方式2:在局域网内搜索进行判断;Method 2: Search within the local area network for judgment;
方式3:通过移动终端接收的服务器的信息进行判断。Mode 3: Judging by the information of the server received by the mobile terminal.
待接入智能终端设备获取到路由器的服务集标识和密码之后,根据该服务集标识和密码进行网络连接,连接成功之后通知服务器,由服务器将待接入智能终端设备成功连接互联网的信息发送给移动终端。After the smart terminal device obtains the service set identifier and password of the router, the network connection is performed according to the service set identifier and the password. After the connection is successful, the server is notified, and the server sends the information that the smart terminal device to be connected to the Internet is successfully connected to the network. Mobile terminal.
进一步地,若待接入智能终端设备没有全部接入到互联网中,则可继续执行步骤S4,即继续将获取到的路由器的服务集标识和密码,通过组播方式发送给待接入智能终端设备。Further, if all the smart terminal devices to be accessed are not connected to the Internet, the process may continue to be performed in step S4, that is, the service set identifier and the password of the obtained router are continuously sent to the smart terminal to be accessed through the multicast mode. device.
在本实施例中,关闭智能终端设备的无线连接模式之后,该关闭的智能终端设备可通过获取到的路由器的服务集标识和密码接入互联网。In this embodiment, after the wireless connection mode of the smart terminal device is turned off, the closed smart terminal device can access the Internet through the acquired service set identifier and password of the router.
作为示例的,请参考图5所示。图5的IPC1-IPC4为4个智能终端设备,可任意选取其中一个智能终端设备,例如:智能终端设备IPC1,启动选取的智能终端设备IPC1的无线连接模式;这时,可通过智能终端设备IPC1的无线连接模式与手机建立无线网络连接;手机可将路由器的服务集标识和密码、及待接入智能终端设备的数量(IPC2-IPC4)发送给手机;智能终端设备IPC1在获取路由器的服务集标识和密码之后,通过组播方式发送给待接入智能终端设备IPC2-IPC4;如果智能终端设备IPC2-IPC4已全部接入到互联网中,则关闭智能终端设备IPC1的无线连接模式;否则的话,智能终端设备IPC1继续通过组播方式发送,直到所有智能终端设备IPC2-IPC4接入到互联网中。As an example, please refer to Figure 5. The IPC1-IPC4 of FIG. 5 is four intelligent terminal devices, and one of the smart terminal devices can be arbitrarily selected, for example, the intelligent terminal device IPC1, and the wireless connection mode of the selected smart terminal device IPC1 is activated; at this time, the smart terminal device IPC1 can be adopted. The wireless connection mode establishes a wireless network connection with the mobile phone; the mobile phone can send the service set identifier and password of the router, and the number of intelligent terminal devices to be accessed (IPC2-IPC4) to the mobile phone; the intelligent terminal device IPC1 acquires the service set of the router. After the identifier and password are sent to the intelligent terminal device IPC2-IPC4 to be accessed by multicast; if the smart terminal device IPC2-IPC4 is all connected to the Internet, the wireless connection mode of the smart terminal device IPC1 is turned off; otherwise, The intelligent terminal device IPC1 continues to transmit in multicast mode until all intelligent terminal devices IPC2-IPC4 are connected to the Internet.
需要说明的一点是,在本发明实施例中,获取待接入设备的数量可以在获取移动终端发送的服务集标识和密码的同时获取,也可作为步骤S5在步骤S6之前获取。 It should be noted that, in the embodiment of the present invention, the number of devices to be accessed may be acquired while obtaining the service set identifier and password sent by the mobile terminal, or may be acquired as step S5 before step S6.
本发明实施例提供的智能终端设备接入互联网的方法,通过软无线访问接入点和监听组播数据包相结合的方式获取路由器的服务集标识和密码,实现了多个智能终端设备接入互联网。解决了现有技术方案中,路由器抛弃组播数据包不进行组播,使得智能终端设备无法获取到路由器的服务集标识和密码,进而导致智能终端设备无法成功接入到路由器的问题。最终可以使智能终端设备安全、稳定、高效地接入互联网,简化了用户的安装操作步骤。The method for accessing the Internet by the intelligent terminal device provided by the embodiment of the present invention obtains the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby implementing access of multiple intelligent terminal devices. the Internet. In the prior art solution, the router discards the multicast data packet without multicasting, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router. In the end, the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
本发明进一步提供一种装置。The invention further provides an apparatus.
参照图3,图3为本发明第三实施例提出的一种智能终端设备接入互联网的装置,装置200包括:启动模块201、建立模块202、获取模块203、发送模块204;Referring to FIG. 3, FIG. 3 is a device for accessing the Internet by the smart terminal device according to the third embodiment of the present invention. The device 200 includes: a startup module 201, an establishing module 202, an obtaining module 203, and a sending module 204.
启动模块201,用于启动智能终端设备的无线连接模式;The startup module 201 is configured to start a wireless connection mode of the smart terminal device;
在本实施例中,启动软无线访问接入点需要启动hostapd进程,hostapd能够使得智能终端设备的无线网卡切换为Master模式,模拟无线访问接入点功能(通常可以认为是路由器),即软无线访问接入点。hostapd的功能就是作为无线访问接入点的认证服务器,负责控制管理终端的接入和认证。通过hostapd可以将无线网卡切换为AP/Master模式;通过修改配置文件,可以建立一个开放式的WEP,WPA或WPA2的无线网络;通过修改配置文件可以设置无线网卡的各种参数,包括频率、信号、Beacon包时间间隔,是否发送Beacon包,如何响应探针请求等等。In this embodiment, the start of the soft wireless access point needs to start the hostapd process, and the hostapd can switch the wireless network card of the smart terminal device to the master mode, and simulate the function of the wireless access point (which can be generally regarded as a router), that is, soft wireless. Access the access point. The function of hostapd is to act as the authentication server of the wireless access point, which is responsible for controlling the access and authentication of the management terminal. The host network can switch the wireless network card to AP/Master mode. By modifying the configuration file, an open WEP, WPA or WPA2 wireless network can be established. By modifying the configuration file, various parameters of the wireless network card, including frequency and signal, can be set. , Beacon packet time interval, whether to send Beacon packets, how to respond to probe requests, and so on.
建立模块202,用于通过智能终端设备的无线连接模式与一移动终端建立无线网络连接;The establishing module 202 is configured to establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
在本实施例中,移动终端包括但不限于智能手机、平板电脑、PDA等等。In this embodiment, the mobile terminal includes, but is not limited to, a smartphone, a tablet, a PDA, and the like.
在本实施例中,启动hostapd进程,从而使得智能终端设备进入无线连接 模式,此时使用移动终端就可以扫描到智能终端设备创建的热点名称,智能终端设备启动DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)服务,就可以为连接到该软无线访问接入点的移动终端分配一个动态ip地址,进而建立无线网络连接。In this embodiment, the hostapd process is started, so that the smart terminal device enters the wireless connection. Mode, at this time, the mobile terminal can scan the hotspot name created by the smart terminal device, and the smart terminal device starts the DHCP (Dynamic Host Configuration Protocol) service, and can connect to the soft wireless access point. The mobile terminal allocates a dynamic IP address to establish a wireless network connection.
获取模块203,用于获取移动终端发送的路由器的服务集标识和密码;The obtaining module 203 is configured to obtain a service set identifier and a password of the router sent by the mobile terminal;
在本实施例中,获取模块,可用于启动智能终端设备的Web服务器,并通过Web服务器获取移动终端发送的路由器的服务集标识和密码。In this embodiment, the obtaining module is configured to start a web server of the smart terminal device, and obtain a service set identifier and a password of the router sent by the mobile terminal through the web server.
发送模块204,用于将获取模块获取到的路由器的服务集标识和密码,通过组播方式发送给待接入智能终端设备;The sending module 204 is configured to send the service set identifier and password of the router acquired by the acquiring module to the smart terminal device to be accessed by using the multicast mode;
在本实施例中,智能终端设备把路由器的服务集标识和密码以组播的方式发送出去,使得待接入智能终端设备在监控模式下时,可抓取并解析无线数据包,从而获取到路由器的服务集标识和密码。由于智能终端设备作为软无线访问接入点发送组播数据包的时候,组播源就是智能终端设备本身,所以RPF检查不存在失败。其次,智能终端设备虽然作为软无线访问接入点模拟路由器功能,但是设备上没有WMM(Wi-Fi多媒体或无线多媒体)功能,因此不会发生抛弃组播数据包、不进行组播的现象。In this embodiment, the smart terminal device sends the service set identifier and password of the router in a multicast manner, so that when the smart terminal device is in the monitoring mode, the wireless data packet can be captured and parsed, thereby obtaining The service set ID and password of the router. When the smart terminal device sends a multicast packet as a soft wireless access point, the multicast source is the smart terminal device itself, so the RPF check does not fail. Secondly, although the smart terminal device functions as a soft wireless access point analog router, there is no WMM (Wi-Fi multimedia or wireless multimedia) function on the device, so the phenomenon of discarding multicast data packets and not performing multicasting does not occur.
在本实施例中,发送模块204,可用于将获取到的路由器的服务集标识和密码,通过组播方式在预设的第三时间内发送给待接入智能终端设备。预设的第三时间可由用户进行设置,一般的可设置发送时间为30秒。In this embodiment, the sending module 204 is configured to send the service set identifier and the password of the obtained router to the to-be-accessed smart terminal device in a preset third time. The preset third time can be set by the user, and the general settable sending time is 30 seconds.
可选地,在本实施例中,智能终端设备还包括关闭模块205;关闭模块205,用于若待接入智能终端设备已全部接入到互联网中,则关闭智能终端设备的无线连接模式。Optionally, in this embodiment, the smart terminal device further includes a shutdown module 205, and the shutdown module 205 is configured to disable the wireless connection mode of the smart terminal device if all the smart terminal devices to be accessed are all connected to the Internet.
在本实施例中,可通过以下方式判断待接入智能终端设备已全部接入到 互联网中:In this embodiment, it can be determined that the to-be-accessed intelligent terminal device has all been accessed by In the Internet:
方式1:获取待接入智能终端设备的指示灯的状态信息进行判断;Manner 1: Obtain the status information of the indicator light of the intelligent terminal device to be accessed for judgment;
如果待接入智能终端设备设置有指示灯,可以根据指示灯的不同状态信息区分待接入智能终端设备是否获取到路由器的服务集标识和密码。If the smart terminal device to be accessed is configured with an indicator, the service set identifier and password of the router can be obtained according to different status information of the indicator.
方式2:在局域网内搜索进行判断;Method 2: Search within the local area network for judgment;
方式3:通过移动终端接收的服务器的信息进行判断。Mode 3: Judging by the information of the server received by the mobile terminal.
待接入智能终端设备获取到路由器的服务集标识和密码之后,根据该服务集标识和密码进行网络连接,连接成功之后通知服务器,由服务器将待接入智能终端设备成功连接互联网的信息发送给移动终端。After the smart terminal device obtains the service set identifier and password of the router, the network connection is performed according to the service set identifier and the password. After the connection is successful, the server is notified, and the server sends the information that the smart terminal device to be connected to the Internet is successfully connected to the network. Mobile terminal.
在本实施例中,关闭智能终端设备的无线连接模式之后,该关闭的智能终端设备可通过获取到的路由器的服务集标识和密码接入互联网。In this embodiment, after the wireless connection mode of the smart terminal device is turned off, the closed smart terminal device can access the Internet through the acquired service set identifier and password of the router.
进一步地,若待接入智能终端设备没有全部接入到互联网中,则可继续执行发送模块204的功能,即继续将获取到的路由器的服务集标识和密码,通过组播方式发送给待接入智能终端设备。Further, if the to-be-accessed smart terminal device is not fully connected to the Internet, the function of the sending module 204 can be continued, that is, the service set identifier and password of the obtained router are continuously sent to the standby mode. Into the smart terminal device.
本发明实施例提供的智能终端设备接入互联网的装置,通过软无线访问接入点和监听组播数据包相结合的方式获取路由器的服务集标识和密码,实现了多个智能终端设备接入互联网。解决了现有技术方案中,路由器抛弃组播数据包不进行组播,使得智能终端设备无法获取到路由器的服务集标识和密码,进而导致智能终端设备无法成功接入到路由器的问题。最终可以使智能终端设备安全、稳定、高效地接入互联网,简化了用户的安装操作步骤。The device for accessing the Internet by the smart terminal device provided by the embodiment of the present invention acquires the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby implementing access of multiple intelligent terminal devices. the Internet. In the prior art solution, the router discards the multicast data packet without multicasting, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router. In the end, the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
参照图4,图4为本发明第四实施例提出的一种智能终端设备接入互联网的装置,装置200包括:启动模块201、建立模块202、获取模块203、发送模块204及关闭模块205; Referring to FIG. 4, FIG. 4 is a device for accessing the Internet by the smart terminal device according to the fourth embodiment of the present invention. The device 200 includes: a startup module 201, an establishment module 202, an acquisition module 203, a sending module 204, and a shutdown module 205.
启动模块201,用于启动智能终端设备的无线连接模式,并启动第一计时器t0开始计时;The startup module 201 is configured to start a wireless connection mode of the smart terminal device, and start a first timer t0 to start timing;
建立模块202,用于通过智能终端设备的无线连接模式与一移动终端建立无线网络连接;The establishing module 202 is configured to establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
获取模块203包括等待单元2031、第一判断单元2032、第二判断单元2033、开启单元2034、第三判断单元2035;The obtaining module 203 includes a waiting unit 2031, a first determining unit 2032, a second determining unit 2033, an opening unit 2034, and a third determining unit 2035;
等待单元2031,用于等待移动终端发送的路由器的服务集标识和密码,并启动第二计时器t1开始计时;The waiting unit 2031 is configured to wait for a service set identifier and a password of the router sent by the mobile terminal, and start a second timer t1 to start timing;
可选地,等待单元2031,用于等待移动终端发送的路由器的服务集标识和密码、及待接入智能终端设备的数量,并启动第二计时器t1开始计时;Optionally, the waiting unit 2031 is configured to wait for a service set identifier and a password of the router sent by the mobile terminal, and a quantity of the smart terminal device to be accessed, and start a second timer t1 to start timing;
第一判断单元2032,用于判断是否获取到移动终端发送的路由器的服务集标识和密码;若获取到,则生成使能信号给发送模块204;否则生成使能信号给第二判断单元2033;The first determining unit 2032 is configured to determine whether the service set identifier and password of the router sent by the mobile terminal are acquired; if yes, an enable signal is generated to the sending module 204; otherwise, an enable signal is generated to the second determining unit 2033;
可选地,第一判断单元2032,用于判断是否获取到移动终端发送的路由器的服务集标识和密码、及待接入智能终端设备的数量;若获取到,则生成使能信号给发送模块204;否则生成使能信号给第二判断单元2033;Optionally, the first determining unit 2032 is configured to determine whether the service set identifier and password of the router sent by the mobile terminal, and the number of the smart terminal device to be accessed are obtained; if yes, generate an enable signal to the sending module. 204; otherwise generate an enable signal to the second determining unit 2033;
在本实施例中,智能终端设备启动Web服务器,可通过Web服务器可获取移动终端发送的路由器的服务集标识和密码。In this embodiment, the smart terminal device starts the web server, and the service set identifier and password of the router sent by the mobile terminal can be obtained through the web server.
第二判断单元2033,用于根据第一判断单元2032的使能信号,判断第二计时器t1与第一计时器t0的时间差值是否小于预设的第一时间;若小于,则生成使能信号给等待单元2031;否则生成使能信号给开启单元2034;The second determining unit 2033 is configured to determine, according to the enable signal of the first determining unit 2032, whether the time difference between the second timer t1 and the first timer t0 is less than a preset first time; if less, generate The signal can be sent to the waiting unit 2031; otherwise, the enable signal is generated to the opening unit 2034;
在本实施例中,预设的第一时间可由用户进行设置,一般的可设置预设的第一时间为60秒。 In this embodiment, the preset first time can be set by the user, and the first preset time of the preset can be set to 60 seconds.
开启单元2034,用于根据第二判断单元的使能信号,关闭智能终端设备的无线连接模式,开启智能终端设备的监听模式,抓取并解析无线数据包;The opening unit 2034 is configured to: close the wireless connection mode of the smart terminal device according to the enable signal of the second determining unit, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
第三判断单元2035,用于判断在预设的第二时间内,是否获取到路由器的服务集标识和密码;若获取到,则启动智能终端设备的无线连接模式并生成使能信号给发送模块204;否则生成使能信号给启动模块201。The third determining unit 2035 is configured to determine whether the service set identifier and the password of the router are obtained in the preset second time; if yes, the wireless connection mode of the smart terminal device is started and an enable signal is generated to the sending module. 204; Otherwise, an enable signal is generated to the startup module 201.
可选地,第三判断单元2035,用于判断在预设的第二时间内,是否获取到路由器的服务集标识和密码、及待接入智能终端设备的数量;若获取到,则启动智能终端设备的无线连接模式并生成使能信号给发送模块204;否则生成使能信号给启动模块201。Optionally, the third determining unit 2035 is configured to determine whether the service set identifier and password of the router and the number of the smart terminal devices to be accessed are obtained in the preset second time; if yes, the smart device is started. The wireless connection mode of the terminal device generates an enable signal to the transmitting module 204; otherwise, an enable signal is generated to the startup module 201.
在本实施例中,预设的第二时间可由用户进行设置,一般的可设置预设的第二时间为60秒。In this embodiment, the preset second time can be set by the user, and the second time that the preset can be set is generally 60 seconds.
发送模块204,用于将获取模块获取到的路由器的服务集标识和密码,通过组播方式发送给待接入智能终端设备;The sending module 204 is configured to send the service set identifier and password of the router acquired by the acquiring module to the smart terminal device to be accessed by using the multicast mode;
在本实施例中,发送模块204,可用于将获取到的路由器的服务集标识和密码,通过组播方式在预设的第三时间内发送给待接入智能终端设备。预设的第三时间可由用户进行设置,一般的可设置发送时间为30秒。In this embodiment, the sending module 204 is configured to send the service set identifier and the password of the obtained router to the to-be-accessed smart terminal device in a preset third time. The preset third time can be set by the user, and the general settable sending time is 30 seconds.
获取模块,还用于获取所述待接入智能终端设备的数量。The obtaining module is further configured to obtain the number of the smart terminal devices to be accessed.
关闭模块205,用于若待接入智能终端设备已全部接入到互联网中,则关闭智能终端设备的无线连接模式。The closing module 205 is configured to: if the to-be-accessed smart terminal device has all access to the Internet, turn off the wireless connection mode of the smart terminal device.
在本实施例中,可通过以下方式判断待接入智能终端设备已全部接入到互联网中:In this embodiment, the smart terminal device to be accessed is all accessed to the Internet by:
方式1:获取待接入智能终端设备的指示灯的状态信息进行判断;Manner 1: Obtain the status information of the indicator light of the intelligent terminal device to be accessed for judgment;
如果待接入智能终端设备设置有指示灯,可以根据指示灯的不同状态信 息区分待接入智能终端设备是否获取到路由器的服务集标识和密码。If the smart terminal device to be connected is set with an indicator, you can follow the different status of the indicator. It distinguishes whether the smart terminal device to be accessed acquires the service set identifier and password of the router.
方式2:在局域网内搜索进行判断;Method 2: Search within the local area network for judgment;
方式3:通过移动终端接收的服务器的信息进行判断。Mode 3: Judging by the information of the server received by the mobile terminal.
待接入智能终端设备获取到路由器的服务集标识和密码之后,根据该服务集标识和密码进行网络连接,连接成功之后通知服务器,由服务器将待接入智能终端设备成功连接互联网的信息发送给移动终端。After the smart terminal device obtains the service set identifier and password of the router, the network connection is performed according to the service set identifier and the password. After the connection is successful, the server is notified, and the server sends the information that the smart terminal device to be connected to the Internet is successfully connected to the network. Mobile terminal.
在本实施例中,关闭智能终端设备的无线连接模式之后,该关闭的智能终端设备可通过获取到的路由器的服务集标识和密码接入互联网。In this embodiment, after the wireless connection mode of the smart terminal device is turned off, the closed smart terminal device can access the Internet through the acquired service set identifier and password of the router.
进一步地,若待接入智能终端设备没有全部接入到互联网中,则可继续执行发送模块204的功能,即继续将获取到的路由器的服务集标识和密码,通过组播方式发送给待接入智能终端设备。Further, if the to-be-accessed smart terminal device is not fully connected to the Internet, the function of the sending module 204 can be continued, that is, the service set identifier and password of the obtained router are continuously sent to the standby mode. Into the smart terminal device.
作为示例的,请参考图5所示。图5的IPC1-IPC4为4个智能终端设备,可任意选取其中一个智能终端设备,例如:智能终端设备IPC1,启动选取的智能终端设备IPC1的无线连接模式;这时,可通过智能终端设备IPC1的无线连接模式与手机建立无线网络连接;手机可将路由器的服务集标识和密码、及待接入智能终端设备的数量(IPC2-IPC4)发送给手机;智能终端设备IPC1在获取路由器的服务集标识和密码之后,通过组播方式发送给待接入智能终端设备IPC2-IPC4;如果智能终端设备IPC2-IPC4已全部接入到互联网中,则关闭智能终端设备IPC1的无线连接模式;否则的话,智能终端设备IPC1继续通过组播方式发送,直到所有智能终端设备IPC2-IPC4接入到互联网中。As an example, please refer to Figure 5. The IPC1-IPC4 of FIG. 5 is four intelligent terminal devices, and one of the smart terminal devices can be arbitrarily selected, for example, the intelligent terminal device IPC1, and the wireless connection mode of the selected smart terminal device IPC1 is activated; at this time, the smart terminal device IPC1 can be adopted. The wireless connection mode establishes a wireless network connection with the mobile phone; the mobile phone can send the service set identifier and password of the router, and the number of intelligent terminal devices to be accessed (IPC2-IPC4) to the mobile phone; the intelligent terminal device IPC1 acquires the service set of the router. After the identifier and password are sent to the intelligent terminal device IPC2-IPC4 to be accessed by multicast; if the smart terminal device IPC2-IPC4 is all connected to the Internet, the wireless connection mode of the smart terminal device IPC1 is turned off; otherwise, The intelligent terminal device IPC1 continues to transmit in multicast mode until all intelligent terminal devices IPC2-IPC4 are connected to the Internet.
本发明实施例提供的智能终端设备接入互联网的装置,通过软无线访问接入点和监听组播数据包相结合的方式获取路由器的服务集标识和密码,实现了多个智能终端设备接入互联网。解决了现有技术方案中,路由器抛弃组 播数据包不进行组播,使得智能终端设备无法获取到路由器的服务集标识和密码,进而导致智能终端设备无法成功接入到路由器的问题。最终可以使智能终端设备安全、稳定、高效地接入互联网,简化了用户的安装操作步骤。The device for accessing the Internet by the smart terminal device provided by the embodiment of the present invention acquires the service set identifier and password of the router by combining the soft wireless access point and the intercepting multicast data packet, thereby implementing access of multiple intelligent terminal devices. the Internet. Solved the prior art solution, the router discarding group The broadcast packet is not multicasted, so that the smart terminal device cannot obtain the service set identifier and password of the router, and the smart terminal device cannot successfully access the router. In the end, the intelligent terminal device can be safely, stably and efficiently connected to the Internet, which simplifies the installation steps of the user.
本发明第五实施例提供一种智能终端设备接入互联网的装置所述装置包括:存储器和处理器;A fifth embodiment of the present invention provides a device for accessing an Internet by an intelligent terminal device, where the device includes: a memory and a processor;
存储器中存储有至少一条程序指令;处理器通过加载并执行所述至少一条程序指令以实现本发明第一实施例和第二实施例的方法。At least one program instruction is stored in the memory; the processor implements the methods of the first embodiment and the second embodiment of the present invention by loading and executing the at least one program instruction.
本发明第六实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序指令,所述至少一条程序指令被智能终端设备内的处理器执行时实现本发明第一实施例和第二实施例所述的智能终端设备接入互联网的方法。A sixth embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores at least one program instruction, and the at least one program instruction is implemented by a processor in the smart terminal device to implement the present invention. A method for accessing an Internet by an intelligent terminal device according to an embodiment and a second embodiment.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (14)

  1. 一种智能终端设备接入互联网的方法,其特征在于,所述方法包括步骤:A method for an intelligent terminal device to access an Internet, characterized in that the method comprises the steps of:
    S1:启动智能终端设备的无线连接模式;S1: starting a wireless connection mode of the smart terminal device;
    S2:通过所述智能终端设备的无线连接模式与一移动终端建立无线网络连接;S2: establish a wireless network connection with a mobile terminal by using a wireless connection mode of the smart terminal device;
    S3:获取所述移动终端发送的路由器的服务集标识和密码;S3: Obtain a service set identifier and a password of the router sent by the mobile terminal;
    S4:将获取到的路由器的服务集标识和密码,通过组播方式发送给所述待接入智能终端设备,以供所述待接入智能终端设备接入互联网。S4: The service set identifier and the password of the obtained router are sent to the to-be-accessed intelligent terminal device in a multicast manner, so that the to-be-accessed intelligent terminal device accesses the Internet.
  2. 根据权利要求1所述的一种智能终端设备接入互联网的方法,其特征在于,The method for accessing the Internet by an intelligent terminal device according to claim 1, wherein
    所述步骤S1包括:启动智能终端设备的无线连接模式,并启动第一计时器t0开始计时;The step S1 includes: starting a wireless connection mode of the smart terminal device, and starting the first timer t0 to start timing;
    所述步骤S3包括:The step S3 includes:
    S3.1:等待所述移动终端发送的路由器的服务集标识和密码,并启动第二计时器t1开始计时;S3.1: Waiting for the service set identifier and password of the router sent by the mobile terminal, and starting the second timer t1 to start timing;
    S3.2:判断是否获取到所述移动终端发送的路由器的服务集标识和密码;若获取到,则执行步骤S4;否则执行步骤S3.3;S3.2: determining whether the service set identifier and password of the router sent by the mobile terminal are obtained; if yes, executing step S4; otherwise, performing step S3.3;
    S3.3:判断所述第二计时器t1与所述第一计时器t0的时间差值是否小于预设的第一时间;若小于,则执行步骤S3.1;否则执行步骤3.4;S3.3: determining whether the time difference between the second timer t1 and the first timer t0 is less than a preset first time; if less, executing step S3.1; otherwise performing step 3.4;
    S3.4:关闭所述智能终端设备的无线连接模式,开启所述智能终端设备的监听模式,抓取并解析无线数据包; S3.4: Turn off the wireless connection mode of the smart terminal device, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
    S3.5:判断在预设的第二时间内,是否获取到路由器的服务集标识和密码;若获取到,则启动智能终端设备的无线连接模式并执行步骤S4;否则执行步骤S1。S3.5: Determine whether the service set identifier and password of the router are obtained in the preset second time; if yes, start the wireless connection mode of the smart terminal device and perform step S4; otherwise, perform step S1.
  3. 根据权利要求1所述的一种智能终端设备接入互联网的方法,其特征在于,所述步骤S3包括:启动所述智能终端设备的Web服务器,并通过所述Web服务器获取所述移动终端发送的路由器的服务集标识和密码。The method for accessing the Internet by the smart terminal device according to claim 1, wherein the step S3 comprises: starting a web server of the smart terminal device, and acquiring, by the web server, the mobile terminal to send The service set ID and password of the router.
  4. 根据权利要求1或2所述的一种智能终端设备接入互联网的方法,其特征在于,所述步骤S4包括:将获取到的路由器的服务集标识和密码,通过组播方式在预设的第三时间内发送给所述待接入智能终端设备。The method for accessing the Internet by the smart terminal device according to claim 1 or 2, wherein the step S4 comprises: setting the service set identifier and the password of the obtained router through a multicast mode in a preset manner. The third time is sent to the to-be-accessed smart terminal device.
  5. 根据权利要求1所述的一种智能终端设备接入互联网的方法,其特征在于,所述步骤S4之后还包括如下步骤:The method for accessing the Internet by the smart terminal device according to claim 1, wherein the step S4 further comprises the following steps:
    S5:获取所述待接入智能终端设备的数量;S5: Obtain the number of the smart terminal devices to be accessed;
    S6:若所述待接入智能终端设备已全部接入到互联网中,则关闭所述智能终端设备的无线连接模式。S6: If the to-be-accessed smart terminal device is all connected to the Internet, the wireless connection mode of the smart terminal device is turned off.
  6. 根据权利要求5所述的一种智能终端设备接入互联网的方法,其特征在于,通过以下方式判断所述待接入智能终端设备已全部接入到互联网中:The method for accessing the Internet by the smart terminal device according to claim 5, wherein the smart terminal device to be accessed is all connected to the Internet by:
    获取所述待接入智能终端设备的指示灯的状态信息进行判断;Obtaining status information of the indicator light of the intelligent terminal device to be accessed for determining;
    或者在局域网内搜索进行判断;Or search within the local area network for judgment;
    或者通过所述移动终端接收的服务器的信息进行判断。Or determining by the information of the server received by the mobile terminal.
  7. 一种智能终端设备接入互联网的装置,其特征在于,所述装置包括:启动模块、建立模块、获取模块、发送模块及关闭模块;An apparatus for accessing an Internet by an intelligent terminal device, the device comprising: a startup module, an establishment module, an acquisition module, a sending module, and a shutdown module;
    所述启动模块,用于启动智能终端设备的无线连接模式;The startup module is configured to start a wireless connection mode of the smart terminal device;
    所述建立模块,用于通过所述智能终端设备的无线连接模式与一移动终 端建立无线网络连接;The establishing module is configured to use a wireless connection mode and a mobile terminal of the smart terminal device Establish a wireless network connection;
    所述获取模块,用于获取所述移动终端发送的路由器的服务集标识和密码;The acquiring module is configured to acquire a service set identifier and a password of a router sent by the mobile terminal;
    所述发送模块,用于将所述获取模块获取到的路由器的服务集标识和密码,通过组播方式发送给所述待接入智能终端设备,以供所述待接入智能终端设备接入互联网。The sending module is configured to send the service set identifier and the password of the router acquired by the acquiring module to the to-be-accessed intelligent terminal device in a multicast manner, so that the smart terminal device to be accessed is accessed. the Internet.
  8. 根据权利要求7所述的一种智能终端设备接入互联网的装置,其特征在于,所述启动模块,用于启动智能终端设备的无线连接模式,并启动第一计时器t0开始计时;The device for accessing the Internet by the smart terminal device according to claim 7, wherein the startup module is configured to start a wireless connection mode of the smart terminal device, and start a first timer t0 to start timing;
    所述获取模块包括等待单元、第一判断单元、第二判断单元、开启单元、第三判断单元;The obtaining module includes a waiting unit, a first determining unit, a second determining unit, an opening unit, and a third determining unit;
    所述等待单元,用于等待所述移动终端发送的路由器的服务集标识和密码,并启动第二计时器t1开始计时;The waiting unit is configured to wait for a service set identifier and a password of the router sent by the mobile terminal, and start a second timer t1 to start timing;
    所述第一判断单元,用于判断是否获取到所述移动终端发送的路由器的服务集标识和密码;若获取到,则生成使能信号给所述发送模块;否则生成使能信号给所述第二判断单元;The first determining unit is configured to determine whether the service set identifier and the password of the router sent by the mobile terminal are acquired; if yes, an enable signal is generated to the sending module; otherwise, an enable signal is generated to the Second determining unit;
    所述第二判断单元,用于根据所述第一判断单元的使能信号,判断所述第二计时器t1与所述第一计时器t0的时间差值是否小于预设的第一时间;若小于,则生成使能信号给所述等待单元;否则生成使能信号给所述开启单元;The second determining unit is configured to determine, according to an enable signal of the first determining unit, whether a time difference between the second timer t1 and the first timer t0 is less than a preset first time; If not, generating an enable signal to the waiting unit; otherwise generating an enable signal to the open unit;
    所述开启单元,用于根据所述第二判断单元的使能信号,关闭所述智能终端设备的无线连接模式,开启所述智能终端设备的监听模式,抓取并解析无线数据包;The opening unit is configured to: close the wireless connection mode of the smart terminal device according to the enable signal of the second determining unit, enable the listening mode of the smart terminal device, and capture and parse the wireless data packet;
    所述第三判断单元,用于判断在预设的第二时间内,是否获取到路由器 的服务集标识和密码;若获取到,则启动智能终端设备的无线连接模式并生成使能信号给所述发送模块;否则生成使能信号给所述启动模块。The third determining unit is configured to determine whether the router is acquired in the preset second time The service set identifier and password; if obtained, the wireless connection mode of the smart terminal device is activated and an enable signal is generated to the sending module; otherwise, an enable signal is generated to the boot module.
  9. 根据权利要求7所述的一种智能终端设备接入互联网的装置,其特征在于,所述获取模块,用于启动所述智能终端设备的Web服务器,并通过所述Web服务器获取所述移动终端发送的路由器的服务集标识和密码。The device for accessing the Internet by the smart terminal device according to claim 7, wherein the acquiring module is configured to start a web server of the smart terminal device, and acquire the mobile terminal by using the web server The service set ID and password of the router being sent.
  10. 根据权利要求7或8所述的一种智能终端设备接入互联网的装置,其特征在于,所述发送模块,用于将获取到的路由器的服务集标识和密码,通过组播方式在预设的第三时间内发送给所述待接入智能终端设备。The device for accessing the Internet by the smart terminal device according to claim 7 or 8, wherein the sending module is configured to preset the service set identifier and password of the obtained router by using a multicast mode. The third time is sent to the smart terminal device to be accessed.
  11. 根据权利要求7所述的一种智能终端设备接入互联网的装置,其特征在于,所述装置还包括关闭模块;The device for accessing the Internet by the smart terminal device according to claim 7, wherein the device further comprises a shutdown module;
    所述获取模块,还用于获取所述待接入智能终端设备的数量;The acquiring module is further configured to acquire the number of the smart terminal devices to be accessed;
    所述关闭模块,用于若所述待接入智能终端设备已全部接入到互联网中,则关闭所述智能终端设备的无线连接模式。The closing module is configured to close the wireless connection mode of the smart terminal device if the to-be-accessed smart terminal device has all accessed the Internet.
  12. 根据权利要求11所述的一种智能终端设备接入互联网的装置,其特征在于,通过以下方式判断所述待接入智能终端设备已全部接入到互联网中:The device for accessing the Internet by the smart terminal device according to claim 11, wherein the smart terminal device to be accessed is all connected to the Internet by:
    获取所述待接入智能终端设备的指示灯的状态信息进行判断;Obtaining status information of the indicator light of the intelligent terminal device to be accessed for determining;
    或者在局域网内搜索进行判断;Or search within the local area network for judgment;
    或者通过所述移动终端接收的服务器的信息进行判断。Or determining by the information of the server received by the mobile terminal.
  13. 一种智能终端设备接入互联网的装置,其特征在于所述装置包括:存储器和处理器;An apparatus for accessing an Internet by an intelligent terminal device, characterized in that the device comprises: a memory and a processor;
    存储器中存储有至少一条程序指令;处理器通过加载并执行所述至少一条程序指令以实现权利要求1至权利要求6的方法。At least one program instruction is stored in the memory; the processor implements the method of claim 1 to claim 6 by loading and executing the at least one program instruction.
  14. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少 一条程序指令,其特征在于,所述至少一条程序指令被智能终端设备内的处理器执行时实现权利要求1至权利要求6中所述的智能终端设备接入互联网的方法。 A computer readable storage medium storing at least the computer readable storage medium A program instruction, characterized in that, when the at least one program instruction is executed by a processor in the intelligent terminal device, the method for accessing the Internet by the smart terminal device according to claim 1 to claim 6 is implemented.
PCT/CN2017/109039 2016-11-15 2017-11-02 Method and apparatus allowing smart terminal device to access internet WO2018090830A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611032655.2 2016-11-15
CN201611032655.2A CN106658659B (en) 2016-11-15 2016-11-15 Method and device for accessing intelligent terminal equipment to Internet

Publications (1)

Publication Number Publication Date
WO2018090830A1 true WO2018090830A1 (en) 2018-05-24

Family

ID=58808737

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109039 WO2018090830A1 (en) 2016-11-15 2017-11-02 Method and apparatus allowing smart terminal device to access internet

Country Status (2)

Country Link
CN (1) CN106658659B (en)
WO (1) WO2018090830A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111201832A (en) * 2018-09-18 2020-05-26 松下知识产权经营株式会社 Control method
CN111778679A (en) * 2019-03-18 2020-10-16 青岛海尔洗衣机有限公司 Control method of washing system
CN111835741A (en) * 2020-07-03 2020-10-27 南京普建维思信息技术有限公司 Internet of things equipment safety access system and method based on consensus mechanism and intelligent contract
CN111935299A (en) * 2020-08-19 2020-11-13 南阳理工学院 Communication equipment
CN112187486A (en) * 2020-09-29 2021-01-05 青岛海信传媒网络技术有限公司 Interaction method between intelligent devices and intelligent devices
CN114025408A (en) * 2022-01-04 2022-02-08 北京交通大学 Network establishing and accessing method and device for self-adaptive networking and computer equipment
CN114866265A (en) * 2021-01-20 2022-08-05 晶晨半导体(上海)股份有限公司 Network connection method, router, administrator terminal device, and communication device
CN115426622A (en) * 2022-09-01 2022-12-02 深圳慧联软通科技有限公司 Maintenance method of wireless data acquisition rod and terminal

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658659B (en) * 2016-11-15 2021-03-05 贝斯拓欧洲控股有限公司 Method and device for accessing intelligent terminal equipment to Internet
CN107257573A (en) * 2017-05-11 2017-10-17 北京囡宝科技有限公司 A kind of equipment accesses the system and method for wireless network
CN107231645A (en) * 2017-06-16 2017-10-03 深圳市盛路物联通讯技术有限公司 Multiple terminal devices access the method and access points equipment of Internet of Things
CN110798493B (en) * 2018-08-02 2022-12-13 青岛经济技术开发区海尔热水器有限公司 Network configuration method, device, terminal equipment and storage medium
JP2020092405A (en) * 2018-12-06 2020-06-11 芯光飛株式会社 Wireless communication control device and wireless communication control method
CN110784867B (en) * 2019-09-27 2023-04-25 浙江大华技术股份有限公司 Network configuration method, terminal and system
CN110972161B (en) * 2019-10-22 2022-04-15 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium
CN112104532B (en) * 2020-09-10 2022-01-25 中移(杭州)信息技术有限公司 Network connection method, network distribution device, electronic equipment and storage medium
CN115442871A (en) * 2022-08-31 2022-12-06 杭州微影软件有限公司 Equipment network access method, system and device and terminal equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533512A (en) * 2013-09-17 2014-01-22 英华达(上海)科技有限公司 Method, device and system for configuring and adding equipment into network group
CN104202831A (en) * 2014-08-26 2014-12-10 南京熊猫电子股份有限公司 System and method for connecting devices with wireless AP
CN104602316A (en) * 2014-12-27 2015-05-06 深圳市慧为智能科技有限公司 Method and device of assisting network connection by aid of mobile terminal
CN104994527A (en) * 2015-06-30 2015-10-21 青岛海尔科技有限公司 Method for intelligent household electrical appliance to access router, intelligent household electrical appliance and mobile terminal
CN105101465A (en) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 Wireless network configuration method and wireless network configuration system
CN105101464A (en) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 Wireless network configuration method and wireless network configuration system
CN105392181A (en) * 2015-10-20 2016-03-09 广东欧珀移动通信有限公司 Intelligent equipment networking method and device, and system
CN106658659A (en) * 2016-11-15 2017-05-10 贝斯拓欧洲控股有限公司 Method and device for intelligent terminal equipment to access Internet

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168625B (en) * 2014-08-20 2018-01-16 普联技术有限公司 Smart machine and its method and wireless routing device for being connected to wireless routing device
CN104469789A (en) * 2014-12-05 2015-03-25 深圳市新联锋科技有限公司 Connection configuration method and system for intelligent household appliance
CN104703295A (en) * 2015-03-30 2015-06-10 小米科技有限责任公司 Network access method and network access device
CN105451230B (en) * 2015-11-12 2019-03-05 深圳市江波龙科技有限公司 The configuration method and system of internet of things equipment
CN105636041A (en) * 2015-12-29 2016-06-01 广东欧珀移动通信有限公司 Networking method and apparatus for intelligent device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533512A (en) * 2013-09-17 2014-01-22 英华达(上海)科技有限公司 Method, device and system for configuring and adding equipment into network group
CN104202831A (en) * 2014-08-26 2014-12-10 南京熊猫电子股份有限公司 System and method for connecting devices with wireless AP
CN104602316A (en) * 2014-12-27 2015-05-06 深圳市慧为智能科技有限公司 Method and device of assisting network connection by aid of mobile terminal
CN104994527A (en) * 2015-06-30 2015-10-21 青岛海尔科技有限公司 Method for intelligent household electrical appliance to access router, intelligent household electrical appliance and mobile terminal
CN105101465A (en) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 Wireless network configuration method and wireless network configuration system
CN105101464A (en) * 2015-06-30 2015-11-25 广东美的制冷设备有限公司 Wireless network configuration method and wireless network configuration system
CN105392181A (en) * 2015-10-20 2016-03-09 广东欧珀移动通信有限公司 Intelligent equipment networking method and device, and system
CN106658659A (en) * 2016-11-15 2017-05-10 贝斯拓欧洲控股有限公司 Method and device for intelligent terminal equipment to access Internet

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111201832A (en) * 2018-09-18 2020-05-26 松下知识产权经营株式会社 Control method
CN111778679A (en) * 2019-03-18 2020-10-16 青岛海尔洗衣机有限公司 Control method of washing system
CN111778679B (en) * 2019-03-18 2023-10-20 天津海尔洗涤电器有限公司 Control method of washing system
CN111835741A (en) * 2020-07-03 2020-10-27 南京普建维思信息技术有限公司 Internet of things equipment safety access system and method based on consensus mechanism and intelligent contract
CN111835741B (en) * 2020-07-03 2022-06-07 南京普建维思信息技术有限公司 Internet of things equipment safety access system and method based on consensus mechanism and intelligent contract
CN111935299A (en) * 2020-08-19 2020-11-13 南阳理工学院 Communication equipment
CN112187486A (en) * 2020-09-29 2021-01-05 青岛海信传媒网络技术有限公司 Interaction method between intelligent devices and intelligent devices
CN112187486B (en) * 2020-09-29 2023-07-18 青岛海信传媒网络技术有限公司 Interaction method between intelligent devices and intelligent device
CN114866265A (en) * 2021-01-20 2022-08-05 晶晨半导体(上海)股份有限公司 Network connection method, router, administrator terminal device, and communication device
CN114025408A (en) * 2022-01-04 2022-02-08 北京交通大学 Network establishing and accessing method and device for self-adaptive networking and computer equipment
CN115426622A (en) * 2022-09-01 2022-12-02 深圳慧联软通科技有限公司 Maintenance method of wireless data acquisition rod and terminal
CN115426622B (en) * 2022-09-01 2023-10-24 深圳慧联软通科技有限公司 Maintenance method of wireless data acquisition rod and terminal

Also Published As

Publication number Publication date
CN106658659B (en) 2021-03-05
CN106658659A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2018090830A1 (en) Method and apparatus allowing smart terminal device to access internet
US11418388B2 (en) Method for network configuration, and electronic device
US10531364B2 (en) Wireless network access method and access apparatus, client and storage medium
WO2020098253A1 (en) Network access method and apparatus, related devices, and storage medium
EP3484196B1 (en) Method and apparatus for registering wireless device in wireless communication system
WO2018090829A1 (en) Method and apparatus for allowing intelligent terminal device to access internet
US9386004B2 (en) Peer based authentication
EP3396928B1 (en) Method for managing network access rights and related device
JP6254747B2 (en) Information providing method, apparatus, program, and recording medium
US20150009862A1 (en) Wireless Network Connection Establishment Method and Terminal Device
KR102150659B1 (en) A method for discovering devices based on a location information and apparatus thereof
US9009792B1 (en) Method and apparatus for automatically configuring a secure wireless connection
US20180048633A1 (en) Perception-free authentication method and system, and control method and system based on the same
US20160242033A1 (en) Communication service using method and electronic device supporting the same
JP2010124048A (en) Wireless terminal device, communication method, and communication program
US10448230B2 (en) Data transmission
CN110855677B (en) Distribution network method and device, electronic equipment and storage medium
WO2022166755A1 (en) Information processing methods, devices, and storage medium
CN112188488A (en) Network distribution method, device and system
WO2018196463A1 (en) Method and apparatus for network access, storage medium, and processor
WO2015100975A1 (en) Method, apparatus and system for selecting authentication algorithm
Ashraf et al. Broadcast based registration technique for heterogenous nodes in the IoT
WO2018205328A1 (en) System and method for accessing wireless network by device
CN113395743A (en) Device connection method and system, corresponding terminal device and networking method
US20190200226A1 (en) Method of authenticating access to a wireless communication network and corresponding apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17872388

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/10/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17872388

Country of ref document: EP

Kind code of ref document: A1