CN107548058A - Equipment cut-in method and intelligent terminal - Google Patents

Equipment cut-in method and intelligent terminal Download PDF

Info

Publication number
CN107548058A
CN107548058A CN201710632862.XA CN201710632862A CN107548058A CN 107548058 A CN107548058 A CN 107548058A CN 201710632862 A CN201710632862 A CN 201710632862A CN 107548058 A CN107548058 A CN 107548058A
Authority
CN
China
Prior art keywords
data frame
data
frame
application program
target
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201710632862.XA
Other languages
Chinese (zh)
Other versions
CN107548058B (en
Inventor
杨占才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen H&T Intelligent Control Co Ltd
Original Assignee
Shenzhen H&T Intelligent Control Co Ltd
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 Shenzhen H&T Intelligent Control Co Ltd filed Critical Shenzhen H&T Intelligent Control Co Ltd
Priority to CN201710632862.XA priority Critical patent/CN107548058B/en
Publication of CN107548058A publication Critical patent/CN107548058A/en
Application granted granted Critical
Publication of CN107548058B publication Critical patent/CN107548058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of equipment cut-in method and intelligent terminal, wherein, equipment cut-in method can include:The first data frame is received, and determines to send the destination application of first data frame, first data frame includes network identity and checking information, and first data frame is the frame structure using target AES corresponding with destination application encryption;Obtain corresponding with destination application object decryption algorithm from multiple decipherment algorithms, each decipherment algorithm in the multiple decipherment algorithm corresponds to a kind of application program, the object decryption algorithm for the target AES inverse process;First data frame is decrypted using the object decryption algorithm, obtains the network identity and the checking information;Network access equipment is linked into by the network identity and the checking information.Using the present invention, the compatibility for being linked into network access equipment can be improved.

Description

Equipment cut-in method and intelligent terminal
Technical field
The present invention relates to electronic technology field, more particularly to a kind of equipment cut-in method and intelligent terminal.
Background technology
With the development of technology of Internet of things, various intelligent terminals (such as intelligent air condition, Intelligent bracelet, intelligent washing machine with And intelligent refrigerator etc.) also arise at the historic moment, Internet of Things interconnection technique is also more diversified used in various intelligent terminals.Wherein, Wireless Fidelity (Wireless Fidelity, Wi-Fi) technology turns into more commonly used Internet of Things interconnection technique.
When intelligent terminal connects network access equipment (such as router) by the Wi-Fi communication technologys, usually not people Machine interactive interface, i.e., button or screen input can not be used to carry out Internet of Things connection so that the Internet of Things connection of intelligent terminal As a urgent problem to be solved.
The content of the invention
The embodiment of the present invention provides a kind of equipment cut-in method and intelligent terminal, can not only realize that intelligent terminal is linked into Network access equipment, the network equipment can be linked into compatible various application program controlling intelligent terminals, compatibility is strong.
In a first aspect, the embodiment of the present invention provides a kind of equipment cut-in method, including:
The first data frame is received, and determines to send the destination application of first data frame, first data frame Including network identity and checking information, first data frame is to be calculated using target corresponding with destination application encryption The frame structure of method encryption;
Object decryption algorithm corresponding with the destination application, the multiple decryption are obtained from multiple decipherment algorithms Each decipherment algorithm in algorithm corresponds to a kind of application program, and the object decryption algorithm is the inverse mistake of the target AES Journey;
First data frame is decrypted using the object decryption algorithm, obtains the network identity and the checking letter Breath;
Network access equipment is linked into by the network identity and the checking information.
In a kind of possible design, the frame head of first data frame includes multicast address, in the multicast address Including the first information, the first information is used to identify the destination application for sending first data frame;
The destination application for determining to send first data frame, including:
Using application program corresponding with the first information described in the multicast address as transmission first data frame Destination application.
In a kind of possible design, the multicast address includes the second information, carried in second information described in Network identity and the checking information;
It is described first data frame to be decrypted using the object decryption algorithm, obtain the network identity and described test Information is demonstrate,proved, including:
The second information described in the multicast address is decrypted using the object decryption algorithm, obtains the network identity With the checking information.
In a kind of possible design, the destination application for determining to send first data frame, including:
At least one second data frame is obtained, the reception time of at least one second data frame is in first data Before the reception time of frame, and at least one second data frame is the frame structure that the destination application is sent;
Target data frame, the length of the data division of the target data frame are searched from least one second data frame Application program corresponding to degree is one;
Counted using application program corresponding to the length of the data division of the target data frame as sending described first According to the destination application of frame.
In a kind of possible design, the lookup target data frame from least one second data frame, including:
According to the reception time order and function of at least one second data frame order, by least one second data frame Sequence, obtain sequence of data frames;
The second data frame is obtained from the sequence of data frames successively, and judge the data division of second data frame The quantity of application program corresponding to length;
If the quantity of application program corresponding to the length of the data division of second data frame is one, by described the Two data frames are as target data frame;
If application program corresponding to the length of the data division of second data frame is at least two, obtain described Next second data frame of second data frame described in sequence of data frames, should corresponding to the length of data division until finding The second data frame for being one with the quantity of program, and be one by the quantity of application program corresponding to the length of the data division The second individual data frame is as target data frame.
Second aspect, the embodiment of the present invention provide a kind of intelligent terminal, including:
Receiving unit, for receiving the first data frame;
Determining unit, for determining the destination application of transmission first data frame, first data frame includes Network identity and checking information, first data frame are to be added using target AES corresponding with the destination application Close frame structure;
Acquiring unit, calculated for obtaining object decryption corresponding with the destination application from multiple decipherment algorithms Method, each decipherment algorithm in the multiple decipherment algorithm correspond to a kind of application program, and the object decryption algorithm is the mesh Mark the inverse process of AES;
Decryption unit, for being decrypted using the object decryption algorithm to first data frame, obtain the network mark Know and the checking information;
Access unit, for being linked into network access equipment by the network identity and the checking information.
In a kind of possible design, the frame head of first data frame includes multicast address, in the multicast address Including the first information, the first information is used to identify the destination application for sending first data frame;
The determining unit, which is used to application program corresponding with the first information described in the multicast address being used as, to be sent The destination application of first data frame.
In a kind of possible design, the value of Part II includes the second information in the multicast address, and described second The network identity and the checking information are carried in information;
The decryption unit is used to decrypt the second information described in the multicast address using the object decryption algorithm, Obtain the network identity and the checking information.
In a kind of possible design, the determining unit is used for:
At least one second data frame is obtained, the reception time of at least one second data frame is in first data Before the reception time of frame, and at least one second data frame is the frame structure that the destination application is sent;
Target data frame, the length of the data division of the target data frame are searched from least one second data frame Application program corresponding to degree is one;
Counted using application program corresponding to the length of the data division of the target data frame as sending described first According to the destination application of frame.
In a kind of possible design, the determining unit searches target data from least one second data frame Frame specifically includes:
According to the reception time order and function of at least one second data frame order, by least one second data frame Sequence, obtain sequence of data frames;
The second data frame is obtained from the sequence of data frames successively, and judge the data division of second data frame The quantity of application program corresponding to length;
If the quantity of application program corresponding to the length of the data division of second data frame is one, by described the Two data frames are as target data frame;
If application program corresponding to the length of the data division of second data frame is at least two, obtain described Next second data frame of second data frame described in sequence of data frames, should corresponding to the length of data division until finding The second data frame for being one with the quantity of program, and be one by the quantity of application program corresponding to the length of the data division The second individual data frame is as target data frame.
The third aspect, the embodiment of the present invention provide a kind of intelligent terminal, including:
Communication interface, for being communicated with external equipment;
Storage medium, have program stored therein instruction, and described program instruction is suitable to be loaded by the processor;
Processor, instruct for loading described program and perform following operation:
First data frame is received by the communication interface, and determines to send the intended application journey of first data frame Sequence, first data frame include network identity and checking information, and first data frame is to use and the intended application journey The frame structure that target AES corresponding to sequence is encrypted;
Object decryption algorithm corresponding with the destination application, the multiple decryption are obtained from multiple decipherment algorithms Each decipherment algorithm in algorithm corresponds to a kind of application program, and the object decryption algorithm is the inverse mistake of the target AES Journey;
First data frame is decrypted using the object decryption algorithm, obtains the network identity and the checking letter Breath;
Network access equipment is linked into by the network identity and the checking information.
In a kind of possible design, the frame head of first data frame includes multicast address, in the multicast address Including the first information, the first information is used to identify the destination application for sending first data frame;The processor Loading described program instruction performs following operation to determine to send the destination application of first data frame:
Using application program corresponding with the first information described in the multicast address as transmission first data frame Destination application.
In a kind of possible design, the multicast address includes the second information, carried in second information described in Network identity and the checking information;
Computing device described program instruction perform following operation with using the object decryption algorithm to described the One data frame is decrypted, and obtains the network identity and the checking information:
The second information described in the multicast address is decrypted using the object decryption algorithm, obtains the network identity With the checking information.
In a kind of possible design, the processor loading described program instruction performs following operation to determine to send institute State the destination application of the first data frame:
At least one second data frame is obtained, the reception time of at least one second data frame is in first data Before the reception time of frame, and at least one second data frame is the frame structure that the destination application is sent;
Target data frame, the length of the data division of the target data frame are searched from least one second data frame Application program corresponding to degree is one;
Counted using application program corresponding to the length of the data division of the target data frame as sending described first According to the destination application of frame.
In a kind of possible design, processor loading described program instruction perform following operation with from it is described at least Target data frame is searched in one the second data frame:
According to the reception time order and function of at least one second data frame order, by least one second data frame Sequence, obtain sequence of data frames;
The second data frame is obtained from the sequence of data frames successively, and judge the data division of second data frame The quantity of application program corresponding to length;
If the quantity of application program corresponding to the length of the data division of second data frame is one, by described the Two data frames are as target data frame;
If application program corresponding to the length of the data division of second data frame is at least two, obtain described Next second data frame of second data frame described in sequence of data frames, should corresponding to the length of data division until finding The second data frame for being one with the quantity of program, and be one by the quantity of application program corresponding to the length of the data division The second individual data frame is as target data frame.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, and being stored with a plurality of program in the storage medium refers to Order, described program instruction are suitable to be loaded by processor and perform equipment cut-in method as described in relation to the first aspect.
Implement the embodiment of the present invention, integrate multiple decipherment algorithms in intelligent terminal, each solution in the plurality of decipherment algorithm Close algorithm corresponds to a kind of application program, when the first data frame that intelligent terminal for reception to destination application is sent, you can With the corresponding object decryption algorithm of the destination application for obtaining with sending first data frame, and use the object decryption algorithm It is decrypted, obtains network identity and checking is believed, and be linked into network access equipment.This mode can not only realize intelligent end End is linked into network access equipment, can be linked into the network equipment with compatible various application program controlling intelligent terminals, compatibility By force.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of network architecture diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of equipment cut-in method provided in an embodiment of the present invention;
Fig. 3 is a kind of integrated decipherment algorithm schematic diagram of intelligent terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of data frame analyzing flow chart provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram for determining destination application provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of intelligent terminal provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another intelligent terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 is refer to, is a kind of system architecture diagram provided in an embodiment of the present invention, as illustrated, the embodiment of the present invention System architecture can include mobile terminal, intelligent terminal and network access equipment, wherein, mobile terminal can any can be pacified Application program and the terminal with Man Machine Interface are filled, for example mobile terminal can include PC, notebook computer, intelligence Energy mobile phone, tablet personal computer, car-mounted terminal and portable wearable device etc..Intelligent terminal can include but is not limited to various household electrical appliances Equipment (such as intelligent air condition, Intelligent bracelet, intelligent washing machine and intelligent refrigerator), office equipment, transit equipment etc..Network Access device can include access point (Access Point, AP), such as router.
Usual user directly can not be linked into network access equipment using the button or screen input mode of intelligent terminal, Such as, it is impossible to directly on refrigerator input family Wi-Fi service set (Service Set Identifier, SSID) and Checking information.In order to solve the network connectivity problem of above-mentioned intelligent terminal, each manufacturer sets Wi-Fi moulds in intelligent terminal Group, user are operated on the destination application of mobile terminal, i.e., user is defeated on the destination application of mobile terminal Enter network identity and checking information, or the destination application of mobile terminal obtains the net of LAN residing for mobile terminal automatically Network identifies and checking information, then the destination application of mobile terminal by the network identity inputted and checking information by with Target AES corresponding to the destination application encrypts to obtain the first data frame, and the destination application of mobile terminal is by One data frame sends to the Wi-Fi modules of intelligent terminal, Wi-Fi modules and utilizes decipherment algorithm corresponding with the destination application First data frame is decrypted, obtains network identity and checking information, and network is linked into by the network identity and checking information Access device.It should be noted that mobile terminal can install the different application of multiple producers, or, difference is mobile eventually What end was installed is the application program of different manufacturers, and different application is different to network identity and the AES of checking information, Therefore decipherment algorithm corresponding to the application program of integrated different manufacturers is needed in the Wi-Fi modules of intelligent terminal, when intelligent end When termination receives the first data frame that different application programs is sent, it can decrypt to obtain network identity and checking information, from And realize the purpose for being linked into network access equipment.
Fig. 2 is refer to, is a kind of schematic flow sheet of equipment cut-in method provided in an embodiment of the present invention, as illustrated, The equipment cut-in method of the embodiment of the present invention includes but is not limited to:
S101, mobile terminal send the first data frame, and first data frame includes network identity and checking information;
In one embodiment, the application program of each manufacturer, such as the application journey of A manufacturers can be installed in mobile terminal Sequence, the application program of B manufacturers, and application program of C manufacturers etc..User can be answered using any one on mobile terminals Operated with program, the operation includes input network identity and checking information.It is it should be noted that different on the mobile terminal For the application program of manufacturer when the network identity and checking information inputted to user is encrypted, used AES is not Together.For example if when user inputs network identity and checking information by the application program of A manufacturers, the application program of A manufacturers is to net The AES used when network identifies and checking is encrypted is the AES of A manufacturers.Again for example, if user passes through B manufacturers Application program input network identity and during checking information, the application program of B manufacturers adds to network identity and checking information The AES used when close is the AES of B manufacturers.In the embodiment of the present invention, the application program pair of mobile terminal will be passed through Data frame after network identity and checking information encryption is referred to as the first data frame.
Optionally, the application program of mobile terminal is sent out according to the data frame format of the manufacturer of the application program to intelligent terminal Send the first data frame comprising network identity and checking information.
Optionally, the network identity of the embodiment of the present invention can be SSID, and checking information can be the password of user's input Information key.
S102, the data frame of intelligent terminal for reception first, and determine to send the destination application of first data frame, it is described First data frame is the frame structure using target AES corresponding with destination application encryption;
In one embodiment, the data frame of intelligent terminal for reception first, and further determine that and send first data frame Destination application.Optionally, intelligent terminal starts promiscuous mode, and under the promiscuous mode, intelligent terminal can only receive in the air Packet, and packet can not be sent or communicated with external device.When intelligent terminal is operated under promiscuous mode, start Whether listening state, monitoring have data frame to need to receive.
If intelligent terminal for reception is to the first data frame, it is determined that the destination application of first data frame is sent, it is optional , intelligent terminal determines that destination application can be the data division of frame head by the first data frame or the first data frame Length determine, as shown in figure 5, the frame structure of the first data frame can include frame head, data and check code.It can pass through Parsing obtains the modes of frame head or data to determine to send the destination application of first data frame, and further from data Object decryption algorithm A corresponding with destination application is searched in storehouse, the first data frame is carried out by the object decryption algorithm A Decryption, obtains the SSID and key carried in first data frame.The specific mode for determining destination application include being not limited to Lower two ways:
In the first way, the multicast address included in the frame head by the first data frame is judged, the multicast Address includes the first information and the second information, and the first information is used to identify the destination application for sending first data frame, the Network identity and checking information are carried in two information.Specific optional, multicast address can be divided into Part I and Part II, For example Part I and Part II, optionally, the byte of Part I and Part II are divided according to the length of multicast address Number is identical, and the value of Part I is the first information, and the value of Part II is the second information.
The value of Part I is used to identify the destination application for sending first data frame in multicast address, and the target should With the i.e. corresponding corresponding manufacturer of program.Multicast address included in the frame head for first data frame that different application is sent The value of Part I is different.The corresponding pass between the value of various Part I and application program is pre-set in intelligent terminal System, when intelligent terminal for reception is to the first data frame, parsing obtains the multicast address carried in the frame head of first data frame The value of Part I.The value of Part I is matched with the corresponding relation pre-set, and will be with multicast address Application program is as the destination application for sending first data frame corresponding to the value of a part.
For example multicast address is 23.9.168.81, then Part I is 23.9.168, Part II 81, and is set in advance It is A application programs to determine application program corresponding to 23.9.168;Multicast address is 23.9.165.155, then Part I is 23.9.165, Part II 155, and it is B application programs to preset application program corresponding to 23.9.165.
When intelligent terminal for reception to the first data frame, and parse and obtain the multicast address carried in the frame head of the first data frame The value of Part I be 23.9.168, then it is the frame structure that A application programs are sent that can determine first data frame, and should First data frame is to encrypt to obtain frame structure using AES corresponding with A application programs.
In the second way, pass through the data division in multiple second data frames received before receiving the first data frame Length determine send the first data frame destination application.At least one second data frame can be the intelligent terminal from At least one data frame structure of starting that destination application receives.Target data is searched from least one second data frame Frame, application program corresponding to the length of the data division of the target data frame are one.An it should be noted that usual length At least one application program may be corresponded to, is the length identical data frame that different vendor can use data division, for example, The length of data division may correspond to two application programs A and B for 30, and the length of some data divisions may only correspond to one Application program, it is that the manufacturer of the only application program uses the data frame of the length.
In the embodiment of the present invention, in order to uniquely determine the application program for sending first data frame, it is necessary in data The target data frame that application program corresponding to the length of data division is one is found in storehouse.So as to by the target data frame Application program corresponding to the length of data division is as the destination application for sending first data frame.
Optionally, network identity and checking information are not carried at least one second data frame, therefore this is at least one Second data frame is used only for determining the destination application to communicate with the intelligent terminal.
Optionally, the lookup mode that intelligent terminal searches target data frame from least one second data frame may have It is a variety of, such as, all second data frames received before the first data frame is received are stored in database, from the data Second data frame is randomly selected in storehouse.Judge the number of application program corresponding to the length of the data division of second data frame Amount, if the quantity of application program corresponding to the length of the data division of second data frame is one, by second data frame Data division length corresponding to application program as target data frame.If the length pair of the data division of second data frame The quantity for the application program answered is at least two, then gives up second data frame, and randomly select another from database Second data frame, further perform the number of application program corresponding to the length for the data division for judging another second data frame Amount, the quantity until finding application program corresponding to the length of data division are second data frame of one, and by data portion The quantity of application program corresponding to the length divided is second data frame of one as target data frame.
It should be noted that it can also be the reception time according at least one second data frame stored in database Sequencing, at least one second data frame is sorted, obtains sequence of data frames.Second is obtained from sequence of data frames successively Data frame, such as the second data frame obtained at first are first the second data frames received, judge the second acquired data The quantity of application program corresponding to the length of the data division of frame.If should corresponding to the length of the data division of second data frame It it is one with the quantity of program, then using second data frame as target data frame.If the data division of second data frame Application program corresponding to length is at least two, then obtains next second number of second data frame in the sequence of data frames According to frame, until the second data frame that the quantity for finding application program corresponding to the length of data division is one, and by data The quantity of application program corresponding to partial length is second data frame of one as target data frame.
S103, intelligent terminal obtain object decryption algorithm corresponding with destination application, institute from multiple decipherment algorithms State each decipherment algorithm in multiple decipherment algorithms and correspond to a kind of application program, the object decryption algorithm is encrypted for the target The inverse process of algorithm;
In one embodiment, destination application is when sending the first data frame, by corresponding to destination application First data frame is encrypted target AES.Intelligent terminal is it is determined that send the intended application journey of first data frame After sequence, object decryption algorithm corresponding with the destination application can be obtained.It should be noted that it is integrated with intelligent terminal Decipherment algorithm corresponding to each application program, a kind of application program correspond to a kind of decipherment algorithm, and being can by the decipherment algorithm To decrypt the data frame of application program encryption.
As shown in figure 3, it is the schematic diagram that intelligent terminal provided in an embodiment of the present invention integrates decipherment algorithm, as schemed institute Show, when designing Wi-Fi modules, the key configuration decipherment algorithm of multiple application programs is integrated with the Wi-Fi modules.For example collect Into A application programs, B application programs and C application programs etc. decipherment algorithm corresponding to application program.
Specific optional, intelligent terminal is obtained from multiple decipherment algorithms and the corresponding relation of application program and intended application Object decryption algorithm corresponding to program, the object decryption algorithm are the inverse process of target AES.It is by the target solution Close algorithm can be decrypted encrypts obtained the first data frame by the target AES.
S104, intelligent terminal are decrypted using object decryption algorithm to the first data frame, obtain network identity and checking information;
In one embodiment, after intelligent terminal gets object decryption algorithm, using the object decryption algorithm to this One data frame is decrypted, and obtains the network identity carried in first data frame and checking information.
Optionally, the first data frame frame head includes multicast address, and multicast address includes the first information and the second information, should Network identity and checking information are carried in second information.The second information is decrypted using object decryption algorithm for intelligent terminal, Obtain network identity and checking information.
Specific optional, the multicast address of the first data frame includes Part I and Part II, and the value of Part I is The first information, the value of Part II is the second information, and usual checking information is made up of character string, and network identity is also by character String is formed.Multicast address is made up of numeral, and network identity and checking information are converted to ASCII character by the embodiment of the present invention, And encrypt the ASCII character by target AES, so as to form the value of Part II in multicast address.
Intelligent terminal is solved using object decryption algorithm to the value of the Part II of multicast address in first data frame It is close, so as to obtain network identity and checking information.
S105, intelligent terminal are linked into network access equipment by network identity and checking information.
In one embodiment, intelligent terminal for reception is to the first data frame, and parses and obtain what is carried in the first data frame Network identity (such as SSID) and checking information (such as key).Intelligent terminal switches to website (Station, STA) pattern, and SSID and key are sent to network access equipment (such as router), so as to be linked into network access equipment.
It refer to shown in Fig. 4, be the process provided in an embodiment of the present invention for being linked into network access equipment, first, intelligence Energy terminal starts promiscuous mode, obtains media access control (Media Access Control, MAC) layer data bag (i.e. this hair First data frame of bright embodiment), the MAC layer packet is parsed, obtains SSID and key, and be linked into by SSID and key Router.
Implement the embodiment of the present invention, integrate multiple decipherment algorithms in intelligent terminal, each solution in the plurality of decipherment algorithm Close algorithm corresponds to a kind of application program, when the first data frame that intelligent terminal for reception to destination application is sent, you can With the corresponding object decryption algorithm of the destination application for obtaining with sending first data frame, and use the object decryption algorithm It is decrypted, obtains network identity and checking information, and be linked into network access equipment.This mode can not only realize intelligence Terminal is linked into network access equipment, can be linked into the network equipment with compatible various application program controlling intelligent terminals, compatible Property is strong.
Fig. 6 is refer to, is a kind of structural representation of intelligent terminal provided in an embodiment of the present invention, as illustrated, this hair The intelligent terminal of bright embodiment can include:
Receiving unit 100, for receiving the first data frame;
Determining unit 101, for determining the destination application of transmission first data frame, first data frame packet Network identity and checking information are included, first data frame is to use target AES corresponding with the destination application The frame structure of encryption;
In one embodiment, intelligent terminal for reception unit 100 receives the first data frame, and determining unit 101 is simultaneously further It is determined that send the destination application of first data frame.Optionally, intelligent terminal starts promiscuous mode, in the promiscuous mode Under, intelligent terminal can only receive air-data bag, and can not send packet or be communicated with external device.When intelligent end End is operated under promiscuous mode, starts listening state, and whether monitoring has data frame to need to receive.
Optionally, the frame head of first data frame includes multicast address, and the multicast address includes the first information and the Two information, the first information are used to identify the destination application for sending first data frame, and network identity is carried in the second information And checking information.
The determining unit 101, which is used to application program corresponding with the first information in the multicast address being used as, sends institute State the destination application of the first data frame.
Wherein, the multicast address included in the frame head by the first data frame is judged, multicast address can be divided into Part I and Part II, such as, Part I and Part II, optionally, first are divided according to the length of multicast address Part is identical with the byte number of Part II, and the value of Part I is the first information, and the value of Part II is the second information.
The value of Part I is used to identify the destination application for sending first data frame in multicast address, and the target should With the i.e. corresponding corresponding manufacturer of program.Multicast address included in the frame head for first data frame that different application is sent The value of Part I is different.The corresponding pass between the value of various Part I and application program is pre-set in intelligent terminal System, when intelligent terminal for reception is to the first data frame, parsing obtains the multicast address carried in the frame head of first data frame The value of Part I.The value of Part I is matched with the corresponding relation pre-set, and will be with multicast address Application program is as the destination application for sending first data frame corresponding to the value of a part.
For example multicast address is 23.9.168.81, then Part I is 23.9.168, Part II 81, and is set in advance It is A application programs to determine application program corresponding to 23.9.168;Multicast address is 23.9.165.155, then Part I is 23.9.165, Part II 155, and it is B application programs to preset application program corresponding to 23.9.165.
When intelligent terminal for reception to the first data frame, and parse and obtain the multicast address carried in the frame head of the first data frame The value of Part I be 23.9.168, then it is the frame structure that A application programs are sent that can determine first data frame, and should First data frame is to encrypt to obtain frame structure using AES corresponding with A application programs.
Optionally, the determining unit 101 is used for:
At least one second data frame is obtained, the reception time of at least one second data frame is in first data Before the reception time of frame, and at least one second data frame is the frame structure that the destination application is sent;
Target data frame, the length of the data division of the target data frame are searched from least one second data frame Application program corresponding to degree is one;
Counted using application program corresponding to the length of the data division of the target data frame as sending described first According to the destination application of frame.
Wherein, determined by the length of the data division in multiple second data frames received before receiving the first data frame Send the destination application of the first data frame.At least one second data frame can be the intelligent terminal from intended application journey At least one data frame structure of starting that sequence receives.Target data frame, the number of targets are searched from this at least one second data frame It it is one according to application program corresponding to the length of the data division of frame.It should be noted that a usual length may correspond to extremely A few application program, it is the length identical data frame that different vendor can use data division, for example, data division Length may correspond to two application programs A and B for 30, and the length of some data divisions may only correspond to an application program, i.e., It is that the manufacturer of the only application program uses the data frame of the length.
In the embodiment of the present invention, in order to uniquely determine the application program for sending first data frame, it is necessary in data The target data frame that application program corresponding to the length of data division is one is found in storehouse.So as to by the target data frame Application program corresponding to the length of data division is as the destination application for sending first data frame.
Optionally, network identity and checking information are not carried at least one second data frame, therefore this is at least one Second data frame is used only for determining the destination application to communicate with the intelligent terminal.
Optionally, the lookup mode that intelligent terminal searches target data frame from least one second data frame may have It is a variety of, such as, all second data frames received before the first data frame is received are stored in database, from the data Second data frame is randomly selected in storehouse.Judge the number of application program corresponding to the length of the data division of second data frame Amount, if the quantity of application program corresponding to the length of the data division of second data frame is one, by second data frame Data division length corresponding to application program as target data frame.If the length pair of the data division of second data frame The quantity for the application program answered is at least two, then gives up second data frame, and randomly select another from database Second data frame, further perform the number of application program corresponding to the length for the data division for judging another second data frame Amount, the quantity until finding application program corresponding to the length of data division are second data frame of one, and by data portion The quantity of application program corresponding to the length divided is second data frame of one as target data frame.
Optionally, the determining unit 101 is searched target data frame from least one second data frame and specifically wrapped Include:
According to the reception time order and function of at least one second data frame order, by least one second data frame Sequence, obtain sequence of data frames;
The second data frame is obtained from the sequence of data frames successively, and judge the data division of second data frame The quantity of application program corresponding to length;
If the quantity of application program corresponding to the length of the data division of second data frame is one, by described the Two data frames are as target data frame;
If application program corresponding to the length of the data division of second data frame is at least two, obtain described Next second data frame of second data frame described in sequence of data frames, should corresponding to the length of data division until finding The second data frame for being one with the quantity of program, and be one by the quantity of application program corresponding to the length of the data division The second individual data frame is as target data frame.
The reception time order and function order according at least one second data frame stored in database is can also be, by this At least one second data frame sequence, obtains sequence of data frames.The second data frame is obtained from sequence of data frames successively, such as most The second data frame first obtained is first the second data frame received, judges the data division of the second acquired data frame The quantity of application program corresponding to length.If the quantity of application program is corresponding to the length of the data division of second data frame One, then using second data frame as target data frame.If applied corresponding to the length of the data division of second data frame Program is at least two, then obtains next second data frame of second data frame in the sequence of data frames, until searching The second data frame that quantity to application program corresponding to the length of data division is one, and the length of data division is corresponding The quantity of application program be second data frame of one as target data frame.
Acquiring unit 102, for obtaining object decryption corresponding with the destination application from multiple decipherment algorithms Algorithm, each decipherment algorithm in the multiple decipherment algorithm correspond to a kind of application program, and the object decryption algorithm is described The inverse process of target AES;
In one embodiment, destination application is when sending the first data frame, by corresponding to destination application First data frame is encrypted target AES.Intelligent terminal is it is determined that send the intended application journey of first data frame After sequence, object decryption algorithm corresponding with the destination application can be obtained.It should be noted that it is integrated with intelligent terminal Decipherment algorithm corresponding to each application program, a kind of application program correspond to a kind of decipherment algorithm, and being can by the decipherment algorithm To decrypt the data frame of application program encryption.
As shown in figure 3, it is the schematic diagram that intelligent terminal provided in an embodiment of the present invention integrates decipherment algorithm, as schemed institute Show, when designing Wi-Fi modules, the key configuration decipherment algorithm of multiple application programs is integrated with the Wi-Fi modules.For example collect Into A application programs, B application programs and C application programs etc. decipherment algorithm corresponding to application program.
Specific optional, intelligent terminal is obtained from multiple decipherment algorithms and the corresponding relation of application program and intended application Object decryption algorithm corresponding to program, the object decryption algorithm are the inverse process of target AES.It is by the target solution Close algorithm can be decrypted encrypts obtained the first data frame by the target AES.
Decryption unit 103, for being decrypted using the object decryption algorithm to first data frame, obtain the network Mark and the checking information;
Optionally, the multicast address includes the first information and the second information, and the network is carried in second information Mark and the checking information;
The decryption unit 103 is used for using the object decryption algorithm to the second information solution described in the multicast address It is close, obtain the network identity and the checking information.
In one embodiment, after intelligent terminal gets object decryption algorithm, using the object decryption algorithm to this One data frame is decrypted, and obtains the network identity carried in first data frame and checking information.
Optionally, specific optional, the multicast address of the first data frame includes Part I and Part II, Part I Value be the first information, the value of Part II is the second information, and usual checking information is made up of character string, and network identity is also It is made up of character string.Multicast address is made up of numeral, and the embodiment of the present invention is converted to network identity and checking information ASCII character, and the ASCII character is encrypted by target AES, so as to form the value of Part II in multicast address.
Intelligent terminal is solved using object decryption algorithm to the value of the Part II of multicast address in first data frame It is close, so as to obtain network identity and checking information.
Access unit 104, for being linked into network access equipment by the network identity and the checking information.
In one embodiment, intelligent terminal for reception is to the first data frame, and parses and obtain what is carried in the first data frame Network identity (such as SSID) and checking information (such as key).Intelligent terminal switches to website (Station, STA) pattern, and SSID and key are sent to network access equipment (such as router), so as to be linked into network access equipment.
It refer to shown in Fig. 4, be the process provided in an embodiment of the present invention for being linked into network access equipment, first, intelligence Energy terminal starts promiscuous mode, obtains media access control (Media Access Control, MAC) layer data bag (i.e. this hair First data frame of bright embodiment), the MAC layer packet is parsed, obtains SSID and key, and be linked into by SSID and key Router.
Implement the embodiment of the present invention, integrate multiple decipherment algorithms in intelligent terminal, each solution in the plurality of decipherment algorithm Close algorithm corresponds to a kind of application program, when the first data frame that intelligent terminal for reception to destination application is sent, you can With the corresponding object decryption algorithm of the destination application for obtaining with sending first data frame, and use the object decryption algorithm It is decrypted, obtains network identity and checking is believed, and be linked into network access equipment.This mode can not only realize intelligent end End is linked into network access equipment, can be linked into the network equipment with compatible various application program controlling intelligent terminals, compatibility By force.
Fig. 7 is refer to, is a kind of structural representation of intelligent terminal provided in an embodiment of the present invention, as shown in fig. 7, described Intelligent terminal 1000 can include:At least one processor 1001, such as CPU, at least one communication interface 1003, memory 1004, at least one communication bus 1002.Wherein, communication bus 1002 is used to realize the connection communication between these components.It is logical Letter interface 1003 can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard.Memory 1004 can be High-speed RAM memory or non-labile memory (non-volatile memory), for example, at least a disk Memory.Memory 1004 optionally can also be at least one storage device for being located remotely from aforementioned processor 1001.Such as Fig. 7 It is shown, as operating system, network communication module and journey can be included in a kind of memory 1004 of computer-readable storage medium Sequence instructs.
In the intelligent terminal 1000 shown in Fig. 7, processor 1001 can be used in load store device 1004 journey stored Sequence instructs, and specifically performs following operate:
First data frame is received by the communication interface 1003, and determines to send the intended application of first data frame Program, first data frame include network identity and checking information, and first data frame is to use and the intended application The frame structure that target AES corresponding to program is encrypted;
Object decryption algorithm corresponding with the destination application, the multiple decryption are obtained from multiple decipherment algorithms Each decipherment algorithm in algorithm corresponds to a kind of application program, and the object decryption algorithm is the inverse mistake of the target AES Journey;
First data frame is decrypted using the object decryption algorithm, obtains the network identity and the checking letter Breath;
Network access equipment is linked into by the network identity and the checking information.
Optionally, the frame head of first data frame includes multicast address, and the multicast address includes the first information, institute State the first information be used for identify transmission first data frame destination application;The processor 1001 loads described program Instruction performs following operation to determine to send the destination application of first data frame:
Using application program corresponding with the first information in the multicast address as the target for sending first data frame Application program.
Optionally, the multicast address includes the second information, and second information carries the network identity and described Checking information;
The execution of the processor 1001 described program instruction performs following operation to use the object decryption algorithm to institute The decryption of the first data frame is stated, obtains the network identity and the checking information:
The second information described in the multicast address is decrypted using the object decryption algorithm, obtains the network identity With the checking information.
Optionally, the processor 1001 loads described program instruction and performs following operation to determine to send first number According to the destination application of frame:
At least one second data frame is obtained, the reception time of at least one second data frame is in first data Before the reception time of frame, and at least one second data frame is the frame structure that the destination application is sent;
Target data frame, the length of the data division of the target data frame are searched from least one second data frame Application program corresponding to degree is one;
Counted using application program corresponding to the length of the data division of the target data frame as sending described first According to the destination application of frame.
Optionally, the processor 1001 loads described program instruction and performs following operation with from described at least one second Target data frame is searched in data frame:
According to the reception time order and function of at least one second data frame order, by least one second data frame Sequence, obtain sequence of data frames;
The second data frame is obtained from the sequence of data frames successively, and judge the data division of second data frame The quantity of application program corresponding to length;
If the quantity of application program corresponding to the length of the data division of second data frame is one, by described the Two data frames are as target data frame;
If application program corresponding to the length of the data division of second data frame is at least two, obtain described Next second data frame of second data frame described in sequence of data frames, should corresponding to the length of data division until finding The second data frame for being one with the quantity of program, and be one by the quantity of application program corresponding to the length of the data division The second individual data frame is as target data frame.
The specific execution step of each component refer to the description of Fig. 2 embodiments in the present embodiment, will not be repeated here.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (10)

  1. A kind of 1. equipment cut-in method, it is characterised in that including:
    The first data frame is received, and determines to send the destination application of first data frame, first data frame includes Network identity and checking information, first data frame are to be added using target AES corresponding with the destination application Close frame structure;
    Object decryption algorithm corresponding with the destination application, the multiple decipherment algorithm are obtained from multiple decipherment algorithms In each decipherment algorithm correspond to a kind of application program, the object decryption algorithm is the inverse process of the target AES;
    First data frame is decrypted using the object decryption algorithm, obtains the network identity and the checking information;
    Network access equipment is linked into by the network identity and the checking information.
  2. 2. the method as described in claim 1, it is characterised in that the frame head of first data frame includes multicast address, institute Stating multicast address includes the first information, and the first information is used to identify the intended application journey for sending first data frame Sequence;
    The destination application for determining to send first data frame, including:
    Using application program corresponding with the first information described in the multicast address as the target for sending first data frame Application program.
  3. 3. method as claimed in claim 2, it is characterised in that the multicast address includes the second information, second letter The network identity and the checking information are carried in breath;
    It is described that first data frame is decrypted using the object decryption algorithm, obtain the network identity and the checking letter Breath, including:
    The second information described in the multicast address is decrypted using the object decryption algorithm, obtains the network identity and institute State checking information.
  4. 4. the method as described in claim 1, it is characterised in that the intended application journey for determining to send first data frame Sequence, including:
    At least one second data frame is obtained, the reception time of at least one second data frame is in first data frame Before receiving the time, and at least one second data frame is the frame structure that the destination application is sent;
    Target data frame, the length pair of the data division of the target data frame are searched from least one second data frame The application program answered is one;
    Using application program corresponding to the length of the data division of the target data frame as transmission first data frame Destination application.
  5. 5. method as claimed in claim 4, it is characterised in that described to search target from least one second data frame Data frame, including:
    According to the reception time order and function of at least one second data frame order, at least one second data frame is arranged Sequence, obtain sequence of data frames;
    The second data frame is obtained from the sequence of data frames successively, and judges the length of the data division of second data frame The quantity of corresponding application program;
    If the quantity of application program corresponding to the length of the data division of second data frame is one, described second is counted According to frame as target data frame;
    If application program corresponding to the length of the data division of second data frame is at least two, obtain in the data Next second data frame of second data frame described in frame sequence, journey is applied corresponding to the length of data division until finding The quantity of sequence is second data frame of one, and is one by the quantity of application program corresponding to the length of the data division Second data frame is as target data frame.
  6. A kind of 6. intelligent terminal, it is characterised in that including:
    Communication interface, for being communicated with external equipment;
    Storage medium, have program stored therein instruction, and described program instruction is suitable to be loaded by the processor;
    Processor, instruct for loading described program and perform following operation:
    First data frame is received by the communication interface, and determines to send the destination application of first data frame, institute Stating the first data frame includes network identity and checking information, and first data frame is using corresponding with the destination application Target AES encryption frame structure;
    Object decryption algorithm corresponding with the destination application, the multiple decipherment algorithm are obtained from multiple decipherment algorithms In each decipherment algorithm correspond to a kind of application program, the object decryption algorithm is the inverse process of the target AES;
    First data frame is decrypted using the object decryption algorithm, obtains the network identity and the checking information;
    Network access equipment is linked into by the network identity and the checking information.
  7. 7. intelligent terminal as claimed in claim 6, it is characterised in that the frame head of first data frame is with including multicast Location, the multicast address include the first information, and the target that the first information is used to identify transmission first data frame should Use program;The processor loading described program instruction performs following operation to determine to send that the target of first data frame should Use program:
    Using application program corresponding with the first information described in the multicast address as the target for sending first data frame Application program.
  8. 8. intelligent terminal as claimed in claim 7, it is characterised in that the multicast address includes the second information, and described The network identity and the checking information are carried in two information;
    The computing device described program instruction performs following operation to be counted using the object decryption algorithm to described first Decrypted according to frame, obtain the network identity and the checking information:
    The second information described in the multicast address is decrypted using the object decryption algorithm, obtains the network identity and institute State checking information.
  9. 9. intelligent terminal as claimed in claim 6, it is characterised in that the processor loading described program instruction performs following Operate to determine to send the destination application of first data frame:
    At least one second data frame is obtained, the reception time of at least one second data frame is in first data frame Before receiving the time, and at least one second data frame is the frame structure that the destination application is sent;
    Target data frame, the length pair of the data division of the target data frame are searched from least one second data frame The application program answered is one;
    Using application program corresponding to the length of the data division of the target data frame as transmission first data frame Destination application.
  10. 10. intelligent terminal as claimed in claim 9, it is characterised in that processor loading described program instruction perform with Lower operation is with the lookup target data frame from least one second data frame:
    According to the reception time order and function of at least one second data frame order, at least one second data frame is arranged Sequence, obtain sequence of data frames;
    The second data frame is obtained from the sequence of data frames successively, and judges the length of the data division of second data frame The quantity of corresponding application program;
    If the quantity of application program corresponding to the length of the data division of second data frame is one, described second is counted According to frame as target data frame;
    If application program corresponding to the length of the data division of second data frame is at least two, obtain in the data Next second data frame of second data frame described in frame sequence, journey is applied corresponding to the length of data division until finding The quantity of sequence is second data frame of one, and is one by the quantity of application program corresponding to the length of the data division Second data frame is as target data frame.
CN201710632862.XA 2017-07-28 2017-07-28 Equipment access method and intelligent terminal Active CN107548058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710632862.XA CN107548058B (en) 2017-07-28 2017-07-28 Equipment access method and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710632862.XA CN107548058B (en) 2017-07-28 2017-07-28 Equipment access method and intelligent terminal

Publications (2)

Publication Number Publication Date
CN107548058A true CN107548058A (en) 2018-01-05
CN107548058B CN107548058B (en) 2020-05-19

Family

ID=60970455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710632862.XA Active CN107548058B (en) 2017-07-28 2017-07-28 Equipment access method and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107548058B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616453A (en) * 2018-04-20 2018-10-02 联想(北京)有限公司 A kind of methods, devices and systems for the network equipment
CN113163395A (en) * 2020-01-07 2021-07-23 阿里巴巴集团控股有限公司 Method and device for communication between terminal and server and key configuration

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140051423A1 (en) * 2012-08-15 2014-02-20 Eseye Limited Multi IMSI System and Method
WO2014102523A2 (en) * 2012-12-31 2014-07-03 British Telecommunications Public Limited Company Processing device and method of operation thereof
CN104580180A (en) * 2014-12-26 2015-04-29 北京佳月隶平软件有限公司 Data encryption method, data decryption method and devices
CN104869569A (en) * 2015-03-31 2015-08-26 小米科技有限责任公司 Network permission control method and apparatus of application program
CN106455001A (en) * 2016-11-30 2017-02-22 青岛海尔科技有限公司 Method and device for configuring WIFI module
CN106572469A (en) * 2015-10-13 2017-04-19 中国电信股份有限公司 WiFi terminal network access method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140051423A1 (en) * 2012-08-15 2014-02-20 Eseye Limited Multi IMSI System and Method
WO2014102523A2 (en) * 2012-12-31 2014-07-03 British Telecommunications Public Limited Company Processing device and method of operation thereof
CN104580180A (en) * 2014-12-26 2015-04-29 北京佳月隶平软件有限公司 Data encryption method, data decryption method and devices
CN104869569A (en) * 2015-03-31 2015-08-26 小米科技有限责任公司 Network permission control method and apparatus of application program
CN106572469A (en) * 2015-10-13 2017-04-19 中国电信股份有限公司 WiFi terminal network access method and system
CN106455001A (en) * 2016-11-30 2017-02-22 青岛海尔科技有限公司 Method and device for configuring WIFI module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616453A (en) * 2018-04-20 2018-10-02 联想(北京)有限公司 A kind of methods, devices and systems for the network equipment
CN113163395A (en) * 2020-01-07 2021-07-23 阿里巴巴集团控股有限公司 Method and device for communication between terminal and server and key configuration

Also Published As

Publication number Publication date
CN107548058B (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN105050083B (en) A kind of network collocating method and system of smart machine
CN108476060B (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
CN104168625B (en) Smart machine and its method and wireless routing device for being connected to wireless routing device
CN104618988B (en) Smart machine method for network access and device
CN106535288A (en) Method for sending and obtaining wifi networking information and corresponding apparatus
CN106254147B (en) It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal
CN105100213B (en) Apparatus bound method and device
CN103430485B (en) The collocation method of Wireless LAN devices, relevant device and system
CN103338475B (en) The method of testing of WAP (wireless access point) and device, test terminal
CN103491648B (en) Communication means and system based on WIFI
CN104581647A (en) Network access method and device of intelligent equipment
CN111615123A (en) Method, device and storage medium for intelligent device network distribution
CN104837179B (en) A kind of method and device showing hotspot equipment manufacturer information
CN105306414A (en) Port vulnerability detection method, device and system
CN104619040A (en) Method and system for quickly connecting WIFI equipment
CN108040355A (en) Method for network access and system
CN104038925A (en) COMMUNICATION APPARATUS and COMMUNICATION SYSTEM
CN106534957A (en) Intelligent electric appliance network setting method and system
CN110149678A (en) Distribution methods, devices and systems
CN104270204A (en) Testing method and testing equipment for wireless communication module
CN107749799A (en) Distribution method, apparatus, system and the computer-readable recording medium of home appliance
CN100495960C (en) Setting method for wireless communication device, computer peripheral equipment, and information processor
US10986677B2 (en) Method and apparatus for connecting to access point in WLAN network
CN107548058A (en) Equipment cut-in method and intelligent terminal
CN104853447B (en) A kind of data information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant