CN107342994A - Intelligent sound authentication method, intelligent sound, terminal device and system - Google Patents

Intelligent sound authentication method, intelligent sound, terminal device and system Download PDF

Info

Publication number
CN107342994A
CN107342994A CN201710521818.1A CN201710521818A CN107342994A CN 107342994 A CN107342994 A CN 107342994A CN 201710521818 A CN201710521818 A CN 201710521818A CN 107342994 A CN107342994 A CN 107342994A
Authority
CN
China
Prior art keywords
intelligent sound
information
terminal device
terminal
local terminal
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.)
Pending
Application number
CN201710521818.1A
Other languages
Chinese (zh)
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201710521818.1A priority Critical patent/CN107342994A/en
Publication of CN107342994A publication Critical patent/CN107342994A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0625Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation with splitting of the data block into left and right halves, e.g. Feistel based algorithms, DES, FEAL, IDEA or KASUMI
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4535Network directories; Name-to-address mapping using an address exchange platform which sets up a session between two nodes, e.g. rendezvous servers, session initiation protocols [SIP] registrars or H.323 gatekeepers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of intelligent sound authentication method, intelligent sound, terminal device and system.Wherein, intelligent sound authentication method includes:Sent to the LAN where intelligent sound and meet local terminal and the first information of the first rule of intelligent sound agreement;Intelligent sound is received it is determined that the first information meets the IP address and the second information of the intelligent sound sent after the first rule;If the second information meets local terminal and the Second Rule of intelligent sound agreement, according to the IP address of intelligent sound, facility information request message is sent to intelligent sound;Receive the facility information for the intelligent sound that intelligent sound returns according to facility information request message;Voice authentication information is obtained from intelligent sound server, and voice authentication information is sent to intelligent sound, so that intelligent sound is authenticated.Method provided by the invention can accurately obtain the IP address of intelligent sound.

Description

Intelligent sound authentication method, intelligent sound, terminal device and system
Technical field
The present invention relates to intelligent sound technical field, more particularly to a kind of intelligent sound authentication method, intelligent sound, terminal Equipment and system.
Background technology
With the development of artificial intelligence technology, traditional sound equipment can access internet, develop into point of Internet service Send out platform.User carries out speech recognition on intelligent sound by phonetic order, and then is rapidly completed and broadcasts song online, preengages and cry The service such as car, take-away is made a reservation, express delivery places an order, household services, road conditions real-time broadcasting.
Intelligent sound in use, after needing login intelligent sound server and certification, could carry out speech recognition first.It is existing Have in technology, intelligent sound first logs into voice server and the process of certification is:Mobile phone is built according to the IP address of intelligent sound Vertical communication connection between mobile phone and intelligent sound.Then, based on communication connection, the facility information of intelligent sound is obtained;And then Intelligent sound server is logged in by facility information on mobile phone, to obtain authentication information;Intelligent sound server is returned Authentication information is sent to intelligent sound, and the authentication information that intelligent sound is returned by mobile phone logs in intelligent sound server and and intelligence Energy server interacts, so as to realize that intelligent sound identifies.
, it is necessary to know the IP address of intelligent sound in advance in existing intelligent sound authentication method, could establish mobile phone with Communication connection between intelligent sound;But mobile phone itself can not accurately obtain the IP address of intelligent sound, it is accurate to lead to not Connect intelligent sound.
The content of the invention
The many aspects of the present invention provide a kind of intelligent sound authentication method, intelligent sound, terminal device and system, to The IP address of intelligent sound, the communication link then established between terminal device and intelligent sound are accurately known by terminal device Connect, to perform the authentication operation of follow-up intelligent sound.
The present invention provides a kind of intelligent sound authentication method, including:
To where intelligent sound LAN send broadcast data packet, the broadcast data packet include meet local terminal with it is described The first information of first rule of intelligent sound agreement;
The intelligent sound is received it is determined that the first information, which meets the equipment that is sent after first rule, confirms number According to bag, the equipment confirms that packet includes the IP address and the second information of the intelligent sound;
If second information meets local terminal and the Second Rule of intelligent sound agreement, according to the intelligent sound IP address, to the intelligent sound send facility information request message;
Receive the facility information for the intelligent sound that the intelligent sound returns according to the facility information request message;
According to the facility information of the intelligent sound, voice authentication information is obtained from intelligent sound server, and by described in Voice authentication information is sent to the intelligent sound, so that the intelligent sound is authenticated.
Alternatively, the IP address according to the intelligent sound, send facility information request to the intelligent sound and disappear Before breath, methods described also includes:
From the equipment confirm packet in, parse the intelligent sound IP address and encryption after second letter Breath;
The second information after the encryption according to the decryption secret key pair that local terminal is arranged with the intelligent sound is decrypted, with Obtain second information;
By second information compared with the Second Rule, to determine that second information meets second rule Then;
The equipment for receiving the intelligent sound that the intelligent sound returns according to the facility information request message Information, including:
Receive the facility information after the encryption that the intelligent sound is returned according to the facility information request message;
Facility information after the encryption according to the decryption secret key pair that local terminal is arranged with the intelligent sound is decrypted, with Obtain the facility information of the intelligent sound.
Alternatively, the IP address according to the intelligent sound, send facility information request to the intelligent sound and disappear Breath, including:
According to the IP address of the intelligent sound, the communication connection established between local terminal and the intelligent sound;
Based on the communication connection between local terminal and the intelligent sound, send facility information request to the intelligent sound and disappear Breath.
Alternatively, it is described to send the voice authentication information to the intelligent sound, so that the intelligent sound is carried out Certification, including:
The voice authentication information is encrypted according to the encryption key that local terminal and the intelligent sound are arranged;
Based on the communication connection between local terminal and the intelligent sound, the voice authentication information after encryption is sent to institute Intelligent sound is stated, so that the intelligent sound is authenticated.
Alternatively, the IP address according to the intelligent sound, the communication established between local terminal and the intelligent sound Connection, including:
Localling create ServerSocket;
According to the IP address of the intelligent sound, the client established by the ServerSocket and intelligent sound Socket, the communication connection established between local terminal and the intelligent sound.
Alternatively, the LAN to where intelligent sound sends broadcast data packet, including:
The data packet format supported according to UDP, processing is packaged to the first information, to obtain The broadcast data packet;
The broadcast data packet is sent to the LAN where the intelligent sound.
The present invention also provides a kind of intelligent sound authentication method, including:
The broadcast data packet that receiving terminal apparatus is sent, the broadcast data packet include the first information;
If the first information meets the terminal device and the first rule of local terminal agreement, sent to the terminal device Equipment confirms packet, and the equipment confirms that packet includes the IP address of local terminal and meet local terminal to arrange with the terminal device Second Rule the second information;
The terminal device is received it is determined that second information meets after the Second Rule according to the IP of the local terminal The facility information request message that address is sent;
According to the facility information request message, to the facility information of terminal device transmission local terminal;
Receive the voice authentication information that the terminal device returns, the voice authentication information be the terminal device according to The facility information of the local terminal obtains from intelligent sound server;
According to the voice authentication information, log in the intelligent sound server and be authenticated.
Alternatively, send the IP address of local terminal described to the terminal device and meet local terminal and the terminal device about Before second information of fixed Second Rule, methods described also includes:
From the broadcast data packet, the first information after the encryption is parsed;
The first information after the encryption according to the decryption secret key pair that local terminal is arranged with the terminal device is decrypted, with Obtain the first information;
By the first information compared with first rule, to determine that the first information meets first rule Then;
It is described that the facility information of local terminal is sent to the terminal device according to the facility information request message, including:
According to the facility information request message, described in the encryption key encryption arranged using local terminal and the terminal device Facility information;
Based on the communication connection between local terminal and the terminal device, the equipment after encryption is sent to the terminal device and is believed Breath.
Alternatively, it is described to receive the terminal device it is determined that second information meets after the Second Rule according to institute The facility information request message that the IP address of local terminal is sent is stated, including:
Based on the communication connection between local terminal and the terminal device, the terminal device is received it is determined that second letter Breath meets the facility information request message sent after the Second Rule, the communication link between the local terminal and the terminal device Connect is that the terminal device is established according to the IP address of local terminal.
Alternatively, it is described according to the voice authentication information, log in the intelligent sound server and be authenticated, including:
Voice authentication information after the encryption according to the decryption secret key pair that local terminal is arranged with the terminal device is solved It is close, to obtain the voice authentication information;
According to the voice authentication information, log in the intelligent sound server and be authenticated.
Alternatively, it is described to send equipment confirmation packet to the terminal device, including:
The data packet format supported according to User Datagram Protocol, IP address and second information to the local terminal are entered Row encapsulation process, confirm packet to obtain the equipment;
The equipment, which is sent, to the terminal device confirms packet.
The present invention also provides a kind of terminal device, including:
First terminal sending module, for sending broadcast data packet, the broadcast number to the LAN where intelligent sound Include meeting local terminal and the first information of the first rule of intelligent sound agreement according to bag;
First terminal receiving module, for receiving the intelligent sound it is determined that the first information meets first rule The equipment then sent afterwards confirms packet, and the equipment confirms that packet includes the IP address and the second letter of the intelligent sound Breath;
Second terminal sending module, if meeting local terminal and the second rule of intelligent sound agreement for second information Then, then facility information request message is sent to the intelligent sound according to the IP address of the intelligent sound;
Second terminal receiving module, the institute returned for receiving the intelligent sound according to the facility information request message State the facility information of intelligent sound;
Third terminal sending module, for the facility information according to the intelligent sound, obtained from intelligent sound server Voice authentication information, and the voice authentication information is sent to the intelligent sound, so that the intelligent sound is authenticated.
The present invention also provides a kind of intelligent sound, including:
First sound equipment receiving module, the broadcast data packet sent for receiving terminal apparatus, the broadcast data packet include The first information;
First sound equipment sending module, if meeting the terminal device and the first rule of local terminal agreement for the first information Then, send equipment to the terminal device and confirm packet, the equipment confirms that packet includes the IP address of local terminal and met Second information of local terminal and the Second Rule of terminal device agreement;
Second sound equipment receiving module, for receiving the terminal device it is determined that second information meets second rule The facility information request message sent after then according to the IP address of the local terminal;
Second sound equipment sending module, for according to the facility information request message, local terminal to be sent to the terminal device Facility information;
3rd sound equipment receiving module, the voice authentication information returned for receiving the terminal device, the voice authentication Information is that the terminal device obtains according to the facility information of the local terminal from intelligent sound server;
Authentication module, for according to the voice authentication information, logging in the intelligent sound server and being authenticated.
The present invention also provides a kind of intelligent sound Verification System, including:
Terminal device and intelligent sound.
In the present invention, terminal device and the rule information during intelligent sound agreement broadcast communication, it is wide by judging Broadcast whether the information entrained by the packet in communication meets the rule of agreement, and then identify intelligent sound and obtain intelligent sound Loud IP address, then according to the IP address of intelligent sound, the facility information of intelligent sound is obtained, according to the equipment of intelligent sound Information obtains voice authentication information from voice authentication server, voice authentication information is sent to intelligent sound so that intelligent sound Sound is authenticated based on voice authentication information.As can be seen here, in the present invention, terminal device can accurately know intelligent sound IP address, the communication connection then established between terminal device and intelligent sound, solves the authentication question of intelligent sound.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the present invention, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic flow sheet for intelligent sound authentication method that one embodiment of the invention provides;
Fig. 2 is a kind of schematic flow sheet for intelligent sound authentication method that further embodiment of this invention provides;
Fig. 3 is a kind of function structure chart for terminal device that further embodiment of this invention provides;
Fig. 4 is a kind of function structure chart for intelligent sound that further embodiment of this invention provides;
Fig. 5 is a kind of structure chart for intelligent sound Verification System that further embodiment of this invention provides;
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the specific embodiment of the invention and Technical solution of the present invention is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the present invention one Section Example, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out under the premise of creative work the every other embodiment obtained, belong to the scope of protection of the invention.
Below in conjunction with accompanying drawing, the technical scheme that various embodiments of the present invention provide is described in detail.
Fig. 1 is a kind of schematic flow sheet for intelligent sound authentication method that one embodiment of the invention provides.As shown in figure 1, This method comprises the following steps.
S101:Broadcast data packet is sent to the LAN where intelligent sound, broadcast data packet includes meeting local terminal and intelligence The first information of first rule of energy sound equipment agreement.
The executive agent of the present embodiment is terminal device, such as smart mobile phone, computer etc..When user uses intelligent sound first During loud speech identifying function, broadcast data packet can be sent to the LAN where intelligent sound first.Wherein, broadcast data The network segment and IP address for including the LAN where the IP address of local terminal, the first information, intelligent sound obtain instruction.It is optional Ground, the network segment of the LAN where intelligent sound with subnet mask can obtain with computing by the P address of intelligent sound.
In general, the smart machine in LAN can receive broadcast data packet.Smart machine in LAN It is the equipment including intelligent sound.
Wherein, the first information is to meet local terminal and the information of the first rule of intelligent sound agreement.The first information is used for just Step obtains the IP address of intelligent sound.
It is alternatively possible to benchmark rule base is established respectively in local terminal and intelligent sound end, what two benchmark rule bases included Treaty rule is identical.The first rule is separately added into two benchmark rule bases.For local terminal, in broadcast data packet One information meets the first rule in the benchmark rule base of local terminal;For intelligent sound end, first in broadcast data packet Information meets the first rule in the benchmark rule base at intelligent sound end.
Alternatively, in the first rule of local terminal and intelligent sound agreement can be due up information format, the information of agreement MD5 values of information hold, arranged etc..
After intelligent sound receives the broadcast data packet of terminal device transmission, the first letter can be obtained from broadcast data packet Breath, and obtain the rule of the first information.Then, judge whether the first information meets the by benchmark rule base in intelligent sound One rule.
If it is determined that the first information meets the first rule, then step S102 is performed;If not meeting, judge not deposit in LAN In the intelligent sound that needs connect, then terminate this operation.
It should be noted that in LAN not with local terminal agreement the first information met first rule other set For standby, after broadcast data packet is received, it can not judge whether the rule of the first information is consistent with the first rule, and then, The IP address of the intelligent sound of non-required connection would not be got.
S102:Intelligent sound is received it is determined that the first information, which meets the equipment that is sent after the first rule, confirms packet, if The standby IP address and the second information for confirming packet and including intelligent sound.
If intelligent sound judges that the rule of the first information meets the first rule, can be obtained according to IP address in broadcast data packet Instruction and the IP address of terminal device, send equipment to terminal device and confirm packet.Wherein, equipment confirms that packet includes The IP address of intelligent sound and the second information.Whether the IP address that the second information is used to further judge to obtain, which needs, connects The IP address of intelligent sound.
Terminal device can be confirmed in packet after the equipment for receiving intelligent sound transmission confirms packet with slave unit Parse the IP address and the second information of intelligent sound.Then judge whether the second information meets local terminal and intelligent sound agreement Second Rule.
It is similar with the first rule, the second of agreement can be separately added into the benchmark rule base at local terminal Yu smart machine end Rule.For local terminal, equipment confirms that the second information in packet meets the Second Rule in the benchmark rule base of local terminal; For intelligent sound end, equipment confirms that the second information in packet meets the in the benchmark rule base at intelligent sound end Two rules.
After the equipment that local terminal receives intelligent sound transmission confirms packet, it can confirm to obtain in packet with slave unit Second information, and obtain the rule of the second information.Then, judge whether the second information meets the by the benchmark rule base of local terminal Two rules.
In view of that there may be the intelligent sound of non-required connection in LAN, can also be parsed from broadcast data packet One information, and judge that the first information meets the first rule, and then the IP address of the intelligent sound to the non-required connection of local terminal transmission And other information.At this point it is possible to further judge whether other information meets Second Rule.In general, non-required connection The other information that intelligent sound is sent does not meet Second Rule, and then avoids being connected to the intelligent sound of non-required connection.
If slave unit confirms that obtaining the second information in packet meets Second Rule, it is meant that the IP address of acquisition is needs The IP address of the intelligent sound of connection, then continue executing with step S103;If not meeting, the IP address obtained in LAN is judged The IP address of the intelligent sound of connection is not required to, then terminates this operation.
S103:If the second information meets local terminal and the Second Rule of intelligent sound agreement, according to the IP of intelligent sound Location, facility information request message is sent to intelligent sound.
S104:Receive the facility information for the intelligent sound that intelligent sound returns according to facility information request message.
S105:According to the facility information of intelligent sound, voice authentication information is obtained from intelligent sound server, and by voice Authentication information is sent to intelligent sound, so that intelligent sound is authenticated.
Wherein, facility information request message is used for the facility information for obtaining intelligent sound.Intelligent sound is receiving local terminal After the facility information request message of transmission, the facility information of intelligent sound is can return to local terminal.
Alternatively, the facility information of intelligent sound includes equipment unique encodings (identification, ID), distributed industry The information such as business network (Distributed Service Network, DSN), challenge code (Challenge Code).
Local terminal can obtain after the facility information of intelligent sound is received according to facility information from intelligent sound server The voice authentication information of corresponding device information is taken, and the voice authentication information of corresponding device information is sent to intelligent sound.Enter And intelligent sound according to voice authentication information registration intelligent sound server and can be authenticated.
Because voice authentication information is obtained according to the facility information of intelligent sound, in general, intelligent sound can be with According to the success of voice authentication authentification of message, then obtain and enter token (Access Token), the intelligent sound of intelligent sound is known Other function mainly passes through Access Token and server interaction, to carry out speech recognition.
In the present embodiment, local terminal and the rule information during intelligent sound agreement broadcast communication, by judging that broadcast is logical Whether the information entrained by packet in letter meets the rule of agreement, and then identifies intelligent sound and obtain intelligent sound IP address, then according to the IP address of intelligent sound, the facility information of intelligent sound is obtained, according to the facility information of intelligent sound Voice authentication information is obtained from voice authentication server, voice authentication information is sent to intelligent sound so that intelligent sound base It is authenticated in voice authentication information.As can be seen here, in the present embodiment, local terminal be with can accurately knowing the IP of intelligent sound Location, the communication connection then established between local terminal and intelligent sound, solves the authentication question of intelligent sound.
In above-described embodiment or following embodiments, according to the IP address of intelligent sound, equipment letter is sent to intelligent sound Before breath request message, it is possible to determine that the second information meets local terminal and the Second Rule of intelligent sound agreement.
First slave unit confirm packet in, parse intelligent sound IP address and encryption after the second information.
It is alternatively possible to confirm the packaged type of packet according to equipment, determine that analyzing device confirms the parsing of packet Mode.
Then, the analysis mode of packet is confirmed according to equipment, after the IP address and the encryption that parse intelligent sound Second information.Alternatively, encrypted in intelligent sound end, the encryption key that the second information is arranged through local terminal and intelligent sound.
Then, the second information after the decryption secret key pair encryption arranged according to local terminal with intelligent sound is decrypted, to obtain Obtain the second information.In the present embodiment, local terminal and the encryption key and decryption key of smart machine agreement can be symmetrical keys It can be asymmetric key.Preferably, local terminal and the encryption key and decryption key of intelligent sound agreement are symmetrical keys, i.e., originally Hold and go to encrypt and decrypt the second information using same key with intelligent sound.
In one example, the second information is " A ", secret according to local terminal and encryption that terminal device is arranged at intelligent sound end Key:Suffix " 123 " is added, is encrypted, the second information " A123 " after being encrypted with generation.Received " A123 " in terminal device Afterwards, the decryption key that can be arranged according to local terminal and intelligent sound:Suffix " 123 " is deleted, is decrypted, to generate the second information “123”。
Alternatively, when the IP address of the non-required connection of the IP address of acquisition, in other words, the equipment of the second information is returned to simultaneously During the intelligent sound of non-required connection, it is believed that encryption key of second information without local terminal and intelligent sound agreement is encrypted. So, local terminal may not parse the second information after encryption when receiving equipment confirmation packet;Or parse After the second information after encryption, the second information, or solution can not be decrypted according to the decryption key that local terminal and intelligent sound are arranged The close information to make mistake, so as to avoid the IP address for being connected to non-required connection.
Then, by the second information decrypted compared with Second Rule, to determine that the second information meets Second Rule. Certainly, if can not decrypt the second information or decrypt the information to make mistake, the information decrypted does not meet Second Rule.
Alternatively, in order to improve the security of facility information, make it be not easy to crack, receive intelligent sound according to facility information The facility information for the intelligent sound that request message returns, including:Receive what intelligent sound returned according to facility information request message Facility information after encryption;Facility information after the decryption secret key pair encryption arranged according to local terminal with intelligent sound is decrypted, To obtain the facility information of intelligent sound.It is, the encryption key that intelligent sound can arrange according to intelligent sound and local terminal Encryption device information, the facility information returned again to after encryption.And then local terminal can receive the facility information after encryption.
Then, the facility information after the decryption secret key pair encryption arranged according to local terminal with intelligent sound is decrypted, with To the facility information of intelligent sound.Wherein, the decryption key and encryption key that local terminal is arranged with intelligent sound can be symmetrical secret Key can also be asymmetric key.Preferably, local terminal and the encryption key and decryption key of intelligent sound agreement are symmetrical keys, I.e. local terminal goes to encrypt and decrypt facility information with intelligent sound using same key.
In the present embodiment, the second information after the decryption secret key pair encryption arranged according to local terminal with intelligent sound is solved It is close, to obtain the second information;And by the second information compared with Second Rule, to determine that the second information meets the second rule Then, and then by way of the second information is encrypted and decrypted, judge whether the second information meets Second Rule, meanwhile, It is not easy to be cracked during the second information transfer or steals.
In above-described embodiment or following embodiments, according to the IP address of intelligent sound, equipment letter is sent to intelligent sound Request message is ceased, including:According to the IP address of intelligent sound, the communication connection established between local terminal and intelligent sound;Based on this Communication connection between end and the intelligent sound, facility information request message is sent to intelligent sound.
Alternatively, it is possible, firstly, to create TCP ServerSockets (TCP server socket) thread, and TCP is passed through Server socket threads are localling create client socket, it is alternatively possible to call socket () function creation client Hold socket.Similarly, intelligent sound can also call socket () function wound by TCP server socket threads Build ServerSocket.
Then, according to the IP address of intelligent sound, the service end set established by client socket and intelligent sound Word is connect, the communication connection established between local terminal and intelligent sound.
For intelligent sound (service end), after ServerSocket has been created, it can call bind () function will Server side socket word address (including local host address and local port address) contacts with the server side socket font size created Get up, i.e., assign name to socket, to specify local half correlation.Then, by call accept () function establish local terminal with TCP connections between intelligent sound.
Wherein, accept () function is used to make intelligent sound wait the actual connection from terminal device process.accept The call format of () function is SOCKET PASCAL FAR accept (SOCKET s, struct sockaddr FAR* addr,int FAR*addrlen)。
Parameter s is ServerSocket descriptor, should first be called before the parameter of accept () calling is used as listen().Addr points to client socket address (including terminal device IP address and terminal device port address) structure Pointer, for receive connection entity address.The address family that addr definite form is established when being created by ServerSocket Determine.Addrlen is the length (byte number) of client socket address.If do not had, an error has occurred, and accept () returns to one The value of individual SOCKET types, represents the descriptor of client socket received.Otherwise return value INVALID_SOCKET.
For terminal device (client), after client socket has been created, connect () function is called to build Vertical TCP connections between local terminal and intelligent sound.Connect () call format is int PASCAL FAR connect (SOCKET s,const struct sockaddr FAR*name,int namelen)。
Parameter s is intended to establish the client socket descriptor of connection.Parameter name is pointed out with illustrating ServerSocket The pointer of location (including intelligent sound IP address and intelligent sound port address) structure.ServerSocket address size by Namelen explanations.If do not had, an error has occurred, and connect () returns to 0.Otherwise return value SOCKET_ERROR.
It is exactly the TCP3 process shaken hands to establish the process that TCP connects by accept () function and connect ().
After the connections of the TCP between local terminal and intelligent sound are established, it can be connected based on the TCP between local terminal and intelligent sound Connect, facility information request message is sent to intelligent sound.Intelligent sound is receiving intelligent sound according to facility information request message Afterwards, the facility information for the intelligent sound that can be returned.
, can also be to voice in order to improve the security of voice authentication information in above-described embodiment or following embodiments Authentication information is encrypted.Alternatively, voice authentication information is sent to intelligent sound, so that intelligent sound is authenticated, bag Include:Voice authentication information is encrypted according to the encryption key that local terminal and intelligent sound are arranged;Based between local terminal and intelligent sound Communication connection, the voice authentication information after encryption is sent to intelligent sound, so that intelligent sound is authenticated.
Alternatively, the encryption key that the decryption key of local terminal and intelligent sound agreement and local terminal are arranged with intelligent sound can be with It is that symmetrical key can also be asymmetric key.Preferably, local terminal is arranged with intelligent sound encryption key and decryption key are Symmetrical key, i.e. local terminal go encryption and decrypted voice authentication information with intelligent sound using same key.For example, can root Voice authentication information is encrypted according to data encryption standards (Data Encryption Standard, DES).Correspondingly, intelligent sound Pass through the voice authentication information after DES decryption encryptions.
In the present embodiment, the encryption key for encrypting voice authentication information can be with the encryption for encryption device information Key is identical, can also be different.
, can be based on the company created by socket between local terminal and intelligent sound after voice authentication information is encrypted Connect, the voice authentication information after encryption is sent to intelligent sound.
In an optional embodiment, according to the facility information of intelligent sound, obtain voice from intelligent sound server and recognize Information is demonstrate,proved, including:According to the facility information of intelligent sound, the login page of intelligent sound server is jumped to;According to logging in The username and password of page input, logs in intelligent sound server;Receive the voice authentication letter that intelligent sound server is sent Breath.
It is alternatively possible to according to the facility information of intelligent sound, jumped to by the browser installed on the terminal device The login page of intelligent sound server.Then, the username and password of corresponding intelligent sound is inputted on login page, so as to Log in intelligent sound server.Intelligent sound server can send voice authentication information to terminal device.And then terminal device connects Receive the voice authentication information that intelligent sound server returns.Alternatively, voice authentication information can include but is not limited to authentication code, Client unique encodings (Clinet ID), reconnection URL (URL) etc..
Alternatively, broadcast data packet is sent to the LAN where intelligent sound, including:According to UDP (UDP) data packet format supported, processing is packaged to the first information, to obtain broadcast data packet;Where to intelligent sound LAN send broadcast data packet.
It is alternatively possible to create search (search) thread first, search thread creation user datagrams are then based on Agreement socket (UDP socket).Then, by UDP socket, using the network segment of the LAN where intelligent sound as wide Address is broadcast, udp broadcast packet is sent to broadcast address.
Alternatively, the IP address of intelligent sound and the second information can also be supported according to UDP (UDP) Data packet format, processing is packaged, confirms packet to obtain equipment.
Wherein, udp protocol is a kind of connectionless agreement, and main function is that network traffic data is compressed into packet Form.UDP is a stateless host-host protocol, so it compares comparatively fast when transmitting data;Compared to by http agreements or The mode of person's Transmission Control Protocol transmission packet, can effectively improve data transmission efficiency.
The embodiment of the present invention also provides a kind of intelligent sound authentication method.Fig. 2 is one that further embodiment of this invention provides The schematic flow sheet of kind intelligent sound authentication method, as shown in Fig. 2 this method comprises the following steps.
S201:The broadcast data packet that receiving terminal apparatus is sent, broadcast data packet include the first information.
S202:If the first information meets terminal device and the first rule of local terminal agreement, it is true to send equipment to terminal device Recognize packet, equipment confirms that packet includes the IP address of local terminal and meets the of the Second Rule that local terminal is arranged with terminal device Two information.
S203:Receiving terminal apparatus is it is determined that the second information meets being set according to what the IP address of local terminal was sent after Second Rule Standby information request message.
S204:According to facility information request message, to the facility information of terminal device transmission local terminal.
S205:The voice authentication information that receiving terminal apparatus returns, voice authentication information is terminal device according to local terminal Facility information obtains from intelligent sound server.
S206:According to voice authentication information, log in intelligent sound server and be authenticated.
The executive agent of the present embodiment is intelligent sound., can be by listening port periodically for intelligent sound Listening broadcast packet.Wherein, terminal device transmission during broadcast data packet.
If not hearing broadcast data packet, continue to monitor;If listening to broadcast data packet, receiving terminal apparatus is sent Broadcast data packet.
Then, judge whether the first information in broadcast data packet meets terminal device and the first rule of local terminal agreement. Alternatively, in terminal, the first information meets local terminal and the first rule of terminal device agreement.Based on this, if it is determined that One information does not meet terminal device and the first rule of local terminal agreement, terminates this operation.If it is determined that the first information meets terminal First rule of equipment and local terminal agreement, send equipment to terminal device and confirm packet, equipment confirms that packet includes local terminal IP address and meet local terminal and terminal device agreement Second Rule the second information.
Alternatively, judge that the first information meets the step of terminal device and the first rule of local terminal agreement and judges the second letter The step of breath meets the Second Rule that terminal device is arranged with local terminal is same as the previously described embodiments, and here is omitted.
After terminal device receives equipment confirmation packet, packet can be confirmed with analyzing device, to obtain the IP of local terminal Address and the second information for meeting local terminal and the Second Rule of terminal device agreement.If the judgment mechanism through terminal device, judge Second information does not meet Second Rule, terminates this operation.If it is determined that the second information meets the of terminal device and local terminal agreement Two rules, facility information request message is sent to local terminal.
Terminal device is being received it is determined that the second information meets being set according to what the IP address of local terminal was sent after Second Rule After standby information request message, the facility information of local terminal according to facility information request message, can be sent to terminal device.
Alternatively, the facility information of local terminal includes but is not limited to device id, DSN, Challenge Code etc..
Then, terminal device can receive the facility information of local terminal, and according to the facility information of intelligent sound, from intelligent sound Server obtains voice authentication information, and voice authentication information is sent to intelligent sound.
Alternatively, voice authentication information includes but is not limited to authentication code, Clinet ID, reconnection URL etc..
Then, the voice authentication information that local terminal receiving terminal apparatus returns.And then according to voice authentication information, log in intelligence Energy voice server is authenticated.
Because voice authentication information is obtained according to the facility information of local terminal, in general, local terminal can be according to voice Authentication information certification success, then obtain and enter token (Access Token), and then handed over by AccessToken and server Mutually, to carry out speech recognition.Still optionally further, the AccessToken of acquisition can be preserved, and sends and indicates to terminal device Obtain successful information.
If local terminal does not get Access Token, the information of instruction acquisition failure is sent to terminal device.
In the present embodiment, arrange the rule information in broadcast communication by local terminal and terminal device, by judging that broadcast is logical Whether the information entrained by packet in letter meets predetermined rule, and then identifies the IP of intelligent sound and intelligent sound Address, and then allow terminal device to obtain facility information, and voice authentication information is returned to intelligent sound, make intelligent sound It is authenticated.As can be seen here, in the present embodiment, terminal device can accurately know the IP address of intelligent sound, then establish eventually Communication connection between end equipment and intelligent sound, solves the authentication question of intelligent sound.
In above-described embodiment or following embodiments, the IP address of local terminal is being sent to terminal device and is meeting local terminal and end Before second information of the Second Rule of end equipment agreement, it is possible to determine that the first information meets the of local terminal and terminal device agreement One rule.
First, from broadcast data packet, the first information after encryption is parsed.
It is alternatively possible to the packaged type according to broadcast data packet, it is determined that the analysis mode of parsing broadcast data packet.
Then, according to the analysis mode of broadcast data packet, the first information is parsed.Alternatively, the first information through local terminal with The encryption key encryption of terminal device agreement.
Then, the first information after the decryption secret key pair encryption arranged according to local terminal with terminal device is decrypted, to obtain Obtain the first information.In the present embodiment, local terminal and the encryption key and decryption key of smart machine agreement can be symmetrical keys It can be asymmetric key.Preferably, local terminal and the encryption key and decryption key of terminal device agreement are symmetrical keys, i.e., originally End is gone to encrypt and decrypt the first information with terminal device using same key.
Alternatively, when broadcast data packet is not the packet that terminal device is sent, in other words, the letter in broadcast data packet When breath is not to meet the information of the first rule, the first information is encrypted without the predetermined encryption key of local terminal and terminal device.So, Local terminal may not parse the first information after encryption when receiving broadcast data packet;Or parse after encryption the After one information, the second information can not be decrypted according to the decryption key that local terminal and terminal device are arranged, or decrypt what is made mistake Information, local terminal IP address is sent so as to avoid to non-terminal equipment.
Then, by the first information compared with the first rule, to determine that the first information meets the first rule.Certainly, if The first information can not be decrypted or decrypt the information to make mistake, then the information decrypted does not meet the first rule, terminates this Operation.
In an optional embodiment, in order to improve the security of facility information, it is set to be not easy to crack, alternatively, according to Facility information request message, the facility information of local terminal is sent to terminal device, including:According to facility information request message, use Local terminal and the encryption key encryption device information of terminal device agreement;Based on the communication connection between local terminal and terminal device, to Terminal device sends the facility information after encryption.
It is alternatively possible to believed using data encryption standards (Data Encryption Standard, DES) encryption device Breath.And then based on the communication connection between local terminal and terminal device, the facility information after des encryption is sent to terminal device.
Terminal device can decrypt the facility information after encryption, to obtain after the facility information after receiving encryption by DES Obtain facility information.
In an optional embodiment, in receiving terminal apparatus after it is determined that second information meets the Second Rule Before the facility information request message sent according to the IP address of local terminal, terminal device can be coordinated, local terminal is established and set with terminal Communication connection between standby.The specific process for establishing communication connection refers to above-described embodiment, and here is omitted.
Based on this, in receiving terminal apparatus it is determined that second information meets after the Second Rule according to the IP of local terminal The facility information request message that address is sent, including:Based on the communication connection between local terminal and terminal device, receiving terminal apparatus The facility information request message of transmission, the communication connection between local terminal and terminal device are IP address of the terminal device according to local terminal Establish.
Wherein, facility information request message is used for the facility information for obtaining local terminal.
Based on the communication connection established by client socket and ServerSocket, service end can be periodically monitored Socket port, the facility information request message until listening to terminal device transmission, and receiving device information request information.
Alternatively, terminal device, can be according to the facility information of the intelligent sound, from intelligence after facility information is received Energy voice server obtains voice authentication information, and the voice authentication information is sent to the intelligent sound.Intelligent sound ServerSocket port can be periodically monitored, the facility information until listening to terminal device transmission, and receiving device is believed Breath.
, can also be to advance in order to improve the security of voice authentication information in above-described embodiment or following embodiments Voice authentication information is encrypted.Alternatively, according to voice authentication information, log in intelligent sound server and be authenticated, wrap Include:Voice authentication information after the decryption secret key pair encryption arranged according to local terminal with terminal device is decrypted, to obtain voice Authentication information;According to voice authentication information, log in intelligent sound server and be authenticated.
Alternatively, terminal device can be encrypted according to data encryption standards (Data Encryption Standard, DES) Voice authentication information.Based on this, local terminal can decrypt the voice authentication information after encryption by DES.
In the present embodiment, the decryption key for decrypted voice authentication information can be with the decryption for decryption device information Key is identical, can also be different.
Then, local terminal can log in intelligent sound server and be authenticated according to the voice authentication information after decryption.
In the present embodiment, the encryption key for encrypting voice authentication information can be with the encryption for encryption device information Key is identical, can also be different;Correspondingly, the decryption key for decrypted voice authentication information can be with believing for decryption device The decryption key of breath is identical, can also be different.
In an optional embodiment, send equipment to terminal device and confirm packet, including:Assisted according to user data package The data packet format that (UDP) is supported is discussed, IP address and the second information to local terminal are packaged processing, confirm number to obtain equipment According to bag;Equipment, which is sent, to terminal device confirms packet.
Alternatively, the data packet format that the first information can also be supported according to User Datagram Protocol (UDP), is packaged Processing, to obtain broadcast data packet.Based on this, User Datagram Protocol socket (UDP can be created at intelligent sound end first Socket) service and socket (socket) port.Serviced by UDP socket and monitor socket port.If listen to Udp broadcast packet, then udp broadcast packet is received, and carry out subsequent treatment.
Wherein, udp protocol is a kind of connectionless agreement, and main function is that network traffic data is compressed into packet Form.UDP is a stateless host-host protocol, so it compares comparatively fast when transmitting data;Compared to by http agreements or The mode of person's Transmission Control Protocol transmission packet, can effectively improve data transmission efficiency.
In an optional embodiment, intelligent sound may have logged on intelligent sound server, it is meant that once obtain Take voice authentication information.It is authenticated at this point it is possible to directly log in intelligent sound server.
Specifically, can be with after User Datagram Protocol socket (UDP socket) service being created at intelligent sound end Whether intelligent sound server was had logged on by UDP socket service inspections local terminals.
Alternatively, if being not logged in intelligent sound server, the certification of the intelligent sound provided using above-described embodiment Method is authenticated, i.e., step S101-S105 and step S201-S206 in above-described embodiment.
If once logged intelligent sound server, further check whether Access Token are expired, if expired, Authentication code, Clinet ID, the reconnection URL in voice authentication information are received during according to certification first, is taken again with intelligent sound Be engaged in device establish connection, to reacquire Access Token, and preserve Access Token, so as to intelligent sound server Used during interaction.If Access Token are not out of date, not out of date Access Token and intelligent sound can be directly used Server interaction.
The embodiment of the present invention also provides a kind of terminal device 300, as shown in figure 3, including first terminal sending module 301, First terminal receiving module 302, second terminal sending module 303, second terminal receiving module 304 and third terminal sending module 305。
First terminal sending module 301, for sending broadcast data packet, broadcast data to the LAN where intelligent sound Bag includes meeting local terminal and the first information of the first rule of intelligent sound agreement.
First terminal receiving module 302, for receive intelligent sound it is determined that the first information meet the first rule after send Equipment confirm packet, equipment confirms that packet includes the IP address and the second information of intelligent sound.
Second terminal sending module 303, if for first terminal receiving module 302 receive the second information meet local terminal with The Second Rule of intelligent sound agreement, then according to the IP address of intelligent sound, facility information request message is sent to intelligent sound.
Second terminal receiving module 304, the equipment sent for receiving intelligent sound according to second terminal sending module 303 The facility information for the intelligent sound that information request message returns.
Third terminal sending module 305, for the equipment letter of the intelligent sound received according to second terminal receiving module 304 Breath, voice authentication information is obtained from intelligent sound server, and voice authentication information is sent to intelligent sound, for intelligent sound Sound is authenticated.
In the present embodiment, local terminal and the rule information during intelligent sound agreement broadcast communication, by judging that broadcast is logical Whether the information entrained by packet in letter meets the rule of agreement, and then identifies intelligent sound and obtain intelligent sound IP address, then according to the IP address of intelligent sound, the facility information of intelligent sound is obtained, according to the facility information of intelligent sound Voice authentication information is obtained from voice authentication server, voice authentication information is sent to intelligent sound so that intelligent sound base It is authenticated in voice authentication information.As can be seen here, in the present embodiment, local terminal be with can accurately knowing the IP of intelligent sound Location, the communication connection then established between local terminal and intelligent sound, solves the authentication question of intelligent sound.
Alternatively, terminal device 300 also includes the first determining module, confirms for slave unit in packet, parses intelligence The second information after the IP address of energy sound equipment and encryption;After the decryption secret key pair encryption arranged according to local terminal and intelligent sound Second information is decrypted, to obtain the second information;By the second information compared with Second Rule, to determine the second information symbol Close Second Rule.
The intelligent sound that second terminal receiving module 304 returns in reception intelligent sound according to facility information request message During facility information, it is specifically used for:Receive the facility information after the encryption that intelligent sound is returned according to facility information request message;Root Facility information after the decryption secret key pair encryption arranged according to local terminal with intelligent sound is decrypted, to obtain the equipment of intelligent sound Information.
Alternatively, second terminal sending module 303 sends equipment letter in the IP address according to intelligent sound to intelligent sound When ceasing request message, it is specifically used for:According to the IP address of intelligent sound, the communication connection established between local terminal and intelligent sound; Based on the communication connection between local terminal and intelligent sound, facility information request message is sent to intelligent sound.
Alternatively, third terminal sending module 305 is sent to intelligent sound by voice authentication information, for intelligent sound When being authenticated, it is specifically used for:Voice authentication information is encrypted according to the encryption key that local terminal and intelligent sound are arranged;Based on local terminal Communication connection between intelligent sound, the voice authentication information after encryption is sent to intelligent sound, so that intelligent sound enters Row certification.
Alternatively, second terminal sending module 303 is in the IP address according to intelligent sound, establish local terminal and intelligent sound it Between communication connection when, be specifically used for:Localling create ServerSocket;According to the IP address of intelligent sound, pass through service The client socket for holding socket and intelligent sound to establish, the communication connection established between local terminal and intelligent sound.
Alternatively, third terminal sending module 305 is obtained from intelligent sound server in the facility information according to intelligent sound When taking voice authentication information, it is specifically used for:According to the facility information of intelligent sound, the log in page of intelligent sound server is jumped to Face;According to the username and password inputted in login page, intelligent sound server is logged in;Intelligent sound server is received to send Voice authentication information.
Alternatively, first terminal sending module 301 to the LAN where intelligent sound when sending broadcast data packet, tool Body is used for:The data packet format supported according to UDP, processing is packaged to the first information, to obtain broadcast number According to bag;Broadcast data packet is sent to the LAN where intelligent sound.
The embodiment of the present invention also provides a kind of intelligent sound 400, as shown in figure 4, including the first sound equipment receiving module 401, First sound equipment sending module 402, the second sound equipment receiving module 403, the second sound equipment sending module 404, the 3rd sound equipment receiving module 405 and authentication module 406.
First sound equipment receiving module 401, the broadcast data packet sent for receiving terminal apparatus, broadcast data packet include the One information.
First sound equipment sending module 402, set if meeting terminal for the first information that the first sound equipment receiving module 401 receives Standby the first rule with local terminal agreement, send equipment to terminal device and confirm packet, equipment confirms that packet includes local terminal IP address and the second information for meeting local terminal and the Second Rule of terminal device agreement.
Second sound equipment receiving module 403, for receiving terminal apparatus it is determined that second information meets second rule The facility information request message that the IP address of the local terminal sent after then according to the first sound equipment sending module 402 is sent.
Second sound equipment sending module 404, the facility information request for being received according to the second sound equipment receiving module 403 disappear Breath, the facility information of local terminal is sent to terminal device.
3rd sound equipment receiving module 405, the voice authentication information returned for receiving terminal apparatus, voice authentication information are Terminal device obtains according to the facility information of the local terminal of the second sound equipment sending module 404 from intelligent sound server.
Authentication module 406, for the voice authentication information received according to the 3rd sound equipment receiving module 405, log in intelligent language Sound server is authenticated.
In the present embodiment, by arranging the rule information in broadcast communication with terminal device, by judging in broadcast communication Packet entrained by information whether meet predetermined rule, and then with identifying the IP of intelligent sound and intelligent sound Location, and then allow terminal device to obtain facility information, and voice authentication information is returned to intelligent sound, obtain intelligent sound With certification.As can be seen here, in the present embodiment, terminal device can accurately know the IP address of intelligent sound, then establish terminal Communication connection between equipment and intelligent sound, solves the authentication question of intelligent sound.
Alternatively, intelligent sound 400 also includes the second determining module.Second determining module is used for from broadcast data packet, Parse the first information after encryption;The first information after the decryption secret key pair encryption arranged according to local terminal and terminal device is carried out Decryption, to obtain the first information;By the first information compared with the first rule, to determine that the first information meets the first rule.
Second sound equipment sending module 404 according to facility information request message, believe by the equipment that local terminal is sent to terminal device During breath, it is specifically used for:According to facility information request message, the encryption key encryption device arranged using local terminal and terminal device is believed Breath;Based on the communication connection between local terminal and terminal device, the facility information after encryption is sent to terminal device.
Alternatively, the second sound equipment receiving module 403 in receiving terminal apparatus it is determined that second information meets described When after two rules according to the facility information request message of the IP address of local terminal transmission, it is specifically used for:Based on local terminal and terminal device Between communication connection, receiving terminal apparatus send facility information request message, the communication link between local terminal and terminal device Connect is that terminal device is established according to the IP address of local terminal.
Alternatively, authentication module 406 is in the voice authentication information received according to the 3rd sound equipment receiving module 405, login intelligence When energy voice server is authenticated, it is specifically used for:Language after the decryption secret key pair encryption arranged according to local terminal and terminal device Sound authentication information is decrypted, to obtain voice authentication information;According to voice authentication information, log in intelligent sound server and go forward side by side Row certification.
Alternatively, the first sound equipment sending module 402 is specifically used for when sending equipment confirmation packet to terminal device: The data packet format supported according to User Datagram Protocol, IP address and the second information to local terminal are packaged processing, to obtain Obtain equipment and confirm packet;Equipment, which is sent, to terminal device confirms packet.
The embodiment of the present invention also provides a kind of intelligent sound Verification System 10, as shown in figure 5, including the He of terminal device 300 Intelligent sound 400.Wherein, terminal device 300, including first terminal sending module 301, first terminal receiving module 302, second Terminal sending module 303, second terminal receiving module 304 and third terminal sending module 305.Intelligent sound 400 includes first Sound equipment receiving module 401, the first sound equipment sending module 402, the second sound equipment receiving module 403, the second sound equipment sending module 404, 3rd sound equipment receiving module 405 and authentication module 406.
First, first terminal sending module 301 sends broadcast data packet to the LAN where intelligent sound 400.First Sound equipment receiving module 401 receives the broadcast data packet that first terminal sending module 301 is sent, and then triggers the first sound equipment and send mould Block 402 determines that the first information meets terminal device and the first rule of local terminal agreement, sends and sets to first terminal receiving module 302 It is standby to confirm packet.
First terminal receiving module 302 receives the equipment that the first sound equipment sending module 402 is sent and confirms data
Bag.And then trigger second terminal sending module 303 and determine that the second information meets the of local terminal and intelligent sound agreement Two rules, then according to the IP address of intelligent sound, facility information request message is sent to the second sound equipment receiving module 403.
Second sound equipment receiving module 403 can be with receiving device information request message, and then triggers the second sound equipment sending module 404 according to facility information request message, to the facility information of the transmission local terminal of second terminal receiving module 304.
Second terminal receiving module 304 receives the facility information for the intelligent sound that the second sound equipment sending module 404 returns, and enters And facility information of the third terminal sending module 305 according to intelligent sound is triggered, obtain voice authentication from intelligent sound server Information, and voice authentication information is sent to the 3rd sound equipment receiving module 405, so that intelligent sound is authenticated.
The voice authentication information that the receiving terminal apparatus of 3rd sound equipment receiving module 405 returns, and then triggering authentication module 406 According to voice authentication information, log in intelligent sound server and be authenticated.
In the present embodiment, terminal device and the rule information during intelligent sound agreement broadcast communication are wide by judging Broadcast whether the information entrained by the packet in communication meets the rule of agreement, and then identify intelligent sound and obtain intelligent sound Loud IP address, then according to the IP address of intelligent sound, the facility information of intelligent sound is obtained, according to the equipment of intelligent sound Information obtains voice authentication information from voice authentication server, voice authentication information is sent to intelligent sound so that intelligent sound Sound is authenticated based on voice authentication information.As can be seen here, in the present embodiment, terminal device can accurately know intelligent sound IP address, the communication connection then established between terminal device and intelligent sound, solve the authentication question of intelligent sound.

Claims (14)

  1. A kind of 1. intelligent sound authentication method, it is characterised in that including:
    Broadcast data packet is sent to the LAN where intelligent sound, the broadcast data packet includes meeting local terminal and the intelligence The first information of first rule of sound equipment agreement;
    The intelligent sound is received it is determined that the first information, which meets the equipment that is sent after first rule, confirms packet, The equipment confirms that packet includes the IP address and the second information of the intelligent sound;
    If second information meets local terminal and the Second Rule of intelligent sound agreement, according to the IP of the intelligent sound Address, facility information request message is sent to the intelligent sound;
    Receive the facility information for the intelligent sound that the intelligent sound returns according to the facility information request message;
    According to the facility information of the intelligent sound, voice authentication information is obtained from intelligent sound server, and by the voice Authentication information is sent to the intelligent sound, so that the intelligent sound is authenticated.
  2. 2. according to the method for claim 1, it is characterised in that the IP address according to the intelligent sound, to described Before intelligent sound sends facility information request message, methods described also includes:
    From the equipment confirm packet in, parse the intelligent sound IP address and encryption after the second information;
    The second information after the encryption according to the decryption secret key pair that local terminal is arranged with the intelligent sound is decrypted, to obtain Second information;
    By second information compared with the Second Rule, to determine that second information meets the Second Rule;
    The facility information for receiving the intelligent sound that the intelligent sound returns according to the facility information request message, Including:
    Receive the facility information after the encryption that the intelligent sound is returned according to the facility information request message;
    Facility information after the encryption according to the decryption secret key pair that local terminal is arranged with the intelligent sound is decrypted, to obtain The facility information of the intelligent sound.
  3. 3. according to the method for claim 1, it is characterised in that the IP address according to the intelligent sound, to described Intelligent sound sends facility information request message, including:
    According to the IP address of the intelligent sound, the communication connection established between local terminal and the intelligent sound;
    Based on the communication connection between local terminal and the intelligent sound, facility information request message is sent to the intelligent sound.
  4. 4. according to the method for claim 3, it is characterised in that described to send the voice authentication information to the intelligence Sound equipment, so that the intelligent sound is authenticated, including:
    The voice authentication information is encrypted according to the encryption key that local terminal and the intelligent sound are arranged;
    Based on the communication connection between local terminal and the intelligent sound, the voice authentication information after encryption is sent to the intelligence Energy sound equipment, so that the intelligent sound is authenticated.
  5. 5. according to the method for claim 3, it is characterised in that the IP address according to the intelligent sound, establish this Communication connection between end and the intelligent sound, including:
    Localling create ServerSocket;
    According to the IP address of the intelligent sound, the client established by the ServerSocket and the intelligent sound Socket, the communication connection established between local terminal and the intelligent sound.
  6. 6. according to the method described in claim any one of 1-5, it is characterised in that the LAN to where intelligent sound is sent out Broadcast data packet is sent, including:
    The data packet format supported according to UDP, is packaged processing, with described in acquisition to the first information Broadcast data packet;
    The broadcast data packet is sent to the LAN where the intelligent sound.
  7. A kind of 7. intelligent sound authentication method, it is characterised in that including:
    The broadcast data packet that receiving terminal apparatus is sent, the broadcast data packet include the first information;
    If the first information meets the terminal device and the first rule of local terminal agreement, equipment is sent to the terminal device Confirm packet, the equipment confirm that packet includes the IP address of local terminal and meet that local terminal and the terminal device arrange the Second information of two rules;
    The terminal device is received it is determined that second information meets after the Second Rule according to the IP address of the local terminal The facility information request message of transmission;
    According to the facility information request message, to the facility information of terminal device transmission local terminal;
    The voice authentication information that the terminal device returns is received, the voice authentication information is the terminal device according to The facility information of local terminal obtains from intelligent sound server;
    According to the voice authentication information, log in the intelligent sound server and be authenticated.
  8. 8. according to the method for claim 7, it is characterised in that in the IP address that local terminal is sent to the terminal device With before the second information for meeting the Second Rule that local terminal is arranged with the terminal device, methods described also includes:
    From the broadcast data packet, the first information after the encryption is parsed;
    The first information after the encryption according to the decryption secret key pair that local terminal is arranged with the terminal device is decrypted, to obtain The first information;
    By the first information compared with first rule, to determine that the first information meets first rule;
    It is described that the facility information of local terminal is sent to the terminal device according to the facility information request message, including:
    According to the facility information request message, the encryption key arranged using local terminal and the terminal device encrypts the equipment Information;
    Based on the communication connection between local terminal and the terminal device, the facility information after encryption is sent to the terminal device.
  9. 9. according to the method for claim 7, it is characterised in that described to receive the terminal device it is determined that second letter Breath meets the facility information request message sent after the Second Rule according to the IP address of the local terminal, including:
    Based on the communication connection between local terminal and the terminal device, the terminal device is received it is determined that second information accords with The facility information request message sent after the Second Rule is closed, the communication connection between the local terminal and the terminal device is The terminal device is established according to the IP address of local terminal.
  10. 10. according to the method for claim 7, it is characterised in that it is described according to the voice authentication information, log in the intelligence Energy voice server is authenticated, including:
    Voice authentication information after the encryption according to the decryption secret key pair that local terminal is arranged with the terminal device is decrypted, with Obtain the voice authentication information;
    According to the voice authentication information, log in the intelligent sound server and be authenticated.
  11. 11. according to the method described in claim any one of 7-10, it is characterised in that described to send equipment to the terminal device Confirm packet, including:
    The data packet format supported according to User Datagram Protocol, IP address and second information to the local terminal are sealed Dress processing, confirm packet to obtain the equipment;
    The equipment, which is sent, to the terminal device confirms packet.
  12. A kind of 12. terminal device, it is characterised in that including:
    First terminal sending module, for sending broadcast data packet, the broadcast data packet to the LAN where intelligent sound Including meeting local terminal and the first information of the first rule of intelligent sound agreement;
    First terminal receiving module, for receiving the intelligent sound after it is determined that the first information meets first rule The equipment of transmission confirms packet, and the equipment confirms that packet includes the IP address and the second information of the intelligent sound;
    Second terminal sending module, if meeting local terminal and the Second Rule of intelligent sound agreement for second information, Then according to the IP address of the intelligent sound, facility information request message is sent to the intelligent sound;
    Second terminal receiving module, the intelligence returned for receiving the intelligent sound according to the facility information request message The facility information of energy sound equipment;
    Third terminal sending module, for the facility information according to the intelligent sound, voice is obtained from intelligent sound server Authentication information, and the voice authentication information is sent to the intelligent sound, so that the intelligent sound is authenticated.
  13. A kind of 13. intelligent sound, it is characterised in that including:
    First sound equipment receiving module, the broadcast data packet sent for receiving terminal apparatus, the broadcast data packet include first Information;
    First sound equipment sending module, if meeting the terminal device and the first rule of local terminal agreement for the first information, Equipment is sent to the terminal device and confirms packet, and the equipment confirms that packet includes the IP address of local terminal and meets local terminal With the second information of the Second Rule of terminal device agreement;
    Second sound equipment receiving module, for receiving the terminal device after it is determined that second information meets the Second Rule The facility information request message sent according to the IP address of the local terminal;
    Second sound equipment sending module, for according to the facility information request message, setting for local terminal to be sent to the terminal device Standby information;
    3rd sound equipment receiving module, the voice authentication information returned for receiving the terminal device, the voice authentication information It is that the terminal device obtains according to the facility information of the local terminal from intelligent sound server;
    Authentication module, for according to the voice authentication information, logging in the intelligent sound server and being authenticated.
  14. A kind of 14. intelligent sound Verification System, it is characterised in that including:Terminal device and right described in claim 12 It is required that the intelligent sound described in 13.
CN201710521818.1A 2017-06-30 2017-06-30 Intelligent sound authentication method, intelligent sound, terminal device and system Pending CN107342994A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710521818.1A CN107342994A (en) 2017-06-30 2017-06-30 Intelligent sound authentication method, intelligent sound, terminal device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710521818.1A CN107342994A (en) 2017-06-30 2017-06-30 Intelligent sound authentication method, intelligent sound, terminal device and system

Publications (1)

Publication Number Publication Date
CN107342994A true CN107342994A (en) 2017-11-10

Family

ID=60219386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710521818.1A Pending CN107342994A (en) 2017-06-30 2017-06-30 Intelligent sound authentication method, intelligent sound, terminal device and system

Country Status (1)

Country Link
CN (1) CN107342994A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862012A (en) * 2019-02-02 2019-06-07 青岛海信网络科技股份有限公司 A kind of method and apparatus of equipment access
CN109981558A (en) * 2018-12-05 2019-07-05 歌尔股份有限公司 Authentication method, equipment and the system of smart home device
CN112889302A (en) * 2018-10-19 2021-06-01 苹果公司 Media intercom over secure device-to-device communication channel

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648181A (en) * 2013-12-24 2014-03-19 广州爱的信息科技有限公司 Wireless network connection method for wireless network audio equipment
CN103874005A (en) * 2014-03-11 2014-06-18 宁波翼动通讯科技有限公司 Karaoke system based on intelligent terminal and wireless speaker and implementation method of Karaoke system
CN104837216A (en) * 2015-04-16 2015-08-12 广东欧珀移动通信有限公司 Method and device for reconnecting intelligent terminal with wireless intelligent equipment
US20160234260A1 (en) * 2015-02-05 2016-08-11 Xiaomi Inc. Methods and apparaturses for binding with device
CN106102051A (en) * 2016-08-26 2016-11-09 北京方研矩行科技有限公司 A kind of method that in LAN, safety finds smart machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648181A (en) * 2013-12-24 2014-03-19 广州爱的信息科技有限公司 Wireless network connection method for wireless network audio equipment
CN103874005A (en) * 2014-03-11 2014-06-18 宁波翼动通讯科技有限公司 Karaoke system based on intelligent terminal and wireless speaker and implementation method of Karaoke system
US20160234260A1 (en) * 2015-02-05 2016-08-11 Xiaomi Inc. Methods and apparaturses for binding with device
CN104837216A (en) * 2015-04-16 2015-08-12 广东欧珀移动通信有限公司 Method and device for reconnecting intelligent terminal with wireless intelligent equipment
CN106102051A (en) * 2016-08-26 2016-11-09 北京方研矩行科技有限公司 A kind of method that in LAN, safety finds smart machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112889302A (en) * 2018-10-19 2021-06-01 苹果公司 Media intercom over secure device-to-device communication channel
CN109981558A (en) * 2018-12-05 2019-07-05 歌尔股份有限公司 Authentication method, equipment and the system of smart home device
CN109862012A (en) * 2019-02-02 2019-06-07 青岛海信网络科技股份有限公司 A kind of method and apparatus of equipment access

Similar Documents

Publication Publication Date Title
CN109246053B (en) Data communication method, device, equipment and storage medium
US20010016907A1 (en) Security protocol structure in application layer
US10277586B1 (en) Mobile authentication with URL-redirect
JP2007528650A (en) Method for verifying first ID and second ID of entity
CN108322416B (en) Security authentication implementation method, device and system
CN108449357B (en) Authorized login method and device, intelligent device and storage medium
CN106559405B (en) Portal authentication method and equipment
CN110771116B (en) Method, device, storage medium and system for identifying encrypted data stream
CN106789834A (en) Method, gateway, PCRF network elements and system for identifying user identity
CN107342994A (en) Intelligent sound authentication method, intelligent sound, terminal device and system
CN110474922B (en) Communication method, PC system and access control router
CN111343083B (en) Instant messaging method, instant messaging device, electronic equipment and readable storage medium
CN112565302A (en) Communication method, system and equipment based on security gateway
CN105407102B (en) Http request data reliability verifying method
WO2017005163A1 (en) Wireless communication-based security authentication device
CN109639703A (en) A kind of radio station remote control method and system based on B/S framework
CN109120405A (en) A kind of terminal security cut-in method, apparatus and system
WO2017181800A1 (en) Adaptive portal authentication page system based on operating system, and method for same
WO2013189398A2 (en) Application data push method, device, and system
CN106878099B (en) Traffic management method, terminal equipment, server and system
CN101783806B (en) Portal certificate authentication method and device
US20050132075A1 (en) Authentication of mobile communication devices using mobile networks, SIP and Parlay
US8296558B1 (en) Method and apparatus for securing communication between a mobile node and a network
CN106453400A (en) Authentication method and system
CN106162645B (en) A kind of the quick of Mobile solution reconnects method for authenticating and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171110