Infrared signal transmission method, apparatus and electronic equipment for cloud virtual devices
By receiving functional information from the terminal device to generate an infrared transmission command, and calling a callback object to control the terminal device to transmit infrared signals, the problem of the complexity of adapting cloud virtual devices and third-party IoT devices is solved, achieving infrared signal coverage without adaptation and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA MOBILE INTERNET CO LTD
- Filing Date
- 2025-11-05
- Publication Date
- 2026-08-04
AI Technical Summary
Cloud virtual devices need to be adapted to third-party IoT devices to transmit infrared signals. This faces the complexity and uncertainty of protocol adaptation, making it difficult to cover all devices and increasing user migration costs.
By receiving functional information from the terminal device, an infrared transmission command is generated, a registered callback object is invoked, and an infrared transmission command is generated and sent to control the terminal device to transmit infrared signals, without the need for third-party IoT device adaptation.
This technology enables cloud virtual devices to transmit infrared signals through terminal devices, reducing user migration costs and improving the comprehensiveness of infrared transmission coverage and user experience.
Smart Images

Figure CN121617235B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of cloud services and infrared technology, and in particular to an infrared signal transmission method, apparatus and electronic device for a cloud virtual device. Background Technology
[0002] Currently, cloud-based virtual devices generate infrared transmission commands and send them to a cloud server via a network interface. The cloud server then forwards the commands to IoT devices with infrared transmission capabilities according to preset rules. These devices parse the commands and execute the infrared transmission operation, thereby enabling remote control of the infrared devices.
[0003] Cloud virtual devices need to be compatible with third-party IoT devices to transmit infrared signals. This approach faces the challenge of protocol compatibility, as IoT devices from different manufacturers may use different protocols. Given the large number of IoT device manufacturers, and the fact that each manufacturer's devices may have different communication protocols and control methods, achieving compatibility requires a significant investment of effort, increasing complexity and uncertainty, and making it difficult to cover all devices. Summary of the Invention
[0004] The purpose of this application is to at least partially solve one of the technical problems in the related art.
[0005] Therefore, the first objective of this application is to propose an infrared signal transmission method for cloud virtual devices, so as to enable cloud virtual devices to realize infrared transmission function through terminal devices without the need for third-party IoT devices to adapt, thereby reducing the migration cost for users and improving the comprehensiveness of infrared transmission coverage.
[0006] The second objective of this application is to provide an infrared signal transmitting device for a cloud virtual device.
[0007] The third objective of this application is to propose an electronic device.
[0008] The fourth objective of this application is to provide a computer-readable storage medium.
[0009] The fifth objective of this application is to provide a computer program product.
[0010] To achieve the above objectives, a first aspect of this application proposes a method for transmitting infrared signals from a cloud virtual device, comprising: receiving functional information of a terminal device sent by a client; responding to the functional information indicating that the terminal device supports infrared transmission function, generating an infrared transmission invocation command based on the functional information of the terminal device; invoking a registered callback object based on the invocation command, and generating an infrared transmission command through the registered callback object; and sending the infrared transmission command to the client, wherein the infrared transmission command is used to instruct the terminal device to transmit an infrared signal.
[0011] To achieve the above objectives, the first aspect of this application proposes another method for transmitting infrared signals from a cloud virtual device, comprising: determining the functional information of the terminal device where the client is located, and sending the functional information to the cloud virtual device; receiving an infrared transmission command sent by the cloud virtual device, and sending the infrared transmission command to the terminal device, so that the terminal device transmits an infrared signal based on the infrared transmission command.
[0012] To achieve the above objectives, a second aspect of this application provides an infrared signal transmitting device for a cloud virtual device, comprising: a receiving module for receiving functional information of a terminal device sent by a client; a generating module for generating an infrared transmission invocation command based on the functional information of the terminal device in response to the functional information indicating that the terminal device supports infrared transmission; an invocation module for invoking a registered callback object based on the invocation command and generating an infrared transmission command through the registered callback object; and a sending module for sending the infrared transmission command to the client, wherein the infrared transmission command is used to instruct the terminal device to transmit an infrared signal.
[0013] To achieve the above objectives, a second aspect of this application provides another infrared signal transmitting device for a cloud virtual device, comprising: a processing module for determining the functional information of the terminal device where the client is located, and sending the functional information to the cloud virtual device; and a transceiver module for receiving an infrared transmission command sent by the cloud virtual device, and sending the infrared transmission command to the terminal device, so that the terminal device transmits an infrared signal based on the infrared transmission command.
[0014] To achieve the above objectives, a third aspect of this application provides an electronic device, comprising: a processor; and a memory communicatively connected to the processor; the memory storing computer-executable instructions; and the processor executing the computer-executable instructions stored in the memory to enable the processor to execute the infrared signal transmission method of the cloud virtual device described in the first aspect of the application.
[0015] To achieve the above objectives, a fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, the computer instructions being used to cause the computer to execute the infrared signal transmission method of the cloud virtual device described in the above aspect of the embodiment.
[0016] To achieve the above objectives, a fifth aspect of this application provides a computer program product, including a computer program that, when executed by a processor, implements the infrared signal transmission method of the cloud virtual device described in the above aspect of the embodiment.
[0017] The infrared signal transmission method, apparatus, and electronic device for cloud virtual devices provided in this application receive functional information of the terminal device sent by the client. When the functional information indicates that the terminal device supports infrared transmission, an infrared transmission invocation command is generated. Based on this command, a callback object is invoked to generate an infrared transmission command, which is then sent to the client. This enables the terminal device to transmit infrared signals according to the infrared transmission command of the cloud virtual device, allowing applications using infrared functionality to run normally on the cloud virtual device, thus improving the functional expansion and user experience of the cloud virtual device. The cloud virtual device implements infrared transmission functionality through the terminal device, eliminating the need for adaptation with third-party IoT devices, reducing user migration costs, and improving the comprehensiveness of infrared transmission coverage.
[0018] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0019] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0020] Figure 1 A flowchart illustrating an infrared signal transmission method for a cloud virtual device provided in an embodiment of this application;
[0021] Figure 2 A schematic flowchart illustrating another method for transmitting infrared signals from a cloud virtual device, provided in an embodiment of this application;
[0022] Figure 3 A schematic flowchart illustrating another method for transmitting infrared signals from a cloud virtual device, provided in an embodiment of this application;
[0023] Figure 4 A schematic flowchart illustrating another method for transmitting infrared signals from a cloud virtual device, provided in an embodiment of this application;
[0024] Figure 5An interactive schematic diagram illustrating an infrared signal transmission method for a cloud virtual device provided in an embodiment of this application;
[0025] Figure 6 A schematic diagram illustrating the infrared signal transmission of the cloud virtual device provided in this embodiment of the application;
[0026] Figure 7 An interactive diagram illustrating the infrared signal transmission of a cloud virtual device provided in this embodiment of the application;
[0027] Figure 8 This is a schematic diagram of the structure of an infrared signal transmitting device for a cloud virtual device provided in an embodiment of this application;
[0028] Figure 9 This is a schematic diagram of the structure of an infrared signal transmitting device for another cloud virtual device provided in an embodiment of this application. Detailed Implementation
[0029] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0030] The infrared signal transmission method and apparatus of the cloud virtual device according to embodiments of this application are described below with reference to the accompanying drawings.
[0031] Figure 1 This is a flowchart of an infrared signal transmission method for a cloud virtual device according to an embodiment of this application, such as... Figure 1 As shown, the infrared signal transmission method of the cloud virtual device in this application includes, but is not limited to, the following steps:
[0032] S101 receives the terminal device function information sent by the client.
[0033] It should be noted that the execution subject of the infrared signal transmission method for cloud virtual devices provided in this application embodiment is a cloud virtual device, which can be a cloud phone. A cloud phone is a virtual phone service based on cloud computing technology, where hardware resources and operating systems run on a remote server, and users access and use it through a network connection via terminal devices.
[0034] In some embodiments, the client refers to a client of the cloud virtual device, and the client runs on the terminal device. The infrared signal transmission method of the cloud virtual device proposed in this application can control the terminal device to transmit infrared signals based on the cloud virtual device and the client.
[0035] In some embodiments, the cloud virtual device can be based on the communication channel with the client, after which the client sends the terminal device's functional information. This functional information refers to information related to the terminal device's infrared signal transmission.
[0036] For example, functional information could include whether the terminal device supports infrared transmission and the transmission parameters of the infrared signal when transmitting infrared signals.
[0037] In some embodiments, to improve the security of information transmission, encrypted functional information sent by the client can be received and decrypted to obtain the functional information related to infrared emission of the terminal device.
[0038] S102, in response to the function information indicating that the terminal device supports the infrared transmission function, an infrared transmission call command is generated based on the function information of the terminal device.
[0039] In some embodiments, after receiving the function information, the process of the cloud virtual device transmitting infrared signals can be executed when the function information indicates that the terminal device supports the infrared transmission function. Optionally, the function information may include a judgment result on whether the terminal device supports the infrared transmission function, and then the judgment result can be used to determine whether the terminal device supports the infrared transmission function.
[0040] In some embodiments, the functional information may further include infrared signal transmission parameters. When it is determined that the transmission parameters have been received, it is determined that the terminal device supports the infrared transmission function. Optionally, the functional information may further include the version number of the terminal device. When the version number is greater than or equal to the version number that supports the infrared transmission function, it is determined that the terminal device supports the infrared transmission function.
[0041] In some embodiments, the process of executing the transmission of infrared signals by the cloud virtual device refers to calling the infrared transmission module in the cloud virtual device and having the module generate an infrared transmission command, so as to control the terminal device to transmit infrared signals through the client based on the command.
[0042] In some embodiments, an invocation command can be generated to invoke the infrared emitting module of the cloud virtual device. The infrared emitting module can store callback objects, which are invoked based on the invocation command to generate the infrared emitting command.
[0043] In some embodiments, a calling instruction can be generated based on the infrared signal transmission parameters in the functional information, so that the calling instruction carries the infrared signal transmission parameters, thereby determining the parameters of the finally transmitted infrared signal as the transmission parameters.
[0044] S103 invokes a registered callback object based on the invocation instruction, and generates an infrared transmission instruction through the registered callback object.
[0045] It should be noted that a callback object is an object containing callback methods; it is a "callable entity" that can be invoked at a specific time, such as a function, method, or class instance that implements a specific interface. In this application, a registered callback object can be invoked based on the invocation instruction when the invocation instruction is generated.
[0046] In other words, callback objects for infrared transmission can be pre-registered in the cloud virtual device, and the registered callback objects can be invoked based on the invocation command.
[0047] In some embodiments, a callback object can be registered based on the infrared signal management interface of the cloud virtual device. This infrared signal management interface includes, but is not limited to, management functions such as detecting whether the terminal device supports infrared transmission, obtaining functional information of the terminal device, and executing infrared signal transmission. In other words, the callback object can implement multiple management functions included in the infrared signal management interface.
[0048] In some embodiments, generating the invocation command involves invoking a registered callback object based on the invocation command, and then generating the infrared transmission command by executing the infrared signal transmission management function of the callback object. Optionally, the infrared transmission command can be generated based on the infrared signal transmission parameters carried in the invocation command.
[0049] S104, send an infrared transmission command to the client, wherein the infrared transmission command is used to instruct the terminal device to transmit an infrared signal.
[0050] In some embodiments, an infrared transmission command can be sent to the client via the communication channel between the cloud virtual device and the client, so that the terminal device can transmit an infrared signal based on the infrared transmission command. The parameters of the infrared signal transmitted by the terminal device are the transmission parameters carried in the infrared transmission command.
[0051] In some embodiments, the transmission parameters carried in the infrared transmission command are the same as the transmission parameters of the terminal device itself, thereby enabling the terminal device to successfully transmit infrared signals.
[0052] In some embodiments, the cloud virtual device can also encrypt the infrared transmission command and send the encrypted infrared transmission command to the client.
[0053] The infrared signal transmission method for cloud virtual devices provided in this application embodiment receives terminal device function information sent by the client. When the function information indicates that the terminal device supports infrared transmission, an infrared transmission call command is generated. Based on this command, a callback object is called to generate an infrared transmission command, which is then sent to the client. This allows the terminal device to transmit infrared signals according to the infrared transmission command of the cloud virtual device, enabling applications using infrared functionality to run normally on the cloud virtual device, thus improving the functional expansion and user experience of the cloud virtual device. The cloud virtual device implements infrared transmission functionality through the terminal device, eliminating the need for third-party IoT devices for adaptation, reducing user migration costs, and improving the comprehensiveness of infrared transmission coverage.
[0054] Figure 2 This is a flowchart of an infrared signal transmission method for a cloud virtual device according to an embodiment of this application, such as... Figure 2 As shown, the infrared signal transmission method of the cloud virtual device in this application includes, but is not limited to, the following steps:
[0055] S201, Receive terminal device function information sent by the client.
[0056] S202, in response to the function information indicating that the terminal device supports the infrared transmission function, an infrared transmission call command is generated based on the function information of the terminal device.
[0057] In the embodiments of this application, steps S201-S202 can be implemented in any of the embodiments of this application, and no limitation is made here, nor will it be described in detail.
[0058] S203, Get the list of registered cloud virtual devices.
[0059] S204, based on the registration list, detects whether there is a registered callback object in the cloud virtual device.
[0060] In some embodiments, before invoking a registered callback object based on an invocation instruction, it can be determined whether a callback object has been registered in the cloud virtual device. If a callback object has been registered, the registered callback object can be invoked to generate an infrared transmission instruction.
[0061] In some embodiments, it can be determined whether a callback object exists in the registration list of the cloud virtual device to detect whether a registered callback object exists in the cloud virtual device. Optionally, by obtaining the registration list of the cloud virtual device and determining whether an identifier for a callback object exists in the registration list, if it exists, it is determined that a registered callback object exists in the registration list; otherwise, no registered callback object exists.
[0062] S205, in response to the existence of a registered callback object, generates an infrared transmission command by invoking the registered callback object based on the invocation instruction.
[0063] In some embodiments, if a registered callback object is identified in the registration list, an infrared transmission command can be generated by calling the registered callback object based on the invocation command, thereby controlling the terminal device to send infrared signals based on the infrared transmission command.
[0064] In some embodiments, if there is no registered callback object in the registration list, a callback object can be registered and stored in the registration list so that there is a registered callback object in the registration list.
[0065] In some embodiments, callback objects can be registered based on the infrared signal management interface of the cloud virtual device, so that the callback objects can implement multiple management functions of the infrared signal management interface.
[0066] In some embodiments, in response to the absence of a registered callback object, a callback object can be registered based on the cloud virtual device infrared signal management interface.
[0067] Optionally, by obtaining a management instance containing the management functions of the infrared signal management interface of the cloud virtual device, a callback object can be registered based on the management instance, and the callback object can be stored as a registered callback object in the registration list.
[0068] In some embodiments, the transmission parameters for transmitting infrared signals can be determined based on the invocation instruction, and an infrared transmission instruction can be generated by a callback object based on the transmission parameters.
[0069] In some embodiments, the call instruction is parsed to determine the transmission parameters for transmitting infrared signals, wherein the transmission parameters are the parameters for the terminal device to transmit infrared signals. By using the parameters for the terminal device to transmit infrared signals as the transmission parameters carried in the infrared transmission instruction, it is possible to control the terminal device to transmit infrared signals according to the infrared transmission instruction.
[0070] In other words, when generating an infrared transmission command, the infrared transmission command is generated based on the parameters of the infrared signal transmitted by the terminal device.
[0071] S206, send an infrared transmission command to the client, wherein the infrared transmission command is used to instruct the terminal device to transmit an infrared signal.
[0072] In the embodiments of this application, step S206 can be implemented in any of the ways described in the embodiments of this application. This is not limited here and will not be described in detail.
[0073] In the infrared signal transmission method of the cloud virtual device provided in this application embodiment, by obtaining the registration list of the cloud virtual device, and when there is a registered callback object in the registration list, the registered callback object is called based on the calling instruction to generate an infrared transmission instruction. In this way, the terminal device can be controlled to transmit infrared signals according to the infrared transmission instruction of the cloud virtual device, so that applications using infrared functions can also run normally on the cloud virtual device, thereby improving the functional expansion and user experience of the cloud virtual device.
[0074] Figure 3 This is a flowchart of an infrared signal transmission method for a cloud virtual device according to an embodiment of this application, such as... Figure 3 As shown, the infrared signal transmission method of the cloud virtual device in this application includes, but is not limited to, the following steps:
[0075] S301 determines the functional information of the terminal device where the client is located and sends the functional information to the cloud virtual device.
[0076] It should be noted that the execution subject of the infrared signal transmission method of the cloud virtual device provided in this application embodiment is the client, wherein the client is the client of the cloud virtual device running in the terminal device.
[0077] In some embodiments, after the client successfully streams with the cloud virtual device, a detection command can be sent to the terminal device where the client is located to detect the functional information of the terminal device according to the detection command. The functional information of the terminal device refers to information related to infrared emission.
[0078] In some embodiments, it is possible to detect whether the terminal device supports infrared transmission function, detect the transmission parameters of the infrared signal of the terminal device, and thus use the transmission parameters of the infrared signal and whether the terminal device supports infrared transmission function as functional information of the terminal device.
[0079] In some embodiments, after determining the functional information of the terminal device, the functional information of the terminal device can be sent to the cloud virtual device according to the transmission channel between the client and the cloud virtual device. Optionally, to ensure the security of information transmission, the functional information can be encrypted, and the encrypted functional information can be sent to the cloud virtual device.
[0080] S302 receives the infrared transmission command sent by the cloud virtual device and sends the infrared transmission command to the terminal device so that the terminal device can transmit infrared signals based on the infrared transmission command.
[0081] In some embodiments, after the client sends the functional information of the terminal device, the cloud virtual device generates an infrared transmission command based on the functional information, so that the client can receive the infrared transmission command sent by the cloud virtual device.
[0082] In some embodiments, the infrared transmission command may be sent in encrypted form. After receiving the infrared transmission command, the client decrypts the encrypted infrared transmission command and sends the decrypted infrared transmission command to the terminal device, so that the terminal device can transmit infrared signals based on the infrared transmission command.
[0083] In some embodiments, the infrared transmission command can also be parsed to determine the transmission parameters of the infrared signal from the infrared transmission command, and the transmission parameters of the infrared signal can be sent to the terminal device so that the terminal device can transmit the infrared signal based on the transmission parameters.
[0084] In the infrared signal transmission method for cloud virtual devices provided in this application embodiment, by determining the functional information of the terminal device and sending the functional information to the cloud virtual device, the infrared transmission command sent by the cloud virtual device can be received. The infrared transmission command is further sent to the terminal device to control the terminal device to transmit infrared signals, thereby enabling the cloud virtual device to achieve infrared transmission functionality through the terminal device. No third-party IoT devices need to be adapted, reducing user migration costs and improving the comprehensiveness of infrared transmission coverage.
[0085] Figure 4 This is a flowchart of an infrared signal transmission method for a cloud virtual device according to an embodiment of this application, such as... Figure 4 As shown, the infrared signal transmission method of the cloud virtual device in this application includes, but is not limited to, the following steps:
[0086] S401, detect whether the terminal device supports infrared transmission function, and if the terminal device supports infrared transmission function, obtain the transmission parameters of the infrared signal supported by the terminal device.
[0087] In some embodiments, whether a terminal device supports infrared transmission can be detected based on its hardware information. By detecting the infrared transmission hardware of the terminal device, it can be determined whether the terminal device supports infrared transmission. If the terminal device is found to have infrared transmission hardware, it can be determined that the terminal device supports infrared transmission.
[0088] In some embodiments, whether the terminal device supports infrared transmission can also be detected based on the terminal device's software information. This can be achieved by detecting the terminal device's version number.
[0089] In some embodiments, whether a terminal device supports infrared transmission can be detected jointly based on both its software and hardware information. Optionally, when the software information of the terminal device indicates that it supports infrared transmission, the hardware information of the terminal device can be detected.
[0090] In some embodiments, by obtaining the version number of the terminal device and a reference version number, where the reference version number supports infrared transmission, if the version number is less than the reference version number, it is determined that the terminal device does not support infrared transmission; if the version number is greater than or equal to the reference version number, it is determined that the terminal device supports infrared transmission, and the hardware information of the terminal device can then be detected.
[0091] In other words, if the version number is greater than or equal to the reference version number, the system detects whether the terminal device has infrared emitting hardware. If the terminal device has infrared emitting hardware, the system determines that the terminal device supports infrared emitting function.
[0092] In some embodiments, after determining that the terminal device supports infrared transmission, the transmission parameters of the infrared signals supported by the terminal device can be obtained, and the functional information of the terminal device can be determined based on the transmission parameters. Optionally, the transmission parameters of the infrared signals supported by the terminal device can be determined from the configuration information of the terminal device.
[0093] S402 generates functional information based on the transmission parameters of the infrared signal.
[0094] In some embodiments, the transmission parameters of the infrared signal can be used as functional information, and the version number and the transmission parameters of the infrared signal can also be used as functional information, so that the functional information can directly indicate whether the terminal device supports the infrared transmission function.
[0095] In some embodiments, the version number and infrared signal transmission parameters can be structured to obtain structured information, and the structured information can be encrypted to obtain functional information, thereby improving the security of the functional information transmission process and preventing information leakage.
[0096] S403 receives the infrared transmission command sent by the cloud virtual device and sends the infrared transmission command to the terminal device so that the terminal device can transmit infrared signals based on the infrared transmission command.
[0097] In the embodiments of this application, step S403 can be implemented in any of the ways described in the embodiments of this application. This is not limited here and will not be described in detail.
[0098] The infrared signal transmission method for cloud virtual devices provided in this application involves detecting whether the terminal device supports infrared transmission. If the terminal device supports infrared transmission, the transmission parameters of the infrared signal transmitted by the terminal device are obtained, and functional information is generated based on the transmission parameters. This solution enables applications using infrared functionality to run normally on cloud virtual devices, improving the functional expansion and user experience of cloud virtual devices.
[0099] Figure 5 This is an interactive diagram of an infrared signal transmission method for a cloud virtual device provided according to an embodiment of this application, such as... Figure 5 As shown, the infrared signal transmission method of the cloud virtual device in this application includes, but is not limited to, the following steps:
[0100] S501, obtain the functional information of the terminal device where the client is located.
[0101] S502 sends functional information to the cloud virtual device.
[0102] S503, the cloud virtual device generates an infrared transmission call command based on functional information.
[0103] S504 invokes a registered callback object based on an invocation instruction.
[0104] S505 generates infrared transmission commands through a registered callback object.
[0105] S506 sends an infrared transmission command to the client.
[0106] S507: The client sends an infrared transmission command to the terminal device.
[0107] In the infrared signal transmission method for cloud virtual devices provided in this application embodiment, the client detects the functional information of the terminal device and sends this information to the cloud virtual device. When the functional information indicates that the terminal device supports infrared transmission, an infrared transmission invocation command is generated. Based on this command, a callback object is invoked to generate an infrared transmission command, which is then sent to the client. This allows the terminal device to transmit infrared signals according to the infrared transmission command from the cloud virtual device, enabling applications using infrared functionality to run normally on the cloud virtual device, thus improving the functional expansion and user experience of the cloud virtual device. The cloud virtual device implements infrared transmission functionality through the terminal device, eliminating the need for third-party IoT devices for adaptation, reducing user migration costs, and improving the comprehensiveness of infrared transmission coverage.
[0108] Figure 6 The diagram shows a cloud virtual device transmitting infrared signals. Figure 6 This includes both the cloud virtual device side and the terminal device side. Figure 6 The cloud virtual device mentioned refers to a cloud phone, and the cloud phone client runs on the terminal device.
[0109] The cloud phone side includes: a cloud phone software development kit (SDK), which consists of a cloud-side infrared transmitter simulation module and a cloud-side end-to-cloud collaboration module, a cloud phone operating system (OS) infrared transmitter module, and applications.
[0110] The terminal device side includes: a client, a terminal device OS infrared transmitter module, and a client SDK, which consists of a terminal-side infrared transmitter simulation module and a terminal-side cloud collaboration module.
[0111] Based on the above module, the infrared signal transmission of the cloud phone can be performed, including the following steps:
[0112] Step 1: The end-to-end cloud collaboration module detects the infrared emission function of the terminal device through the end-to-end infrared transmitter simulation module;
[0113] Step 2: The end-side infrared transmitter simulation module checks whether the terminal device's OS infrared transmitter module supports infrared transmission function and obtains the terminal device's functional information.
[0114] Step 3: The end-to-end cloud collaboration module sends the terminal device's functional information to the cloud-side end-to-end cloud collaboration module;
[0115] Step 4: The cloud-side end-cloud collaboration module transmits functional information to the cloud-side infrared transmitter simulation module;
[0116] Step 5: When the function information indicates that the terminal device supports infrared transmission, register a callback object with the cloud phone OS infrared transmitter module;
[0117] Step 6: The application determines whether the terminal device supports infrared transmission.
[0118] Step 7: Obtain the terminal device's functional information through the cloud phone OS infrared transmitter module;
[0119] Step 8: Generate a call command based on the function information, and call the callback object based on the command to generate an infrared transmission command;
[0120] Step 9: The cloud phone OS infrared transmitter module transmits infrared transmission commands to the cloud-side infrared transmitter simulation module;
[0121] Step 10: The cloud-side infrared transmitter simulation module transmits infrared transmission commands to the cloud-side end-cloud collaboration module;
[0122] Step 11: The cloud-side cloud-edge collaborative module sends an infrared transmission command to the edge-side cloud-edge collaborative module;
[0123] Step 12: The end-to-end cloud collaboration module sends an infrared transmission command to the end-to-end infrared transmitter simulation module;
[0124] Step 13: The end-side infrared transmitter simulation module sends an infrared transmission command to the terminal device OS infrared transmitter module, thereby realizing the transmission of infrared signals.
[0125] based on Figure 6 The module includes a cloud-side infrared transmitter simulation module, a cloud-side edge-cloud collaboration module, a cloud phone OS infrared transmitter module, an application, a client, a terminal device OS infrared transmitter module, an edge-side infrared transmitter simulation module, and an edge-side edge-cloud collaboration module. Figure 7 The diagram illustrates the interaction of a cloud virtual device transmitting infrared signals.
[0126] By accessing the cloud phone client on the terminal device and establishing a connection with the end-to-end cloud collaboration module, the cloud phone can successfully stream data. The client obtains the terminal device's functional information through the end-to-end infrared transmitter emulation module and the terminal device's OS infrared transmitter module. This functional information is encrypted in the end-to-end infrared transmitter emulation module and then sent to the cloud phone's cloud-side infrared transmitter emulation module via the end-to-end cloud collaboration module and the cloud-side cloud collaboration module, where it is decrypted. The cloud-side infrared transmitter emulation module can also register callback objects to the cloud phone's OS infrared transmitter module.
[0127] Applications on cloud phones can utilize the infrared transmission function of terminal devices. By detecting whether the terminal device supports infrared transmission, and if so, calling a registered callback object in the cloud phone OS infrared transmitter module, an infrared transmission command is generated and encrypted. This encrypted command is then sent to the client for decryption. The decrypted command is then sent to the edge infrared transmitter simulation module, where the transmission parameters are determined. Based on these parameters, the terminal device OS infrared transmitter module is controlled to transmit infrared signals.
[0128] Corresponding to the infrared signal transmission methods of cloud virtual devices proposed in the above embodiments, an embodiment of this application also proposes an infrared signal transmission device for cloud virtual devices. Since the infrared signal transmission device for cloud virtual devices proposed in this application corresponds to the infrared signal transmission methods for cloud virtual devices proposed in the above embodiments, the implementation methods of the infrared signal transmission methods for cloud virtual devices described above are also applicable to the infrared signal transmission device for cloud virtual devices proposed in this application. It will not be described in detail in the following embodiments.
[0129] Figure 8 This is a schematic diagram of the structure of an infrared signal transmitting device for a cloud virtual device provided in an embodiment of this application.
[0130] like Figure 8 As shown, the infrared signal transmitting device 800 of the cloud virtual device includes:
[0131] The receiving module 801 is used to receive the functional information of the terminal device sent by the client;
[0132] The generation module 802 is used to generate an infrared transmission call command based on the function information of the terminal device in response to the function information indicating that the terminal device supports the infrared transmission function.
[0133] The calling module 803 is used to call a registered callback object based on the calling instruction, and generate an infrared transmission instruction through the registered callback object;
[0134] The sending module 804 is used to send an infrared transmission command to the client, wherein the infrared transmission command is used to instruct the terminal device to transmit an infrared signal.
[0135] In one possible implementation of this application embodiment, the calling module 803 is further configured to: obtain a registration list of cloud virtual devices; detect whether there is a registered callback object for the cloud virtual device based on the registration list; and, in response to the existence of a registered callback object, call the registered callback object based on the calling instruction to generate an infrared transmission instruction.
[0136] In one possible implementation of this application embodiment, the calling module 803 is further configured to: register a callback object based on the cloud virtual device infrared signal management interface in response to the absence of a registered callback object.
[0137] In one possible implementation of this application embodiment, the calling module 803 is further configured to: obtain a management instance that implements the management functions included in the infrared signal management interface; register a callback object based on the management instance, and store the callback object as a registered callback object in the registration list.
[0138] In one possible implementation of this application embodiment, the calling module 803 is further configured to: determine the transmission parameters for transmitting infrared signals based on the calling instruction; and generate an infrared transmission instruction based on the transmission parameters through a callback object.
[0139] In one possible implementation of this application embodiment, the sending module 804 is further configured to: encrypt the infrared transmission command and send the encrypted infrared transmission command to the client.
[0140] The infrared signal transmitting device for cloud virtual devices provided in this application receives terminal device function information sent by the client. When the function information indicates that the terminal device supports infrared transmission, an infrared transmission call command is generated. Based on this command, a callback object is called to generate an infrared transmission command, which is then sent to the client. This allows the terminal device to transmit infrared signals according to the infrared transmission command of the cloud virtual device, enabling applications using infrared functionality to run normally on the cloud virtual device, thus improving the functional expansion and user experience of the cloud virtual device. The cloud virtual device implements infrared transmission functionality through the terminal device, eliminating the need for third-party IoT devices for adaptation, reducing user migration costs, and improving the comprehensiveness of infrared transmission coverage.
[0141] Figure 9 This is a schematic diagram of the structure of an infrared signal transmitting device for a cloud virtual device provided in an embodiment of this application.
[0142] like Figure 9 As shown, the infrared signal transmitting device 900 of the cloud virtual device includes:
[0143] Processing module 901 is used to determine the functional information of the terminal device where the client is located and send the functional information to the cloud virtual device;
[0144] The transceiver module 902 is used to receive infrared transmission commands sent by the cloud virtual device and send the infrared transmission commands to the terminal device so that the terminal device can transmit infrared signals based on the infrared transmission commands.
[0145] In one possible implementation of this application embodiment, the processing module 901 is further configured to: detect whether the terminal device supports infrared transmission function, and when the terminal device supports infrared transmission function, obtain the transmission parameters of the infrared signal supported by the terminal device; and generate functional information based on the transmission parameters of the infrared signal.
[0146] In one possible implementation of this application embodiment, the processing module 901 is further configured to: obtain the version number of the terminal device and a reference version number, wherein the reference version number supports infrared transmission function; in response to the version number being greater than or equal to the reference version number, detect whether the terminal device has infrared transmission hardware; and in response to the terminal device having infrared transmission hardware, determine that the terminal device supports infrared transmission function.
[0147] In one possible implementation of this application embodiment, the processing module 901 is further configured to: perform structured processing on the version number and the transmission parameters of the infrared signal to obtain structured information; and encrypt the structured information to obtain functional information.
[0148] In the infrared signal transmitting device for cloud virtual devices provided in this application embodiment, by determining the functional information of the terminal device and sending the functional information to the cloud virtual device, the device can receive infrared transmission commands sent by the cloud virtual device. Furthermore, the infrared transmission commands are sent to the terminal device to control the terminal device to transmit infrared signals. This enables the cloud virtual device to achieve infrared transmission functionality through the terminal device, eliminating the need for adaptation by third-party IoT devices, reducing user migration costs, and improving the comprehensiveness of infrared transmission coverage.
[0149] It should be noted that the foregoing explanation of the infrared signal transmission method embodiment for cloud virtual devices also applies to the infrared signal transmission device of the cloud virtual device in this embodiment, and will not be repeated here.
[0150] To implement the above embodiments, this application also proposes an electronic device, including: a processor and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the method provided in the foregoing embodiments.
[0151] To implement the above embodiments, this application also proposes a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods provided in the foregoing embodiments.
[0152] To implement the above embodiments, this application also proposes a computer program product, including a computer program that, when executed by a processor, implements the methods provided in the foregoing embodiments.
[0153] The collection, storage, use, processing, transmission, provision, and application of user personal information involved in this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0154] It should be noted that personal information collected from users should be used for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. Furthermore, such collection / sharing should only be conducted after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign an agreement / authorization that includes authorization of relevant user information before the user uses the function. In addition, any necessary steps must be taken to protect and safeguard access to such personal information data and ensure that others with access to personal information data comply with their privacy policies and procedures.
[0155] This application is intended to provide an implementation scheme for users to selectively prevent the use or access to their personal information data. Specifically, this application is intended to provide hardware and / or software to prevent or block access to such personal information data. Once personal information data is no longer needed, risks can be minimized by restricting data collection and deleting data. Furthermore, where applicable, such personal information is de-identified to protect user privacy.
[0156] In the foregoing descriptions of the embodiments, the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0157] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0158] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0159] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0160] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any of the following techniques known in the art, or a combination thereof: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0161] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0162] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0163] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A method for transmitting infrared signals in a cloud virtual device, characterized in that, Performed by a cloud virtual device, the method includes: Receive terminal device function information sent by the client; In response to the function information indicating that the terminal device supports infrared transmission, an infrared transmission invocation command is generated based on the function information of the terminal device; The registered callback object is invoked based on the invocation instruction, and an infrared emission instruction is generated through the registered callback object. The infrared transmission command is sent to the client, wherein the infrared transmission command is used to instruct the terminal device to transmit an infrared signal.
2. The method according to claim 1, characterized in that, Before invoking the registered callback object based on the invocation instruction, the following steps are included: Obtain the registration list of the cloud virtual devices; Based on the registration list, detect whether the cloud virtual device has a registered callback object; In response to the existence of the registered callback object, the infrared emission command is generated by invoking the registered callback object based on the invocation instruction.
3. The method according to claim 2, characterized in that, The method further includes: In response to the absence of the registered callback object, a callback object is registered based on the infrared signal management interface of the cloud virtual device.
4. The method according to claim 3, characterized in that, The infrared signal management interface based on the cloud virtual device registers callback objects, including: Obtain a management instance that implements the management functions included in the infrared signal management interface; Based on the management instance, a callback object is registered, and the callback object is stored in the registration list as a registered callback object.
5. The method according to claim 1, characterized in that, The step of invoking a registered callback object based on the invocation instruction, and generating an infrared transmission instruction through the registered callback object, includes: Based on the invocation command, the transmission parameters for transmitting the infrared signal are determined; The callback object generates the infrared transmission command based on the transmission parameters.
6. The method according to any one of claims 1-5, characterized in that, Sending the infrared transmission command to the client includes: The infrared transmission command is encrypted, and the encrypted infrared transmission command is sent to the client.
7. A method for transmitting infrared signals in a cloud virtual device, characterized in that, The method, executed by the client, includes: Determine the functional information of the terminal device where the client is located, and send the functional information to the cloud virtual device; The system receives an infrared transmission command sent by the cloud virtual device and sends the infrared transmission command to the terminal device, so that the terminal device transmits an infrared signal based on the infrared transmission command. The determination of the functional information of the terminal device where the client is located includes: Detect whether the terminal device supports infrared transmission function, and when the terminal device supports infrared transmission function, obtain the transmission parameters of the infrared signal supported by the terminal device; The functional information is generated based on the emission parameters of the infrared signal.
8. The method according to claim 7, characterized in that, The detection of whether the terminal device supports infrared emission function includes: Obtain the version number and reference version number of the terminal device, wherein the reference version number supports infrared transmission function; In response to the version number being greater than or equal to the reference version number, the presence of infrared emitting hardware in the terminal device is detected. In response to the presence of infrared emitting hardware in the terminal device, it is determined that the terminal device supports infrared emitting function.
9. The method according to claim 8, characterized in that, The step of generating the functional information based on the emission parameters of the infrared signal includes: The version number and the transmission parameters of the infrared signal are processed in a structured manner to obtain structured information; The structured information is encrypted to obtain the functional information.
10. An infrared signal transmitting device for a cloud virtual device, characterized in that, Suitable for cloud virtual devices, the device includes: The receiving module is used to receive the functional information of the terminal device sent by the client. A generation module is used to generate an infrared transmission call command based on the functional information of the terminal device in response to the functional information indicating that the terminal device supports the infrared transmission function. The calling module is used to call a registered callback object based on the calling instruction, and generate an infrared transmission instruction through the registered callback object; The sending module is used to send the infrared transmission command to the client, wherein the infrared transmission command is used to instruct the terminal device to transmit an infrared signal.
11. An infrared signal transmitting device for a cloud virtual device, characterized in that, For use with a client, the device includes: The processing module is used to determine the functional information of the terminal device where the client is located, and send the functional information to the cloud virtual device; The transceiver module is used to receive infrared transmission commands sent by the cloud virtual device and send the infrared transmission commands to the terminal device, so that the terminal device transmits infrared signals based on the infrared transmission commands; The processing module is further configured to: Detect whether the terminal device supports infrared transmission function, and when the terminal device supports infrared transmission function, obtain the transmission parameters of the infrared signal supported by the terminal device; The functional information is generated based on the emission parameters of the infrared signal.
12. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-9.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-9.
14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-9.