A kind of smart machine distribution method and apparatusTechnical field
The present invention relates to intelligent appliance distribution fields, and in particular to a kind of smart machine distribution method and apparatus.
Background technique
In existing Internet of Things intelligent appliance product, when smart machine purchase is gone back, user is for the first time in use, be required toGive smart machine to carry out distribution connection, that is, allow smart machine to connect upper WIFI, company connects to the Net, then, just can be carried out it is local orLong-range operation such as controls, checks at the operation.
WIFI others' loiter network or is not connected in order to prevent by others, can take the password and SSID of periodically change WIFIThe measure of (WIFI hot spot title), once this occurs, will cause all smart machines previously connected can not connectThe event of network occurs, and needs user to operate one by one at this time, carries out distribution to all smart machines again, very troublesome, simultaneouslyAlso waste user time, a smart machine is averaged 1-5 minutes distribution time, encounter network it is bad when, it sometimes appear that singleThe case where distribution is more than 10 minutes is longer, and a distribution success rate, general 80%---90% of industry or so.
, can be more time-consuming, more troublesome when family smart machine quantity is more, very influence user experience and use.
Meanwhile the success rate and time efficiency of Internet of Things smart machine distribution at this stage, networking, and user is influenced at presentThe pain spot used, there is a big chunk user, and purchase smart machine is got home, will not distribution, distribution trouble etc., therefore abandonGeneral 30% or so the ratio of user's ratio industry of networking.
When user changes WIFI password and when SSID, and user will be greatly reduced because the probability of distribution again the problem of, influenceThe problem of smart machine uses is urgently to be resolved.
Summary of the invention
The present invention provides a kind of smart machine distribution method and apparatus, avoid caused by artificial distribution error, trouble andUnreliability.
In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is as follows:
In a first aspect, the present invention provides a kind of smart machine with network method, comprising:
Pass through the distribution information that target network is obtained with net operation of monitoring users;
The smart machine in the target network coverage area is connected to the target network according to the distribution information;The distribution information includes SSID and password needed for access target network.
Preferably, the including at least the step of obtaining the distribution information of target network with net operation by monitoring usersFollowing one:
Monitoring users configure or connect the first input behavior during the target network, according to first line of inputThe distribution information is obtained to record corresponding first input data;
Monitoring users modify the second input behavior during the target network, are recorded according to second input behaviorCorresponding second input data obtains the distribution information;
The system log for executing the terminal with net operation or smart machine is monitored, is obtained according to the system logTake the distribution information.
Preferably, the system log monitored for executing the terminal with net operation or smart machine, according to instituteStating the step of system log obtains the distribution information includes:
The process for matching net operation is determined according to the system log;
It include the operation interface of the distribution information according to process determination;
The picture for intercepting the operation interface carries out image recognition to obtain the distribution information;Alternatively, determining operation circleThe input frame in face simultaneously transfers the input content in input frame from the background to obtain the distribution information.
Preferably, the method further include:
It establishes and saves the corresponding relationship between the device id of smart machine and the distribution information of target network;
When the distribution information of the target network is modified, according to corresponding relationship screening and the target network phaseCorresponding Intelligent target equipment, the Intelligent target equipment are configured to obtain modified distribution information, and according to repairingDistribution information after changing automatically accesses the target network.
It is preferably, described to match the step of net operation obtains the distribution information of target network by monitoring users further include:
When SSID and the password mismatch of acquisition, and user is successfully accessed the mesh according to the SSID and password that do not match thatWhen marking network, determine that user is modified the distribution information.
Preferably, the picture of the interception operation interface carries out the step of image recognition is to obtain the distribution informationInclude:
The distribution information of the target network in the picture is identified by optical character identification OCR algorithm.
Preferably, described also to be wrapped before the step of obtaining the distribution information of target network with net operation by monitoring usersIt includes:
Downloading in advance matches the corresponding application APP of net operation with described, and the application program has been configured to containIt monitors described with monitor needed for net operation.
Preferably, the corresponding relationship is stored in the terminal, smart machine and/or Cloud Server.
Second aspect, the present invention also provides a kind of smart machine network distribution devices, comprising:
Module is monitored, the distribution information for obtaining target network with net operation by monitoring users is set as;
Networking module is set as connecting the smart machine in the target network coverage area according to the distribution informationTo the target network;The distribution information includes SSID and password needed for access target network.
Preferably, the monitoring module includes at least following one:
First acquisition unit is set as monitoring users configuration or connects the first line of input during the target networkTo record corresponding first input data according to first input behavior and obtaining the distribution information;
Second acquisition unit is set as monitoring users and modifies the second input behavior during the target network, according toSecond input behavior records corresponding second input data and obtains the distribution information;
Third acquiring unit is set as monitoring the system day for executing the terminal with net operation or smart machineWill obtains the distribution information according to the system log.
Compared to the prior art the present invention, has the following beneficial effects:
Technical solution of the present invention Internet of Things smart machine active sniffing user's matches net operation, obtains distribution information, makesSmart machine connects WIFI network automatically, realizes the automatic connection of smart machine, participates in without user, promotes experience;With such asIt is lower the utility model has the advantages that
1, the present invention realizes automatic acquisition distribution letter by smart machine or the terminal monitoring distribution information with net operationBreath significantly simplifies the operation of user so that not needing input SSID and password;
2, the present invention obtains input data information or the knowledge of configuration target network or linking objective network by monitoringInput data information in other picture, reduce user match network process, equipment connects network automatically, reduces smart machine networkThe triviality and complexity of configuration, greatly improve user experience;
3, the present invention is by monitoring system log, after realizing automatic distribution, connection and the password change of smart machine fromDynamic change connection;
4, for the present invention after the SSID and password that user changes WIFI hot spot, smart machine is modified by monitoring acquisitionMultiple smart machines associated with the SSID are changed distribution information automatically, connect modified net automatically by distribution informationNetwork improves network connection efficiency, and optimizes user experience;
5, the present invention is when system forbids grabbing the text information in input frame, will by the way of screenshotss or soft screenshotssScreen message the methods of is transferred by image recognition or backstage, is extracted corresponding SSID and password, is improved safety, it is ensured that is usedIt the network security at family and is reliably connected;
6, the device id and target of present invention backup storage smart machine in terminal, smart machine and/or Cloud ServerCorresponding relationship between the distribution information of network, when smart machine or terminal cleaning memory or reply default setting, stillAutomatic change connection after so can be realized automatic distribution, connection and the password change of smart machine.
Detailed description of the invention
Fig. 1 is that a kind of smart machine of the embodiment of the present invention matches the flow chart of network method;
Fig. 2 is a kind of structural schematic diagram of smart machine network distribution device of the embodiment of the present invention;
Fig. 3 is the configuration diagram of the distribution network systems of the embodiment of the present invention 1;
Fig. 4 is that the smart machine of the embodiment of the present invention 1 matches the flow chart of network method;
Fig. 5 is the configuration diagram of the distribution network systems of the embodiment of the present invention 3;
Fig. 6 is that the smart machine of the embodiment of the present invention 3 matches the flow chart of network method.
Specific embodiment
To keep goal of the invention of the invention, technical scheme and beneficial effects more clear, with reference to the accompanying drawing to thisThe embodiment of invention is illustrated, it should be noted that in the absence of conflict, in the embodiment and embodiment in the applicationFeature can mutual any combination.
As shown in Figure 1, the embodiment of the present invention provides a kind of smart machine with network method, comprising:
S101, the distribution information that target network is obtained with net operation by monitoring users;
S102, the smart machine in the target network coverage area is connected to the target according to the distribution informationNetwork;The distribution information includes SSID and password needed for access target network.
The network method of matching of the embodiment of the present invention can be by smart machine execution or user setting or modification target networkTerminal with net operation execute, active sniffing distribution information, realize it is automatic obtain distribution information so that not needing input SSIDAnd password, it is participated in without user, promotes experience, significantly simplify the operation of user.
Wherein, the step of described in step S101 by the distribution information with net operation acquisition target network of monitoring usersIncluding at least following one:
Mode one: monitoring users configure or connect the first input behavior during the target network, according to described theOne input behavior records corresponding first input data and obtains the distribution information;
Mode two: monitoring users modify the second input behavior during the target network, according to second inputCorresponding second input data of behavior record obtains the distribution information;
Mode three: the system log for executing the terminal with net operation or smart machine is monitored, according to the systemDistribution information described in log acquisition of uniting.
It includes: to configure target network on the router, matching that the target network is configured in mode of the embodiment of the present invention oneTarget network is configured in the terminal of net operation, configures target network on intelligent devices, wherein configuration includes addition, setting etc.Operation.Connecting the target network includes: that smart machine is directly connected to target network, and smart machine in terminal execution by matchingNet operation linking objective network.
It includes: to modify target network on the router, matching that the target network is modified in mode of the embodiment of the present invention twoIn the terminal of net operation modify target network, modify target network on intelligent devices, wherein modification include modification SSID and/orModify password.
Mode one and mode two belong to the operation that user executes in corresponding APP in the embodiment of the present invention, due to user'sInput behavior carries out in APP, and the content inputted will upload the server of APP, thus can be by the monitor in APPInformation needed for knowing distribution.Mode three passes through the process of determination, locking network configuration interface is realized, in this case, Yong HutongIt often is not turned on APP, operation behavior is carried out in APP, and the content inputted accordingly will not be sent directly to APP'sServer needs APP to determine process at this time and executes operation at corresponding network configuration interface, passes through image recognition, soft screenshotssEtc. technological means know the specific input content of user, to extract and record distribution information needed.
By monitoring in the input data information or identification picture that obtain configuration target network or linking objective networkInput data information, reduce user match network process, equipment connects network automatically, reduces the numerous of smart machine network configurationTrivial property and complexity, greatly improve user experience.
Wherein, the system log monitored for executing the terminal with net operation or smart machine, according to describedSystem log obtain the distribution information the step of include:
The process for matching net operation is determined according to the system log;
It include the operation interface of the distribution information according to process determination;
The picture for intercepting the operation interface carries out image recognition to obtain the distribution information;Alternatively, determining operation circleThe input frame in face simultaneously transfers the input content in input frame from the background to obtain the distribution information.
The side that the embodiment of the present invention is monitored by obtaining system permission and operation log, current process, operation interface, screenFormula obtains the SSID and encrypted message of corresponding WIFI hot spot,
The embodiment of the present invention is by monitoring system log, after automatic distribution, connection and the password change of realizing smart machineAutomatic change connection, system forbid grab input frame in text information when, by the way of screenshotss or soft screenshotss, by screenInformation the methods of is transferred by image recognition or backstage, and by the way of screenshotss or soft screenshotss, screen message is passed through image knowledgeNot or backstage the methods of is transferred, and is extracted corresponding SSID and password, is improved safety, it is ensured that the network security of user and reliableConnection.
Method provided in an embodiment of the present invention further include:
It establishes and saves the corresponding relationship between the device id of smart machine and the distribution information of target network;
When the distribution information of the target network is modified, according to corresponding relationship screening and the target network phaseCorresponding Intelligent target equipment, the Intelligent target equipment are configured to obtain modified distribution information, and according to repairingDistribution information after changing automatically accesses the target network.
Wherein, the corresponding relationship is stored in the terminal, smart machine and/or Cloud Server.
In the embodiment of the present invention other than saving corresponding SSID and password respectively, can also save corresponding SSID and password withOne-to-one relationship between smart machine ID can save in the embodiment of the present invention in the form of a list, be stored in terminal, intelligenceCan equipment and/or Cloud Server, do data backup, when smart machine or terminal cleaning memory or factory reset orWhen damage, still be able to realize by obtaining corresponding distribution information from Cloud Server the automatic distribution of smart machine, connection,And the automatic change connection after password change.It can be set in the embodiment of the present invention preferentially by terminal, the intelligence in local area networkEquipment sends modified distribution information, when the terminal in local area network, smart machine can not get modified distribution letterWhen breath, corresponding distribution information is sent by Cloud Server, it is fast to obtain distribution information rate from local area network inside, and avoids every timeDistribution information all is obtained from Cloud Server, mitigates the access pressure of Cloud Server.
Pass through the distribution letter that target network is obtained with net operation of monitoring users described in step of embodiment of the present invention S101The step of breath further include:
When SSID and the password mismatch of acquisition, and user is successfully accessed the mesh according to the SSID and password that do not match thatWhen marking network, determine that user is modified the distribution information.
Wherein, the picture of the interception operation interface carries out the step of image recognition is to obtain distribution information packetIt includes:
The distribution information of the target network in the picture is identified by optical character identification OCR algorithm.
As shown in Fig. 2, the embodiment of the present invention also provides a kind of smart machine network distribution device, comprising:
Module 100 is monitored, the distribution information for obtaining target network with net operation by monitoring users is set as;
Networking module 200 is set as the smart machine in the target network coverage area according to the distribution informationIt is connected to the target network;The distribution information includes SSID and password needed for access target network.
The monitoring module includes at least following one:
First acquisition unit 110 is set as monitoring users configuration or connects the first input during the target networkBehavior records corresponding first input data according to first input behavior and obtains the distribution information;
Second acquisition unit 120 is set as monitoring users and modifies the second input behavior during the target network, rootCorresponding second input data, which is recorded, according to second input behavior obtains the distribution information;
Third acquiring unit 130 is set as monitoring the system for executing the terminal with net operation or smart machineLog obtains the distribution information according to the system log.
Embodiment one
In conjunction with Fig. 3 and Fig. 4, this example demonstrates that by monitoring users carry out for the first time smart machine configure target network orThe input data information of linking objective network obtains the process of the distribution information of target network:
When user is for the first time in use, when carrying out smart machine distribution, networking using mobile terminal APP, using can readThe WIFI hot spot SSID of mobile device connection, then, user inputs the corresponding WIFI password of this SSID, and one, using load screenMonitor reads the specific data information of input;Two, the content of cryptogram input edit box EDITEXT is transferred to get arrivingThen WIFI hot spot password using by the SSID and password of this hot spot, carries out information preservation in a pair wise manner.
The smart machine of second and the above quantity, exempts from the implementation for inputting, exempting from distribution:
When buying smart machine again such as user, when carrying out distribution again using APP, smart machine powers on, startingUsing using that detection can match the hot spot connecting with mobile terminal automatically, the SSID and password of the WIFI hot spot that is corresponding to it save defeatedEnter and corresponding all operations of networking, realizes automatic distribution, the networking of smart machine, saving user significantly will not operate and operateThe matters of hell to pay promote experience and exempt to operate, this is the unexistent implementer's case of current industry.
As shown in figure 3, smart machine 1 is the smart machine for configuring target network or linking objective network for the first time, when logicalAfter crossing APP progress smart machine distribution, networking, the WIFI hot spot SSID and password of connection are obtained and save, when smart machine 2And/or when the progress distribution of smart machine 3, APP carries out smart machine distribution according to the WIFI hot spot SSID and password of preservation.
Embodiment two
As not having corresponding SSID in embodiment one, then APP prompts the user whether to carry out distribution by existing network,If so, user need to only click confirmation or OK button, networking operation can be completed, carried out using automatic;
Such as, user clicks no, then application returns to the Configuration network page, and user completes new SSID and password configuration, completesDistribution, using automatically saving new SSID and password.
Embodiment three
In conjunction with Fig. 5 and Fig. 6, this example demonstrates that user changes the process of distribution information networked automatically:
Before realizing automatic networking, using mobile terminal APP, save corresponding SSID and password and smart machine ID list itBetween one-to-one relationship list, and upload server accomplishes that double data backs up, while can determine that equipment, mobile terminal, routingDevice is in same physical region.
When user carries out the SSID of WIFI hot spot and when change of secret code, user is only needed, by smart machine list whereinAny smart machine is modified with postponing, using by the SSID and password saved: 1, distribution, networking are automatically changed,Process is participated in without user;2, it according to the SSID and password and smart machine ID list saved before this, carries out corresponding intelligence and setsStandby automatic change distribution, networking, process is without user's participation, and 3, connect for user's smart machine the scene feelings of more WIFI hot spotsCondition;Automatic spring selects dialog box, and user, which only need to simply choose, needs smart machine to be changed, clicks and determines, is automatically performed instituteThe smart machine needed changes distribution, networking automatically, and process is participated in without user.
In addition, user is woth no need to carry out the change connection of any money product, application end APP is to the SSID of preservation and closeCode, smart machine list change permission is set, SSID and password after user's editable and addition user's change or newSSID and password click confirmation or select smart machine list to be changed, it is easily automatically performed smart machine change and matchesNet, networking, process are participated in without user.
It also allows for user to be configured, edit in advance and saves the SSID and password for wanting the WIFI hot spot of connection,In this case, user may be implemented since buying First smart machine, be able to achieve automatic distribution, networking, overall processIt is very convenient without any operation of user, greatly promote user experience.
As shown in figure 5, the smart machine of linking objective network 1 includes smart machine 11, smart machine 12 and smart machine13, the smart machine of linking objective network 2 includes smart machine 21, smart machine 22 and smart machine 23, wherein target network1 distribution information is SSID1 and password 1, and the distribution information of target network 2 is SSID2 and password 2, in APP or smart machineOr one-to-one relationship between corresponding SSID and password and smart machine ID list is saved in Cloud Server, when passing through APPOr target network 1 include any smart machine modification 1 corresponding configuration information of target network when, save target network 1 repairSSID and password after changing, when smart machine 11 and/or smart machine 12 and/or smart machine 13 carry out distribution, APP according toThe modified SSID of target network 1 and password of preservation carry out smart machine distribution.
In practical applications, the smart machine of user's purchase may partially connect home network, and part connects office network,When the corresponding configuration information of modification home network, according to the corresponding relationship of preservation, the intelligence for connecting home network can be setStandby configuration information is unified to be modified, and is reset manually without user.Some intelligent equipment household networds and office network connectIt takes over, user, which only need to simply choose, needs smart machine to be changed that automatic distribution can be realized.
Example IV
In conjunction with Fig. 3, this example demonstrates that obtaining the process of distribution information by monitoring system log:
When application end APP listens to the interface with net operation, by obtain system permission and operation log, current process,Current interface, screen listening mode read the SSID and encrypted message of corresponding WIFI hot spot, complete to connect in user settingUnder successful scene, the SSID and encrypted message being stored in application are compared, and such as consistent, then, user does not do anyChange, using not responding.
When monitoring that SSID is consistent, when password is inconsistent, then, determine that user has carried out change of secret code movement, using will mostNew SSID and encrypted message are stored in information list, so that complete smart machine changes distribution, networking automatically, process is without usingFamily participates in, very convenient.
Such as user, then this and then have purchased smart machine, matching automatically for smart machine since then can be realizedNet, networking are not necessarily to user's operation.
When forbidding grabbing the text information in input frame such as system, by the way of screenshotss or soft screenshotss, by screen messageThe methods of transferred by image recognition or backstage, corresponding SSID and password are extracted, process execution as described above is carried out.
If user has first downloaded application, under the rear scene for buying smart machine, can be preset by shopping guide or userAutomatic distribution can be realized in the configuration information for the target network to be connected, then, first smart machine of user's purchase, is not necessarily to userOperation, is automatically performed the operation of distribution and networking, very convenient.
Although disclosed embodiment is as above, its content is only to facilitate understand technical side of the inventionCase and the embodiment used, are not intended to limit the present invention.Any those skilled in the art to which this invention pertains, notUnder the premise of being detached from disclosed core technology scheme, any modification and change can be made in form and details in implementationChange, but protection scope defined by the present invention, the range that the appended claims that must still be subject to limits.