CN115208859B - An information interaction method, device, equipment and storage medium - Google Patents
An information interaction method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115208859B CN115208859B CN202210732173.7A CN202210732173A CN115208859B CN 115208859 B CN115208859 B CN 115208859B CN 202210732173 A CN202210732173 A CN 202210732173A CN 115208859 B CN115208859 B CN 115208859B
- Authority
- CN
- China
- Prior art keywords
- control instruction
- session identifier
- control
- response result
- result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
本公开提供了一种信息交互方法、装置、设备及存储介质,涉及计算机技术领域,尤其涉及设备通信技术领域。具体实现方案为:接收来自电子设备的第一控制指令,第一控制指令包括会话标识符,会话标识符用于唯一的标识第一控制指令;执行第一控制指令并获得执行结果,执行结果包括第一控制指令对应的会话标识符;广播执行结果至电子设备。本公开提供的一种信息交互方法、装置、设备及存储介质,可以避免在信息交互过程中产生控制冲突和执行结果接收冲突。
The present disclosure provides an information interaction method, device, equipment and storage medium, and relates to the field of computer technology, especially to the field of equipment communication technology. The specific implementation plan is: receiving the first control instruction from the electronic device, the first control instruction includes a session identifier, and the session identifier is used to uniquely identify the first control instruction; executing the first control instruction and obtaining an execution result, and the execution result includes The session identifier corresponding to the first control instruction; broadcast the execution result to the electronic device. The disclosure provides an information interaction method, device, equipment and storage medium that can avoid control conflicts and execution result reception conflicts during the information interaction process.
Description
技术领域Technical field
本公开涉及计算机技术领域,尤其涉及设备通信技术领域的一种信息交互方法、装置、设备及存储介质。The present disclosure relates to the field of computer technology, and in particular to an information interaction method, device, equipment and storage medium in the field of device communication technology.
背景技术Background technique
在智能车机系统中,用户可以使用车联的操作设备来完成对车辆的门窗、灯和空调等车载设备的控制操作,现有技术通过车联的操作设备控制操作这些车载设备的过程一般包括:车联的操作设备向车辆的控制中心发送控制指令;控制中心接收控制指令并执行,对执行结果进行广播;车联的操作设备接收控制中心广播的执行结果。其中,车联的操作设备可以是用户的移动终端,如:手机、PAD(平板电脑),也可以是车载中控设备等。In a smart vehicle-machine system, users can use the operating equipment of the Internet of Vehicles to complete the control operations of the vehicle's doors, windows, lights, air conditioners and other on-board equipment. The process of controlling and operating these vehicle-mounted equipment through the operating equipment of the Internet of Vehicles generally includes : The operating equipment of the connected car sends control instructions to the control center of the vehicle; the control center receives the control instructions and executes them, and broadcasts the execution results; the operating equipment of the connected car receives the execution results broadcast by the control center. Among them, the operating device of the car connection can be the user's mobile terminal, such as a mobile phone, PAD (tablet computer), or a vehicle-mounted central control device.
在智能家居系统中,用户可以使用接入智能家居网络的操作设备来完成对电视、空调、冰箱、窗帘等智能家居家电的控制操作,现有技术通过操作设备控制操作这些智能家具家电的过程一般包括:操作设备向智能家居系统的控制中心发送控制指令;控制中心接收控制指令并执行,对执行结果进行广播;操作设备接收控制中心广播的执行结果。其中,接入智能家居网络的操作设备可以是用户的移动终端,如:手机、PAD,也可以是智能家居系统的中控客户端设备。In a smart home system, users can use operating devices connected to the smart home network to complete the control operations of smart home appliances such as TVs, air conditioners, refrigerators, curtains, etc. The existing technology uses operating devices to control and operate these smart home appliances. It includes: the operating device sends control instructions to the control center of the smart home system; the control center receives the control instructions and executes them, and broadcasts the execution results; the operating device receives the execution results broadcast by the control center. Among them, the operating device connected to the smart home network can be the user's mobile terminal, such as a mobile phone or a PAD, or it can be a central control client device of the smart home system.
发明内容Contents of the invention
本公开提供了一种用于防止指令冲突的信息交互方法、装置、设备以及存储介质。The present disclosure provides an information interaction method, device, equipment and storage medium for preventing instruction conflicts.
根据本公开的一方面,提供了一种信息交互方法,包括:接收来自电子设备的第一控制指令,所述第一控制指令包括会话标识符,所述会话标识符用于唯一的标识所述第一控制指令;执行所述第一控制指令并获得执行结果,所述执行结果包括所述第一控制指令对应的会话标识符;广播所述执行结果至所述电子设备。According to an aspect of the present disclosure, an information interaction method is provided, including: receiving a first control instruction from an electronic device, the first control instruction including a session identifier, the session identifier being used to uniquely identify the a first control instruction; execute the first control instruction and obtain an execution result, where the execution result includes a session identifier corresponding to the first control instruction; broadcast the execution result to the electronic device.
根据本公开的另一方面,提供了一种信息交互方法,包括:生成第一控制指令,所述第一控制指令包括会话标识符,所述会话标识符用于唯一的标识所述第一控制指令;将所述第一控制指令发送至控制设备;接收所述控制设备广播的执行结果;根据所述执行结果中携带的会话标识符,识别是否为对应所述第一控制指令的执行结果。According to another aspect of the present disclosure, an information interaction method is provided, including: generating a first control instruction, where the first control instruction includes a session identifier, and the session identifier is used to uniquely identify the first control instruction. Instruction; sending the first control instruction to the control device; receiving the execution result broadcast by the control device; and identifying whether the execution result corresponds to the first control instruction according to the session identifier carried in the execution result.
根据本公开的另一方面,提供了一种信息交互装置,包括:第一接收模块,用于接收来自电子设备的第一控制指令,所述第一控制指令包括会话标识符,所述会话标识符用于唯一的标识所述第一控制指令;执行模块,用于执行所述第一控制指令并获得执行结果,所述执行结果包括所述第一控制指令对应的会话标识符;广播模块,用于广播所述执行结果至所述电子设备。According to another aspect of the present disclosure, an information interaction device is provided, including: a first receiving module configured to receive a first control instruction from an electronic device, where the first control instruction includes a session identifier, and the session identifier The identifier is used to uniquely identify the first control instruction; the execution module is used to execute the first control instruction and obtain the execution result, the execution result includes the session identifier corresponding to the first control instruction; the broadcast module, For broadcasting the execution result to the electronic device.
根据本公开的另一方面,提供了一种信息交互装置,包括:生成模块,用于生成第一控制指令,所述第一控制指令包括会话标识符,所述会话标识符用于唯一的标识所述第一控制指令;发送模块,用于将所述第一控制指令发送至控制设备;第二接收模块,用于接收所述控制设备广播的执行结果;识别模块,用于根据所述执行结果中携带的会话标识符,识别是否为对应所述第一控制指令的执行结果。According to another aspect of the present disclosure, an information interaction device is provided, including: a generating module for generating a first control instruction, where the first control instruction includes a session identifier, and the session identifier is used for a unique identification The first control instruction; a sending module, used to send the first control instruction to the control device; a second receiving module, used to receive the execution result broadcast by the control device; an identification module, used to perform the execution according to the The session identifier carried in the result identifies whether it is the execution result corresponding to the first control instruction.
根据本公开的另一方面,提供了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本公开所述的一种信息交互方法。According to another aspect of the present disclosure, an electronic device is provided, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores information that can be used by the at least one processor. Execution instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute an information interaction method described in the present disclosure.
根据本公开的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行本公开所述的一种信息交互方法。According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute an information interaction method described in the present disclosure.
根据本公开的另一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现本公开所述的一种信息交互方法。According to another aspect of the present disclosure, a computer program product is provided, including a computer program that implements an information interaction method described in the present disclosure when executed by a processor.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. in:
图1是根据本公开第一实施例的一种信息交互方法的流程示意图;Figure 1 is a schematic flow chart of an information interaction method according to the first embodiment of the present disclosure;
图2是根据本公开第四实施例的一种信息交互方法的流程示意图;Figure 2 is a schematic flowchart of an information interaction method according to the fourth embodiment of the present disclosure;
图3是根据本公开第五实施例的一种信息交互方法的流程示意图;Figure 3 is a schematic flowchart of an information interaction method according to the fifth embodiment of the present disclosure;
图4是根据本公开一种信息交互方法的第一应用场景图;Figure 4 is a first application scenario diagram of an information interaction method according to the present disclosure;
图5是根据本公开一种信息交互方法的第二应用场景图;Figure 5 is a second application scenario diagram of an information interaction method according to the present disclosure;
图6是根据本公开第九实施例的一种信息交互装置的结构示意图;Figure 6 is a schematic structural diagram of an information interaction device according to the ninth embodiment of the present disclosure;
图7是根据本公开第十实施例的一种信息交互装置的结构示意图;Figure 7 is a schematic structural diagram of an information interaction device according to the tenth embodiment of the present disclosure;
图8是用来实现本公开实施例的一种信息交互方法的电子设备的框图。Figure 8 is a block diagram of an electronic device used to implement an information interaction method according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the present disclosure are included to facilitate understanding and should be considered to be exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
无论是在智能车机系统中,通过车联的操作设备控制操作车载设备的过程,还是在智能家居系统中,通过智能家居网络的操作设备来完成对智能家居家电的控制操作,当操作设备中有多个应用(APP,Application)同时控制车载设备或者智能家居家电时,会存在以下问题:1、控制冲突:例如,在智能车机系统中,操作设备可以通过多个APP同时触发控制指令,假如通过APP1触发打开车窗的指令,又通过APP2触发关闭车窗的指令,就会容易发生控制冲突;2、执行结果接收冲突:因为控制中心是广播执行结果的,所以操作设备无法判断接收到的执行结果针对哪个APP触发的控制指令执行成功而生成的,例如,在操作设备通过APP1触发控制指令发送给控制中心后,操作设备接收到控制中心广播的执行结果是针对APP2触发的控制指令生成的,而并非是针对APP1触发的控制指令生成的,但操作设备无法识别和判断。Whether in a smart car system, the process of operating vehicle-mounted equipment is controlled through the car-linked operating equipment, or in a smart home system, the control operation of smart home appliances is completed through the operating equipment of the smart home network. When the operating equipment When multiple applications (APP, Application) control vehicle-mounted equipment or smart home appliances at the same time, there will be the following problems: 1. Control conflict: For example, in a smart car system, the operating device can trigger control instructions through multiple APPs at the same time. If the command to open the car window is triggered through APP1, and the command to close the car window is triggered through APP2, a control conflict will easily occur; 2. Conflict in receiving execution results: Because the control center broadcasts the execution results, the operating device cannot determine whether it has been received. The execution result is generated based on which APP triggered the successful execution of the control instruction. For example, after the operating device triggers the control instruction and sends it to the control center through APP1, the execution result received by the operating device broadcast by the control center is generated for the control instruction triggered by APP2. , and is not generated for the control command triggered by APP1, but the operating device cannot recognize and judge it.
图1是根据本公开第一实施例的一种信息交互方法的流程示意图,如图1所示,方法主要包括:Figure 1 is a schematic flow chart of an information interaction method according to the first embodiment of the present disclosure. As shown in Figure 1, the method mainly includes:
步骤S101,接收来自电子设备的第一控制指令,第一控制指令包括会话标识符,会话标识符用于唯一的标识第一控制指令。Step S101: Receive a first control instruction from the electronic device. The first control instruction includes a session identifier. The session identifier is used to uniquely identify the first control instruction.
在本实施例中,由控制设备接收来自电子设备的第一控制指令,第一控制指令包括会话标识符,会话标识符用于唯一的标识第一控制指令。具体地,控制设备为用于执行第一控制指令的设备,例如,在智能车机系统中,控制设备可以为车辆控制中心;在智能家居系统中,控制设备可以为家居控制中心。在智能车机系统中,第一控制指令可以用于指示车辆控制中心控制车载设备,例如控制车内空调打开、车窗关闭、车辆灯光和播放器播放音乐等;在智能家居系统中,第一控制指令可以用于指示家居控制中心控制智能家居家电,例如控制电视打开、灯具熄灭和窗帘拉开等。In this embodiment, the control device receives a first control instruction from the electronic device. The first control instruction includes a session identifier, and the session identifier is used to uniquely identify the first control instruction. Specifically, the control device is a device for executing the first control instruction. For example, in a smart car system, the control device may be a vehicle control center; in a smart home system, the control device may be a home control center. In a smart car system, the first control instruction can be used to instruct the vehicle control center to control on-board equipment, such as controlling the opening of the air conditioner in the car, closing of the windows, vehicle lights and player playing music, etc.; in the smart home system, the first Control instructions can be used to instruct the home control center to control smart home appliances, such as turning on the TV, turning off the lights, and opening the curtains.
在一可实施方式中,电子设备可以为各种操作设备,用户可以通过操作设备触发第一控制指令,例如,在智能车机系统中,操作设备可以为手机、PAD或者车载中控设备,车载中控设备为车辆中的车载中控屏或车载中控仪器,是用户与车辆控制中心交互的入口,在实际应用过程中,无论是哪种操作设备,都可以安装多种应用软件来控制车载设备;在智能家居系统中,操作设备可以为手机、PAD或者智能家居系统的中控客户端设备等,同理,无论是哪种操作设备,都可以安装多种应用软件来控制智能家具家电。In an implementation, the electronic device can be a variety of operating devices, and the user can trigger the first control instruction through the operating device. For example, in a smart car system, the operating device can be a mobile phone, a PAD, or a vehicle-mounted central control device. The central control device is the vehicle-mounted central control screen or vehicle-mounted central control instrument in the vehicle. It is the entrance for users to interact with the vehicle control center. In the actual application process, no matter what kind of operating equipment, a variety of application software can be installed to control the vehicle. Equipment; in a smart home system, the operating device can be a mobile phone, a PAD, or a central control client device of the smart home system. Similarly, no matter what kind of operating device, a variety of application software can be installed to control smart furniture and home appliances.
在一可实施方式中,会话标识符(sessionid)可以通过电子设备中的各种应用软件来随机生成,会话标识符具有唯一性,因此,可以用于唯一地标识第一控制指令。In an implementation manner, the session identifier (sessionid) can be randomly generated by various application software in the electronic device. The session identifier is unique and therefore can be used to uniquely identify the first control instruction.
步骤S102,执行第一控制指令并获得执行结果,执行结果包括第一控制指令对应的会话标识符。Step S102: Execute the first control instruction and obtain the execution result. The execution result includes the session identifier corresponding to the first control instruction.
在本实施例中,控制设备接收到第一控制指令之后,需要执行第一控制指令,从而得到执行结果,执行结果中包括第一控制指令对应的会话标识符。具体地,在智能车机系统中,执行第一控制指令来控制车内空调打开、车窗关闭、车辆灯光和播放器播放音乐等;在智能家居系统中,执行第一控制指令来控制电视打开、灯具熄灭和窗帘拉开等。In this embodiment, after receiving the first control instruction, the control device needs to execute the first control instruction to obtain an execution result. The execution result includes the session identifier corresponding to the first control instruction. Specifically, in the smart car system, the first control instruction is executed to control the opening of the air conditioner in the car, the closing of the windows, the vehicle lights and the player to play music, etc.; in the smart home system, the first control instruction is executed to control the turning on of the TV. , lights go out and curtains open, etc.
在一可实施方式中,控制设备在将来自电子设备的第一控制指令执行完毕之后,会生成执行结果,执行结果可以包括执行成功与否、执行时间和执行设备等,执行结果中还需要携带第一控制指令对应的会话标识符,方便电子设备判断执行结果是针对哪个APP触发的控制指令执行成功而生成的。In an implementation, after the control device completes executing the first control instruction from the electronic device, it will generate an execution result. The execution result may include whether the execution is successful, the execution time, the execution device, etc., and the execution result also needs to carry The session identifier corresponding to the first control instruction facilitates the electronic device to determine whether the execution result is generated for which APP triggered the successful execution of the control instruction.
步骤S103,广播执行结果至电子设备。Step S103: Broadcast the execution result to the electronic device.
在本实施例中,获得执行结果之后,控制设备需要将执行结果以广播的形式发送至电子设备。具体地,控制设备在接收到第一控制指令之后,并不知道第一控制指令来自哪里,因此需要将执行结果广播。In this embodiment, after obtaining the execution result, the control device needs to send the execution result to the electronic device in the form of broadcast. Specifically, after receiving the first control instruction, the control device does not know where the first control instruction comes from, so it needs to broadcast the execution result.
在一可实施方式中,控制设备可以通过数据总线或者特定的应用程序编程接口(API,Application Programming Interface)来广播执行结果。例如:In an implementation manner, the control device can broadcast the execution results through a data bus or a specific application programming interface (API). For example:
在智能车载系统中,用户可以根据需要在车载中控设备(电子设备)中安装多种应用软件用于控制车载设备,车载中控设备可以通过这些应用软件都与车辆控制中心(控制设备)通过数据总线通信;车辆控制中心在得到执行结果之后,可以通过数据总线将执行结果广播至车载中控设备。或者,用户也可以在手机(电子设备)上安装应用软件用于控制车载设备,手机可以通过这些应用软件与车辆控制中心(控制设备)通信;车辆控制中心在得到执行结果之后,可以调用手机上用于监听执行结果的API将执行结果广播至手机。In the intelligent vehicle system, users can install a variety of application software in the vehicle central control equipment (electronic equipment) as needed to control the vehicle equipment. The vehicle central control equipment can communicate with the vehicle control center (control equipment) through these application software. Data bus communication; after the vehicle control center obtains the execution results, it can broadcast the execution results to the vehicle central control device through the data bus. Alternatively, users can also install application software on their mobile phones (electronic devices) to control vehicle-mounted equipment. The mobile phones can communicate with the vehicle control center (control equipment) through these application software; after obtaining the execution results, the vehicle control center can call the The API used to monitor the execution results broadcasts the execution results to the mobile phone.
类似的,在智能家居系统中,用户可以根据需要在中控客户端设备(电子设备)中安装多种应用软件用于控制智能家居家电,中控客户端设备可以通过这些应用软件都与家居控制中心(控制设备)通过数据总线通信;家居控制中心在得到执行结果之后,可以通过数据总线将执行结果广播至中控客户端设备。用户也可以根据需要在手机或者PAD(电子设备)上安装应用软件用于控制智能家居家电,手机或者PAD可以通过这些应用软件与家居控制中心(控制设备)通信;家居控制中心在得到执行结果之后,可以调用软件上用于监听执行结果的API将执行结果广播至手机或者PAD。Similarly, in a smart home system, users can install a variety of application software in the central control client device (electronic device) as needed to control smart home appliances. The central control client device can communicate with the home control through these application software. The center (control device) communicates through the data bus; after the home control center obtains the execution results, it can broadcast the execution results to the central control client device through the data bus. Users can also install application software on their mobile phones or PADs (electronic devices) to control smart home appliances as needed. The mobile phones or PADs can communicate with the home control center (control device) through these application software; after the home control center obtains the execution results , you can call the API on the software for monitoring the execution results and broadcast the execution results to the mobile phone or PAD.
在本公开第一实施例中,控制设备接收来自电子设备的第一控制指令,然后执行第一控制指令,得到执行结果,执行结果中包括与第一控制指令对应的会话标识符,最后广播执行结果至电子设备。本公开第一实施例在第一控制指令和执行结果中携带会话标识符,用于电子设备判断执行结果是否为自己发送的第一控制指令执行成功而生成的,可以避免在控制指令和执行结果的交互过程中产生执行结果接收冲突,保证控制交互流程的正常运行,提高用户体验感。In the first embodiment of the present disclosure, the control device receives the first control instruction from the electronic device, then executes the first control instruction, obtains the execution result, the execution result includes the session identifier corresponding to the first control instruction, and finally broadcasts the execution Results to electronic devices. The first embodiment of the present disclosure carries a session identifier in the first control instruction and the execution result, which is used by the electronic device to determine whether the execution result is generated by the successful execution of the first control instruction sent by the electronic device, which can avoid the need for the session identifier to be included in the control instruction and the execution result. Execution result reception conflicts occur during the interaction process, ensuring the normal operation of the control interaction process and improving user experience.
在本公开第二实施例中,在步骤S101之后,该方法还包括:确定有正在执行的第二控制指令时,广播针对第一控制指令的第一响应结果至电子设备,第一响应结果用于表示拒绝执行第一控制指令,第一响应结果中包括第一控制指令对应的会话标识符。In the second embodiment of the present disclosure, after step S101, the method further includes: when it is determined that there is a second control instruction being executed, broadcasting a first response result to the first control instruction to the electronic device, and the first response result is To indicate refusal to execute the first control instruction, the first response result includes the session identifier corresponding to the first control instruction.
在本实施例中,控制设备在接收到第一控制指令之后,还需要确定是否有正在执行的第二控制指令,有正在执行的第二控制指令,则需要以第一响应结果通知电子设备此时有正在执行的第二控制指令,从而拒绝执行第一控制指令。具体地,控制设备仍然以广播的方式将第一响应结果发送至电子设备,广播的方法与步骤S103类似,在此不再赘述。In this embodiment, after receiving the first control instruction, the control device also needs to determine whether there is a second control instruction being executed. If there is a second control instruction being executed, it needs to notify the electronic device with the first response result. Sometimes there is a second control instruction being executed, thereby refusing to execute the first control instruction. Specifically, the control device still sends the first response result to the electronic device in a broadcast manner. The broadcast method is similar to step S103 and will not be described again here.
在一可实施方式中,控制设备在接收到所有控制指令之后,都会判断会话列表是否为空,如果会话列表为空,则将该控制指令对应的会话标识符写入会话列表,同时执行控制指令,并在执行结束后根据实际情况将相应的会话标识符从会话列表中清除。因此,会话列表是否为空可以用于判断是否有正在执行的第二控制指令,也就是说,控制设备在接收到第一控制指令之后,可以判断会话列表是否为空,如果会话列表不为空,则表明有正在执行的第二控制指令;如果会话列表为空,则表明没有正在执行的第二控制指令。In an implementation, after receiving all control instructions, the control device will determine whether the session list is empty. If the session list is empty, write the session identifier corresponding to the control instruction into the session list and execute the control instruction at the same time. , and after the execution is completed, the corresponding session identifier will be cleared from the session list according to the actual situation. Therefore, whether the session list is empty can be used to determine whether there is a second control instruction being executed. That is to say, after receiving the first control instruction, the control device can determine whether the session list is empty. If the session list is not empty, , it indicates that there is a second control instruction being executed; if the session list is empty, it indicates that there is no second control instruction being executed.
在本公开第三实施例中,在步骤S101之后,该方法还包括:确定无正在执行的第二控制指令时,广播针对第一控制指令的第二响应结果至电子设备,第二响应结果用于表示第一控制指令接收成功,第二响应结果中包括第一控制指令对应的会话标识符。In the third embodiment of the present disclosure, after step S101, the method further includes: when it is determined that there is no second control instruction being executed, broadcasting a second response result to the first control instruction to the electronic device, and the second response result is To indicate that the first control instruction is received successfully, the second response result includes the session identifier corresponding to the first control instruction.
在本实施例中,控制设备在接收到第一控制指令之后,确定没有正在执行的第二控制指令,则需要以第二响应结果通知电子设备此时没有正在执行的第二控制指令,即第一控制指令接收成功,可以顺利执行第一控制指令。具体地,仍然以广播的方式将第二响应结果发送至电子设备,广播的方法与步骤S103类似,在此不再赘述。In this embodiment, after receiving the first control instruction, the control device determines that there is no second control instruction being executed, and it needs to notify the electronic device with the second response result that there is no second control instruction being executed at this time, that is, the second control instruction is not being executed. If the first control command is received successfully, the first control command can be executed smoothly. Specifically, the second response result is still sent to the electronic device in a broadcast manner. The broadcast method is similar to step S103 and will not be described again here.
在一可实施方式中,会话列表中只存储正在执行的控制指令的会话标识符,而为避免控制冲突,会话列表中的会话标识符最多为一个,控制设备在接收到第一控制指令之后,可以判断会话列表是否为空,如果会话列表为空,则没有正在执行的第二控制指令,此时可将第一控制指令对应的会话标识符写入会话列表,同时执行第一控制指令。In one possible implementation, the session list only stores the session identifier of the control instruction being executed. To avoid control conflicts, there is at most one session identifier in the session list. After receiving the first control instruction, the control device It can be determined whether the session list is empty. If the session list is empty, there is no second control instruction being executed. At this time, the session identifier corresponding to the first control instruction can be written into the session list and the first control instruction is executed at the same time.
在本公开第二和第三实施例中,控制设备在接收到第一控制指令后,先确定是否有正在执行的第二控制指令,若有正在执行的第二控制指令,则广播第一响应结果;若没有正在执行的第二控制指令,则广播第二响应结果。本公开第二和第三实施例,有助于在有正在执行的第二控制指令时,拒绝执行来自电子设备的第一控制指令,从而避免控制冲突。In the second and third embodiments of the present disclosure, after receiving the first control instruction, the control device first determines whether there is a second control instruction being executed, and if there is a second control instruction being executed, broadcasts the first response Result; if there is no second control instruction being executed, the second response result is broadcast. The second and third embodiments of the present disclosure help to refuse to execute the first control instruction from the electronic device when there is a second control instruction being executed, thereby avoiding control conflicts.
图2是根据本公开第四实施例的一种信息交互方法的流程示意图,如图2所示,在本公开第四实施例中,第一控制指令还包括超时时间,在步骤S103之后,该方法还包括:Figure 2 is a schematic flow chart of an information interaction method according to the fourth embodiment of the present disclosure. As shown in Figure 2, in the fourth embodiment of the present disclosure, the first control instruction also includes a timeout time. After step S103, the Methods also include:
步骤S104,在超时时间内接收到电子设备针对执行结果的返回消息时,本地删除第一控制指令对应的会话标识符;在达到超时时间仍未接收到电子设备针对执行结果的返回消息时,也从本地删除第一控制指令对应的会话标识符。Step S104: When a return message from the electronic device regarding the execution result is received within the timeout period, the session identifier corresponding to the first control instruction is locally deleted; when the return message from the electronic device regarding the execution result is not received within the timeout period, the session identifier is also deleted. Delete the session identifier corresponding to the first control instruction locally.
在本实施例中,如果在超时时间内接收到电子设备针对执行结果的返回消息,则控制设备从会话列表中删除第一控制指令对应的会话标识符;如果达到超时时间仍未接收到电子设备针对执行结果的返回消息,控制设备也从会话列表中删除第一控制指令对应的会话标识符。In this embodiment, if a return message from the electronic device regarding the execution result is received within the timeout period, the control device deletes the session identifier corresponding to the first control instruction from the session list; if the timeout period is reached and the electronic device is not received In response to the return message of the execution result, the control device also deletes the session identifier corresponding to the first control instruction from the session list.
在一可实施方式中,电子设备在接收到广播的执行结果后,会向控制设备发送返回消息,返回消息用于表示电子设备已接收到与第一控制指令对应的执行结果;因此,控制设备在接收到来自电子设备的返回消息后,就证明第一控制指令已经执行完毕,此时需要将第一控制指令对应的会话标识符从会话列表中清除,以便接收下一个控制指令。In an implementation manner, after receiving the broadcast execution result, the electronic device will send a return message to the control device. The return message is used to indicate that the electronic device has received the execution result corresponding to the first control instruction; therefore, the control device After receiving the return message from the electronic device, it is proved that the first control instruction has been executed. At this time, the session identifier corresponding to the first control instruction needs to be cleared from the session list in order to receive the next control instruction.
在一可实施方式中,若在发送执行结果后一段时间内控制设备还未收到来自电子设备的返回消息,且这段时间已经超出超时时间,则将会话标识符从会话列表中清除。具体地,超时时间可以为自行设置的时间,其取值可以为200至300毫秒。In one possible implementation, if the control device does not receive a return message from the electronic device within a period of time after sending the execution result, and this period of time has exceeded the timeout period, the session identifier is cleared from the session list. Specifically, the timeout time can be a self-set time, and its value can be 200 to 300 milliseconds.
在本公开第四实施例中,在接收到来自电子设备发送的返回数据后,或在达到超时时间仍未接收到电子设备发送的返回数据时,将会话标识符从会话列表中清除,这样可以保证能够顺利执行下一个控制指令,不会存在会话列表一直不为空,导致控制设备一直无法执行控制指令的问题。In the fourth embodiment of the present disclosure, after receiving the return data sent from the electronic device, or when the return data sent by the electronic device is not received after the timeout period, the session identifier is cleared from the session list, so that It is guaranteed that the next control command can be executed smoothly, and there will be no problem that the session list is always not empty, causing the control device to be unable to execute the control command.
图3是根据本公开第五实施例的一种信息交互方法的流程示意图,如图3所示,该方法具体包括:Figure 3 is a schematic flowchart of an information interaction method according to the fifth embodiment of the present disclosure. As shown in Figure 3, the method specifically includes:
步骤S301,生成第一控制指令,第一控制指令包括会话标识符,会话标识符用于唯一的标识第一控制指令。Step S301: Generate a first control instruction. The first control instruction includes a session identifier. The session identifier is used to uniquely identify the first control instruction.
在本实施例中,由电子设备生成第一控制指令,第一控制指令包括会话标识符,会话标识符用于唯一的标识第一控制指令。在智能车机系统中,第一控制指令可以用于指示车辆控制中心控制车载设备,例如控制车内空调打开、车窗关闭、车辆灯光和播放器播放音乐等;在智能家居系统中,第一控制指令可以用于指示家居控制中心控制智能家居家电,例如控制电视打开、灯具熄灭和窗帘拉开等。In this embodiment, the first control instruction is generated by the electronic device, and the first control instruction includes a session identifier, and the session identifier is used to uniquely identify the first control instruction. In a smart car system, the first control instruction can be used to instruct the vehicle control center to control on-board equipment, such as controlling the opening of the air conditioner in the car, closing of the windows, vehicle lights and player playing music, etc.; in the smart home system, the first Control instructions can be used to instruct the home control center to control smart home appliances, such as turning on the TV, turning off the lights, and opening the curtains.
在一可实施方式中,会话标识符可以通过电子设备中的各种应用软件来随机生成,会话标识符具有唯一性,因此,可以用于唯一地标识第一控制指令。In an implementation manner, the session identifier can be randomly generated by various application software in the electronic device. The session identifier is unique and therefore can be used to uniquely identify the first control instruction.
在一可实施方式中,可以利用电子设备中的应用软件生成会话标识符,例如生成具有三段结构的会话标识符,该三段结构分别是软件名、生成会话标识符的时间戳和随机数。In one implementation, application software in the electronic device can be used to generate a session identifier, for example, a session identifier with a three-segment structure, which is a software name, a timestamp for generating the session identifier, and a random number. .
在一可实施方式中,用户可以通过操作电子设备中的应用软件触发生成第一控制指令,也可以通过语音直接触发电子设备生成第一控制指令。例如,在智能车机系统中,用户可以操作车载中控设备上的控车软件来触发生成第一控制指令,如用户点击控车软件上的打开车内空调的按钮,就可以触发生成用于打开车内空调的第一控制指令;在智能家居系统中,用户可以语音直接触发电子设备生成第一控制指令,如用户发出语音指令“打开电视和空调”,此时电子设备可以将该语音指令解析为文字,然后使用自然语言识别接口将该语音指令解析为“打开电视”和“打开空调”的意图,最后分别生成用于打开电视的第一控制指令和用于打开空调的第一控制指令。当然,智能车机系统也可以使用语音直接触发电子设备生成第一控制指令,本公开不对触发生成第一控制指令的方式进行限定。In one implementation, the user can trigger the generation of the first control instruction by operating the application software in the electronic device, or can directly trigger the electronic device to generate the first control instruction through voice. For example, in a smart car system, the user can operate the car control software on the car central control device to trigger the generation of the first control instruction. For example, if the user clicks the button on the car control software to turn on the air conditioner in the car, the user can trigger the generation of the first control instruction. The first control instruction is to turn on the air conditioner in the car; in the smart home system, the user can directly trigger the electronic device to generate the first control instruction with voice. For example, the user issues the voice instruction "Turn on the TV and air conditioner", and the electronic device can then transmit the voice instruction. Parse it into text, then use a natural language recognition interface to parse the voice instruction into the intentions of "turn on the TV" and "turn on the air conditioner", and finally generate the first control instruction for turning on the TV and the first control instruction for turning on the air conditioner respectively. . Of course, the smart vehicle system can also use voice to directly trigger the electronic device to generate the first control instruction. This disclosure does not limit the method of triggering the generation of the first control instruction.
步骤S302,将第一控制指令发送至控制设备。Step S302: Send the first control instruction to the control device.
在本实施例中,生成第一控制指令之后,电子设备需要将第一控制指令发送至控制设备,以使控制设备执行第一控制指令。In this embodiment, after generating the first control instruction, the electronic device needs to send the first control instruction to the control device, so that the control device executes the first control instruction.
在一可实施方式中,电子设备可以通过控制设备对应的接口将第一控制指令发送至控制设备,也可以通过蓝牙等来发送第一控制指令。例如,在智能车机系统中,可以将第一控制指令发送至车辆控制中心对应的接口,也可以将车辆控制中心与电子设备蓝牙连接,通过蓝牙将第一控制指令发送至车辆控制中心;类似的,在智能家居系统中,也可以通过家居控制中心的接口或者蓝牙、无线通信技术WiFi等将第一控制指令发送至家居控制中心。In an implementation manner, the electronic device may send the first control instruction to the control device through a corresponding interface of the control device, or may send the first control instruction through Bluetooth or the like. For example, in a smart vehicle system, the first control command can be sent to the corresponding interface of the vehicle control center, or the vehicle control center can be connected to the electronic device via Bluetooth, and the first control command can be sent to the vehicle control center through Bluetooth; similarly Yes, in a smart home system, the first control command can also be sent to the home control center through the interface of the home control center or Bluetooth, wireless communication technology WiFi, etc.
步骤S303,接收控制设备广播的执行结果。Step S303: Receive the execution result broadcast by the control device.
在本实施例中,电子设备在将第一控制指令发送至控制设备之后,控制设备会在没有正在执行的第二控制指令时,执行第一控制指令,并将执行结果广播至与其相连的电子设备,因此电子设备还需要接收控制设备广播的执行结果,执行结果中包括第一控制指令对应的会话标识符。In this embodiment, after the electronic device sends the first control instruction to the control device, the control device executes the first control instruction when there is no second control instruction being executed, and broadcasts the execution result to the electronic device connected to it. device, therefore the electronic device also needs to receive the execution result broadcast by the control device, and the execution result includes the session identifier corresponding to the first control instruction.
步骤S304,根据执行结果中携带的会话标识符,识别是否为对应第一控制指令的执行结果。Step S304: Identify whether the execution result corresponds to the first control instruction according to the session identifier carried in the execution result.
在本实施例中,电子设备还需要根据执行结果中携带的会话标识符,识别执行结果是否为电子设备发出的第一控制指令所对应的执行结果。In this embodiment, the electronic device also needs to identify whether the execution result is the execution result corresponding to the first control instruction issued by the electronic device based on the session identifier carried in the execution result.
在一可实施方式中,控制设备是以广播的形式将执行结果发出的,因此接收到的执行结果可能并非是由于该电子设备发送的第一控制指令执行成功而生成的,因此在控制设备生成的执行结果中会携带第一控制指令对应的会话标识符;在电子设备接收到执行结果之后,还需要判断执行结果中的会话标识符与生成的第一控制指令中的会话标志符是否一致,如果一致,则表明电子设备收到的执行结果为该电子设备发出的第一控制指令所对应的执行结果。In one possible implementation, the control device sends the execution result in the form of a broadcast. Therefore, the received execution result may not be generated due to the successful execution of the first control instruction sent by the electronic device. Therefore, when the control device generates The execution result will carry the session identifier corresponding to the first control instruction; after the electronic device receives the execution result, it also needs to determine whether the session identifier in the execution result is consistent with the session identifier in the generated first control instruction. If they are consistent, it indicates that the execution result received by the electronic device corresponds to the first control instruction issued by the electronic device.
在本公开第五实施例中,电子设备生成第一控制指令,将第一控制指令发送至控制设备,然后接收控制设备广播的执行结果,并根据执行结果中携带的会话标识符,识别是否为对应第一控制指令的执行结果。本公开第五实施例,在生成的第一控制指令中添加会话标识符,根据接收到的执行结果中的会话标识符,识别是否为对应第一控制指令的执行结果,可以避免控制冲突和执行结果接收冲突。In the fifth embodiment of the present disclosure, the electronic device generates a first control instruction, sends the first control instruction to the control device, then receives the execution result broadcast by the control device, and identifies whether it is a session identifier based on the session identifier carried in the execution result. Corresponds to the execution result of the first control instruction. In the fifth embodiment of the present disclosure, a session identifier is added to the generated first control instruction, and based on the session identifier in the received execution result, whether it is the execution result corresponding to the first control instruction is identified, which can avoid control conflicts and execution The result is a conflict.
在本公开第六实施例中,在步骤S302之后,该方法还包括:接收控制设备广播的针对所收到控制指令的响应结果,并根据响应结果中携带的会话标识符,识别是否为对应第一控制指令的响应结果;其中,控制设备在收到第一控制指令后,确定有正在执行的第二控制指令时,广播的是针对第一控制指令的第一响应结果,第一响应结果用于表示拒绝执行第一控制指令,第一响应结果中包括第一控制指令对应的会话标识符;控制设备在收到第一控制指令后,确定无正在执行的第二控制指令时,广播的是针对第一控制指令的第二响应结果,第二响应结果用于表示第一控制指令发送成功,第二响应结果中包括第一控制指令对应的会话标识符;In the sixth embodiment of the present disclosure, after step S302, the method further includes: receiving a response result broadcast by the control device for the received control instruction, and identifying whether it is the corresponding session identifier according to the session identifier carried in the response result. A response result of a control instruction; wherein, after receiving the first control instruction, when the control device determines that there is a second control instruction being executed, it broadcasts the first response result for the first control instruction, and the first response result is To express refusal to execute the first control instruction, the first response result includes the session identifier corresponding to the first control instruction; after receiving the first control instruction, when the control device determines that there is no second control instruction being executed, it broadcasts For the second response result of the first control instruction, the second response result is used to indicate that the first control instruction is sent successfully, and the second response result includes the session identifier corresponding to the first control instruction;
相应的,根据响应结果中携带的会话标识符,识别为对应第一控制指令的第一响应结果时,执行与第一响应结果对应的预设处理策略;识别为对应第一控制指令的第二响应结果时,等待接收控制设备返回的执行结果;识别为非对应第一控制指令的响应结果时,丢弃所接收的响应结果。Correspondingly, according to the session identifier carried in the response result, when the first response result is identified as corresponding to the first control instruction, the preset processing strategy corresponding to the first response result is executed; the second response result is identified as corresponding to the first control instruction. When responding to the result, wait for the execution result returned by the receiving control device; when identifying the response result as not corresponding to the first control instruction, discard the received response result.
在本实施例中,电子设备在将第一控制指令发送至控制设备之后,还需要接收控制设备广播的针对所收到的控制指令的响应结果,响应结果包括第一响应结果和第二响应结果,第一响应结果用于表示有正在执行的第二控制指令,控制设备拒绝执行第一控制指令;第二响应结果用于表示没有正在执行的第二控制指令,控制设备成功接收到第一控制指令,并将执行第一控制指令。In this embodiment, after sending the first control instruction to the control device, the electronic device also needs to receive a response result broadcast by the control device in response to the received control instruction. The response result includes a first response result and a second response result. , the first response result is used to indicate that there is a second control instruction being executed, and the control device refuses to execute the first control instruction; the second response result is used to indicate that there is no second control instruction being executed, and the control device successfully received the first control instruction. instruction and will execute the first control instruction.
在一可实施方式中,电子设备还需要根据响应结果中携带的会话标识符,识别是否为对应第一控制指令的响应结果,若识别为非对应第一控制指令的响应结果,则丢弃所接收的响应结果。In an implementation, the electronic device further needs to identify whether the response result is a response result corresponding to the first control instruction based on the session identifier carried in the response result. If it is identified as a response result not corresponding to the first control instruction, discard the received response result. response results.
在一可实施方式中,电子设备若接收到第一响应结果,则执行与第一响应结果对应的预设处理策略,预设处理策略可以为提前设定的针对控制设备拒绝执行第一控制指令的处理方式,例如,预设处理策略可以为提示用户请求失败或者等待一定时间后再次发送该控制指令等;若接收到第二响应指令,则等待接收控制设备返回的执行结果,也可以提示用户可以进行下一步操作等。In an implementation manner, if the electronic device receives the first response result, it executes a preset processing strategy corresponding to the first response result. The preset processing strategy may be a preset refusal to execute the first control instruction for the control device. For example, the preset processing strategy can be to prompt the user that the request fails or wait for a certain period of time before sending the control instruction again; if the second response instruction is received, wait for the execution result returned by the control device, or prompt the user You can proceed to the next step, etc.
在本公开第六实施例中,电子设备接收控制设备广播的针对控制指令的响应结果,并根据响应结果中携带的会话标识符,识别是否为第一控制指令对应的响应结果,可以避免响应结果接收冲突,而且针对不同的响应结果,执行不同的处理策略,可以保证信息交互的流畅性,提高用户体验。In the sixth embodiment of the present disclosure, the electronic device receives the response result for the control instruction broadcast by the control device, and identifies whether it is the response result corresponding to the first control instruction according to the session identifier carried in the response result, so that the response result can be avoided Receive conflicts and implement different processing strategies for different response results to ensure the smoothness of information interaction and improve user experience.
在本公开第七实施例中,在步骤S304之后,该方法还包括:在确定执行结果中携带的会话标识符为第一控制指令对应的会话标识符时,识别为对应第一控制指令的执行结果,并向控制设备发送针对执行结果的返回消息;否则,忽略执行结果。In the seventh embodiment of the present disclosure, after step S304, the method further includes: when it is determined that the session identifier carried in the execution result is the session identifier corresponding to the first control instruction, identifying the execution corresponding to the first control instruction. results and sends a return message for the execution result to the control device; otherwise, the execution result is ignored.
在本实施例中,电子设备需要判断收到的执行结果中携带的会话标识符与第一控制指令对应的会话标识符是否相等,如果相等,则表明收到的执行结果为对应第一控制指令的执行结果,此时则发送针对执行结果的返回消息至控制设备;如果不相等,则表明收到的执行结果不为与第一控制指令对应的执行结果,此时则忽略收到的该执行结果。In this embodiment, the electronic device needs to determine whether the session identifier carried in the received execution result is equal to the session identifier corresponding to the first control instruction. If they are equal, it indicates that the received execution result corresponds to the first control instruction. The execution result of result.
本公开第七实施例,在确定执行结果为对应第一控制指令的执行结果时,电子设备向控制设备发送针对执行结果的返回消息,可以避免执行结果接收冲突,电子设备也可以准确地向控制设备发送与执行结果对应的返回消息。In the seventh embodiment of the present disclosure, when it is determined that the execution result is the execution result corresponding to the first control instruction, the electronic device sends a return message for the execution result to the control device, which can avoid execution result reception conflicts, and the electronic device can also accurately send the control message to the control device. The device sends a return message corresponding to the execution result.
在本公开第八实施例中,第一控制指令还包括超时时间,超时时间用于控制设备识别针对执行结果的返回消息是否超时。In the eighth embodiment of the present disclosure, the first control instruction also includes a timeout time, and the timeout time is used to control the device to identify whether the return message for the execution result times out.
本公开第八实施例,超时时间可以保证能够控制设备顺利执行下一个控制指令,不会存在一直有正在执行的第二指令,导致控制设备一直无法执行控制指令的问题。In the eighth embodiment of the present disclosure, the timeout time can ensure that the control device can successfully execute the next control instruction, and there will not be a problem that the second instruction is always being executed, causing the control device to be unable to execute the control instruction.
本公开中控制设备与电子设备之间的交互过程为:The interaction process between the control device and the electronic device in this disclosure is:
电子设备生成第一控制指令,第一控制指令包括会话标识符和超时时间,会话标识符用于唯一的标识第一控制指令;控制设备接收第一控制指令,并判断是否有正在执行的第二控制指令;若有正在执行的第二控制指令,向电子设备广播第一响应结果;若没有正在执行的第二控制指令,向电子设备广播第二响应结果,执行第一控制指令,得到执行结果,执行结果包括会话标识符,且将执行结果广播至电子设备;电子设备接收控制设备发送的第一响应结果或第二响应结果,并在请求成功时接收控制设备广播的执行结果;电子设备根据执行结果中的会话标识符,识别执行结果为对应第一控制指令的执行结果,则向控制设备发送针对执行结果的返回消息,否则,忽略执行结果;控制设备接收到返回消息后,将会话标识符从本地清除;若控制设备在达到超时时间仍未接收到电子设备发送的返回消息,则将会话标识符从本地清除。The electronic device generates a first control instruction. The first control instruction includes a session identifier and a timeout time. The session identifier is used to uniquely identify the first control instruction. The control device receives the first control instruction and determines whether there is a second control instruction being executed. Control instruction; if there is a second control instruction being executed, broadcast the first response result to the electronic device; if there is no second control instruction being executed, broadcast the second response result to the electronic device, execute the first control instruction, and obtain the execution result , the execution result includes the session identifier, and the execution result is broadcast to the electronic device; the electronic device receives the first response result or the second response result sent by the control device, and receives the execution result broadcast by the control device when the request is successful; the electronic device according to The session identifier in the execution result identifies that the execution result is the execution result corresponding to the first control instruction, and then sends a return message for the execution result to the control device; otherwise, the execution result is ignored; after receiving the return message, the control device sends the session identifier The session identifier is cleared from the local area; if the control device does not receive the return message sent by the electronic device before the timeout period is reached, the session identifier is cleared from the local area.
下面结合智能车机系统的应用场景对本公开实施例的信息交互方法进一步详细阐述。图4是根据本公开一种信息交互方法的第一应用场景图,如图4所示,本公开实施例的智能车机系统主要包括:车载中控设备,车辆控制中心和各种车载设备,例如车内空调、车窗和车灯等,其中,车载中控设备与车辆控制中心连接,车辆控制中心与各种车载设备连接。需要强调的是,在实际应用场景中,车载设备可根据实际需要进行扩充,本公开不对车载设备的种类和数量进行限定。The information interaction method of the embodiment of the present disclosure will be further described in detail below in conjunction with the application scenarios of the smart vehicle-machine system. Figure 4 is a first application scenario diagram of an information interaction method according to the present disclosure. As shown in Figure 4, the smart vehicle system according to the embodiment of the present disclosure mainly includes: vehicle central control equipment, vehicle control center and various vehicle equipment. For example, in-car air conditioners, windows and lights, etc. Among them, the vehicle central control equipment is connected to the vehicle control center, and the vehicle control center is connected to various vehicle equipment. It should be emphasized that in actual application scenarios, vehicle-mounted equipment can be expanded according to actual needs, and the present disclosure does not limit the type and quantity of vehicle-mounted equipment.
本公开实施例的信息交互方法在智能车机系统中的应用实施过程主要包括:用户通常通过操作车载中控设备(电子设备)来触发第一控制指令,车载中控设备将第一控制指令发送至车辆控制中心(控制设备),然后车辆控制中心根据第一控制指令来控制各种车载设备,例如车内空调、车窗和车灯等,则车载中控设备与车辆控制中心的交互过程为:车载中控设备生成第一控制指令,第一控制指令包括会话标识符和超时时间,并将第一控制指令发送至车辆控制中心;车辆控制中心接收到第一控制指令之后,判断是否有正在执行的第二控制指令;若有正在执行的第二控制指令,向车载中控设备广播第一响应结果;若没有正在执行的第二控制指令,向车载中控设备广播第二响应结果,并执行第一控制指令来控制车内空调打开、车窗关闭和车灯打开等,得到执行结果,执行结果包括会话标识符,且将执行结果广播至车载中控设备;车载中控设备接收车辆控制中心发送的第一响应结果或第二响应结果,并在请求成功时接收车辆控制中心广播的执行结果,然后根据执行结果中的会话标识符,识别执行结果为对应第一控制指令的执行结果,则向车辆控制中心发送针对执行结果的返回消息,否则,忽略执行结果;车辆控制中心接收到返回消息后,将会话标识符从本地清除,若车辆控制中心在达到超时时间仍未接收到车载中控设备发送的返回消息,也将会话标识符从本地清除。The application implementation process of the information interaction method in the smart vehicle system according to the embodiment of the present disclosure mainly includes: the user usually triggers the first control instruction by operating the vehicle-mounted central control device (electronic device), and the vehicle-mounted central control device sends the first control instruction to the vehicle control center (control device), and then the vehicle control center controls various vehicle-mounted equipment, such as in-car air conditioners, windows and lights, etc. according to the first control instruction. The interaction process between the vehicle-mounted central control equipment and the vehicle control center is: : The vehicle-mounted central control device generates a first control instruction, the first control instruction includes a session identifier and a timeout time, and sends the first control instruction to the vehicle control center; after receiving the first control instruction, the vehicle control center determines whether there is The second control instruction being executed; if there is a second control instruction being executed, the first response result is broadcast to the vehicle-mounted central control device; if there is no second control instruction being executed, the second response result is broadcast to the vehicle-mounted central control device, and Execute the first control instruction to control the opening of the air conditioner in the car, the closing of the windows, the opening of the lights, etc., and the execution result is obtained. The execution result includes the session identifier, and the execution result is broadcast to the vehicle-mounted central control device; the vehicle-mounted central control device receives the vehicle control The first response result or the second response result sent by the center, and when the request is successful, receive the execution result broadcast by the vehicle control center, and then identify the execution result as the execution result corresponding to the first control instruction according to the session identifier in the execution result, Then send a return message for the execution result to the vehicle control center, otherwise, ignore the execution result; after receiving the return message, the vehicle control center will clear the session identifier from the local. If the vehicle control center has not received the on-board message after the timeout period is reached, The return message sent by the controlling device also clears the session identifier locally.
下面再结合智能家居系统的应用场景对本公开实施例的信息交互方法进一步详细阐述。图5是根据本公开一种信息交互方法的第二应用场景图,如图5所示,本公开实施例的智能家居系统主要包括:中控客户端设备、家居控制中心和各种智能家具家电,例如电视、灯具和窗帘等,其中,中控客户端设备与家居控制中心连接,家居控制中心与各种智能家具家电连接。需要强调的是,在实际应用场景中,智能家具家电可根据实际需要进行扩充,本公开不对智能家具家电的种类和数量进行限定。The information interaction method of the embodiment of the present disclosure will be further elaborated below in combination with the application scenarios of the smart home system. Figure 5 is a second application scenario diagram of an information interaction method according to the present disclosure. As shown in Figure 5, the smart home system of the embodiment of the present disclosure mainly includes: a central control client device, a home control center and various smart furniture and appliances , such as TVs, lamps and curtains, etc. Among them, the central control client device is connected to the home control center, and the home control center is connected to various smart furniture and appliances. It should be emphasized that in actual application scenarios, smart furniture and appliances can be expanded according to actual needs, and this disclosure does not limit the type and quantity of smart furniture and appliances.
本公开实施例的信息交互方法在智能家居系统中的应用实施过程主要包括:用户通常通过操作中控客户端设备(电子设备)来触发第一控制指令,中控客户端设备将第一控制指令发送至家居控制中心(控制设备),然后家居控制中心根据第一控制指令来控制各种智能家具家电,例如电视、灯具和窗帘等,则中控客户端设备与家居控制中心的交互过程为:中控客户端设备生成第一控制指令,第一控制指令包括会话标识符和超时时间,并将第一控制指令发送至家居控制中心;家居控制中心接收到第一控制指令之后,判断是否有正在执行的第二控制指令;若有正在执行的第二控制指令,向中控客户端设备广播第一响应结果;若没有正在执行的第二控制指令,向中控客户端设备广播第二响应结果,并执行第一控制指令来控制电视打开、灯具熄灭和窗帘拉开等,得到执行结果,执行结果包括会话标识符,且将执行结果广播至中控客户端设备;中控客户端设备接收家居控制中心发送的第一响应结果或第二响应结果,并在请求成功时接收家居控制中心广播的执行结果,然后根据执行结果中的会话标识符,识别执行结果为对应第一控制指令的执行结果,则向家居控制中心发送针对执行结果的返回消息,否则,忽略执行结果;家居控制中心接收到返回消息后,将会话标识符从本地清除,若家居控制中心在达到超时时间仍未接收到中控客户端设备发送的返回消息,也将会话标识符从本地清除。The application implementation process of the information interaction method in the smart home system of the disclosed embodiment mainly includes: the user usually triggers the first control instruction by operating the central control client device (electronic device), and the central control client device sends the first control instruction Sent to the home control center (control device), and then the home control center controls various smart furniture appliances, such as TVs, lamps and curtains, etc. according to the first control instruction. The interaction process between the central control client device and the home control center is: The central control client device generates a first control instruction, the first control instruction includes a session identifier and a timeout time, and sends the first control instruction to the home control center; after receiving the first control instruction, the home control center determines whether there is The second control instruction being executed; if there is a second control instruction being executed, the first response result is broadcast to the central control client device; if there is no second control instruction being executed, the second response result is broadcast to the central control client device , and execute the first control instruction to control turning on the TV, extinguishing the lamps, opening the curtains, etc., and obtain the execution result. The execution result includes the session identifier, and the execution result is broadcast to the central control client device; the central control client device receives the home furnishing The first response result or the second response result sent by the control center, and when the request is successful, receive the execution result broadcast by the home control center, and then identify the execution result as the execution result corresponding to the first control instruction according to the session identifier in the execution result. , then send a return message for the execution result to the home control center, otherwise, ignore the execution result; after receiving the return message, the home control center will clear the session identifier from the local. If the home control center has not received the call after the timeout period is reached, The return message sent by the control client device also clears the session identifier locally.
以上只是列举了本公开实施例的几种适用场景,当然,本公开实施例并非仅限于智能车机系统、智能家居系统等场景,还可适用于诸如智能物联网、智能教室、智能办公等场景,本公开并不限制信息交互方法和装置的应用场景,实际应用中凡是适用本公开方法和装置的应用场景应当都属于本公开的保护范围。The above only lists several applicable scenarios of the embodiments of the present disclosure. Of course, the embodiments of the present disclosure are not limited to scenarios such as smart car systems and smart home systems, but can also be applied to scenarios such as smart Internet of Things, smart classrooms, and smart offices. , this disclosure does not limit the application scenarios of the information interaction method and device. In actual applications, all application scenarios to which the disclosed method and device are applicable should fall within the protection scope of this disclosure.
图6是根据本公开第九实施例的一种信息交互装置的结构示意图,如图6所示,该装置具体包括:第一接收模块60,用于来自电子设备的第一控制指令,第一控制指令包括会话标识符,会话标识符用于唯一的标识第一控制指令;执行模块61,用于执行第一控制指令并获得执行结果,执行结果包括第一控制指令对应的会话标识符;第一广播模块62,用于广播执行结果至电子设备。Figure 6 is a schematic structural diagram of an information interaction device according to the ninth embodiment of the present disclosure. As shown in Figure 6, the device specifically includes: a first receiving module 60 for a first control instruction from an electronic device. The control instruction includes a session identifier, which is used to uniquely identify the first control instruction; the execution module 61 is used to execute the first control instruction and obtain an execution result, and the execution result includes the session identifier corresponding to the first control instruction; A broadcast module 62 is used to broadcast execution results to electronic devices.
在一可实施方式中,该装置还包括:第二广播模块,用于在所述第一接收模块60接收来自电子设备的第一控制指令后,确定有正在执行的第二控制指令时,广播针对第一控制指令的第一响应结果至电子设备,第一响应结果用于表示拒绝执行第一控制指令,第一响应结果中包括第一控制指令对应的会话标识符。In one possible implementation, the device further includes: a second broadcast module, configured to broadcast when it is determined that there is a second control instruction being executed after the first receiving module 60 receives the first control instruction from the electronic device. The first response result for the first control instruction is sent to the electronic device. The first response result is used to indicate a refusal to execute the first control instruction. The first response result includes the session identifier corresponding to the first control instruction.
在一可实施方式中,该装置还包括:第三广播模块,用于在第一接收模块60接收来自电子设备的第一控制指令后,确定无正在执行的第二控制指令时,广播针对第一控制指令的第二响应结果至电子设备,第二响应结果用于表示第一控制指令接收成功,第二响应结果中包括第一控制指令对应的会话标识符。In one possible implementation, the device further includes: a third broadcast module, configured to broadcast for the third control instruction when it is determined that there is no second control instruction being executed after the first receiving module 60 receives the first control instruction from the electronic device. A second response result of a control instruction is sent to the electronic device. The second response result is used to indicate that the first control instruction is successfully received. The second response result includes the session identifier corresponding to the first control instruction.
在一可实施方式中,该装置还包括:删除模块,用于在超时时间内接收到电子设备针对执行结果的返回消息时,本地删除第一控制指令对应的会话标识符;在达到超时时间仍未接收到电子设备针对执行结果的返回消息时,也从本地删除第一控制指令对应的会话标识符。In an implementation, the device further includes: a deletion module configured to locally delete the session identifier corresponding to the first control instruction when receiving a return message from the electronic device regarding the execution result within the timeout period; When no return message from the electronic device regarding the execution result is received, the session identifier corresponding to the first control instruction is also deleted locally.
图7是根据本公开第十实施例的一种信息交互装置的结构示意图,如图7所示,该装置具体包括:生成模块70,用于生成第一控制指令,第一控制指令包括会话标识符,会话标识符用于唯一的标识第一控制指令;发送模块71,用于将第一控制指令发送至控制设备;第二接收模块72,用于接收控制设备广播的执行结果;识别模块73,用于根据执行结果中携带的会话标识符,识别是否为对应第一控制指令的执行结果。Figure 7 is a schematic structural diagram of an information interaction device according to the tenth embodiment of the present disclosure. As shown in Figure 7, the device specifically includes: a generation module 70 for generating a first control instruction. The first control instruction includes a session identifier. The session identifier is used to uniquely identify the first control instruction; the sending module 71 is used to send the first control instruction to the control device; the second receiving module 72 is used to receive the execution result broadcast by the control device; the identification module 73 , used to identify whether the execution result corresponds to the first control instruction according to the session identifier carried in the execution result.
在一可实施方式中,该装置还包括:第三接收模块,用于接收控制设备广播的针对所收到控制指令的响应结果,并根据响应结果中携带的会话标识符,识别是否为对应第一控制指令的响应结果;其中,控制设备在收到第一控制指令后,确定有正在执行的第二控制指令时,广播的是针对第一控制指令的第一响应结果,第一响应结果用于表示拒绝执行第一控制指令,第一响应结果中包括第一控制指令对应的会话标识符;控制设备在收到第一控制指令后,确定无正在执行的第二控制指令时,广播的是针对第一控制指令的第二响应结果,第二响应结果用于表示第一控制指令发送成功,第二响应结果中包括第一控制指令对应的会话标识符;相应的,根据响应结果中携带的会话标识符,识别为对应第一控制指令的第一响应结果时,执行与第一响应结果对应的预设处理策略;识别为对应第二控制指令的第二响应结果时,等待接收控制设备返回的执行结果;识别为非对应第一控制指令的响应结果时,丢弃所接收的响应结果。In an implementation, the device further includes: a third receiving module, configured to receive a response result broadcast by the control device to the received control instruction, and to identify whether the corresponding session identifier is the corresponding one according to the session identifier carried in the response result. A response result of a control instruction; wherein, after receiving the first control instruction, when the control device determines that there is a second control instruction being executed, it broadcasts the first response result for the first control instruction, and the first response result is To express refusal to execute the first control instruction, the first response result includes the session identifier corresponding to the first control instruction; after receiving the first control instruction, when the control device determines that there is no second control instruction being executed, it broadcasts For the second response result of the first control instruction, the second response result is used to indicate that the first control instruction is sent successfully, and the second response result includes the session identifier corresponding to the first control instruction; accordingly, according to the When the session identifier is identified as the first response result corresponding to the first control instruction, execute the preset processing strategy corresponding to the first response result; when identified as the second response result corresponding to the second control instruction, wait for the receiving control device to return The execution result; when it is identified as a response result that does not correspond to the first control instruction, the received response result is discarded.
在一可实施方式中,当识别模块73确定执行结果中携带的会话标识符为第一控制指令对应的会话标识符时,且识别为对应第一控制指令的执行结果时,发送模块71还用于向控制设备发送针对执行结果的返回消息;否则,忽略执行结果。In one possible implementation, when the identification module 73 determines that the session identifier carried in the execution result is the session identifier corresponding to the first control instruction, and when it is identified as the execution result corresponding to the first control instruction, the sending module 71 also uses To send a return message for the execution result to the control device; otherwise, ignore the execution result.
在一可实施方式中,第一控制指令还包括超时时间,超时时间用于控制设备识别针对执行结果的返回消息是否超时。In an implementation manner, the first control instruction further includes a timeout period, and the timeout period is used to control the device to identify whether the return message for the execution result times out.
本公开的技术方案中,所涉及的用户个人信息的获取,存储和应用等,均符合相关法律法规的规定,且不违背公序良俗。In the technical solution of this disclosure, the acquisition, storage and application of user personal information involved are in compliance with relevant laws and regulations and do not violate public order and good customs.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
图8示出了可以用来实施本公开的实施例的示例电子设备800的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Figure 8 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图8所示,设备800包括计算单元801,其可以根据存储在只读存储器(ROM)802中的计算机程序或者从存储单元808加载到随机访问存储器(RAM)803中的计算机程序,来执行各种适当的动作和处理。在RAM 803中,还可存储设备800操作所需的各种程序和数据。计算单元801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG. 8 , the device 800 includes a computing unit 801 that can execute according to a computer program stored in a read-only memory (ROM) 802 or loaded from a storage unit 808 into a random access memory (RAM) 803 Various appropriate actions and treatments. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. Computing unit 801, ROM 802 and RAM 803 are connected to each other via bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
设备800中的多个部件连接至I/O接口805,包括:输入单元806,例如键盘、鼠标等;输出单元807,例如各种类型的显示器、扬声器等;存储单元808,例如磁盘、光盘等;以及通信单元809,例如网卡、调制解调器、无线通信收发机等。通信单元809允许设备800通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, optical disk, etc. ; and communication unit 809, such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices through computer networks such as the Internet and/or various telecommunications networks.
计算单元801可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元801的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元801执行上文所描述的各个方法和处理,例如一种信息交互方法。例如,在一些实施例中,一种信息交互方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元808。在一些实施例中,计算机程序的部分或者全部可以经由ROM 802和/或通信单元809而被载入和/或安装到设备800上。当计算机程序加载到RAM 803并由计算单元801执行时,可以执行上文描述的一种信息交互方法的一个或多个步骤。备选地,在其他实施例中,计算单元801可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行一种信息交互方法。Computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processing processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 performs various methods and processes described above, such as an information interaction method. For example, in some embodiments, an information interaction method may be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809 . When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of an information interaction method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform an information interaction method in any other suitable manner (eg, by means of firmware).
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip implemented in a system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or a combination thereof. These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor The processor, which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. An output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that the program codes, when executed by the processor or controller, cause the functions specified in the flowcharts and/or block diagrams/ The operation is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以为分布式系统的服务器,或者是结合了区块链的服务器。Computer systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other. The server can be a cloud server, a distributed system server, or a server combined with a blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, each step described in the present disclosure can be executed in parallel, sequentially, or in a different order. As long as the desired results of the technical solution disclosed in the present disclosure can be achieved, there is no limitation here.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the scope of the present disclosure. It will be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions are possible depending on design requirements and other factors. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this disclosure shall be included in the protection scope of this disclosure.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210732173.7A CN115208859B (en) | 2022-06-23 | 2022-06-23 | An information interaction method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210732173.7A CN115208859B (en) | 2022-06-23 | 2022-06-23 | An information interaction method, device, equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115208859A CN115208859A (en) | 2022-10-18 |
| CN115208859B true CN115208859B (en) | 2023-12-15 |
Family
ID=83577875
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210732173.7A Expired - Fee Related CN115208859B (en) | 2022-06-23 | 2022-06-23 | An information interaction method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115208859B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109088723A (en) * | 2018-10-26 | 2018-12-25 | 四川长虹电器股份有限公司 | A kind of long-range control method based on MQTT agreement |
| CN112099968A (en) * | 2020-08-26 | 2020-12-18 | 珠海格力电器股份有限公司 | Equipment control method, device, system, storage medium and electronic device |
| CN113012695A (en) * | 2021-02-18 | 2021-06-22 | 北京百度网讯科技有限公司 | Intelligent control method and device, electronic equipment and computer readable storage medium |
| CN113299285A (en) * | 2020-02-22 | 2021-08-24 | 北京声智科技有限公司 | Device control method, device, electronic device and computer-readable storage medium |
| CN113950803A (en) * | 2019-10-18 | 2022-01-18 | Oppo广东移动通信有限公司 | Device authority control method, device and storage medium |
| CN114114933A (en) * | 2020-08-31 | 2022-03-01 | Oppo广东移动通信有限公司 | Control method, device, device and storage medium for IoT device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101850203B1 (en) * | 2016-04-11 | 2018-04-18 | 라인 가부시키가이샤 | Method and system for interworking applications between devices |
| CN107517238A (en) * | 2016-06-17 | 2017-12-26 | 阿里巴巴集团控股有限公司 | A smart device control method, device and device for Internet of Things |
| KR102592769B1 (en) * | 2018-07-20 | 2023-10-24 | 삼성전자주식회사 | Electronic device and operating method thereof |
-
2022
- 2022-06-23 CN CN202210732173.7A patent/CN115208859B/en not_active Expired - Fee Related
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109088723A (en) * | 2018-10-26 | 2018-12-25 | 四川长虹电器股份有限公司 | A kind of long-range control method based on MQTT agreement |
| CN113950803A (en) * | 2019-10-18 | 2022-01-18 | Oppo广东移动通信有限公司 | Device authority control method, device and storage medium |
| CN113299285A (en) * | 2020-02-22 | 2021-08-24 | 北京声智科技有限公司 | Device control method, device, electronic device and computer-readable storage medium |
| CN112099968A (en) * | 2020-08-26 | 2020-12-18 | 珠海格力电器股份有限公司 | Equipment control method, device, system, storage medium and electronic device |
| CN114114933A (en) * | 2020-08-31 | 2022-03-01 | Oppo广东移动通信有限公司 | Control method, device, device and storage medium for IoT device |
| CN113012695A (en) * | 2021-02-18 | 2021-06-22 | 北京百度网讯科技有限公司 | Intelligent control method and device, electronic equipment and computer readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115208859A (en) | 2022-10-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6419792B2 (en) | Method and apparatus for real-time sharing of multimedia content between wireless devices | |
| CN108683574A (en) | A kind of apparatus control method, server and intelligent domestic system | |
| CN116705018A (en) | Voice control method, device, electronic device and readable storage medium | |
| CN111028839B (en) | Smart home control method and device and electronic equipment | |
| KR102800432B1 (en) | Method and apparatus for processing voice interaction, electronic equipment, storage medium, and computer program product | |
| JP2021121564A (en) | Elevator control method, device, electronic apparatus, storage medium, and system | |
| CN113766487B (en) | Cloud mobile phone information acquisition methods, devices, equipment and media | |
| US20210250322A1 (en) | Method and apparatus for prompting message reading state, and electronic device | |
| WO2023246478A1 (en) | Vehicle application scenario processing method and apparatus, device, and storage medium | |
| EP4099668A2 (en) | Method and apparatus for processing audio data based on vehicle networking, and electronic device | |
| CN114971689B (en) | Task processing method, device, equipment and storage medium | |
| CN113676761B (en) | Multimedia resource playing method and device and main control equipment | |
| CN107193465A (en) | A kind of touch page methods of exhibiting and system | |
| CN115208859B (en) | An information interaction method, device, equipment and storage medium | |
| CN114360554A (en) | Vehicle remote control method, device, equipment and storage medium | |
| CN113012695B (en) | Intelligent control method, device, electronic device and computer-readable storage medium | |
| CN116931858A (en) | Multi-screen projection method and device and vehicle | |
| CN115762503A (en) | Vehicle-mounted voice system, vehicle-mounted voice autonomous learning method, device and medium | |
| CN114296608A (en) | Information interaction method, device, equipment and medium | |
| CN119541485A (en) | Instruction processing method, device, electronic device, vehicle and storage medium | |
| CN115571790B (en) | A tower crane binding control method, device, handheld terminal and tower crane controller | |
| CN113448668B (en) | A method, device and electronic device for skipping pop-up windows | |
| KR20220054556A (en) | Application program communication method, device and storage medium | |
| CN108986792A (en) | The training dispatching method and system of speech recognition modeling for voice dialogue platform | |
| WO2023060956A1 (en) | Method and apparatus for simulating bluetooth behavior, and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20231215 |