A kind of distribution method and system of intelligent socket
Technical field
The present invention relates to intelligent socket field more particularly to a kind of distribution method and system of intelligent socket.
Background technique
Nowadays smart home is more more and more universal, also occurs various intelligent sockets on the market.Intelligent socket refers to
Smart machine design is aimed at, can be directly the socket of smart machine charging with USB interface, be arranged compared to traditional five hole of national standard
It inserts, intelligent socket has done more improvement in appearance, performance, and most of intelligent socket is by traditional five hole jack of national standard and USB
Interface combines together, and room for promotion utilization rate and working efficiency make it more meet the use habit of contemporary people.Intelligent socket is one
Money is integrated with the intelligent socket of the functions such as security protection, USB fast charge, Electro-metering.
Client takes intelligent socket, and the first step then needs distribution, and intelligent socket is connected WIFI.Intelligent socket is matched at present
Net mode does not have good solution, and current matches net mode, is all based on what mobile phone terminal connection intelligent socket issued mostly
Then the SSID of WIFI and password are sent to socket by hot spot.Process is cumbersome, and time-consuming, and success rate is not high.Existing skill
The failing of art sees the status informations such as actual temp, the realtime power of socket in socket, and distribution passes through mobile phone using soft AP
Socket hot spot is connected, the SSID and password for sending WIFI are sent to socket, carry out distribution, and cumbersome with network process, time-consuming, success
Rate is not high.
The patent of Publication No. CN107947342A discloses a kind of intelligent socket, which includes that power input connects
Mouthful, for being connect with AC power source to receive the electric current provided by AC power source;Voltage transformation unit, for above-mentioned electric current to be made transformation
It handles and exports;Charging circuit unit, for receiving the electric current handled through transformation and output;Battery assembly module, for receiving
It states electric current and is electric energy by the current storage, the battery assembly module is also used to above-mentioned power output be electric current;Power supply connects
Mouthful, for connecting external equipment and powering to external equipment;Power supply circuit unit, for exporting electric current to connect to being connected to power supply
External equipment power supply on mouth.It should mutually invent and additionally provide the charging method and method of supplying power to of the intelligent socket, the invention is logical
It crosses in socket plus sets battery assembly module, can be effectively solved in the prior art because of the paralysis of electronic equipment brought by power-off
Problem.But the invention not can solve the distribution problem of intelligent socket.
Summary of the invention
It, can the purpose of the present invention is in view of the drawbacks of the prior art, providing a kind of distribution method and system of intelligent socket
With intelligent socket can direct distribution, do not need the clients such as app participation, simplify distribution operating process, promoted distribution efficiency with
Success rate.
In order to achieve the goal above, the invention adopts the following technical scheme:
A kind of intelligent socket matches network method, comprising steps of
S1, search simultaneously show network SSID in preset range;
S2, the password for obtaining network SSID and the network SSID that user selects;
S3, the connection network SSID.
Preferably, it further comprises the steps of:
Judge whether intelligent socket powers on, if so, net state is matched in detection, if the non-distribution of the intelligent socket, enters
Step S1.
Preferably, comprising steps of
Show the various information of the intelligent socket, wherein the various information includes the electricity letter of the intelligent socket
Breath, power information and temperature information.
Preferably, it is further comprised the steps of: after the step of step S3
Judgement institute is no to be successfully connected to the network SSID, if so, communicating with background server foundation, otherwise, returns
Step S1.
Preferably, it is further comprised the steps of: after the step of step S3
It obtains the temperature information of the intelligent socket and the temperature information is uploaded to background server;
It obtains the power of the intelligent socket and information about power and the power and information about power is uploaded to background service
Device.
Correspondingly, also providing a kind of distribution network systems of intelligent socket, comprising:
Display module is searched for, for searching for and showing the network SSID in preset range;
First obtains module, the password of network SSID and the network SSID for obtaining user's selection;
Link block, for connecting the network SSID.
Preferably, comprising:
Detection module is judged, for judging whether intelligent socket powers on, if so, net state is matched in detection, if the intelligence
The non-distribution of socket then searches for and shows the network SSID in preset range.
Preferably, further includes:
Display module, for showing the various information of the intelligent socket.
Preferably, further includes:
Module is established in judgement, no for judging to be successfully connected to the network SSID, if so, building with background server
Vertical communication, otherwise, re-searches for and shows the network SSID in preset range.
Preferably, further includes:
Second obtains module, for obtaining the temperature information of the intelligent socket and the temperature information being uploaded to backstage
Server;
Third obtains module, for obtaining the power of the intelligent socket and information about power and believing the power and electricity
Breath is uploaded to background server.
Compared with prior art, the present invention does not need the participation of the clients such as app, simplifies by touch screen to socket distribution
Distribution operating process promotes distribution efficiency and success rate.It is obtained additionally by intelligent socket and shows the electricity of socket, real-time function
Rate, temperature information, can allow the operating status of user's more intuitive understanding socket.In addition, by by the electricity of intelligent socket,
The information such as power, temperature are sent to background server, and family can be used by terminal remote inquiry socket state and to networking
Insert row is controlled.
Detailed description of the invention
Fig. 1 is a kind of distribution method flow diagram for intelligent socket that embodiment one provides;
Fig. 2 is a kind of distribution network systems structure chart for intelligent socket that embodiment one provides;
Fig. 3 is a kind of distribution method flow diagram for intelligent socket that embodiment two provides;
Fig. 4 is a kind of distribution network systems structure chart for intelligent socket that embodiment two provides.
Specific embodiment
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
Embodiment one
Match network method the present embodiment provides a kind of intelligent socket, as shown in Figure 1, comprising steps of
S11, search simultaneously show network SSID in preset range;
S12, the password for obtaining network SSID and the network SSID that user selects;
S13, the connection network SSID.
Intelligent socket is exactly common socket before no distribution, therefore is then distribution to the utilization first step of intelligent socket,
Intelligent socket is connected into WIFI.Intelligent socket does not have good solution with net mode at present, and current matches net mode, greatly
It is all based on the hot spot that mobile phone terminal connection intelligent socket issues more, the SSID of WIFI and password is then sent to socket.Process
Cumbersome, time-consuming, and success rate is not high.The actual temp for failing to see in socket socket, the real-time function of existing technology
The status informations such as rate, distribution connect socket hot spot by mobile phone using soft AP, and the SSID and password for sending WIFI send discharge
It inserts, carries out distribution, cumbersome with network process, time-consuming, and success rate is not high.
For the distribution for solving the problems, such as intelligent socket, match network method the present embodiment provides a kind of intelligent socket, by general
Increase WIFI discovery module and touch screen in logical intelligent socket, in addition increases electricity statistical module and monitoring temperature mould
Block finds attachable WIFI using WIFI discovery module, inputs corresponding password using touch screen, convenient distribution, on screen
The real time temperature that displays temperature monitoring module uploads simultaneously, the status informations such as electricity and realtime power that electricity quantity module provides, letter
Change distribution operating process, promote distribution efficiency and success rate, while showing that intelligent socket obtains and upload the electricity of socket, real-time
Power, temperature information are uploaded to background server, can allow the operating status of user's more intuitive understanding socket.
Intelligent socket searches for and shows the network SSID in preset range after the distribution that step S11 receives user instructs.It is excellent
Choosing, comprising steps of
Show the various information of the intelligent socket, wherein the various information includes the electricity letter of the intelligent socket
Breath, power information and temperature information.
The various information of the intelligent socket, Intelligent drainage insert provided in this embodiment are shown by the touch display screen
It crosses and simple, small and exquisite touch display screen is set, user inputs information by the touch display screen and obtains information, such as when distribution
User can input SSID and SSID password directly in the touch display screen and carry out simple distribution, in addition, user can touch
It touches and sees the specifying informations such as electricity, temperature, the realtime power of socket on screen.
The network SSID searched and input that step S12 user selects intelligent socket to show in touch display screen should
The password of SSID, intelligent socket obtain the password of the network SSID and the network SSID of user's selection.The one of the present embodiment
In kind of preferred embodiment, user can be set default distribution SSID and SSID password, directly according to silent when each distribution of intelligent socket
Recognize network SSID and carry out distribution, can effectively reduce user matches net operation.
Step S13 is connected to the network SSID by network SSID and SSID password, it is preferred that the step S13
The step of after further comprise the steps of:
Judgement institute is no to be successfully connected to the network SSID, if so, communicating with background server foundation, otherwise, returns
Step S11.
Intelligent socket is likely to occur mistake during distribution causes distribution unsuccessful, and the present embodiment passes through detection Intelligent drainage
The network whether is successfully linked up after being inserted in input SSID and SSID password, if not successfully linking up, returns to step S11
Intelligent socket re-searches for and shows that the network SSID in preset range, user re-start network selection intelligent socket and match again
Net establishes communication protocol with background server after intelligent socket success is connect with the network SSID that user selects, with backstage
Server establishes long connection, and distribution information, use information, status information and the data of intelligent socket are stored by background server
The effective informations such as information solve the problems, such as that intelligent socket does not have enough storage spaces to may cause Missing data.The present embodiment
In a kind of preferred embodiment, intelligent socket and background server establish TCP long connection, and background server and intelligent terminal, which are established, grows company
It connects, user can carry out control operation to the socket to have networked in real time by intelligent terminal, and the operation of socket state information searching mentions
High user experience.
Preferably, it is further comprised the steps of: after the step of step S13
It obtains the temperature information of the intelligent socket and the temperature information is uploaded to background server;
It obtains the power of the intelligent socket and information about power and the power and information about power is uploaded to background service
Device.
Current intelligent socket does not have the function of the important informations such as effective monitoring temperature, power, electricity, and the present embodiment passes through
Increase temperature monitoring module in intelligent socket and electricity quantity module obtains the information such as temperature, power, the electricity of intelligent socket in real time
And be uploaded to background server, can allow user's more intuitive understanding socket operating status and can be by intelligent terminal pair
The status information of intelligent socket is inquired and is operated, the temperature, function in a kind of preferred embodiment of the present embodiment, when intelligent socket
The situation for causing possible intelligent socket exception when a certain characteristic information reaches given threshold state in rate or electricity, stops Intelligent drainage
Slotting distribution, wherein given threshold state can carry out customized setting according to different intelligent socket performance.On the other hand, warm
The information monitored is uploaded to touch display screen by degree monitoring module and electricity quantity module, can in touch display screen real-time display
The information such as temperature, power, the electricity of intelligent socket, it is preferred that touch display screen can with 2s refresh a temperature monitoring module and
The information that electricity quantity module uploads.
Correspondingly, the present embodiment also provides a kind of distribution network systems of intelligent socket, as shown in Figure 2, comprising:
Display module 11 is searched for, for searching for and showing the network SSID in preset range;
First obtains module 12, the password of network SSID and the network SSID for obtaining user's selection;
Link block 13, for connecting the network SSID.
Preferably, comprising:
Detection module is judged, for judging whether intelligent socket powers on, if so, net state is matched in detection, if the intelligence
The non-distribution of socket then searches for and shows the network SSID in preset range.
Preferably, further includes:
Display module, for showing the various information of the intelligent socket, wherein the various information includes the intelligence
Information about power, power information and the temperature information of socket.
Preferably, further includes:
Module is established in judgement, no for judging to be successfully connected to the network SSID, if so, building with background server
Vertical communication, otherwise, re-searches for and shows the network SSID in preset range.
Preferably, further includes:
Second obtains module, for obtaining the temperature information of the intelligent socket and the temperature information being uploaded to backstage
Server;
Third obtains module, for obtaining the power of the intelligent socket and information about power and believing the power and electricity
Breath is uploaded to background server.
The present embodiment, to socket distribution, does not need the participation of the clients such as app, the distribution of simplified intelligent socket by touch screen
Operating process promotes distribution efficiency and success rate.Obtain and upload additionally by intelligent socket the electricity of socket, realtime power,
Temperature information can allow the operating status of user's more intuitive understanding socket to background server.
Embodiment two
The present embodiment provides a kind of network methods of matching of intelligent socket, and when different from embodiment one, the present embodiment further includes
Step S21 detects whether to power on by intelligent socket, and net state is matched in detection automatically after intelligent socket powers on, if without distribution
Actively enter distribution step, as shown in figure 3, comprising steps of
S21, judge whether intelligent socket powers on, if so, net state is matched in detection, if the non-distribution of the intelligent socket,
Enter step S22.
S22, search simultaneously show network SSID in preset range;
S23, the password for obtaining network SSID and the network SSID that user selects;
S24, the connection network SSID.
Existing intelligent socket matches network process, it usually needs and user issues distribution instruction intelligent socket and just starts distribution, this
Embodiment detected after being powered on by intelligent socket itself with net state, when non-distribution automatically into distribution step, to reduce
The operation of user.
Preferably, comprising steps of
Show the various information of the intelligent socket.
Preferably, it is further comprised the steps of: after the step of step S23
Judgement institute is no to be successfully connected to the network SSID, if so, communicating with background server foundation, otherwise, returns
Step S21.
Preferably, it is further comprised the steps of: after the step of step S23
It obtains the temperature information of the intelligent socket and the temperature information is uploaded to background server;
It obtains the power of the intelligent socket and information about power and the power and information about power is uploaded to background service
Device.
Correspondingly, the present embodiment also provides a kind of distribution network systems of intelligent socket, as shown in Figure 4, comprising:
Display module 21 is searched for, for searching for and showing the network SSID in preset range;
First obtains module 22, the password of network SSID and the network SSID for obtaining user's selection;
Link block 23, for connecting the network SSID.
Detection module 24 is judged, for judging whether intelligent socket powers on, if so, net state is matched in detection, if the intelligence
The energy non-distribution of socket, then search for and show the network SSID in preset range.
What is different from the first embodiment is that the present embodiment further includes judging detection module 24, inspection when being powered on by intelligent socket
That surveys intelligent socket matches net state, and carries out automatic distribution, and the distribution instruction without receiving user before each distribution starts distribution,
User's operation can be reduced.
Preferably, further includes:
Display module, for showing the various information of the intelligent socket.
Preferably, further includes:
Module is established in judgement, no for judging to be successfully connected to the network SSID, if so, building with background server
Vertical communication, otherwise, re-searches for and shows the network SSID in preset range.
Preferably, further includes:
Second obtains module, for obtaining the temperature information of the intelligent socket and the temperature information being uploaded to backstage
Server;
Third obtains module, for obtaining the power of the intelligent socket and information about power and believing the power and electricity
Breath is uploaded to background server.
The present embodiment detected after being powered on by intelligent socket intelligent socket with net state, not distribution in the case where
Automatically into distribution step, the distribution without receiving user instruct can active distribution, reduce user's operation, improving user makes
With experience.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.