WO2018059051A1 - Method and apparatus for configuring gateway device - Google Patents

Method and apparatus for configuring gateway device Download PDF

Info

Publication number
WO2018059051A1
WO2018059051A1 PCT/CN2017/091328 CN2017091328W WO2018059051A1 WO 2018059051 A1 WO2018059051 A1 WO 2018059051A1 CN 2017091328 W CN2017091328 W CN 2017091328W WO 2018059051 A1 WO2018059051 A1 WO 2018059051A1
Authority
WO
WIPO (PCT)
Prior art keywords
instruction
configuration
gateway device
voice
module
Prior art date
Application number
PCT/CN2017/091328
Other languages
French (fr)
Chinese (zh)
Inventor
唐颖
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018059051A1 publication Critical patent/WO2018059051A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Definitions

  • the present application relates to the field of communications, for example, to a method and apparatus for configuring a gateway device.
  • the average family will have a gateway device. Some configurations of the router are often set up. You also need to open the page of the router to find the corresponding item of the corresponding page. For most people, the home router device, generally bought back will not read the instructions, so basically do not know the page, when you encounter problems, you can only find the manual or call customer service. Even if you know that you can open the router page, you need to go to the back of the router to find the login password, and so on, such as shutdown, restart, etc. If the router is not next to it, the operation is troublesome.
  • the existing technology realizes that the mobile phone connects to the wireless intelligent gateway device through a Wireless Local Area Network (WLAN), and the terminal such as a mobile phone logs into the WEBUI interface, and then finds the corresponding page and then performs setting. Shut down, etc.
  • WLAN Wireless Local Area Network
  • the existing technical solutions are very inconvenient. For example, if you want to modify the wireless fidelity (wifi) password, you need to log in to find the place to modify the wifi password, or shut down the router. The router is not around, so it is difficult for the user operation and the operation is not convenient.
  • the embodiments of the present disclosure provide a method and an apparatus for configuring a gateway device, so as to at least solve the problem that the gateway device is difficult and inconvenient to operate in the related art.
  • a method of configuring a gateway device comprising: receiving a voice instruction for configuring the gateway device; transmitting, according to the voice instruction, the gateway device for the The gateway device performs configuration instructions for the configuration.
  • the configured configuration instruction includes: converting the voice instruction into instruction information; indicating, according to the instruction information, a configuration indicated by the voice instruction; and after receiving the confirmation indication, encapsulating the instruction information into the configuration An instruction, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct; and the configuration instruction is sent to the gateway device.
  • the encapsulating the instruction information into the configuration instruction comprises: encapsulating the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address. Address, the instruction information.
  • the method further includes: connecting, by using a local area network, the gateway device; sending the configuration command to the gateway device includes: using the local area network to A configuration command is sent to the gateway device.
  • a method for configuring a gateway device including: receiving a configuration instruction sent by a terminal according to a voice instruction; and configuring the gateway device according to the configuration instruction.
  • configuring the gateway device according to the configuration instruction includes: parsing the configuration instruction according to a predefined structure, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address, an instruction Information; configuring the gateway device according to the instruction information.
  • parsing the configuration instruction includes: determining a predefined structure corresponding to the configuration instruction; and parsing the configuration instruction according to the predefined structure.
  • the method before receiving the configuration instruction sent by the terminal according to the voice instruction, the method further includes: connecting, by using the local area network, the terminal, and receiving, by the terminal, the configuration instruction that is sent by the terminal according to the voice instruction, including: Receiving, by the local area network, the configuration instruction sent by the terminal according to the voice instruction.
  • an apparatus for configuring a gateway device comprising: a first receiving module configured to receive a voice instruction for configuring the gateway device; a first sending module configured And transmitting, to the gateway device, a configuration instruction for performing the configuration on the gateway device according to the voice instruction.
  • the first sending module includes: a converting unit configured to convert the voice instruction into instruction information; and an indicating unit configured to indicate, according to the instruction information, the voice instruction
  • the configuration unit is configured to, after receiving the confirmation indication, encapsulate the instruction information into the configuration instruction, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct; the sending unit Configuring to send the configuration command to the gateway device.
  • the encapsulating unit includes: a packaging subunit configured to encapsulate the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: source network protocol IP address, destination IP address Address, the instruction information.
  • an apparatus for configuring a gateway device comprising: a second receiving module configured to receive a configuration instruction sent by a terminal according to a voice instruction; a configuration module configured to be configured according to the configuration The instruction configures the gateway device.
  • the configuration module includes: a parsing unit configured to parse the configuration instruction according to a predefined structure, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address, and instruction information; And a configuration unit configured to configure the gateway device according to the instruction information.
  • a storage medium is also provided.
  • the storage medium is arranged to store program code for performing the above steps.
  • the configuration of the gateway device is implemented according to the voice instruction, and the configuration of the gateway device is implemented according to the voice instruction. Solve the problem that the configuration of the gateway device is difficult and the operation is inconvenient, and the effect of facilitating the configuration operation of the gateway device is achieved.
  • FIG. 1 is a block diagram showing a hardware structure of a mobile terminal of a method for configuring a gateway device according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart (1) of configuring a gateway device according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart (2) of configuring a gateway device according to an embodiment of the present disclosure
  • Figure 4 is a plan view of the present embodiment
  • Figure 5 is a flow chart of the overall scheme according to the embodiment.
  • Figure 6 is a flowchart of an initialization module according to the embodiment.
  • FIG. 7 is a schematic illustration of a speech recognition module in accordance with the present embodiment.
  • FIG. 8 is a schematic diagram of an IP packet format according to the present embodiment.
  • FIG. 9 is a structural block diagram (1) of an apparatus for configuring a gateway device according to an embodiment of the present disclosure.
  • FIG. 10 is a structural block diagram of a first transmitting module 904 of an apparatus for configuring a gateway device according to an embodiment of the present disclosure
  • FIG. 11 is a structural block diagram (2) of an apparatus for configuring a gateway device according to an embodiment of the present disclosure
  • FIG. 12 is a structural block diagram of a configuration module 1104 of an apparatus configuring a gateway device according to an embodiment of the present disclosure.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal of a method for configuring a gateway device according to an embodiment of the present disclosure.
  • mobile terminal 10 may include one or more (only one shown in FIG. 1) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA.
  • a memory 104 configured to store data, and a transmission device 106 configured as a communication function.
  • the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • the mobile terminal 10 may also include more or less components than those shown in FIG. 1, or have the same as FIG. Different configurations shown.
  • the memory 104 can be configured as a software program and module for storing application software, such as program instructions/modules corresponding to the method of the gateway device configuration in the embodiment of the present disclosure, the processor 102 running the software program and module stored in the memory 104, Thereby performing various functional applications and data processing, that is, implementing the above method.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 can include memory remotely located relative to processor 102, which can be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is configured to receive or transmit data via a network.
  • the network instance described above may include a wireless network provided by a communication provider of the mobile terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 2 is a flowchart (1) of configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 2, the process includes the following steps:
  • Step S202 receiving a voice instruction for configuring the gateway device.
  • Step S204 Send, according to the voice command, a configuration instruction for performing the foregoing configuration on the gateway device to the gateway device.
  • the configuration of the gateway device can be implemented according to the voice command, which solves the problem that the gateway device is difficult to configure and inconvenient to operate, and the convenience of the configuration operation of the gateway device is improved.
  • the execution body of the foregoing steps may be a terminal (for example, a mobile phone) or the like, but is not limited thereto.
  • the sending, by the voice command, to the gateway device, the configuration command for performing the foregoing configuration on the gateway device includes: converting the voice command into command information; and indicating the voice command according to the command information. And indicating, after receiving the confirmation instruction, the instruction information is encapsulated into the configuration command, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct; and the configuration command is sent to the gateway device.
  • the terminal recognizes the voice command, converts the voice command into the command information for storage, and encapsulates the stored command information into a configuration command to send to the gateway device after receiving the confirmation instruction.
  • the encapsulating the instruction information into the configuration instruction comprises: packaging the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address. Address, the above instruction information.
  • the terminal parses the voice instruction into the instruction information, and encapsulates the instruction information according to a predetermined encapsulation manner, and encapsulates the instruction information into a configuration instruction, where the configuration instruction may be in the form of an IP data packet.
  • the source address of the configuration command may be set to the IP address of the terminal, and the destination address may be set to the IP address of the gateway device, and the command information needs to be filled in the configuration command, so that the source address can be
  • the destination address and instruction information are encapsulated into IP data packets.
  • the method before the sending the configuration command to the gateway device, further includes: connecting, by using the local area network, the gateway device; sending the configuration command to the gateway device includes: using the local area network to configure the configuration command Sent to the above gateway device.
  • the terminal and the gateway device can form a local area network, and therefore, the terminal and the gateway device can communicate through the local area network.
  • FIG. 3 is a flowchart (2) of configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 3, the process includes the following steps:
  • Step S302 receiving a configuration instruction sent by the terminal according to the voice instruction
  • Step S304 configuring the gateway device according to the configuration command.
  • the configuration signaling sent by the terminal is received, and the configuration of the gateway device can be completed according to the configuration signaling, that is, the configuration of the gateway device is completed according to the voice instruction, and the problem that the gateway device is difficult to configure and the operation is inconvenient is solved. Improves the convenience of configuring the operation of the gateway device.
  • the execution body of the foregoing steps may be a gateway device (for example, a router) or the like, but is not limited thereto.
  • configuring the gateway device according to the foregoing configuration command may include: parsing the configuration command according to the predefined structure, where the configuration command includes the following information: a source network protocol IP address, a destination IP address.
  • the instruction information is configured to configure the gateway device according to the instruction information.
  • the gateway device After the configuration command reaches the application layer, the gateway device The predefined structure parses out the instruction information (or the instruction field) in the configuration instruction, and sends the parsed instruction information to the instruction processing module in the gateway device, and the instruction processing module can call the corresponding function processing interface to the gateway device. Process and configure.
  • the parsing the configuration command includes: determining a predefined structure corresponding to the configuration command; and parsing the configuration command according to the predefined structure.
  • the method before receiving the configuration command sent by the terminal according to the voice command, the method further includes: connecting, by using the local area network, the terminal, and receiving, by the terminal, the configuration command sent by the terminal according to the voice command, by: The local area network receives the configuration command sent by the terminal according to the voice command.
  • the terminal and the network management device form a local area network, and communicate through the local area network (such as a configuration command sent through a local area network).
  • FIG. 4 is a schematic diagram of the present embodiment.
  • an application Application, abbreviated as APP
  • the mobile phone or other intelligent terminal and the smart gateway form a local area network
  • the APP may include a voice control module and an instruction information processing module.
  • the voice control module may include a voice storage and voice recognition module
  • the command information processing module includes a packet module and a sending module. The packet module parses the voice command into a customized IP data packet, and fills the source address of the IP packet into its own IP address.
  • FIG. 5 is a flowchart of an overall scheme according to this embodiment. As shown in FIG. 5, the implementation steps of this embodiment are as follows:
  • Step 1 Develop an intelligent voice control APP, and bind the address of the wireless intelligent gateway (corresponding to the above gateway device) for installation on a mobile terminal such as a mobile phone or a smart terminal device.
  • Step 2 The mobile terminal and the mobile terminal install the APP, and the mobile terminal connects to the wireless intelligent gateway device through the WLAN.
  • the docking interface of the voice control APP is developed on the intelligent gateway, including the receiving module, the unpacking module and the instruction processing module.
  • Step 3 The user sends an instruction by voice to the microphone on the phone.
  • Step 4 The voice control module receives the voice information, and invokes the voice recognition module to perform voice recognition, parses out the user voice command, and transmits the command to the voice storage module.
  • Step 5 The voice storage module understands the voice command, and the caller repeatedly calls the voice command. After the user confirms that the command is correct, the command is transmitted to the command information processing module.
  • the instruction information processing module includes a packet module and a sending module.
  • the packet module parses the voice command into a customized IP data packet, fills in the corresponding IP address, and forwards the data to the sending module, and the sending module sends the IP packet to the local area network through the local area network. Smart gateway device.
  • Step 7 Develop a corresponding interface for processing the voice control APP sending instruction information on the smart gateway, which may include a receiving module, an unpacking module, and an instruction processing module.
  • Step 8 After receiving the customized IP data packet, the intelligent gateway unpacks and extracts the user instruction part, and inputs it to the instruction processing module.
  • the instruction processing module calls the corresponding function processing interface to perform corresponding processing and configuration.
  • a local area network-based intelligent gateway voice control configuration method and system including an initialization module, a mobile terminal configuration module, a voice control module, an instruction information processing module, and an intelligent gateway device receive Modules, unpacking, and instruction processing modules.
  • FIG. 6 is a flowchart of an initialization module according to the embodiment.
  • the content involved in the initialization module may be an application of an APP installed on a mobile terminal, and the APP may be adapted to the current mainstream Android system. Mobile terminal with other operating systems). After the test is verified, upload it to the specified website (or the designated official server) for users to download and install.
  • the content of the mobile terminal configuration module may be the completion of downloading and installing the APP. Download the payment software simulation app from the official website and install it to the mobile terminal.
  • the voice control module may include a voice storage and voice recognition module, and the voice recognition module is configured to recognize and receive a user voice command (the user may be recognized by the microphone) Voice command), and the instruction is passed to the voice storage module; the voice storage module understands the voice command, converts the voice command into the command information recognizable by the device, and repeatedly responds to the voice command (the voice command can be repeatedly played through the speaker), and the command is confirmed to be correct.
  • the instruction information processing module includes a packet module and a sending module, and the packet module After the audio command is parsed, it is encapsulated into a customized IP data packet and forwarded to the sending module.
  • the sending module sends the IP data packet to the intelligent gateway device through the local area network.
  • the receiving module on the intelligent gateway can complete the custom IP packet sent by the receiving terminal device through the local area network, and the IP data packet format is as shown in FIG. 8 , wherein the payload data (corresponding to the above instruction information) represents the user voice instruction conversion information. After receiving the customized IP packet, it is sent to the unpacking module.
  • the unpacking module task may be: after receiving the IP data packet forwarded by the receiving module, parsing out the user instruction part thereof, and then sending the parsed instruction to the instruction processing module.
  • the instruction processing module After receiving the instruction, the instruction processing module will call the corresponding function processing interface to perform corresponding processing and configuration.
  • Step 1 The user sends a voice command to the mobile phone with the above APP installed, and the gateway IP address of the smart gateway device is set to 192.168.X.X;
  • Step 2 After the voice recognition module recognizes and receives the voice command of the user, and transmits the command to the voice storage module; the voice storage module understands the voice command, and repeatedly responds to the voice command, and confirms that the command is correct and is transmitted to the command information processing module;
  • Step 3 The instruction information processing module includes a packet module and a sending module. After the packet module parses the voice command, the packet is encapsulated into a customized IP data packet by the protocol stack, and is defined in the format of FIG. 8 above, where xxxx is the source IP address, that is, the IP address of the mobile phone. The address and destination IP address are 192.168.0.1, which is the IP address of the intelligent gateway. The payload data part is forwarded to the sending module according to the definition of the IP protocol.
  • Step 4 The sending module sends the IP data packet to the smart gateway device through the local area network.
  • Step 5 After the receiving module in the intelligent gateway device receives the customized IP data packet, the intelligent gateway first goes to the IP protocol header and then transmits it to the transport layer.
  • the transport layer removes the protocol header of the transport layer and transmits it to the transport layer.
  • the application layer After the application layer reaches the application layer, the user instruction field is found according to the predefined structure, and is taken out.
  • Step 6 Call the corresponding function processing interface to perform corresponding processing and configuration.
  • the voice control configures the gateway address of the smart gateway device, and the function calls through the layer layer, and finally calls system ("ifconfig br0192.168.0.1").
  • an apparatus for configuring a gateway device is further provided, and the device is configured to implement the foregoing embodiments and implementation manners, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 9 is a structural block diagram (1) of an apparatus for configuring a gateway device according to an embodiment of the present disclosure.
  • the apparatus may include: a first receiving module 902 (corresponding to the voice control module) and a first sending module 904 ( Corresponding to the above sending module), the device will be described below:
  • the first receiving module 902 is configured to receive a voice instruction for configuring the gateway device, where the first sending module 904 is connected to the first receiving module 902, and configured to send to the gateway device according to the voice command.
  • the configuration command for performing the above configuration on the gateway device.
  • FIG. 10 is a structural block diagram of a first sending module 904 of an apparatus for configuring a gateway device according to an embodiment of the present disclosure.
  • the first sending module 904 includes: a converting unit 1002 (corresponding to a voice storage module), and an indication.
  • the unit 1004, the encapsulating unit 1006 (corresponding to the above packet module), and the transmitting unit 1008, the first transmitting module 904 is described below:
  • the converting unit 1002 is configured to convert the voice command into command information; the indicating unit 1004 is connected to the converting unit 1002, configured to indicate the configuration indicated by the voice command according to the command information; and the encapsulating unit 1006 is connected to the foregoing
  • the indicating unit 1004 is configured to, after receiving the confirmation instruction, encapsulate the instruction information into the configuration command, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct; and the sending unit 1008 is connected to the package unit. 1006, configured to send the foregoing configuration command to the gateway device.
  • the foregoing encapsulating unit may include: a packaging subunit configured to encapsulate the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: a source network protocol IP address, Destination IP address, the above command information.
  • the method before the sending the configuration command to the gateway device, the method further includes: connecting, by using the local area network, the gateway device; and the sending unit 1008 sends the configuration command to the gateway device by: : transmitting the foregoing configuration command to the gateway device by using the foregoing local area network.
  • FIG. 11 is a structural block diagram (2) of an apparatus for configuring a gateway device according to an embodiment of the present disclosure.
  • the apparatus may include: a second receiving module 1102 (corresponding to the receiving module) and a configuration module.
  • Block 1104 (corresponding to the above instruction processing module), the device is described below:
  • the second receiving module 1102 is configured to receive a configuration command sent by the terminal according to the voice instruction.
  • the configuration module 1104 is connected to the second receiving module 1102, and configured to configure the gateway device according to the configuration command.
  • FIG. 12 is a structural block diagram of a configuration module 1104 of an apparatus for configuring a gateway device according to an embodiment of the present disclosure.
  • the configuration module 1104 may include: a parsing unit 1202 (corresponding to the unpacking module described above) and a configuration unit 1204.
  • the configuration module 1104 is described below:
  • the parsing unit 1202 is configured to parse the configuration command according to the predefined structure, where the configuration command may include the following information: a source network protocol IP address, a destination IP address, and instruction information; and a configuration unit 1204 connected to the parsing unit 1202. And configured to configure the gateway device according to the foregoing instruction information.
  • the parsing unit parses the configuration command by: determining a predefined structure corresponding to the configuration command; and parsing the configuration command according to the predefined structure.
  • the method before receiving the configuration command sent by the terminal according to the voice command, the method may further include: connecting to the terminal by using a local area network;
  • the second receiving module 1102 receives the configuration command sent by the terminal according to the voice command by receiving, by using the local area network, the configuration command sent by the terminal according to the voice command.
  • the method according to the foregoing embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware.
  • the technical solution of the present disclosure which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or Each of the above modules is located in a different processor in any combination.
  • Embodiments of the present disclosure also provide a storage medium.
  • the above storage medium may be configured to store program code for performing the above steps.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the processor performs the above steps according to the stored program code in the storage medium.
  • the storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
  • modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
  • the method and device for configuring a gateway device provided by the present application solve the problem that the configuration of the gateway device is difficult and the operation is inconvenient, thereby achieving the effect of facilitating the configuration operation of the gateway device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present application provides a method and apparatus for configuring a gateway device. The method comprises: receiving a speech instruction used for configuring a gateway device; and sending, according to the speech instruction, a configuration instruction used for configuring the gateway device to the gateway device. The present application can configure a gateway device according to a speech instruction, and solves problems of great difficulty and inconvenient operation in configuration of a gateway device, thereby achieving the effect of facilitating the configuration of the gateway device.

Description

配置网关设备的方法及装置Method and device for configuring gateway device 技术领域Technical field
本申请涉及通信领域,例如涉及一种配置网关设备的方法及装置。The present application relates to the field of communications, for example, to a method and apparatus for configuring a gateway device.
背景技术Background technique
现实生活中,一般家庭都会有一个网关设备,经常出现设置路由器的某些配置,还需要打开路由器的页面,找到对应页面的对应项,才能设置。而对于大部分人来说,家庭路由器这种设备,一般买回来就不会看说明说书,所以基本都不知道还有页面,遇到问题时也只能找说明书或者打客服。即使知道可以打开路由器页面,也需要去路由器后背壳找登陆密码之类,还有比如关机、重启等操作,如果路由器不在旁边,操作麻烦。In real life, the average family will have a gateway device. Some configurations of the router are often set up. You also need to open the page of the router to find the corresponding item of the corresponding page. For most people, the home router device, generally bought back will not read the instructions, so basically do not know the page, when you encounter problems, you can only find the manual or call customer service. Even if you know that you can open the router page, you need to go to the back of the router to find the login password, and so on, such as shutdown, restart, etc. If the router is not next to it, the operation is troublesome.
目前已有技术实现的方法是,手机通过无线局域网(Wireless Local Area Network,简称为WLAN)连接无线智能网关设备,手机等终端登陆WEBUI界面,然后找到相应的页面后进行设置,关机的话直接手动去关机等。已有的技术方案十分不方便。比如想修改无线保真(Wireless Fidelity,简称为wifi)密码,还需要登陆页面找修改wifi密码的地方,或者关机等,路由器又不在身边,所以对于用户操作来说增加难度,操作也不方便。At present, the existing technology realizes that the mobile phone connects to the wireless intelligent gateway device through a Wireless Local Area Network (WLAN), and the terminal such as a mobile phone logs into the WEBUI interface, and then finds the corresponding page and then performs setting. Shut down, etc. The existing technical solutions are very inconvenient. For example, if you want to modify the wireless fidelity (wifi) password, you need to log in to find the place to modify the wifi password, or shut down the router. The router is not around, so it is difficult for the user operation and the operation is not convenient.
针对上述问题,相关技术中并未提出有效的解决方案。In view of the above problems, an effective solution has not been proposed in the related art.
发明内容Summary of the invention
本公开实施例提供了一种配置网关设备的方法及装置,以至少解决相关技术中设置网关设备难度大,操作不方便的问题。The embodiments of the present disclosure provide a method and an apparatus for configuring a gateway device, so as to at least solve the problem that the gateway device is difficult and inconvenient to operate in the related art.
根据本公开的一个实施例,提供了一种配置网关设备的方法,包括:接收用于对所述网关设备进行配置的语音指令;根据所述语音指令向所述网关设备发送用于对所述网关设备进行所述配置的配置指令。According to an embodiment of the present disclosure, there is provided a method of configuring a gateway device, comprising: receiving a voice instruction for configuring the gateway device; transmitting, according to the voice instruction, the gateway device for the The gateway device performs configuration instructions for the configuration.
可选地,根据所述语音指令向所述网关设备发送用于对所述网关设备进行 所述配置的配置指令包括:将所述语音指令转化为指令信息;根据所述指令信息指示所述语音指令所指示的配置;在接收到确认指示后,将所述指令信息封装成所述配置指令,其中,所述确认指示用于指示所述语音指令所指示的配置无误;将所述配置指令发送给所述网关设备。Optionally, sending, according to the voice instruction, the gateway device, to perform, on the gateway device The configured configuration instruction includes: converting the voice instruction into instruction information; indicating, according to the instruction information, a configuration indicated by the voice instruction; and after receiving the confirmation indication, encapsulating the instruction information into the configuration An instruction, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct; and the configuration instruction is sent to the gateway device.
可选地,将所述指令信息封装成所述配置指令包括:通过协议栈将所述指令信息封装成所述配置指令,其中,所述配置指令包括以下信息:源网络协议IP地址,目的IP地址,所述指令信息。Optionally, the encapsulating the instruction information into the configuration instruction comprises: encapsulating the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address. Address, the instruction information.
可选地,在将所述配置指令发送给所述网关设备之前,还包括:通过局域网与所述网关设备连接;将所述配置指令发送给所述网关设备包括:通过所述局域网将所述配置指令发送给所述网关设备。Optionally, before the sending the configuration command to the gateway device, the method further includes: connecting, by using a local area network, the gateway device; sending the configuration command to the gateway device includes: using the local area network to A configuration command is sent to the gateway device.
根据本公开的另一个实施例,还提供一种配置网关设备的方法,包括:接收终端根据语音指令发送的配置指令;根据所述配置指令对所述网关设备进行配置。According to another embodiment of the present disclosure, a method for configuring a gateway device is provided, including: receiving a configuration instruction sent by a terminal according to a voice instruction; and configuring the gateway device according to the configuration instruction.
可选地,根据所述配置指令对所述网关设备进行配置包括:根据预定义结构体解析所述配置指令,其中,所述配置指令包括以下信息:源网络协议IP地址,目的IP地址,指令信息;根据所述指令信息对所述网关设备进行配置。Optionally, configuring the gateway device according to the configuration instruction includes: parsing the configuration instruction according to a predefined structure, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address, an instruction Information; configuring the gateway device according to the instruction information.
可选地,解析所述配置指令包括:确定所述配置指令对应的预定义结构体;根据所述预定义结构体解析所述配置指令。Optionally, parsing the configuration instruction includes: determining a predefined structure corresponding to the configuration instruction; and parsing the configuration instruction according to the predefined structure.
可选地,在接收所述终端根据所述语音指令发送的所述配置指令之前,还包括:通过局域网与所述终端连接;接收所述终端根据所述语音指令发送的所述配置指令包括:通过所述局域网接收所述终端根据所述语音指令发送的所述配置指令。Optionally, before receiving the configuration instruction sent by the terminal according to the voice instruction, the method further includes: connecting, by using the local area network, the terminal, and receiving, by the terminal, the configuration instruction that is sent by the terminal according to the voice instruction, including: Receiving, by the local area network, the configuration instruction sent by the terminal according to the voice instruction.
根据本公开的另一个实施例,还提供一种配置网关设备的装置,包括:第一接收模块,被配置为接收用于对所述网关设备进行配置的语音指令;第一发送模块,被配置为根据所述语音指令向所述网关设备发送用于对所述网关设备进行所述配置的配置指令。According to another embodiment of the present disclosure, there is also provided an apparatus for configuring a gateway device, comprising: a first receiving module configured to receive a voice instruction for configuring the gateway device; a first sending module configured And transmitting, to the gateway device, a configuration instruction for performing the configuration on the gateway device according to the voice instruction.
可选地,所述第一发送模块包括:转化单元,被配置为将所述语音指令转化为指令信息;指示单元,被配置为根据所述指令信息指示所述语音指令所指 示的配置;封装单元,被配置为在接收到确认指示后,将所述指令信息封装成所述配置指令,其中,所述确认指示用于指示所述语音指令所指示的配置无误;发送单元,被配置为将所述配置指令发送给所述网关设备。Optionally, the first sending module includes: a converting unit configured to convert the voice instruction into instruction information; and an indicating unit configured to indicate, according to the instruction information, the voice instruction The configuration unit is configured to, after receiving the confirmation indication, encapsulate the instruction information into the configuration instruction, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct; the sending unit Configuring to send the configuration command to the gateway device.
可选地,所述封装单元包括:封装子单元,被配置为通过协议栈将所述指令信息封装成所述配置指令,其中,所述配置指令包括以下信息:源网络协议IP地址,目的IP地址,所述指令信息。Optionally, the encapsulating unit includes: a packaging subunit configured to encapsulate the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: source network protocol IP address, destination IP address Address, the instruction information.
根据本公开的另一个实施例中,提供了一种配置网关设备的装置,包括:第二接收模块,被配置为接收终端根据语音指令发送的配置指令;配置模块,被配置为根据所述配置指令对所述网关设备进行配置。According to another embodiment of the present disclosure, there is provided an apparatus for configuring a gateway device, comprising: a second receiving module configured to receive a configuration instruction sent by a terminal according to a voice instruction; a configuration module configured to be configured according to the configuration The instruction configures the gateway device.
可选地,所述配置模块包括:解析单元,被配置为根据预定义结构体解析所述配置指令,其中,所述配置指令包括以下信息:源网络协议IP地址,目的IP地址,指令信息;配置单元,被配置为根据所述指令信息对所述网关设备进行配置。Optionally, the configuration module includes: a parsing unit configured to parse the configuration instruction according to a predefined structure, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address, and instruction information; And a configuration unit configured to configure the gateway device according to the instruction information.
根据本公开的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以上各步骤的程序代码。According to still another embodiment of the present disclosure, a storage medium is also provided. The storage medium is arranged to store program code for performing the above steps.
通过本公开,由于接收用于对网关设备进行配置的语音指令;根据语音指令向网关设备发送用于对网关设备进行配置的配置指令,因此,根据语音指令即可实现对网关设备的配置,可以解决配置网关设备难度大、操作不方便的问题,达到方便网关设备配置操作的效果。The configuration of the gateway device is implemented according to the voice instruction, and the configuration of the gateway device is implemented according to the voice instruction. Solve the problem that the configuration of the gateway device is difficult and the operation is inconvenient, and the effect of facilitating the configuration operation of the gateway device is achieved.
附图概述BRIEF abstract
此处所说明的附图用来提供对本公开的理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described herein are intended to provide an understanding of the present disclosure, and are intended to be a part of the present disclosure. In the drawing:
图1是本公开实施例的配置网关设备的方法的移动终端的硬件结构框图;1 is a block diagram showing a hardware structure of a mobile terminal of a method for configuring a gateway device according to an embodiment of the present disclosure;
图2是根据本公开实施例的配置网关设备的流程图(一);2 is a flowchart (1) of configuring a gateway device according to an embodiment of the present disclosure;
图3是根据本公开实施例的配置网关设备的流程图(二); 3 is a flowchart (2) of configuring a gateway device according to an embodiment of the present disclosure;
图4是根据本实施例的方案图;Figure 4 is a plan view of the present embodiment;
图5是根据本实施例的整体方案流程图;Figure 5 is a flow chart of the overall scheme according to the embodiment;
图6是根据本实施例的初始化模块流程图;Figure 6 is a flowchart of an initialization module according to the embodiment;
图7是根据本实施例的语音识别模块的示意图;Figure 7 is a schematic illustration of a speech recognition module in accordance with the present embodiment;
图8是根据本实施例的IP数据包格式的示意图;FIG. 8 is a schematic diagram of an IP packet format according to the present embodiment; FIG.
图9是根据本公开实施例的配置网关设备的装置的结构框图(一);9 is a structural block diagram (1) of an apparatus for configuring a gateway device according to an embodiment of the present disclosure;
图10是根据本公开实施例的配置网关设备的装置的第一发送模块904的结构框图;FIG. 10 is a structural block diagram of a first transmitting module 904 of an apparatus for configuring a gateway device according to an embodiment of the present disclosure;
图11是根据本公开实施例的配置网关设备的装置的结构框图(二);11 is a structural block diagram (2) of an apparatus for configuring a gateway device according to an embodiment of the present disclosure;
图12是根据本公开实施例的配置网关设备的装置的配置模块1104的结构框图。FIG. 12 is a structural block diagram of a configuration module 1104 of an apparatus configuring a gateway device according to an embodiment of the present disclosure.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present disclosure will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second", and the like in the specification and claims of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本公开实施例的配置网关设备的方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、被配置为存储数据的存储器104、以及被配置为通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1 所示不同的配置。The method embodiment provided in Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. Taking a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal of a method for configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 1, mobile terminal 10 may include one or more (only one shown in FIG. 1) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. A memory 104 configured to store data, and a transmission device 106 configured as a communication function. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, the mobile terminal 10 may also include more or less components than those shown in FIG. 1, or have the same as FIG. Different configurations shown.
存储器104可被配置为存储应用软件的软件程序以及模块,如本公开实施例中的网关设备配置的方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be configured as a software program and module for storing application software, such as program instructions/modules corresponding to the method of the gateway device configuration in the embodiment of the present disclosure, the processor 102 running the software program and module stored in the memory 104, Thereby performing various functional applications and data processing, that is, implementing the above method. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 can include memory remotely located relative to processor 102, which can be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106被配置为经由一个网络接收或者发送数据。上述的网络实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其被配置为通过无线方式与互联网进行通讯。Transmission device 106 is configured to receive or transmit data via a network. The network instance described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
在本实施例中提供了一种配置网关设备的方法,图2是根据本公开实施例的配置网关设备的流程图(一),如图2所示,该流程包括如下步骤:In this embodiment, a method for configuring a gateway device is provided. FIG. 2 is a flowchart (1) of configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 2, the process includes the following steps:
步骤S202,接收用于对上述网关设备进行配置的语音指令;Step S202, receiving a voice instruction for configuring the gateway device.
步骤S204,根据上述语音指令向上述网关设备发送用于对上述网关设备进行上述配置的配置指令。Step S204: Send, according to the voice command, a configuration instruction for performing the foregoing configuration on the gateway device to the gateway device.
通过上述步骤,根据语音指令即可实现对网关设备的配置,解决了网关设备配置难度大,操作不方便的问题,提高了网关设备配置操作的方便性。Through the above steps, the configuration of the gateway device can be implemented according to the voice command, which solves the problem that the gateway device is difficult to configure and inconvenient to operate, and the convenience of the configuration operation of the gateway device is improved.
可选地,上述步骤的执行主体可以为终端(例如,手机)等,但不限于此。Optionally, the execution body of the foregoing steps may be a terminal (for example, a mobile phone) or the like, but is not limited thereto.
在一个可选的实施例中,根据上述语音指令向上述网关设备发送用于对上述网关设备进行上述配置的配置指令包括:将上述语音指令转化为指令信息;根据上述指令信息指示上述语音指令所指示的配置;在接收到确认指示后,将上述指令信息封装成上述配置指令,其中,上述确认指示用于指示上述语音指令所指示的配置无误;将上述配置指令发送给上述网关设备。在本实施例中, 终端识别语音指令,将语音指令转化为指令信息进行存储,在收到确认指示之后将存储的指令信息封装成配置指令发送到网关设备。In an optional embodiment, the sending, by the voice command, to the gateway device, the configuration command for performing the foregoing configuration on the gateway device includes: converting the voice command into command information; and indicating the voice command according to the command information. And indicating, after receiving the confirmation instruction, the instruction information is encapsulated into the configuration command, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct; and the configuration command is sent to the gateway device. In this embodiment, The terminal recognizes the voice command, converts the voice command into the command information for storage, and encapsulates the stored command information into a configuration command to send to the gateway device after receiving the confirmation instruction.
在一个可选的实施例中,将上述指令信息封装成上述配置指令包括:通过协议栈将上述指令信息封装成上述配置指令,其中,上述配置指令包括以下信息:源网络协议IP地址,目的IP地址,上述指令信息。在本实施例中,终端将语音指令解析成指令信息,并可以按照预定的封装方式对指令信息进行封装,将指令信息封装成配置指令,其中,该配置指令可以是IP数据包的形式。在本实施例中,配置指令的源地址可以设置为上述终端的IP地址,目的地址可以设置为网关设备的IP地址,并且在该配置指令中还需要填充上上述指令信息,从而可以将源地址、目的地址、指令信息封装成IP数据包。In an optional embodiment, the encapsulating the instruction information into the configuration instruction comprises: packaging the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address. Address, the above instruction information. In this embodiment, the terminal parses the voice instruction into the instruction information, and encapsulates the instruction information according to a predetermined encapsulation manner, and encapsulates the instruction information into a configuration instruction, where the configuration instruction may be in the form of an IP data packet. In this embodiment, the source address of the configuration command may be set to the IP address of the terminal, and the destination address may be set to the IP address of the gateway device, and the command information needs to be filled in the configuration command, so that the source address can be The destination address and instruction information are encapsulated into IP data packets.
在一个可选的实施例中,在将上述配置指令发送给上述网关设备之前,还包括:通过局域网与上述网关设备连接;将上述配置指令发送给上述网关设备包括:通过上述局域网将上述配置指令发送给上述网关设备。在本实施例中,终端和网关设备可以构成一个局域网,因此,终端和网关设备之间可以通过局域网进行通信。In an optional embodiment, before the sending the configuration command to the gateway device, the method further includes: connecting, by using the local area network, the gateway device; sending the configuration command to the gateway device includes: using the local area network to configure the configuration command Sent to the above gateway device. In this embodiment, the terminal and the gateway device can form a local area network, and therefore, the terminal and the gateway device can communicate through the local area network.
在本实施例中提供了另一种的配置网关设备的方法,图3是根据本公开实施例的配置网关设备的流程图(二),如图3所示,该流程包括如下步骤:Another method for configuring a gateway device is provided in this embodiment. FIG. 3 is a flowchart (2) of configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 3, the process includes the following steps:
步骤S302,接收终端根据语音指令发送的配置指令;Step S302, receiving a configuration instruction sent by the terminal according to the voice instruction;
步骤S304,根据上述配置指令对上述网关设备进行配置。Step S304, configuring the gateway device according to the configuration command.
通过上述步骤,通过接收终端发送的配置信令,根据配置信令即可完成对网关设备的配置,即根据语音指令完成对网关设备的配置,解决了网关设备配置难度大,操作不方便的问题,提高了配置网关设备操作的方便性。Through the above steps, the configuration signaling sent by the terminal is received, and the configuration of the gateway device can be completed according to the configuration signaling, that is, the configuration of the gateway device is completed according to the voice instruction, and the problem that the gateway device is difficult to configure and the operation is inconvenient is solved. Improves the convenience of configuring the operation of the gateway device.
可选地,上述步骤的执行主体可以为网关设备(例如,路由器)等,但不限于此。Optionally, the execution body of the foregoing steps may be a gateway device (for example, a router) or the like, but is not limited thereto.
在一个可选的实施例中,根据上述配置指令对上述网关设备进行配置可以包括:根据预定义结构体解析上述配置指令,其中,上述配置指令包括以下信息:源网络协议IP地址,目的IP地址,指令信息;根据上述指令信息对上述网关设备进行配置。在本实施例中,网关设备在配置指令到达应用层后,根据 预定义的结构体解析出配置指令中的指令信息(也可以是指令字段),将解析出的指令信息发送到网关设备中的指令处理模块,指令处理模块可以调用相应的函数处理接口对网关设备进行处理和配置。In an optional embodiment, configuring the gateway device according to the foregoing configuration command may include: parsing the configuration command according to the predefined structure, where the configuration command includes the following information: a source network protocol IP address, a destination IP address. The instruction information is configured to configure the gateway device according to the instruction information. In this embodiment, after the configuration command reaches the application layer, the gateway device The predefined structure parses out the instruction information (or the instruction field) in the configuration instruction, and sends the parsed instruction information to the instruction processing module in the gateway device, and the instruction processing module can call the corresponding function processing interface to the gateway device. Process and configure.
在一个可选的实施例中,解析上述配置指令包括:确定上述配置指令对应的预定义结构体;根据上述预定义结构体解析上述配置指令。In an optional embodiment, the parsing the configuration command includes: determining a predefined structure corresponding to the configuration command; and parsing the configuration command according to the predefined structure.
在一个可选的实施例中,在接收上述终端根据上述语音指令发送的上述配置指令之前,还包括:通过局域网与上述终端连接;接收上述终端根据上述语音指令发送的上述配置指令包括:通过上述局域网接收上述终端根据上述语音指令发送的上述配置指令。在本实施例中,终端与网管设备构成局域网,通过局域网进行通信(比如通过局域网发送的配置指令)。In an optional embodiment, before receiving the configuration command sent by the terminal according to the voice command, the method further includes: connecting, by using the local area network, the terminal, and receiving, by the terminal, the configuration command sent by the terminal according to the voice command, by: The local area network receives the configuration command sent by the terminal according to the voice command. In this embodiment, the terminal and the network management device form a local area network, and communicate through the local area network (such as a configuration command sent through a local area network).
下面以终端为手机为例,结合实施例对本公开进行说明:The following is a description of the present disclosure by taking a terminal as a mobile phone as an example, and combining the embodiments:
图4是根据本实施例的方案图,如图4所示,通过在手机或者智能终端上安装应用程序(Application,简称为APP),手机或其他智能终端与智能网关构成一个局域网,在手机或智能终端(对应上述终端)上安装APP,此APP可以包括声控模块,指令信息处理模块。其中,声控模块可以包含语音存储和语音识别模块,指令信息处理模块包括封包模块和发送模块,封包模块将语音指令解析后封装成自定义的IP数据包,将IP包的源地址填为自己IP地址,将目标地址填为智能网关设备的IP地址,然后由发送模块将IP包通过局域网发给智能网关设备。智能网关设备设有接收模块和解包模块,和指令处理模块,智能网关收到自定义IP数据包后通过解包,解析出其中的用户指令部分(对应上述指令信息),输入给指令处理模块,指令处理模块调用相应函数接口进行相应的处理和配置。图5是根据本实施例的整体方案流程图,如图5所示,本实施例的实现步骤如下:4 is a schematic diagram of the present embodiment. As shown in FIG. 4, by installing an application (Application, abbreviated as APP) on a mobile phone or a smart terminal, the mobile phone or other intelligent terminal and the smart gateway form a local area network, on the mobile phone or An APP is installed on the smart terminal (corresponding to the above terminal), and the APP may include a voice control module and an instruction information processing module. The voice control module may include a voice storage and voice recognition module, and the command information processing module includes a packet module and a sending module. The packet module parses the voice command into a customized IP data packet, and fills the source address of the IP packet into its own IP address. The address is filled with the IP address of the smart gateway device, and then the sending module sends the IP packet to the smart gateway device through the local area network. The intelligent gateway device is provided with a receiving module and an unpacking module, and an instruction processing module. After receiving the customized IP data packet, the intelligent gateway unpacks and parses out the user instruction part (corresponding to the above instruction information), and inputs the instruction to the instruction processing module. The instruction processing module calls the corresponding function interface for corresponding processing and configuration. FIG. 5 is a flowchart of an overall scheme according to this embodiment. As shown in FIG. 5, the implementation steps of this embodiment are as follows:
步骤1:开发智能声控APP,绑定无线智能网关(对应上述网关设备)地址,用于安装在手机,智能终端设备等移动终端上。Step 1: Develop an intelligent voice control APP, and bind the address of the wireless intelligent gateway (corresponding to the above gateway device) for installation on a mobile terminal such as a mobile phone or a smart terminal device.
步骤2:手机等移动终端安装APP,移动终端通过WLAN连接无线智能网关设备。在智能网关上开发声控APP的对接接口,包括接收模块,解包模块和指令处理模块。Step 2: The mobile terminal and the mobile terminal install the APP, and the mobile terminal connects to the wireless intelligent gateway device through the WLAN. The docking interface of the voice control APP is developed on the intelligent gateway, including the receiving module, the unpacking module and the instruction processing module.
步骤3:用户对着手机上的麦克风通过声音发送指令。 Step 3: The user sends an instruction by voice to the microphone on the phone.
步骤4:声控模块接收语音信息,并调用语音识别模块进行语音识别、解析出用户语音指令,并把指令传递给语音存储模块。Step 4: The voice control module receives the voice information, and invokes the voice recognition module to perform voice recognition, parses out the user voice command, and transmits the command to the voice storage module.
步骤5:语音存储模块理解语音指令,调用播放器重复回复语音指令,待用户确认指令无误后将指令传递给指令信息处理模块。Step 5: The voice storage module understands the voice command, and the caller repeatedly calls the voice command. After the user confirms that the command is correct, the command is transmitted to the command information processing module.
步骤6:指令信息处理模块包括封包模块和发送模块,封包模块将语音指令解析后封装成自定义的IP数据包,填入相应IP地址,转发给发送模块,发送模块将IP包通过局域网发给智能网关设备。Step 6: The instruction information processing module includes a packet module and a sending module. The packet module parses the voice command into a customized IP data packet, fills in the corresponding IP address, and forwards the data to the sending module, and the sending module sends the IP packet to the local area network through the local area network. Smart gateway device.
步骤7:在智能网关上开发对声控APP发送指令信息处理的对应接口,可以包括接收模块,解包模块和指令处理模块。Step 7: Develop a corresponding interface for processing the voice control APP sending instruction information on the smart gateway, which may include a receiving module, an unpacking module, and an instruction processing module.
步骤8:智能网关收到自定义IP数据包后通过解包,抠出其中的用户指令部分,输入给指令处理模块,指令处理模块会调用相应的函数处理接口,进行相应的处理和配置。Step 8: After receiving the customized IP data packet, the intelligent gateway unpacks and extracts the user instruction part, and inputs it to the instruction processing module. The instruction processing module calls the corresponding function processing interface to perform corresponding processing and configuration.
本实施例的方案简单实用,更重要的是能够方便用户操作。The solution of this embodiment is simple and practical, and more importantly, it can be convenient for the user to operate.
为了方便用户操作网关设备,本实施例中提出的一种基于局域网的智能网关声控配置方法及系统,包括初始化模块,移动终端的配置模块,声控模块,指令信息处理模块,智能网关设备上的接收模块、解包以及指令处理模块。In order to facilitate the user to operate the gateway device, a local area network-based intelligent gateway voice control configuration method and system, including an initialization module, a mobile terminal configuration module, a voice control module, an instruction information processing module, and an intelligent gateway device receive Modules, unpacking, and instruction processing modules.
图6是根据本实施例的初始化模块流程图,如图6所示,初始化模块涉及的内容可以是安装在手机登移动终端的APP的开发,此APP可以适配当前主流安卓系统(也可以适配其他的操作系统)的移动终端。测试验证后上传到指定的网站(或者说是指定的官方服务器)上供用户下载安装。FIG. 6 is a flowchart of an initialization module according to the embodiment. As shown in FIG. 6 , the content involved in the initialization module may be an application of an APP installed on a mobile terminal, and the APP may be adapted to the current mainstream Android system. Mobile terminal with other operating systems). After the test is verified, upload it to the specified website (or the designated official server) for users to download and install.
移动终端配置模块的内容可以是完成APP的下载和安装。从官方网站上下载支付软件仿真APP,将其安装到移动终端。The content of the mobile terminal configuration module may be the completion of downloading and installing the APP. Download the payment software simulation app from the official website and install it to the mobile terminal.
图7是根据本实施例的语音识别模块的示意图,如图7所示,声控模块可以包含语音存储和语音识别模块,语音识别模块被配置为识别、接收用户语音指令(可以通过麦克风识别接收用户语音指令),并把指令传递给语音存储模块;语音存储模块理解语音指令,将语音指令转化为设备可识别的指令信息,并重复回复语音指令(可以通过喇叭重复播放语音指令),确认指令无误后传递给指令信息处理模块;指令信息处理模块包括封包模块和发送模块,封包模块将语 音指令解析后封装成自定义的IP数据包,转发给发送模块,发送模块将IP数据包通过局域网发给智能网关设备。7 is a schematic diagram of a voice recognition module according to the present embodiment. As shown in FIG. 7, the voice control module may include a voice storage and voice recognition module, and the voice recognition module is configured to recognize and receive a user voice command (the user may be recognized by the microphone) Voice command), and the instruction is passed to the voice storage module; the voice storage module understands the voice command, converts the voice command into the command information recognizable by the device, and repeatedly responds to the voice command (the voice command can be repeatedly played through the speaker), and the command is confirmed to be correct. After being passed to the instruction information processing module; the instruction information processing module includes a packet module and a sending module, and the packet module After the audio command is parsed, it is encapsulated into a customized IP data packet and forwarded to the sending module. The sending module sends the IP data packet to the intelligent gateway device through the local area network.
智能网关上的接收模块,可以完成接收终端设备通过局域网发送的自定义IP包,IP数据包格式如图8所示,其中净载数据(对应上述指令信息)代表用户语音指令转换信息。在收到自定义的IP数据包后将其发送给解包模块。The receiving module on the intelligent gateway can complete the custom IP packet sent by the receiving terminal device through the local area network, and the IP data packet format is as shown in FIG. 8 , wherein the payload data (corresponding to the above instruction information) represents the user voice instruction conversion information. After receiving the customized IP packet, it is sent to the unpacking module.
解包模块任务可以是,收到接收模块转发的IP数据包后,解析出其中的用户指令部分,然后将解析出的指令发送给指令处理模块。The unpacking module task may be: after receiving the IP data packet forwarded by the receiving module, parsing out the user instruction part thereof, and then sending the parsed instruction to the instruction processing module.
指令处理模块收到指令后,会调用相应的函数处理接口,进行相应的处理和配置。After receiving the instruction, the instruction processing module will call the corresponding function processing interface to perform corresponding processing and configuration.
实现步骤如下:The implementation steps are as follows:
步骤1:用户对安装有以上APP的手机发送语音指令,请将智能网关设备的网关IP设置为192.168.X.X;Step 1: The user sends a voice command to the mobile phone with the above APP installed, and the gateway IP address of the smart gateway device is set to 192.168.X.X;
步骤2:语音识别模块识别、接收到用户语音指令后,并把指令传递给语音存储模块;语音存储模块理解语音指令,并重复回复语音指令,确认指令无误后传递给指令信息处理模块;Step 2: After the voice recognition module recognizes and receives the voice command of the user, and transmits the command to the voice storage module; the voice storage module understands the voice command, and repeatedly responds to the voice command, and confirms that the command is correct and is transmitted to the command information processing module;
步骤3:指令信息处理模块包括封包模块和发送模块,封包模块将语音指令解析后,通过协议栈封装成自定义的IP数据包,以如上图8格式定义,x.x.x.x为源IP地址即手机的IP地址,目标IP地址为192.168.0.1,即智能网关的IP地址,其中净载数据部分就是根据IP协议定义之后转发给发送模块。Step 3: The instruction information processing module includes a packet module and a sending module. After the packet module parses the voice command, the packet is encapsulated into a customized IP data packet by the protocol stack, and is defined in the format of FIG. 8 above, where xxxx is the source IP address, that is, the IP address of the mobile phone. The address and destination IP address are 192.168.0.1, which is the IP address of the intelligent gateway. The payload data part is forwarded to the sending module according to the definition of the IP protocol.
步骤4:发送模块将IP数据包通过局域网发给智能网关设备。Step 4: The sending module sends the IP data packet to the smart gateway device through the local area network.
步骤5:智能网关设备中的接收模块收到自定义的IP数据包后,智能网关会先去IP协议头,然后将其传给传输层,传输层去掉传输层的协议头并将其传送给应用层,到达应用层后,根据预先定义结构体,找到用户指令字段,并取出。Step 5: After the receiving module in the intelligent gateway device receives the customized IP data packet, the intelligent gateway first goes to the IP protocol header and then transmits it to the transport layer. The transport layer removes the protocol header of the transport layer and transmits it to the transport layer. After the application layer reaches the application layer, the user instruction field is found according to the predefined structure, and is taken out.
步骤6:调用相应的函数处理接口,进行相应的处理和配置。例如,声控配置智能网关设备的网关地址,函数通过层层调用,最终会调用system(“ifconfig br0192.168.0.1”)。Step 6: Call the corresponding function processing interface to perform corresponding processing and configuration. For example, the voice control configures the gateway address of the smart gateway device, and the function calls through the layer layer, and finally calls system ("ifconfig br0192.168.0.1").
通过本实施例,声控操作家庭网关更加轻松、简单。 With this embodiment, it is easier and simpler to operate the home gateway voice-activated.
在本实施例中还提供了一种配置网关设备的装置,该装置被配置为实现上述实施例及实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an apparatus for configuring a gateway device is further provided, and the device is configured to implement the foregoing embodiments and implementation manners, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the devices described in the following embodiments are implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable.
图9是根据本公开实施例的配置网关设备的装置的结构框图(一),如图9所示,该装置可以包括:第一接收模块902(对应上述声控模块)和第一发送模块904(对应上述发送模块),下面对该装置进行说明:FIG. 9 is a structural block diagram (1) of an apparatus for configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 9, the apparatus may include: a first receiving module 902 (corresponding to the voice control module) and a first sending module 904 ( Corresponding to the above sending module), the device will be described below:
第一接收模块902,被配置为接收用于对上述网关设备进行配置的语音指令;第一发送模块904,连接至上述第一接收模块902,被配置为根据上述语音指令向上述网关设备发送用于对上述网关设备进行上述配置的配置指令。The first receiving module 902 is configured to receive a voice instruction for configuring the gateway device, where the first sending module 904 is connected to the first receiving module 902, and configured to send to the gateway device according to the voice command. The configuration command for performing the above configuration on the gateway device.
图10是根据本公开实施例的配置网关设备的装置的第一发送模块904的结构框图,如图10所示,该第一发送模块904包括:转化单元1002(对应上语音存储模块)、指示单元1004、封装单元1006(对应上述封包模块)、发送单元1008,下面对第一发送模块904进行说明:FIG. 10 is a structural block diagram of a first sending module 904 of an apparatus for configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 10, the first sending module 904 includes: a converting unit 1002 (corresponding to a voice storage module), and an indication. The unit 1004, the encapsulating unit 1006 (corresponding to the above packet module), and the transmitting unit 1008, the first transmitting module 904 is described below:
转化单元1002,被配置为将上述语音指令转化为指令信息;指示单元1004,连接至上述转化单元1002,被配置为根据上述指令信息指示上述语音指令所指示的配置;封装单元1006,连接至上述指示单元1004,被配置为在接收到确认指示后,将上述指令信息封装成上述配置指令,其中,上述确认指示用于指示上述语音指令所指示的配置无误;发送单元1008,连接至上述封装单元1006,被配置为将上述配置指令发送给上述网关设备。The converting unit 1002 is configured to convert the voice command into command information; the indicating unit 1004 is connected to the converting unit 1002, configured to indicate the configuration indicated by the voice command according to the command information; and the encapsulating unit 1006 is connected to the foregoing The indicating unit 1004 is configured to, after receiving the confirmation instruction, encapsulate the instruction information into the configuration command, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct; and the sending unit 1008 is connected to the package unit. 1006, configured to send the foregoing configuration command to the gateway device.
在一个可选的实施例中,上述封装单元可以包括:封装子单元,被配置为通过协议栈将上述指令信息封装成上述配置指令,其中,上述配置指令包括以下信息:源网络协议IP地址,目的IP地址,上述指令信息。In an optional embodiment, the foregoing encapsulating unit may include: a packaging subunit configured to encapsulate the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: a source network protocol IP address, Destination IP address, the above command information.
在一个可选的实施例中,在将上述配置指令发送给上述网关设备之前,还可以包括:通过局域网与上述网关设备连接;上述发送单元1008通过以下方式将将上述配置指令发送给上述网关设备:通过上述局域网将上述配置指令发送给上述网关设备。In an optional embodiment, before the sending the configuration command to the gateway device, the method further includes: connecting, by using the local area network, the gateway device; and the sending unit 1008 sends the configuration command to the gateway device by: : transmitting the foregoing configuration command to the gateway device by using the foregoing local area network.
图11是根据本公开实施例的配置网关设备的装置的结构框图(二),如图11所示,该装置可以包括:第二接收模块1102(对应上述接收模块)和配置模 块1104(对应上述指令处理模块),下面对该装置进行说明:11 is a structural block diagram (2) of an apparatus for configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 11, the apparatus may include: a second receiving module 1102 (corresponding to the receiving module) and a configuration module. Block 1104 (corresponding to the above instruction processing module), the device is described below:
第二接收模块1102,被配置为接收终端根据语音指令发送的配置指令;配置模块1104,连接至上述第二接收模块1102,被配置为根据上述配置指令对上述网关设备进行配置。The second receiving module 1102 is configured to receive a configuration command sent by the terminal according to the voice instruction. The configuration module 1104 is connected to the second receiving module 1102, and configured to configure the gateway device according to the configuration command.
图12是根据本公开实施例的配置网关设备的装置的配置模块1104的结构框图,如图12所示,该配置模块1104可以包括:解析单元1202(对应上述解包模块)和配置单元1204,下面对配置模块1104进行说明:FIG. 12 is a structural block diagram of a configuration module 1104 of an apparatus for configuring a gateway device according to an embodiment of the present disclosure. As shown in FIG. 12, the configuration module 1104 may include: a parsing unit 1202 (corresponding to the unpacking module described above) and a configuration unit 1204. The configuration module 1104 is described below:
解析单元1202,被配置为根据预定义结构体解析上述配置指令,其中,上述配置指令可以包括以下信息:源网络协议IP地址,目的IP地址,指令信息;配置单元1204,连接至上述解析单元1202,被配置为根据上述指令信息对上述网关设备进行配置。The parsing unit 1202 is configured to parse the configuration command according to the predefined structure, where the configuration command may include the following information: a source network protocol IP address, a destination IP address, and instruction information; and a configuration unit 1204 connected to the parsing unit 1202. And configured to configure the gateway device according to the foregoing instruction information.
在一个可选的实施例中,上述解析单元通过以下方式解析上述配置指令:确定上述配置指令对应的预定义结构体;根据上述预定义结构体解析上述配置指令。In an optional embodiment, the parsing unit parses the configuration command by: determining a predefined structure corresponding to the configuration command; and parsing the configuration command according to the predefined structure.
在一个可选的实施例中,在接收上述终端根据上述语音指令发送的上述配置指令之前,还可以包括:通过局域网与上述终端连接;In an optional embodiment, before receiving the configuration command sent by the terminal according to the voice command, the method may further include: connecting to the terminal by using a local area network;
第二接收模块1102通过以下方式接收上述终端根据上述语音指令发送的上述配置指令:通过上述局域网接收上述终端根据上述语音指令发送的上述配置指令。The second receiving module 1102 receives the configuration command sent by the terminal according to the voice command by receiving, by using the local area network, the configuration command sent by the terminal according to the voice command.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件实现。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the foregoing embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on such understanding, the technical solution of the present disclosure, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者, 上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or Each of the above modules is located in a different processor in any combination.
本公开的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以上各步骤的程序代码。Embodiments of the present disclosure also provide a storage medium. Optionally, in the embodiment, the above storage medium may be configured to store program code for performing the above steps.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行以上各步骤。Optionally, in this embodiment, the processor performs the above steps according to the stored program code in the storage medium.
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
所述存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开实施例的范围之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above description is only for the embodiments of the present disclosure, and is not intended to limit the disclosure, and various changes and modifications may be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the scope of the present disclosure are intended to be included within the scope of the present disclosure.
工业实用性Industrial applicability
本申请提供的配置网关设备的方法及装置,解决了配置网关设备难度大,操作不方便的问题,进而达到了方便网关设备配置操作的效果。 The method and device for configuring a gateway device provided by the present application solve the problem that the configuration of the gateway device is difficult and the operation is inconvenient, thereby achieving the effect of facilitating the configuration operation of the gateway device.

Claims (15)

  1. 一种配置网关设备的方法,包括:A method of configuring a gateway device, comprising:
    接收用于对所述网关设备进行配置的语音指令;Receiving a voice instruction for configuring the gateway device;
    根据所述语音指令向所述网关设备发送用于对所述网关设备进行所述配置的配置指令。And transmitting, by the voice instruction, a configuration instruction for performing the configuration on the gateway device to the gateway device.
  2. 根据权利要求1所述的方法,其中,根据所述语音指令向所述网关设备发送用于对所述网关设备进行所述配置的配置指令包括:The method according to claim 1, wherein the transmitting the configuration instruction for performing the configuration on the gateway device according to the voice instruction comprises:
    将所述语音指令转化为指令信息;Converting the voice command into instruction information;
    根据所述指令信息指示所述语音指令所指示的配置;Determining, according to the instruction information, a configuration indicated by the voice instruction;
    在接收到确认指示后,将所述指令信息封装成所述配置指令,其中,所述确认指示用于指示所述语音指令所指示的配置无误;After receiving the confirmation indication, the instruction information is encapsulated into the configuration instruction, wherein the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct;
    将所述配置指令发送给所述网关设备。Sending the configuration command to the gateway device.
  3. 根据权利要求2所述的方法,其中,将所述指令信息封装成所述配置指令包括:The method of claim 2, wherein packaging the instruction information into the configuration instructions comprises:
    通过协议栈将所述指令信息封装成所述配置指令,其中,所述配置指令包括以下信息:源网络协议IP地址,目的IP地址,所述指令信息。The instruction information is encapsulated into the configuration instruction by a protocol stack, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address, and the instruction information.
  4. 根据权利要求2所述的方法,其中,The method of claim 2, wherein
    在将所述配置指令发送给所述网关设备之前,还包括:通过局域网与所述网关设备连接;Before the sending the configuration command to the gateway device, the method further includes: connecting to the gateway device by using a local area network;
    将所述配置指令发送给所述网关设备包括:通过所述局域网将所述配置指令发送给所述网关设备。Sending the configuration command to the gateway device includes transmitting the configuration instruction to the gateway device over the local area network.
  5. 一种配置网关设备的方法,包括: A method of configuring a gateway device, comprising:
    接收终端根据语音指令发送的配置指令;Receiving a configuration instruction sent by the terminal according to the voice instruction;
    根据所述配置指令对所述网关设备进行配置。The gateway device is configured according to the configuration instruction.
  6. 根据权利要求5所述的方法,其中,根据所述配置指令对所述网关设备进行配置包括:The method of claim 5, wherein configuring the gateway device according to the configuration instruction comprises:
    根据预定义结构体解析所述配置指令,其中,所述配置指令包括以下信息:源网络协议IP地址,目的IP地址,指令信息;Parsing the configuration instruction according to the predefined structure, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address, and instruction information;
    根据所述指令信息对所述网关设备进行配置。And configuring the gateway device according to the instruction information.
  7. 根据权利要求6所述的方法,其中,解析所述配置指令包括:The method of claim 6 wherein parsing the configuration instructions comprises:
    确定所述配置指令对应的预定义结构体;Determining a predefined structure corresponding to the configuration instruction;
    根据所述预定义结构体解析所述配置指令。The configuration instruction is parsed according to the predefined structure.
  8. 根据权利要求5所述的方法,其中,The method of claim 5, wherein
    在接收所述终端根据所述语音指令发送的所述配置指令之前,还包括:通过局域网与所述终端连接;Before receiving the configuration instruction sent by the terminal according to the voice instruction, the method further includes: connecting to the terminal by using a local area network;
    接收所述终端根据所述语音指令发送的所述配置指令包括:通过所述局域网接收所述终端根据所述语音指令发送的所述配置指令。Receiving the configuration instruction that is sent by the terminal according to the voice instruction includes: receiving, by using the local area network, the configuration instruction that is sent by the terminal according to the voice instruction.
  9. 一种配置网关设备的装置,包括:A device for configuring a gateway device, comprising:
    第一接收模块,被配置为接收用于对所述网关设备进行配置的语音指令;a first receiving module, configured to receive a voice instruction configured to configure the gateway device;
    第一发送模块,被配置为根据所述语音指令向所述网关设备发送用于对所述网关设备进行所述配置的配置指令。The first sending module is configured to send, according to the voice instruction, a configuration instruction for performing the configuration on the gateway device to the gateway device.
  10. 根据权利要求9所述的装置,其中,所述第一发送模块包括:The apparatus of claim 9, wherein the first transmitting module comprises:
    转化单元,被配置为将所述语音指令转化为指令信息;a conversion unit configured to convert the voice instruction into instruction information;
    指示单元,被配置为根据所述指令信息指示所述语音指令所指示的配置; An indicating unit configured to indicate a configuration indicated by the voice instruction according to the instruction information;
    封装单元,被配置为在接收到确认指示后,将所述指令信息封装成所述配置指令,其中,所述确认指示用于指示所述语音指令所指示的配置无误;The encapsulating unit is configured to, after receiving the confirmation indication, encapsulate the instruction information into the configuration instruction, where the confirmation indication is used to indicate that the configuration indicated by the voice instruction is correct;
    发送单元,被配置为将所述配置指令发送给所述网关设备。And a sending unit configured to send the configuration instruction to the gateway device.
  11. 根据权利要求10所述的装置,其中,所述封装单元包括:The apparatus of claim 10, wherein the package unit comprises:
    封装子单元,被配置为通过协议栈将所述指令信息封装成所述配置指令,其中,所述配置指令包括以下信息:源网络协议IP地址,目的IP地址,所述指令信息。The encapsulation subunit is configured to encapsulate the instruction information into the configuration instruction by using a protocol stack, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address, and the instruction information.
  12. 一种配置网关设备的装置,包括:A device for configuring a gateway device, comprising:
    第二接收模块,被配置为接收终端根据语音指令发送的配置指令;a second receiving module, configured to receive a configuration instruction sent by the terminal according to the voice instruction;
    配置模块,被配置为根据所述配置指令对所述网关设备进行配置。The configuration module is configured to configure the gateway device according to the configuration instruction.
  13. 根据权利要求12所述的装置,其中,所述配置模块包括:The apparatus of claim 12 wherein said configuration module comprises:
    解析单元,被配置为根据预定义结构体解析所述配置指令,其中,所述配置指令包括以下信息:源网络协议IP地址,目的IP地址,指令信息;The parsing unit is configured to parse the configuration instruction according to the predefined structure, where the configuration instruction includes the following information: a source network protocol IP address, a destination IP address, and instruction information;
    配置单元,被配置为根据所述指令信息对所述网关设备进行配置。And a configuration unit configured to configure the gateway device according to the instruction information.
  14. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-4中任一项的方法。A computer readable storage medium storing computer executable instructions arranged to perform the method of any of claims 1-4.
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求5-8中任一项的方法。 A computer readable storage medium storing computer executable instructions arranged to perform the method of any of claims 5-8.
PCT/CN2017/091328 2016-09-27 2017-06-30 Method and apparatus for configuring gateway device WO2018059051A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610855728.1 2016-09-27
CN201610855728.1A CN107872341A (en) 2016-09-27 2016-09-27 Configure the method and device of gateway device

Publications (1)

Publication Number Publication Date
WO2018059051A1 true WO2018059051A1 (en) 2018-04-05

Family

ID=61750901

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091328 WO2018059051A1 (en) 2016-09-27 2017-06-30 Method and apparatus for configuring gateway device

Country Status (2)

Country Link
CN (1) CN107872341A (en)
WO (1) WO2018059051A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111867153A (en) * 2020-06-12 2020-10-30 青岛海信智慧家居系统股份有限公司 Terminal, gateway equipment and data processing method
CN115883287A (en) * 2021-09-29 2023-03-31 青岛海尔科技有限公司 Method and device for determining scene operation gateway, storage medium and electronic device
CN115941471A (en) * 2022-11-15 2023-04-07 深圳市晨讯物联科技有限公司 Voice gateway remote configuration system and method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110071825A (en) * 2019-03-29 2019-07-30 上海电气分布式能源科技有限公司 A kind of LoRa network system parameters remote configuration method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090204400A1 (en) * 2008-02-08 2009-08-13 Shields T Russell System and method for processing a spoken request from a user
CN101729700A (en) * 2008-10-29 2010-06-09 华枫信通(北京)科技有限公司 Comprehensive internal communication system and communication method for voice control
CN102830687A (en) * 2012-09-24 2012-12-19 杨炙龙 Intelligent home control system and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8078688B2 (en) * 2006-12-29 2011-12-13 Prodea Systems, Inc. File sharing through multi-services gateway device at user premises
CN101557318A (en) * 2009-05-27 2009-10-14 深圳华为通信技术有限公司 Configuration method of network terminal and network terminal
CN103281581B (en) * 2013-05-31 2016-12-28 成都三零凯天通信实业有限公司 By man-machine interactive system and the method for smart mobile phone Voice command IP Set Top Box
CN103434462B (en) * 2013-08-26 2015-09-30 浙江吉利汽车研究院有限公司 Automobile intelligent control method and control system
CN104214890A (en) * 2014-01-20 2014-12-17 美的集团股份有限公司 Air conditioner and method for controlling air supply thereof by voice
CN104795065A (en) * 2015-04-30 2015-07-22 北京车音网科技有限公司 Method for increasing speech recognition rate and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090204400A1 (en) * 2008-02-08 2009-08-13 Shields T Russell System and method for processing a spoken request from a user
CN101729700A (en) * 2008-10-29 2010-06-09 华枫信通(北京)科技有限公司 Comprehensive internal communication system and communication method for voice control
CN102830687A (en) * 2012-09-24 2012-12-19 杨炙龙 Intelligent home control system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111867153A (en) * 2020-06-12 2020-10-30 青岛海信智慧家居系统股份有限公司 Terminal, gateway equipment and data processing method
CN115883287A (en) * 2021-09-29 2023-03-31 青岛海尔科技有限公司 Method and device for determining scene operation gateway, storage medium and electronic device
CN115941471A (en) * 2022-11-15 2023-04-07 深圳市晨讯物联科技有限公司 Voice gateway remote configuration system and method and electronic equipment

Also Published As

Publication number Publication date
CN107872341A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
WO2018059051A1 (en) Method and apparatus for configuring gateway device
WO2016145797A1 (en) Smart home control method, device and system
WO2016107502A1 (en) Wifi connection method for mobile terminal and wifi connection system
EP3208974A1 (en) Power line carrier communication terminal control device, system and method
US9177467B2 (en) Electrical gateway and communication method of electrical gateway
US20160285820A1 (en) Method for processing address resolution protocol message, switch, and controller
US20150229563A1 (en) Packet forwarding method and network access device
WO2017045276A1 (en) Terminal interconnecting method, device, and storage medium
CN105612805A (en) Communication method, communication system and relevant device of wearable device
CN104380661B (en) A kind of operating method of routing device, routing device and terminal device
KR20180011334A (en) How SmartWatch and WiChat Platform talk, devices and smart watch
WO2017076016A1 (en) Base station provisioning method, terminal, and base station
Pham et al. Streaming the sound of smart cities: Experimentations on the smartsantander test-bed
WO2015103848A1 (en) Method, system and terminal for realizing network access via wifi
CN110324808A (en) Switching method, device and the mobile terminal of configuration file
CN104993979A (en) Network connection monitoring method, terminal equipment and communication system
EP3007389A1 (en) Gre tunnel implementation method, access point and gateway
US20160295301A1 (en) Communication protocol control method and device in smart tv apparatus
CN102694790B (en) Method of converging a plurality of communication standards and packaging or signal transmission method
CN101808311B (en) System, device and method for upgrading wireless terminal software
TWI551090B (en) Communication host device, modem and method of setting up a communication event in a system
CN104509083A (en) Communication system, method, and program
WO2018072655A1 (en) Method for implementing internet of things application, apparatus, related device and storage medium
CN104780587A (en) AP (access point) accessing method and system for WiFi (wireless fidelity) equipment in Internet of Things
CN106454754B (en) Data transmission method and broadband cluster system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17854505

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17854505

Country of ref document: EP

Kind code of ref document: A1