Summary of the invention
The object of this invention is to provide a kind of internet of things equipment method of network entry and equipment.
First aspect, the embodiment of the present invention provides a kind of internet of things equipment method of network entry, comprising:
The first equipment receives triggering signal, and produces WIFI focus and open built-in TCP server according to described triggering signal;
Described the first equipment receives by described TCP server the networking configuration information that the second equipment sends, and configures described the first equipment access network according to described networking configuration information; The described WIFI focus that described the second equipment produces by described the first equipment is connected to described TCP server and realizes and described TCP server communication.
Second aspect, the embodiment of the present invention provides another kind of internet of things equipment method of network entry, comprising:
The second equipment is connected on the WIFI focus of the first equipment generation by the WIFI module being built in described the second equipment;
Described the second equipment is connected to the TCP server being preset in described the first equipment and is sent networking configuration information to described TCP server by described WIFI focus, so that described the first equipment configures described the first equipment access network according to described networking configuration information.
The third aspect, the embodiment of the present invention provides a kind of equipment, comprising:
Receiver module, for receiving triggering signal;
WIFI focus module, for producing WIFI focus according to described triggering signal;
TCP server, for opening TCP service function and receiving the networking configuration information that the second equipment sends according to described triggering signal;
Processing module, for configuring described the first equipment access network according to described networking configuration information.
Fourth aspect, the embodiment of the present invention provides another kind of equipment, comprising:
WIFI module, the WIFI focus producing for being connected to the first equipment;
TCP client, for being connected to by described WIFI focus, being preset at the TCP server of described the first equipment and sending networking configuration information to described TCP server, so that described the first equipment configures described the first equipment access network according to described networking configuration information.
Internet of things equipment method of network entry provided by the invention and equipment, the first equipment receives triggering signal, and produces WIFI focus and open built-in TCP server according to triggering signal; The second equipment is connected on the WIFI focus of the first equipment generation by the WIFI module being built in the second equipment, by WIFI focus, be connected to the TCP server being preset in the first equipment and send networking configuration information to described TCP server, so that the first equipment configures the first equipment access network according to networking configuration information.This scheme makes the first equipment access network more simple and convenient.
Embodiment
Fig. 1 is the flow chart of an embodiment of internet of things equipment method of network entry provided by the invention, and the executive agent of the method can be the internet of things equipment that is integrated with WIFI chip of network to be accessed.As shown in Figure 1, this internet of things equipment method of network entry comprises:
S101, the first equipment receives triggering signal, and produces WIFI focus and open built-in TCP server according to triggering signal;
Wherein, the internet of things equipment that this first equipment is network to be accessed.This first integration of equipments has SOC (system on a chip) (System on Chip, SOC), specifically comprises again CPU (CPU) and radio function WIFI module on this SOC.CPU in the first equipment receives after triggering signal, can control WIFI block configuration and network.Particularly, above-mentioned triggering signal can be subject to the signal of telecommunication producing after extraneous trigger action for the first equipment, as on above-mentioned the first equipment, control button being set, when pressing control button, just produce a triggering signal, transfers to CPU; After CPU reception triggering signal, adjust current WIFI module and be operated under configuration mode, make WiFi chip integrated in WIFI module produce WiFi focus; Meanwhile, CPU receives after triggering signal, also will open built-in TCP server, and this TCP server can make corresponding TCP client realize its access by being connected to above-mentioned WiFi focus and then being connected to this TCP server.Above-mentioned WIFI module specifically can be supported ap mode and two kinds of networking patterns of Station pattern, and can freely switch between the two.Meanwhile, this WIFI module also supports most WIFI cipher modes and algorithm as WEP/WPA-PSK/WPA2-PSK, and encryption type is as WEP64/WEP128/TKIP/AES.
S102, the first equipment receives by TCP server the networking configuration information that the second equipment sends, and configures the first equipment access network according to networking configuration information; The WIFI focus that this second equipment produces by the first equipment is connected to TCP server and realizes and TCP server communication;
When the first equipment produces after WIFI focus, the terminal equipment that TCP client is installed is connected to above-mentioned WIFI focus by built-in WIFI module as the second equipment such as mobile phone, IPAD; TCP client is connected and is logged in the TCP server being preset in the first equipment and then communicate with TCP server by WIFI focus.The first equipment receives by TCP server the networking configuration information that the second equipment sends by TCP client, this networking configuration information is specially the indispensable configuration information of the first equipment access network, as logs in logging in account, logging in the detailed WIFI route-maps such as password and encryption type of WIFI network.The first equipment configures the first equipment connection to network according to the networking configuration information receiving.
Wherein, TCP server role in the first equipment is, when the first equipment is not also connected to network, make terminal equipment can and the first equipment between communicate mutual, so that terminal equipment is issued the first equipment by the required networking configuration information of the first equipment networking, so that the first equipment connection networks.The trouble and the inconvenience that because of artificial input configuration information, cause have been avoided.
Internet of things equipment method of network entry provided by the invention, the first equipment receives triggering signal, and produces WIFI focus and open built-in TCP server according to triggering signal; The first equipment receives by TCP server the networking configuration information that the second equipment sends, and configures the first equipment access network according to networking configuration information; The WIFI focus that this second equipment produces by the first equipment is connected to TCP server and realizes and TCP server communication; This scheme makes the first equipment access network more simple and convenient.
Fig. 2 is the flow chart of another embodiment of internet of things equipment method of network entry provided by the invention, and the executive agent of the method can be supported the terminal equipment that wireless network connects for mobile phone, IPAD etc.As shown in Figure 2, this internet of things equipment method of network entry comprises:
201, the second equipment are connected on the WIFI focus of the first equipment generation by the WIFI module being built in the second equipment;
Wherein, the internet of things equipment that this first equipment is network to be accessed.This first equipment can receive triggering signal, and produces WIFI focus and open built-in TCP server according to the triggering signal receiving, and concrete implementation can be referring to the corresponding contents of step 101.The second equipment can be connected on the WIFI focus of the first equipment generation by built-in wireless WIFI module.
202, the second equipment are connected to the TCP server being preset in the first equipment and are sent networking configuration information to TCP server by WIFI focus, so that the first equipment configures the first equipment access network according to networking configuration information;
In above-mentioned the second equipment, be prefabricated with the TCP client that can be connected to TCP server.Particularly, on the WIFI focus that the second equipment connection to the first equipment produces after, the TCP client in the second equipment can be by the TCP server in this WIFI focus connected reference first equipment, and realizes interactive communication with it.This TCP client sends networking configuration information to TCP server, and this networking configuration information is specially the indispensable configuration information of the first equipment access network, as logs in logging in account, logging in the detailed WIFI route-maps such as password and encryption type of WIFI network.The first equipment can configure the first equipment connection to network automatically according to the networking configuration information receiving.Wherein, this networking configuration information can be for pre-stored in TCP client, and can be upgraded by background system; Or, pre-stored in the second equipment, for TCP client call.
In the present embodiment, the second equipment is not when the first equipment is also connected to network, and the second equipment sends networking configuration information by the TCP server on the first equipment the to the first equipment, so that the first equipment connection networks.The trouble and the inconvenience that because of artificial input configuration information, cause have been avoided.
Internet of things equipment method of network entry provided by the invention, the second equipment is connected on the WIFI focus of the first equipment generation by the WIFI module being built in the second equipment; The second equipment is connected to the TCP server being preset in the first equipment and is sent networking configuration information to TCP server by WIFI focus, so that the first equipment configures the first equipment access network according to networking configuration information; This scheme makes the first equipment access network more simple and convenient.
Fig. 3 is the structural representation of an embodiment of equipment provided by the invention, and this equipment can be carried out method step as shown in Figure 1; This equipment comprises: receiver module 31, WIFI focus module 32, TCP server 33, processing module 34; Wherein:
Receiver module 31, for receiving triggering signal;
WIFI focus module 32, for producing WIFI focus according to triggering signal;
TCP server 33, for opening TCP service function and receiving the networking configuration information that the second equipment sends according to triggering signal;
Processing module 34, for configuring the first equipment access network according to networking configuration information.
Further, above-mentioned networking configuration information comprises: log in account, log in password and encryption type.
Further, described in the present embodiment, equipment also comprises: control button, for generation of above-mentioned triggering signal.
Further, equipment also comprises described in the present embodiment: status indicator lamp, the state that is used to indicate opening of device described in the present embodiment or closes.
Equipment provided by the invention, by receiving triggering signal, and produces WIFI focus and opens built-in TCP server according to triggering signal; By TCP server, receive the networking configuration information that the second equipment sends, and configure this equipment access network according to networking configuration information; The WIFI focus that wherein this second equipment produces by this equipment is connected to TCP server and realizes and TCP server communication; This scheme makes this equipment access network more simple and convenient.
Fig. 4 is the structural representation of another embodiment of equipment provided by the invention, and this equipment can be carried out method step as shown in Figure 2; This equipment comprises: WIFI module 41, TCP client 42; Wherein:
WIFI module 41, the WIFI focus producing for being connected to the first equipment;
TCP client, for being connected to the TCP server of first equipment that is preset at by WIFI focus and sending networking configuration information to TCP server, so that the first equipment configures the first equipment access network according to networking configuration information.
Further, above-mentioned networking configuration information comprises: log in account, log in password and encryption type.
Equipment provided by the invention, is connected to by built-in WIFI module on the WIFI focus of the first equipment generation; By WIFI focus, be connected to the TCP server being preset in the first equipment and send networking configuration information to TCP server, so that the first equipment configures the first equipment access network according to networking configuration information; This scheme makes the first equipment access network more simple and convenient.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.