CN109257258A - The method and apparatus of inside and outside Network Communication for intelligent sound box - Google Patents
The method and apparatus of inside and outside Network Communication for intelligent sound box Download PDFInfo
- Publication number
- CN109257258A CN109257258A CN201811157758.0A CN201811157758A CN109257258A CN 109257258 A CN109257258 A CN 109257258A CN 201811157758 A CN201811157758 A CN 201811157758A CN 109257258 A CN109257258 A CN 109257258A
- Authority
- CN
- China
- Prior art keywords
- control instruction
- sound box
- intelligent sound
- controller
- cloud server
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000006854 communication Effects 0.000 title claims abstract description 41
- 238000004891 communication Methods 0.000 title claims abstract description 40
- 230000005540 biological transmission Effects 0.000 claims abstract description 55
- 230000004044 response Effects 0.000 claims abstract description 32
- 238000012795 verification Methods 0.000 claims description 15
- 229910002056 binary alloy Inorganic materials 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 238000012790 confirmation Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000004378 air conditioning Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000013507 mapping Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000009545 invasion Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000033001 locomotion Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/283—Processing of data at an internetworking point of a home automation network
- H04L12/2836—Protocol conversion between an external network and a home network
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/28—Constructional details of speech recognition systems
- G10L15/30—Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computing Systems (AREA)
- Automation & Control Theory (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the present application discloses the method and apparatus of the inside and outside Network Communication for intelligent sound box.One specific embodiment of this method includes: the user speech information received for controlling smart home device;Cloud server is sent by user speech information so that cloud server parses control instruction from user speech information;In response to receiving the control instruction of cloud server return, the execution object of control instruction is determined;In response to determining that executing object is controller inside the local area network where intelligent sound box, for controlling smart home device, is converted into transmission control protocol message for control instruction, and send controller for transmission control protocol message.The embodiment realizes the inside and outside Network Communication of intelligent sound box.
Description
Technical field
The invention relates to field of computer technology, and in particular to the method for the inside and outside Network Communication for intelligent sound box
And device.
Background technique
In recent years with the rise of artificial intelligence and intimately, intellectual product and intelligent industry solution emerge one after another, intelligence
Speaker gradually replaces application program of mobile phone and touches the control of product (control panel, tablet computer) to room devices.
But the speaker of current mainstream is during docking intelligent home control system, generally existing due in smart home
The isolation of outer net causes the cloud instruction of speaker that can not issue and is communicated with intelligent home control system.Traditional method,
It is transformation intelligent home network topology, additionally increases a private branch exchange system in intelligent home network, for receives forwarding sound
The control instruction that case cloud issues, but security risk will certainly be left in this way, if the network firewall of smart home is broken
Or network limitation safety regulation is unsound, it is likely that causes outside invasion to be the ability to easily control smart home device, while increasing intelligence
The cost of energy household network transformation.
Summary of the invention
The embodiment of the present application proposes the method and apparatus of the inside and outside Network Communication for intelligent sound box.
In a first aspect, the embodiment of the present application provides a kind of method of inside and outside Network Communication for intelligent sound box, comprising: connect
Receive the user speech information for controlling smart home device;Cloud server is sent by user speech information for cloud clothes
Business device parses control instruction from user speech information;In response to receiving the control instruction of cloud server return, determine
The execution object of control instruction;In response to determine execute object be inside the local area network where intelligent sound box, for controlling
Control instruction is converted into transmission control protocol message by the controller of smart home device processed, and by transmission control protocol report
Text is sent to controller.
In some embodiments, before control instruction is converted into transmission control protocol message, this method further include: root
Field verification and authentication are carried out to control instruction according to scheduled agreement;Failure or failed authentication are verified in response to field, output is used
The information of user speech information is re-entered in prompt, and sends verification failure relevant information to cloud server.
In some embodiments, control instruction is converted into transmission control protocol message, comprising: be converted into control instruction
Binary system streaming structure;Using the network address of intelligent sound box as the source address in transmission control protocol message, by controller
Network address obtains controller as the destination address in transmission control protocol message, and by the network address of controller
Transmission control protocol message is organized after physical address.
In some embodiments, this method further include: in response to determining that executing object is intelligent sound box, executes control and refers to
It enables.
Second aspect, the embodiment of the present application provide a kind of device of inside and outside Network Communication for intelligent sound box, comprising: connect
Unit is received, is configured to receive the user speech information for controlling smart home device;Transmission unit is configured to user
Voice messaging is sent to cloud server so that cloud server parses control instruction from user speech information;It determines single
Member is configured in response to receive the control instruction of cloud server return, determines the execution object of control instruction;Conversion is single
Member, be configured in response to determine to execute object be it is inside the local area network where intelligent sound box, for controlling intelligent family
Control instruction is converted into transmission control protocol message, and sends transmission control protocol message to by the controller for occupying equipment
Controller.
In some embodiments, which further includes authentication unit, is configured to: control instruction is being converted into transmission control
Before protocol massages processed, field verification and authentication are carried out to control instruction according to scheduled agreement;It verifies and fails in response to field
Or failed authentication, output is used to prompt to re-enter the information of user speech information, and sends verification to cloud server and lose
Lose relevant information.
In some embodiments, converting unit is further configured to: control instruction is converted into binary system streaming structure;
Using the network address of intelligent sound box as the source address in transmission control protocol message, using the network address of controller as transmission
Destination address in control protocol message, and transmission is organized after obtaining by the network address of controller the physical address of controller
Control protocol message.
In some embodiments, which further includes execution unit, is configured to: in response to determining that executing object is intelligence
Energy speaker, executes control instruction.
The third aspect, the embodiment of the present application provide a kind of system of inside and outside Network Communication for intelligent sound box, comprising: intelligence
Energy speaker, is configured to receive the user speech information for controlling smart home device, sends cloud for user speech information
Hold server;Cloud server is configured to parse control instruction from user speech information, and control instruction is sent
To intelligent sound box;Intelligent sound box is further configured to the control instruction in response to receiving cloud server return, determines control
Make instruction execution object, in response to determine execute object be inside the local area network where intelligent sound box, for controlling
Control instruction is converted into transmission control protocol message by the controller of smart home device, and by transmission control protocol message
It is sent to controller;Controller, the control instruction that the transmission control protocol message for being configured to receive includes are converted into office
The instruction that smart home device in the net of domain can be performed, and executable instruction is sent to smart home device;Smart home
Equipment is configured to receive executable instruction, and executes executable instruction.
In some embodiments, controller is further configured to: carrying out field verification and authentication to control instruction.
Fourth aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress
Set, be stored thereon with one or more programs, when one or more programs are executed by one or more processors so that one or
Multiple processors are realized such as method any in first aspect.
5th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program,
In, it realizes when program is executed by processor such as method any in first aspect.
The method and apparatus of inside and outside Network Communication provided by the embodiments of the present application for intelligent sound box, intelligent sound box pass through by
User speech information is uploaded to cloud server, parses control instruction by cloud server.Then again by under cloud server
It is dealt into intelligent sound box, if the control instruction is executed by smart home device in local area network, control instruction is converted into TCP
(Transmission Control Protocol, transmission control protocol) message is sent to controller.Realize intelligent sound box
Inside and outside Network Communication is ensureing the improvement cost that intelligent home network is reduced while intelligent home network safety.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for the inside and outside Network Communication for intelligent sound box of the application;
Fig. 3 is the signal according to an application scenarios of the method for the inside and outside Network Communication for intelligent sound box of the application
Figure;
Fig. 4 is the process according to another embodiment of the method for the inside and outside Network Communication for intelligent sound box of the application
Figure;
Fig. 5 is the structural representation according to one embodiment of the device of the inside and outside Network Communication for intelligent sound box of the application
Figure;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for the inside and outside Network Communication for intelligent sound box of the application or for intelligent sound box
Inside and outside Network Communication device embodiment exemplary system architecture 100.
As shown in Figure 1, system architecture 100 may include intelligent sound box 101, controller 102, smart home device 103, cloud
Hold server 104.Network is between intelligent sound box 101, controller 102, smart home device 103, cloud server 104
The medium of communication link is provided.Network may include various connection types, such as wired, wireless communication link or fiber optic cables
Etc..
User can be used intelligent sound box 101 and be interacted by network with cloud server 104, to receive or send message
Deng.Various telecommunication customer end applications can be installed, such as web browser applications, shopping class are applied, searched on intelligent sound box 101
The application of rope class, instant messaging tools, mailbox client, social platform software etc..
Intelligent sound box 101 is the product of speaker upgrading, is the tool that family consumer is surfed the Internet with voice,
Such as requesting songs, online shopping, or understanding weather forecast, it can also control smart home device, for example beat
Windowing curtain, setting refrigerator temperature, allow in advance water heater heating etc..
Controller 102 is the electronic equipment for controlling smart home device 103.It is functionally similar to remote controler.
Smart home device 103 can be lamp, TV, air-conditioning, curtain etc. can household electrical appliance controlled by the network.
Cloud server 104 can be to provide the server of various services, such as to user's language that intelligent sound box 101 uploads
Message breath provides the backstage resolution server of analysis service.Backstage resolution server can be to data such as the phonetic orders received
It carries out the processing such as analyzing, and processing result (such as control instruction) is fed back into intelligent sound box.
It should be noted that cloud server can be hardware, it is also possible to software.When cloud server is hardware,
The distributed server cluster that multiple server compositions may be implemented into, also may be implemented into individual server.When server is
When software, multiple softwares or software module may be implemented into (such as providing multiple softwares of Distributed Services or software mould
Block), single software or software module also may be implemented into.It is not specifically limited herein.
It should be noted that the embodiment of the present application provided by for intelligent sound box inside and outside Network Communication method generally by
Intelligent sound box 101 executes, and correspondingly, the device of the inside and outside Network Communication for intelligent sound box is generally positioned in intelligent sound box 101.
It should be understood that the number of intelligent sound box, smart home device, cloud server and controller in Fig. 1 is only
Schematically.According to needs are realized, any number of intelligent sound box, smart home device, cloud server and control can have
Device processed.
With continued reference to Fig. 2, a reality of the method for the inside and outside Network Communication for intelligent sound box according to the application is shown
Apply the process 200 of example.This is used for the method for the inside and outside Network Communication of intelligent sound box, comprising the following steps:
Step 201, the user speech information for controlling smart home device is received.
In the present embodiment, for the executing subject of the method for the inside and outside Network Communication of intelligent sound box (such as intelligence shown in FIG. 1
Energy speaker) can be by the voice of the reception user of the microphone in intelligent sound box, then intelligent sound box converts speech into user
Voice messaging.It may include the content of instruction, such as " playing XX song ", " opening air-conditioning " etc. in user speech information.
Step 202, cloud server is sent so that cloud server is from user speech information by user speech information
Parse control instruction.
In the present embodiment, the control instruction that can register monitoring in intelligent sound box in advance, establishes the type of control instruction
Mapping table between the plug-in unit of registration.The plug-in unit of registration can be player plug-in unit, intranet and extranet conversion plug-in unit etc..Then
The wired or wireless connection between intelligent sound box and cloud server is established according to HTTP/2 agreement.Intelligent sound box by wired or
It is wirelessly connected and sends cloud server for user speech information.Cloud server can carry out voice knowledge by speech recognition technology
Not, to identify the control instruction in user speech information.User can directly input phonetic order, can also input intention letter
Breath, is analyzed by cloud server.For example, " too hot " is issued cloud service by user speech input " too hot ", intelligent sound box
After device, cloud server analyzes current room temperature higher than 25 degree, then sending control instruction to intelligent sound box, " air-conditioner temperature is set as
25 degree ".
Step 203, the control instruction returned in response to receiving cloud server, determines the execution object of control instruction.
In the present embodiment, the control instruction that intelligent sound box returns to the cloud server received is according to control instruction
Mapping table between type and the plug-in unit of registration carries out route distribution.Different control instructions is assigned to corresponding insert
Part goes to execute.Different plug-in units can control different execution objects.For example, the execution object of player plug-in unit control is intelligent sound
Case itself, intranet and extranet conversion plug-in unit control execution object be it is inside the local area network where intelligent sound box, for controlling intelligence
The controller of energy home equipment.For example, transferring to the player of intelligent sound box itself to execute the instruction of audio broadcast message class.For intelligence
The instruction of energy home equipment control sends controller for control instruction by intranet and extranet conversion plug-in unit and goes to execute.
In some optional implementations of the present embodiment, if it is determined that executing object out is intelligent sound box, then directly
Execute control instruction.Otherwise control instruction is forwarded to other controllers.
Step 204, in response to determine execute object be inside the local area network where intelligent sound box, for controlling intelligence
The controller of energy home equipment, is converted into transmission control protocol message for control instruction, and transmission control protocol message is sent out
It is sent to controller.
In the present embodiment, according to the mapping table between the type of control instruction and the plug-in unit of registration if it is determined that
The plug-in unit of the corresponding registration of the control instruction received is intranet and extranet conversion plug-in unit, then control instruction is converted into TCP message, with
And controller is sent by TCP message.The executable instruction of smart home device is converted by controller again, issues smart home
Equipment executes.After the completion of TCP message packaging, first after the three-way handshake of progress TCP, i.e., intelligent sound box is first to controller application
Some port is opened (to be reported with SYN (Synchronize Sequence Numbers, the synchronizing sequence number) TCP of section equal to 1
Text), then controller sends back to an ACK (Acknowledgement, confirmation) message notifying intelligent sound box request message and receives,
Intelligent sound box issues the confirmation message confirmation confirmation message that controller issues just now after receiving confirmation message again, so far connects
Foundation complete;Upon establishment of a connection, the both sides of communication will be confirmed each other the maximum message size of other side, then and start to send
Data packet is communicated;After controller receives entire packet, sequential concatenation is carried out to data packet, and be decoded, data
After successfully decoded, controller will do it authorization verification and a series of confirmations, and convert thereof into corresponding low-level language control instruction,
Then corresponding equipment is controlled according to protocol instructions, processing result can carry out event by intelligent sound box and report to cloud server.
In some optional implementations of the present embodiment, control instruction is converted into transmission control protocol message, is wrapped
It includes:
Step 2041, control instruction is converted into binary system streaming structure.
In the transcoding that this step is instructed, standard compliant instruction character string is transcoded into the two of TCP data packet needs
System streaming structure is written in buffer area, waits acquisition of giving out a contract for a project.
Step 2042, using the network address of intelligent sound box as the source address in transmission control protocol message, by controller
Network address obtain controller as the destination address in transmission control protocol message, and by the network address of controller
Physical address after organize transmission control protocol message.
Control instruction is carried out TCP/IP (Internet Protocol, the agreement interconnected between network) message format to spell
Packet, i.e. ether net head+IP head+TCP header+data packet.Source address in message is arranged to first the IP address of current intelligent sound box,
Destination address in message is arranged to the IP address of current controller, buffer data is arranged to message in read step 2041
In data portion.The communication of the physical layer of local area network is by MAC (Media Access Control, media interviews control
System) address uniquely distinguishes specific equipment.Because IP address and MAC Address are that correspondingly, have IP address just
It is known that MAC Address.Message is carried out in room local area network ARP (Address Resolution Protocol,
Address resolution protocol) it broadcasts, the equipment comprising destination address IP can respond, and return to the MAC Address of oneself, obtain target
(i.e. controller) MAC Address is filled into the Destination MAC field bit of message, is then communicated according to ICP/IP protocol.
With continued reference to the applied field that Fig. 3, Fig. 3 are according to the method for the inside and outside Network Communication for intelligent sound box of the present embodiment
One schematic diagram of scape.In the application scenarios of Fig. 3, user says voice " turning on light " to intelligent sound box 301, then intelligent sound box
301 convert speech into user speech information " turning on light ".User speech information " turning on light " is sent cloud clothes by intelligent sound box 301
Business device 302.Cloud server 302 parses and control instruction is returned to intelligent sound box after control instruction " power supply of turn-on lamp "
301.Intelligent sound box 301 determines that the execution object of instruction is controller after listening to instruction, and instruction is formed TCP message.
Intelligent sound box 301 sends TCP message to controller 303 according to ICP/IP protocol.Control instruction is converted into machine by controller 303
Executable order sends lamp & lantern 304.Lamp & lantern 304 executes the order powered on after receiving control instruction.
The method provided by the above embodiment of the application is by passing through TCP/ after the instruction of outer net is converted into Intranet instruction
IP agreement is in interior Network Communication, so that cloud server does not directly control smart home device, thus ensureing intelligent home network
The improvement cost of intelligent home network is reduced while safety.
With further reference to Fig. 4, it illustrates another embodiments of the method for the inside and outside Network Communication for intelligent sound box
Process 400.This is used for the process 400 of the method for the inside and outside Network Communication of intelligent sound box, comprising the following steps:
Step 401, the user speech information for controlling smart home device is received.
Step 402, cloud server is sent so that cloud server is from user speech information by user speech information
Parse control instruction.
Step 403, the control instruction returned in response to receiving cloud server, determines the execution object of control instruction.
Step 401-403 and step 201-203 are essentially identical, therefore repeat no more.
Step 404, field verification and authentication are carried out to the control instruction according to scheduled agreement.
In the present embodiment, it after listening to new control instruction, needs further to control instruction according to pre-establishing
Consensus standard is checked and is examined.Whether NameSpace and title including examining instruction meet expection, access token and sound
Case identifies whether correctly, and whether the structural body of the corresponding control instruction of different intelligent home equipment is complete etc..For example, control instruction
It is required that open the lamp in room 101, and the intelligent sound box for receiving control instruction is the then failed authentication in rooms 102.If control
Instruction requires air-conditioning being transferred to 0 degree, then is more than therefore air-conditioning threshold range verifies failure.
Step 405, failure or failed authentication are verified in response to field, output re-enters user speech information for prompting
Information, and to cloud server send verification failure relevant information.
In the present embodiment, if the field in control instruction verifies failure, user is allowed to reawake request, while reporting thing
Part is given to cloud.Message in control instruction needs (to be related to more wheel situations) when secondary-confirmation, and intelligent sound box is needed to initiate to ask
Ask request.Message verification in control instruction passes through, and demonstrates the need for issuing the smart home that control instruction is controlled to controller and sets
It is standby, it will do it next step process, as indicated in step 204.
Figure 4, it is seen that being used for the inside and outside of intelligent sound box in the present embodiment compared with the corresponding embodiment of Fig. 2
The process 400 of the method for Network Communication embodies the step of verifying to the control instruction received.The present embodiment describes as a result,
Scheme control instruction can be filtered, to realize more effective voice control.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind to be used for intelligent sound
One embodiment of the device of the inside and outside Network Communication of case, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, the dress
Setting specifically can be applied in various electronic equipments.
As shown in figure 5, the device 500 of the inside and outside Network Communication for intelligent sound box of the present embodiment includes: receiving unit
501, transmission unit 502, determination unit 503, converting unit 504.Wherein, receiving unit 501 is configured to receive for controlling
The user speech information of smart home device.Transmission unit 502 is configured to send cloud server for user speech information
So that cloud server parses control instruction from user speech information.Determination unit 503 is configured in response to receive
The control instruction that cloud server returns, determines the execution object of control instruction.Converting unit 504 is configured in response to determine
Executing object out is controller inside the local area network where intelligent sound box, for controlling smart home device, will be controlled
Instruction is converted into transmission control protocol message, and sends controller for transmission control protocol message.
In the present embodiment, receiving unit 501, the transmission unit for the device 500 of the inside and outside Network Communication of intelligent sound box
502, the specific processing of determination unit 503, converting unit 504 can refer to step 201, step in Fig. 2 corresponding embodiment
202, step 203, step 204.
In some optional implementations of the present embodiment, device 500 further includes authentication unit (not shown), is configured
At: before control instruction is converted into transmission control protocol message, field school is carried out to control instruction according to scheduled agreement
It tests and authenticates;Failure or failed authentication are verified in response to field, output is used to prompt to re-enter the information of user speech information,
And verification failure relevant information is sent to cloud server.
In some optional implementations of the present embodiment, converting unit 504 is further configured to: by control instruction
It is converted into binary system streaming structure;Using the network address of intelligent sound box as the source address in transmission control protocol message, will control
The network address of device processed is controlled as the destination address in transmission control protocol message, and by the network address of controller
Transmission control protocol message is organized after the physical address of device processed.
In some optional implementations of the present embodiment, device 500 further includes execution unit (not shown), is configured
At: in response to determining that executing object is intelligent sound box, executes control instruction.
Below with reference to Fig. 6, it illustrates the electronic equipment (intelligence as shown in Figure 1 for being suitable for being used to realize the embodiment of the present application
Can speaker) computer system 600 structural schematic diagram.Electronic equipment shown in Fig. 6 is only an example, should not be to this Shen
Please embodiment function and use scope bring any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;Including such as liquid crystal
Show the output par, c 607 of device (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;And including such as LAN
The communications portion 609 of the network interface card of card, modem etc..Communications portion 609 is executed via the network of such as internet
Communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as disk, CD, magneto-optic
Disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to from the computer program root read thereon
According to needing to be mounted into storage section 608.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media
611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores
The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And
In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof
Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include receiving unit, transmission unit, determination unit and converting unit.Wherein, the title of these units not structure under certain conditions
The restriction of the pairs of unit itself, for example, receiving unit is also described as " receiving the use for controlling smart home device
The unit of family voice messaging ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: the user speech information for controlling smart home device is received;By user speech information be sent to cloud server with
Control instruction is parsed from user speech information for cloud server;Control in response to receiving cloud server return refers to
It enables, determines the execution object of control instruction;In response to determine execute object be inside the local area network where intelligent sound box,
For controlling the controller of smart home device, control instruction is converted into transmission control protocol message, and transmission is controlled
Protocol massages are sent to controller.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (12)
1. a kind of method of the inside and outside Network Communication for intelligent sound box, comprising:
Receive the user speech information for controlling smart home device;
Cloud server is sent by the user speech information so that the cloud server is from the user speech information
Parse control instruction;
The control instruction returned in response to receiving the cloud server, determines the execution object of the control instruction;
In response to determine it is described execution object be inside the local area network where the intelligent sound box, for controlling the intelligence
Can home equipment controller, the control instruction is converted into transmission control protocol message, and by the biography transport control protocol
View message is sent to the controller.
2. according to the method described in claim 1, wherein, by the control instruction be converted into transmission control protocol message it
Before, the method also includes:
Field verification and authentication are carried out to the control instruction according to scheduled agreement;
Failure or failed authentication are verified in response to field, output is used to prompt to re-enter the information of user speech information, and
Verification failure relevant information is sent to the cloud server.
3. it is described that the control instruction is converted into transmission control protocol message according to the method described in claim 1, wherein,
Include:
The control instruction is converted into binary system streaming structure;
Using the network address of the intelligent sound box as the source address in transmission control protocol message, by the network of the controller
Address obtains the control as the destination address in transmission control protocol message, and by the network address of the controller
Transmission control protocol message is organized after the physical address of device.
4. method described in one of -3 according to claim 1, wherein the method also includes:
In response to determining that the execution object is the intelligent sound box, the control instruction is executed.
5. a kind of device of the inside and outside Network Communication for intelligent sound box, comprising:
Receiving unit is configured to receive the user speech information for controlling smart home device;
Transmission unit is configured to send the user speech information to cloud server so that the cloud server is from institute
It states in user speech information and parses control instruction;
Determination unit is configured in response to receive the control instruction that the cloud server returns, determines the control
Make the execution object of instruction;
Converting unit is configured in response to determine that the execution object is inside the local area network where the intelligent sound box
, controller for controlling the smart home device, the control instruction is converted into transmission control protocol message, and
The controller is sent by the transmission control protocol message.
6. device according to claim 5, wherein described device further includes authentication unit, is configured to:
Before the control instruction is converted into transmission control protocol message, according to scheduled agreement to the control instruction into
The verification of row field and authentication;
Failure or failed authentication are verified in response to field, output is used to prompt to re-enter the information of user speech information, and
Verification failure relevant information is sent to the cloud server.
7. device according to claim 5, wherein the converting unit is further configured to:
The control instruction is converted into binary system streaming structure;
Using the network address of the intelligent sound box as the source address in transmission control protocol message, by the network of the controller
Address obtains the control as the destination address in transmission control protocol message, and by the network address of the controller
Transmission control protocol message is organized after the physical address of device.
8. the device according to one of claim 5-7, wherein described device further includes execution unit, is configured to:
In response to determining that the execution object is the intelligent sound box, the control instruction is executed.
9. a kind of system of the inside and outside Network Communication for intelligent sound box, comprising:
Intelligent sound box is configured to receive the user speech information for controlling smart home device, the user speech is believed
Breath is sent to cloud server;
The cloud server, is configured to parse control instruction from the user speech information, and by the control
Instruction is sent to the intelligent sound box;
The intelligent sound box is further configured to the control instruction returned in response to receiving the cloud server,
The execution object for determining the control instruction, in response to determining that the execution object is in the local where the intelligent sound box
Controller inside net, for controlling the smart home device, is converted into transmission control protocol report for the control instruction
Text, and the controller is sent by the transmission control protocol message;
The controller, the control instruction that the transmission control protocol message for being configured to receive includes are converted into described
The instruction that smart home device in local area network can be performed, and the executable finger is sent to the smart home device
It enables;
The smart home device is configured to receive the executable instruction, and executes the executable instruction.
10. system according to claim 9, wherein the controller is further configured to:
Field verification and authentication are carried out to the control instruction.
11. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in any in claim 1-4.
12. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor
The now method as described in any in claim 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811157758.0A CN109257258A (en) | 2018-09-30 | 2018-09-30 | The method and apparatus of inside and outside Network Communication for intelligent sound box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811157758.0A CN109257258A (en) | 2018-09-30 | 2018-09-30 | The method and apparatus of inside and outside Network Communication for intelligent sound box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109257258A true CN109257258A (en) | 2019-01-22 |
Family
ID=65045474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811157758.0A Pending CN109257258A (en) | 2018-09-30 | 2018-09-30 | The method and apparatus of inside and outside Network Communication for intelligent sound box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109257258A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110531632A (en) * | 2019-09-27 | 2019-12-03 | 北京声智科技有限公司 | Control method and system |
CN111009246A (en) * | 2020-03-10 | 2020-04-14 | 展讯通信(上海)有限公司 | Intelligent sound box and awakening method thereof, gateway, server and readable storage medium |
CN111477215A (en) * | 2020-04-07 | 2020-07-31 | 苏州思必驰信息科技有限公司 | Method and device for modifying controlled equipment information |
CN112152890A (en) * | 2019-06-28 | 2020-12-29 | 海信视像科技股份有限公司 | Control system and method based on intelligent sound box |
CN112213964A (en) * | 2019-07-09 | 2021-01-12 | 海信视像科技股份有限公司 | Control system and method based on intelligent sound box |
CN114124867A (en) * | 2021-11-18 | 2022-03-01 | 大连九锁网络有限公司 | Group-sending instant message transmission method under two-layer and three-layer hybrid network structure |
CN115516822A (en) * | 2020-04-21 | 2022-12-23 | Lg电子株式会社 | Intelligent household appliance device and method |
CN117061266A (en) * | 2023-10-13 | 2023-11-14 | 荣耀终端有限公司 | Control method and control device of intelligent household equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105553799A (en) * | 2016-02-29 | 2016-05-04 | 深圳市广佳乐新智能科技有限公司 | Intelligent housing system based on voice recognition |
US9760174B1 (en) * | 2016-07-07 | 2017-09-12 | Echostar Technologies International Corporation | Haptic feedback as accessibility mode in home automation systems |
CN107797460A (en) * | 2017-09-30 | 2018-03-13 | 陈银芳 | Home appliance voice control method and Related product based on intelligent sound box |
CN108091331A (en) * | 2017-12-27 | 2018-05-29 | 北京镁客创新工场科技有限公司 | A kind of intelligent domestic system and its control method based on voice control |
CN108306797A (en) * | 2018-01-30 | 2018-07-20 | 百度在线网络技术(北京)有限公司 | Sound control intelligent household device, method, system, terminal and storage medium |
-
2018
- 2018-09-30 CN CN201811157758.0A patent/CN109257258A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105553799A (en) * | 2016-02-29 | 2016-05-04 | 深圳市广佳乐新智能科技有限公司 | Intelligent housing system based on voice recognition |
US9760174B1 (en) * | 2016-07-07 | 2017-09-12 | Echostar Technologies International Corporation | Haptic feedback as accessibility mode in home automation systems |
CN107797460A (en) * | 2017-09-30 | 2018-03-13 | 陈银芳 | Home appliance voice control method and Related product based on intelligent sound box |
CN108091331A (en) * | 2017-12-27 | 2018-05-29 | 北京镁客创新工场科技有限公司 | A kind of intelligent domestic system and its control method based on voice control |
CN108306797A (en) * | 2018-01-30 | 2018-07-20 | 百度在线网络技术(北京)有限公司 | Sound control intelligent household device, method, system, terminal and storage medium |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112152890A (en) * | 2019-06-28 | 2020-12-29 | 海信视像科技股份有限公司 | Control system and method based on intelligent sound box |
CN112152890B (en) * | 2019-06-28 | 2022-01-21 | 海信视像科技股份有限公司 | Control system and method based on intelligent sound box |
CN112213964A (en) * | 2019-07-09 | 2021-01-12 | 海信视像科技股份有限公司 | Control system and method based on intelligent sound box |
CN110531632A (en) * | 2019-09-27 | 2019-12-03 | 北京声智科技有限公司 | Control method and system |
CN111009246A (en) * | 2020-03-10 | 2020-04-14 | 展讯通信(上海)有限公司 | Intelligent sound box and awakening method thereof, gateway, server and readable storage medium |
CN111477215A (en) * | 2020-04-07 | 2020-07-31 | 苏州思必驰信息科技有限公司 | Method and device for modifying controlled equipment information |
CN115516822A (en) * | 2020-04-21 | 2022-12-23 | Lg电子株式会社 | Intelligent household appliance device and method |
US11863627B2 (en) | 2020-04-21 | 2024-01-02 | Lg Electronics Inc. | Smart home device and method |
CN115516822B (en) * | 2020-04-21 | 2024-01-09 | Lg电子株式会社 | Intelligent household appliance device and method |
CN114124867A (en) * | 2021-11-18 | 2022-03-01 | 大连九锁网络有限公司 | Group-sending instant message transmission method under two-layer and three-layer hybrid network structure |
CN117061266A (en) * | 2023-10-13 | 2023-11-14 | 荣耀终端有限公司 | Control method and control device of intelligent household equipment |
CN117061266B (en) * | 2023-10-13 | 2024-04-02 | 荣耀终端有限公司 | Control method and control device of intelligent household equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109257258A (en) | The method and apparatus of inside and outside Network Communication for intelligent sound box | |
CN108899023A (en) | control method and device | |
CN104243210B (en) | The method and system of remote access router administration page | |
CN109634132A (en) | Smart home management method, device, medium and electronic equipment | |
CN108901056A (en) | Method and apparatus for interactive information | |
CN108257590A (en) | Voice interactive method, device, electronic equipment, storage medium | |
CN107748500A (en) | Method and apparatus for controlling smart machine | |
US9774582B2 (en) | Private cloud connected device cluster architecture | |
CN109416762A (en) | For the distributed behavior of Internet of Things and the technology of knowledge | |
CN104683434B (en) | Network system keeps connection method, communication means, electronic equipment, keeps Connection Service device, application server, program | |
CN108833251A (en) | Method and apparatus for controlling the network interconnection | |
CN109951488A (en) | Service implementing method, device, equipment and the storage medium of content distributing network | |
CN105518645A (en) | Load-balanced, persistent connection techniques | |
CN109769240A (en) | Bluetooth connecting method, device and system | |
US20200090654A1 (en) | Medium selection for providing information corresponding to voice request | |
CN103596019B (en) | For showing the method and system of IPTV contents across screen | |
CN110300150A (en) | Long-range real-time multimedia teaching method, system, electronic equipment, storage medium | |
CN110211564A (en) | Phoneme synthesizing method and device, electronic equipment and computer-readable medium | |
CN110113747A (en) | It is a kind of for connecting the method and apparatus of hiding wireless access point | |
CN107148018A (en) | The collocation method of wireless network, device and system | |
CN109640373A (en) | Networking method and device applied to Internet of things and storage medium | |
CN108989157B (en) | Method and device for controlling intelligent equipment | |
CN104469770B (en) | Towards WLAN authentication methods, platform and the system of third-party application | |
US20200341750A1 (en) | Method of upgrading inverter software, system and electronic device using the same | |
KR20130077682A (en) | Recording medium, method and system for log-in confirmation use of smart phone |
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: 20190122 |