Infrared remote control method, device and equipment for cloud mobile phone application, medium and product
By initiating infrared communication requests and encapsulating data through a third-party application on the cloud phone, the problem of cloud phones being unable to perform infrared remote control was solved, enabling infrared communication with real devices and expanding the application scenarios of cloud phones.
Patent Information
- Application Number
- CN202511153089.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-18
- Publication Date
- 2025-10-31
AI Technical Summary
Cloud phones lack infrared transmitter hardware modules, making it impossible for them to communicate and control data via infrared like real mobile phones, which limits their application in certain scenarios.
Infrared communication requests are initiated through a third-party application on the cloud phone. The infrared communication data is encapsulated using an infrared proxy module and transmitted to the cloud phone client via the cloud-side end-cloud collaboration module. After decapsulation, the client uses the infrared transmitter module for infrared remote control.
It enables infrared communication between cloud phones and nearby infrared remote control devices, breaking through hardware and physical distance limitations and expanding the application scenarios of cloud phones.
Smart Images

Figure CN120881124A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication technology, and in particular to a method, apparatus, device, medium, and product for infrared remote control of cloud mobile phone applications. Background Technology
[0002] A cloud phone is a virtual phone service based on cloud computing technology. It utilizes the powerful computing and storage capabilities of cloud servers to transfer some functions and data processing capabilities of traditional mobile phones to remote cloud servers, allowing users to easily access the functions and data of their local phones anytime, anywhere, on different devices. However, a cloud phone is not a physical hardware device in the traditional sense; its operation relies on the virtual phone service provided by a remote cloud server. Therefore, compared to a real mobile phone, a cloud phone does not possess a complete hardware module and lacks an infrared transmitter hardware module. Infrared remote control communication is essentially a technology limited to short-range data transmission and remote control; it requires devices to be within a relatively close distance to achieve data transmission and remote control operations.
[0003] Because cloud phones lack infrared transmitter hardware modules and operate on remote cloud servers, they cannot communicate via infrared like real mobile phones. Therefore, when using cloud phones, it is not possible to control infrared-enabled devices via infrared as with real mobile phones, which limits the application of cloud phones in certain specific scenarios. Summary of the Invention
[0004] To address the problems existing in the prior art, this invention provides a method, apparatus, device, medium, and product for infrared remote control of cloud mobile phones. It enables cloud mobile phones to overcome the limitations of hardware and physical distance in infrared communication, fills the technological gap in using infrared communication in cloud mobile phones, and enables cloud mobile phones to communicate with infrared remote control-enabled devices near the physical device. This solves the problem that cloud mobile phones cannot use infrared communication and remote control interaction, and broadens the application scenarios of cloud mobile phones.
[0005] In a first aspect, embodiments of the present invention provide a method for infrared remote control of a cloud phone application, applied to a cloud phone server, comprising:
[0006] An infrared communication request is initiated through a third-party application on a cloud phone; wherein the infrared communication request carries infrared communication data.
[0007] The infrared communication data carried in the infrared communication request is encapsulated to obtain encapsulated infrared communication data;
[0008] The encapsulated infrared communication data is sent to the cloud mobile client so that the cloud mobile client can remotely control the infrared receiving device based on the encapsulated infrared communication data.
[0009] As an improvement to the above solution, the step of initiating an infrared communication request through a third-party application on a cloud phone includes:
[0010] The infrared communication data is obtained by calling the interface of the first infrared application module through the third-party application; wherein, the infrared communication data includes infrared communication carrier frequency data and the transmitted raw infrared signal data;
[0011] Based on the infrared communication data, an infrared communication request is initiated through the first infrared application module.
[0012] As an improvement to the above solution, the encapsulation of the infrared communication data carried in the infrared communication request to obtain encapsulated infrared communication data includes:
[0013] The infrared proxy module of the cloud phone intercepts the infrared communication request initiated by the third-party application through the first infrared application module;
[0014] The infrared proxy module encapsulates the infrared communication data carried in the infrared communication request to obtain the encapsulated infrared communication data.
[0015] As an improvement to the above solution, the step of encapsulating the infrared communication data carried in the infrared communication request through the infrared proxy module to obtain the encapsulated infrared communication data includes:
[0016] The infrared communication carrier frequency data in the infrared communication data is filled into the first field of the main body of the preset encapsulated data structure;
[0017] The raw infrared signal data from the infrared communication data is filled into the second field of the main body of the encapsulated data structure;
[0018] The first and second fields of the main body of the encapsulated data structure are concatenated to generate the first summary information;
[0019] The first summary information is filled into the third field of the header of the encapsulated data structure to obtain the encapsulated infrared communication data.
[0020] As an improvement to the above solution, sending the encapsulated infrared communication data to the cloud mobile client includes:
[0021] The encapsulated infrared communication data is sent to the first-end cloud collaboration module of the cloud phone through the infrared proxy module of the cloud phone.
[0022] The encapsulated infrared communication data is sent to the second cloud collaboration module of the cloud mobile client through the first cloud collaboration module.
[0023] As an improvement to the above solution, before initiating the infrared communication request through a third-party application on a cloud phone, the method further includes:
[0024] Receive an access operation request sent by the cloud phone client; wherein, the access operation request is initiated by the cloud phone client after applying to the cloud phone management platform to log in to the cloud phone;
[0025] Based on the access operation request, a connection is established between the cloud mobile client and the cloud mobile phone.
[0026] Secondly, embodiments of the present invention provide a method for infrared remote control of a cloud phone application, applied to a cloud phone client, comprising:
[0027] Receive encapsulated infrared communication data sent by a cloud phone; wherein, the encapsulated infrared communication data is obtained by the cloud phone encapsulating the infrared communication data carried in the infrared communication request, and the infrared communication request is initiated by a third-party application of the cloud phone.
[0028] Based on the encapsulated infrared communication data, the infrared receiving device is remotely controlled.
[0029] As an improvement to the above solution, the step of remotely controlling the infrared receiving device based on the encapsulated infrared communication data includes:
[0030] When the terminal device where the cloud mobile client is located is aligned with the infrared receiving device with which it conducts infrared communication, the infrared receiving device can be remotely controlled using infrared based on the encapsulated infrared communication data.
[0031] As an improvement to the above solution, the step of remotely controlling the infrared receiving device based on the encapsulated infrared communication data includes:
[0032] The encapsulated infrared communication data is decapsulated to obtain the original infrared communication data; wherein, the infrared communication data includes: infrared communication carrier frequency data and the transmitted original infrared signal data;
[0033] By calling the interface of the second infrared application module of the terminal device where the cloud mobile client is located, the infrared communication data is sent to the second infrared application module, so that the second infrared application module forwards the infrared communication data to the infrared transmitting module of the terminal device to perform infrared remote control of the infrared receiving device.
[0034] As an improvement to the above solution, the step of decapsulating the encapsulated infrared communication data to obtain the original infrared communication data includes:
[0035] Obtain the first field of the main body of the encapsulated infrared communication data to get the infrared communication carrier frequency data;
[0036] Obtain the second field of the main body of the encapsulated infrared communication data to get the transmitted raw infrared signal data;
[0037] The acquired infrared communication carrier frequency data and the original infrared signal data are spliced together to generate the second summary information;
[0038] The second digest information is compared and verified with the first digest information in the third field of the header of the encapsulated infrared communication data;
[0039] When the verification is successful, the acquired infrared communication carrier frequency data and the original infrared signal data will be used as the original infrared communication data.
[0040] Thirdly, embodiments of the present invention provide a device for infrared remote control of a cloud phone application, applied to a cloud phone server, comprising:
[0041] An infrared communication request initiation module is used to initiate an infrared communication request through a third-party application of a cloud phone; wherein, the infrared communication request carries infrared communication data;
[0042] An infrared communication request encapsulation module is used to encapsulate the infrared communication data carried in the infrared communication request to obtain encapsulated infrared communication data.
[0043] An infrared communication data transmission module is used to send the encapsulated infrared communication data to a cloud mobile client, so that the cloud mobile client can remotely control the infrared receiving device based on the encapsulated infrared communication data.
[0044] Fourthly, embodiments of the present invention provide a device for infrared remote control of a cloud phone application, applied to a cloud phone client, comprising:
[0045] An infrared communication data receiving module is used to receive encapsulated infrared communication data sent by a cloud phone; wherein, the encapsulated infrared communication data is obtained by the cloud phone encapsulating the infrared communication data carried in the infrared communication request, and the infrared communication request is initiated by a third-party application of the cloud phone.
[0046] An infrared remote control module is used to remotely control an infrared receiving device based on the packaged infrared communication data.
[0047] Fifthly, embodiments of the present invention provide a device for infrared remote control via cloud mobile phone application, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the method for infrared remote control via cloud mobile phone application as described in any of the first aspects or the method for infrared remote control via cloud mobile phone application as described in any of the second aspects.
[0048] In a sixth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the cloud mobile phone application infrared remote control method as described in any one of the first aspects or the cloud mobile phone application infrared remote control method as described in any one of the second aspects.
[0049] In a seventh aspect, embodiments of the present invention provide a computer program product, including a computer program / instructions, which, when executed by a processor, implement the cloud mobile phone application infrared remote control method as described in any of the first aspects or the cloud mobile phone application infrared remote control method as described in any of the second aspects.
[0050] Compared to existing technologies, this invention provides a method, apparatus, device, medium, and product for infrared remote control of cloud phones. The method involves initiating an infrared communication request through a third-party application on the cloud phone. This request carries infrared communication data. The infrared communication data carried in the request is encapsulated to obtain encapsulated infrared communication data. This encapsulated infrared communication data is then sent to the cloud phone client, enabling the client to remotely control an infrared receiving device based on the encapsulated data. This allows cloud phone infrared communication to overcome hardware and physical distance limitations, filling a technological gap in using infrared communication on cloud phones. It enables infrared communication between the cloud phone and nearby devices that support infrared remote control, solving the problem of cloud phones being unable to use infrared communication and remote control interaction, and expanding the application scenarios of cloud phones. Attached Figure Description
[0051] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0052] Figure 1 This is a schematic diagram of the overall system framework for infrared remote control of a cloud mobile phone application provided in an embodiment of the present invention;
[0053] Figure 2 This is a flowchart of a cloud phone application infrared remote control method provided by an embodiment of the present invention;
[0054] Figure 3 This is another flowchart of a cloud mobile phone application infrared remote control method provided in an embodiment of the present invention;
[0055] Figure 4 This is an overall flowchart of the cloud mobile phone application infrared remote control provided in the embodiments of the present invention;
[0056] Figure 5 This is a structural block diagram of a cloud mobile phone application infrared remote control device provided in an embodiment of the present invention;
[0057] Figure 6 This is another structural block diagram of a cloud mobile phone application infrared remote control device provided in an embodiment of the present invention;
[0058] Figure 7 This is a structural block diagram of a cloud mobile phone application infrared remote control device provided in an embodiment of the present invention. Detailed Implementation
[0059] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0060] It is understood that the various numerical designations used in the embodiments of this invention are merely for descriptive convenience and are not intended to limit the scope of this application. The order of the process numbers does not imply the order of execution; the execution order of each process should be determined by its function and internal logic.
[0061] In embodiments of the invention, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0062] To address the limitation of cloud phones in certain scenarios due to their inability to control infrared-enabled devices via infrared, unlike physical phones, this invention provides a method for using infrared remote control with a cloud phone. This method enables infrared communication between the cloud phone and nearby infrared-enabled devices, overcoming hardware and physical distance limitations. It fills the technological gap in infrared communication for cloud phones, solves the problem of cloud phones being unable to use infrared communication and remote control interaction, and broadens the application scenarios of cloud phones.
[0063] The method for infrared remote control of cloud phones described in this invention mainly involves four modules: a cloud phone management platform, cloud phone instances (referred to as cloud phones or cloud machines), terminal devices (such as real mobile phones, tablets, smartwatches, and other mobile terminals), and infrared receiving devices. The specific system framework is as follows: Figure 1 As shown.
[0064] Cloud phone management platform: used for cloud phone related business management, mainly including cloud phone instance management, cloud phone scheduling management, cloud phone login management, and cloud phone connection authentication.
[0065] Cloud phone instances refer to cloud phones generated and allocated through cloud server container virtualization technology. They run a customized Android operating system and have basically the same functions as physical mobile phones. The cloud servers that support the operation of cloud phone instances are also called cloud phone servers.
[0066] The cloud phone contains a third-party APP (Application), a first-end cloud collaboration module (i.e., the cloud-side collaboration module), and an infrared simulation module.
[0067] Third-party APP: refers to third-party applications that run on cloud phones and use infrared technology for data communication and interaction.
[0068] The cloud-side edge-cloud collaboration module is an SDK (Software Development Kit) embedded in the cloud phone. It is responsible for communicating with the edge-side edge-cloud collaboration module and transmitting communication data between the cloud phone and the cloud phone client.
[0069] Infrared Simulation Module: Primarily used for intercepting infrared communication in cloud phones, enabling infrared communication simulation. The infrared simulation module includes a first infrared application module (i.e., the cloud-side infrared application module) and an infrared proxy module.
[0070] The cloud-side infrared application module is the application layer interface of the infrared hardware module in the cloud phone Android system. Its main function is to provide an application layer interface for obtaining infrared communication services, so that third-party apps can call and use the system's infrared communication services.
[0071] Infrared Proxy Module: Primarily responsible for building a communication bridge between the cloud-side infrared application module and the cloud-side end-cloud collaboration module. It intercepts, proxies, and encapsulates infrared communication data at the application layer interface of the cloud-side infrared application module, and sends the encapsulated infrared communication data through the cloud-side end-cloud collaboration module.
[0072] Terminal devices refer to intelligent devices with screen display capabilities, including but not limited to smartphones, tablets, and smart TVs. Terminal devices are equipped with a cloud mobile client, a second infrared application module (i.e., the edge-side infrared application module), and an infrared emitting module (i.e., infrared transmitter hardware).
[0073] Cloud phone client: Running on the terminal device, it serves as the entry point for the cloud phone's screen display. Users complete login authentication, obtain cloud phone connection, and access and control the cloud phone through the cloud phone client. The cloud phone client includes a second-end cloud collaboration module (i.e., the end-to-end cloud collaboration module on the device side).
[0074] End-to-cloud collaboration module on the device side: responsible for communicating with the end-to-cloud collaboration module on the cloud phone side, and building a communication bridge between the cloud phone client and the cloud phone.
[0075] The infrared application module on the device side is the application layer interface of the infrared hardware module in the Android system of the terminal device. Its main function is to provide an application layer interface for obtaining infrared communication services so that the APP in the system can call and use the system's infrared communication services.
[0076] Infrared transmitting module: This is an infrared hardware module that is built into or embedded in the terminal device. It is mainly used by the terminal device to encode, modulate, and transmit infrared communication data.
[0077] Infrared receiving equipment refers to hardware devices that have an infrared receiving module (i.e., infrared receiver hardware) and are capable of infrared remote control communication, including but not limited to air conditioners, televisions, refrigerators and other devices with infrared remote control functions.
[0078] Infrared receiver module: Responsible for receiving and decoding infrared communication data to realize infrared remote control communication.
[0079] Taking the above system framework as an example, this embodiment of the invention provides a method for infrared remote control of cloud mobile phone applications, such as... Figure 2 As shown. The method for infrared remote control of the cloud phone, applied to the cloud phone server, specifically includes:
[0080] S11: Initiate an infrared communication request through a third-party application on the cloud phone; wherein the infrared communication request carries infrared communication data;
[0081] For example, when the terminal device where the cloud phone client is located is close to and aligned with the infrared receiving device with which it communicates infraredly (i.e., the terminal device and other infrared remote control devices are within effective transmission range), the user can open a third-party application running on the cloud phone (which the user has pre-connected via the cloud phone client) and use the infrared remote control communication function of the third-party application to initiate an infrared communication request.
[0082] The process of initiating an infrared communication request carries the original infrared communication data, which includes the infrared communication carrier frequency data and the transmitted original infrared signal patterns data.
[0083] S12: Encapsulate the infrared communication data carried in the infrared communication request to obtain encapsulated infrared communication data;
[0084] S13: Send the encapsulated infrared communication data to the cloud mobile client so that the cloud mobile client can remotely control the infrared receiving device based on the encapsulated infrared communication data.
[0085] After encapsulating the original infrared communication data, the encapsulated infrared communication data is sent to the cloud phone client. Upon receiving the encapsulated infrared communication data from the cloud phone, the cloud phone client decapsulates the data to obtain the original infrared communication data and forwards it to the infrared transmitting module of the terminal device where the cloud phone client is located. This enables infrared remote control of the infrared receiving device, thereby enabling infrared communication between the cloud phone and nearby devices that support infrared remote control. This allows the cloud phone's infrared communication to overcome hardware and physical distance limitations, filling the technological gap in using infrared communication in cloud phones. It also solves the problem that cloud phones cannot use infrared communication and remote control interaction like real phones, thus expanding the application scenarios of cloud phones.
[0086] Furthermore, before initiating the infrared communication request through a third-party application on the cloud phone, the method further includes:
[0087] Receive an access operation request sent by the cloud phone client; wherein, the access operation request is initiated by the cloud phone client after applying to the cloud phone management platform to log in to the cloud phone;
[0088] Based on the access operation request, a connection is established between the cloud mobile client and the cloud mobile phone.
[0089] Before using a cloud phone for infrared remote control, you need to log in to and connect to the cloud phone via the cloud phone client on the terminal device. The specific process is as follows:
[0090] Users open the cloud phone client on their terminal devices and initiate a login request to the cloud phone management platform through the cloud phone client.
[0091] The cloud phone management platform processes the login request initiated by the user and returns a list of cloud devices to the cloud phone client. This list indicates at least one cloud phone instance associated with the user. The user accesses the cloud phone by selecting a cloud phone instance from the list.
[0092] Users initiate an access request to the selected cloud phone instance through the cloud phone client, and connect to the corresponding cloud phone to access the corresponding cloud phone through the cloud phone client.
[0093] This invention, by requiring the user to log in and connect to the cloud phone client on the terminal device before using a cloud phone for infrared remote control, ensures authorized user access and prevents unauthorized device operation, thus improving the security of infrared remote control. It also ensures the exclusive use of cloud phone resources and avoids resource conflicts. The user brings the terminal device close to and aligns it with the infrared receiving device (such as an air conditioner or television) for infrared communication, providing the necessary environment for the cloud phone to remotely control the infrared receiving device.
[0094] In one optional embodiment, initiating the infrared communication request via a third-party application on a cloud phone includes:
[0095] Infrared communication data is obtained by calling the interface of the first infrared application module through the third-party application;
[0096] Based on the infrared communication data, an infrared communication request is initiated through the first infrared application module.
[0097] For example, a user opens a third-party app running on the cloud phone connected to the above-mentioned network and uses the infrared remote control communication function of the third-party app. Specifically, the third-party app on the cloud phone initiates an infrared communication request by calling the transmit function of the first infrared application module of the cloud phone (i.e., the infrared application module on the cloud side), such as the android.hardware.ConsumerIrManager.transmit(int carrierFrequency, int[]pattern) interface method, which is the core interface method in the Android system used to send infrared remote control signals. Specifically, it sends the infrared communication carrier frequency data and the transmitted original infrared signal (patterns) data to the first infrared application module of the cloud phone. Subsequently, the first infrared application module of the cloud phone initiates an infrared communication request based on the infrared communication carrier frequency data and the transmitted original infrared signal data.
[0098] This invention initiates infrared communication requests via the cloud-side infrared application module of a cloud phone, bringing infrared hardware capabilities "to the cloud." This not only overcomes the physical limitations of terminal devices but also enhances the stability, security, and scalability of functions through centralized cloud-side management, bringing significant convenience to both users and developers. Simultaneously, users can indirectly use the infrared function through any terminal device. As long as the cloud phone is connected and a third-party app is running, the device can be controlled via the cloud-side infrared module, achieving "one-stop login, multi-device control," without relying on online terminal devices, thus improving functional flexibility.
[0099] In one optional embodiment, the encapsulation of the infrared communication data carried in the infrared communication request to obtain encapsulated infrared communication data includes:
[0100] The infrared proxy module of the cloud phone intercepts the infrared communication request initiated by the third-party application through the first infrared application module;
[0101] The infrared proxy module encapsulates the infrared communication data carried in the infrared communication request to obtain the encapsulated infrared communication data.
[0102] Since different third-party apps may design data formats based on different infrared communication specifications or adapt to different infrared hardware's proprietary protocols, this embodiment of the invention intercepts infrared communication data through an infrared proxy module and repackages it into a unified data format. This can avoid command failures caused by format incompatibility, improve the compatibility, security, and scalability of cloud phone infrared remote control, and enable the infrared function of cloud phones to flexibly support diverse third-party apps while maintaining the system's stability, controllability, and continuous evolution capabilities.
[0103] Specifically, the process of encapsulating the infrared communication data carried in the infrared communication request through the infrared proxy module to obtain the encapsulated infrared communication data includes:
[0104] The infrared communication carrier frequency data in the infrared communication data is filled into the first field of the main body of the preset encapsulated data structure;
[0105] The raw infrared signal data from the infrared communication data is filled into the second field of the main body of the encapsulated data structure;
[0106] The first and second fields of the main body of the encapsulated data structure are concatenated to generate the first summary information;
[0107] The first summary information is filled into the third field of the header of the encapsulated data structure to obtain the encapsulated infrared communication data.
[0108] In this embodiment of the invention, the infrared proxy module of the cloud phone intercepts the infrared communication request initiated by the first infrared application module and repackages the infrared communication data in the infrared communication request, specifically including:
[0109] Fill the original infrared communication carrier frequency data into the first field (such as the carrierFrequency field) of the Body of the preset encapsulated data structure;
[0110] The emitted raw infrared signal data is filled into the second field (such as the pattern field) of the Body part of the encapsulated data structure;
[0111] The first field (carrierFrequency field) and the second field (pattern field) in the Body are concatenated to generate a summary information, which is then filled into the third field (e.g., the verify field) of the Header of the encapsulated data structure to verify the content of the Body.
[0112] The data structure and description of the encapsulated infrared communication data are shown in the table below.
[0113]
[0114]
[0115] This invention provides an infrared communication data structure encapsulation specification that places the original infrared communication carrier frequency data and the transmitted original infrared signal data into the carrierFrequency and pattern fields of a new encapsulated data structure, respectively, and verifies the data by adding a header verify field, thereby achieving infrared communication data encapsulation and secure transmission.
[0116] In an optional embodiment, sending the encapsulated infrared communication data to the cloud mobile client includes:
[0117] The encapsulated infrared communication data is sent to the first-end cloud collaboration module of the cloud phone through the infrared proxy module of the cloud phone.
[0118] The encapsulated infrared communication data is sent to the second cloud collaboration module of the cloud mobile client through the first cloud collaboration module.
[0119] For example, the infrared proxy module sends the encapsulated infrared communication data to the first-end cloud collaboration module of the cloud phone, and then forwards it to the second-end cloud collaboration module (i.e., the end-to-end cloud collaboration module on the cloud side) of the cloud phone client, thereby realizing infrared communication data transmission from the cloud phone to the cloud phone client. Subsequently, the cloud phone client can call the infrared transmitting module (hardware module) of its terminal device to perform infrared remote control of the infrared receiving device.
[0120] This invention intercepts system infrared communication calls through an infrared simulation module in a cloud phone, encapsulates the original infrared communication data, and transmits it to the cloud phone client. The cloud phone client then decapsulates the original infrared communication data and sends it to the terminal device, thus realizing infrared remote control communication simulation for the cloud phone. This allows the cloud phone to seamlessly use infrared communication technology like a real phone, breaking through hardware and physical distance limitations, filling the technological gap in using infrared communication in cloud phones, reducing the differences between cloud phones and real phones, further expanding the application scenarios of cloud phones, and greatly improving the user experience of cloud phone users.
[0121] The following detailed explanation, with reference to the accompanying diagram, describes in detail the process by which the second-end cloud collaboration module of the cloud mobile client on the terminal device receives the encapsulated infrared communication data and performs infrared remote control.
[0122] See Figure 3 , Figure 3 This is another flowchart of a method for infrared remote control of a cloud mobile phone application provided in an embodiment of the present invention. The method for infrared remote control of a cloud mobile phone application is applied to a cloud mobile phone client and includes:
[0123] S21: Receive encapsulated infrared communication data sent by the cloud phone; wherein, the encapsulated infrared communication data is obtained by the cloud phone encapsulating the infrared communication data carried in the infrared communication request, and the infrared communication request is initiated by a third-party application of the cloud phone.
[0124] S22: Perform infrared remote control on the infrared receiving device based on the encapsulated infrared communication data.
[0125] Specifically, the step of remotely controlling the infrared receiving device based on the encapsulated infrared communication data includes:
[0126] When the terminal device where the cloud mobile client is located is aligned with the infrared receiving device with which it conducts infrared communication, the infrared receiving device can be remotely controlled using infrared based on the encapsulated infrared communication data.
[0127] Specifically, the step of remotely controlling the infrared receiving device based on the encapsulated infrared communication data includes:
[0128] The encapsulated infrared communication data is decapsulated to obtain the original infrared communication data; wherein, the infrared communication data includes: infrared communication carrier frequency data and the transmitted original infrared signal data;
[0129] By calling the interface of the second infrared application module of the terminal device where the cloud mobile client is located, the infrared communication data is sent to the second infrared application module, so that the second infrared application module forwards the infrared communication data to the infrared transmitting module of the terminal device to perform infrared remote control of the infrared receiving device.
[0130] Specifically, the process of decapsulating the encapsulated infrared communication data to obtain the original infrared communication data includes:
[0131] Obtain the first field of the main body of the encapsulated infrared communication data to get the infrared communication carrier frequency data;
[0132] Obtain the second field of the main body of the encapsulated infrared communication data to get the transmitted raw infrared signal data;
[0133] The acquired infrared communication carrier frequency data and the original infrared signal data are spliced together to generate the second summary information;
[0134] The second digest information is compared and verified with the first digest information in the third field of the header of the encapsulated infrared communication data;
[0135] When the verification is successful, the acquired infrared communication carrier frequency data and the original infrared signal data will be used as the original infrared communication data.
[0136] For example, the second-end cloud collaboration module of the cloud mobile client (i.e., the end-to-end cloud collaboration module on the device side) further distributes the received encapsulated infrared communication data to the cloud mobile client, which then decapsulates the data to obtain the original infrared communication data. The specific decapsulation method is as follows:
[0137] The content of the first field (such as the carrierFrequency field) in the Body of the encapsulated infrared communication data is obtained as the original infrared communication carrier frequency data;
[0138] The content of the second field (such as the pattern field) in the Body of the encapsulated infrared communication data is obtained as the original infrared signal data to be transmitted.
[0139] The infrared communication carrier frequency data obtained after desealing is spliced with the original infrared signal data to generate a second digest information value. This second digest information value is then compared and verified with the first digest information in the third field (such as the verify field) of the header of the encapsulated infrared communication data to determine whether the two digest information are consistent. If they are consistent, the verification is passed, indicating that the data transmission has not been tampered with. Otherwise, the verification is failed, indicating that the data transmission has been tampered with.
[0140] The embodiments of the present invention ensure data integrity and prevent data tampering during data transmission by comparing and verifying the summary information, thereby guaranteeing the security and accuracy of infrared control.
[0141] Then, the cloud phone client calls the `android.hardware.ConsumerIrManager.transmit(int carrierFrequency, int[]pattern)` interface method of the second infrared application module (i.e., the terminal-side infrared application module) to send the decapsulated raw infrared communication data to the terminal device's second infrared application module (i.e., the terminal-side infrared application module). The `carrierFrequency` parameter of this interface method is passed as the infrared communication carrier frequency data obtained from the decapsulation process, and the `pattern` parameter is passed as the raw infrared signal data obtained from the decapsulation process. The second infrared application module (i.e., the terminal-side infrared application module) then sends the raw infrared communication data to the real device's infrared transmitting module (hardware module) in the above manner.
[0142] The infrared transmitting module encodes and modulates the received raw infrared communication data, and sends the encoded infrared communication data to the infrared receiving module (hardware module) of the infrared receiving device; the infrared receiving device receives the encoded infrared communication data, decodes it, and performs response processing, thereby completing the infrared communication simulation.
[0143] like Figure 4The flowchart shown illustrates the overall process of infrared remote control for cloud phones. In this embodiment of the invention, the infrared application module (cloud side) in the infrared simulation module of the cloud phone obtains the original infrared communication data. After intercepting and encapsulating the original infrared communication data through the infrared proxy module, the data is transmitted to the cloud phone client. The cloud phone client then decapsulates the original infrared communication data and sends it to the infrared application module (device side) of the real device, thus realizing infrared remote control communication simulation for the cloud phone. This solves the problem that cloud phones cannot use infrared to communicate with other infrared remote control-enabled devices around the real device. It allows cloud phone infrared communication to overcome hardware and physical distance limitations, filling the technological gap in using infrared communication for cloud phones. This further expands the application scenarios of cloud phones, greatly improves the user experience of cloud phones, and reduces the differences between cloud phones and real phones.
[0144] See Figure 5 , Figure 5 This invention provides a structural block diagram of a device for infrared remote control of a cloud phone application. The device is applied to a cloud phone server and includes:
[0145] Infrared communication request initiation module 11 is used to initiate an infrared communication request through a third-party application of the cloud phone; wherein, the infrared communication request carries infrared communication data;
[0146] Infrared communication request encapsulation module 12 is used to encapsulate the infrared communication data carried by the infrared communication request to obtain encapsulated infrared communication data.
[0147] The infrared communication data transmission module 13 is used to send the encapsulated infrared communication data to the cloud mobile client, so that the cloud mobile client can remotely control the infrared receiving device based on the encapsulated infrared communication data.
[0148] In one optional embodiment, the infrared communication request initiation module 11 includes:
[0149] The first infrared application calling unit is used to call the interface of the first infrared application module through the third-party application to obtain infrared communication data; wherein, the infrared communication data includes infrared communication carrier frequency data and transmitted raw infrared signal data;
[0150] The request initiation unit is used to initiate an infrared communication request through the first infrared application module based on the infrared communication data.
[0151] In one optional embodiment, the infrared communication request encapsulation module 12 includes:
[0152] The request interception unit is used to intercept the infrared communication request initiated by the third-party application through the first infrared application module via the infrared proxy module of the cloud phone;
[0153] The data encapsulation unit is used to encapsulate the infrared communication data carried by the infrared communication request through the infrared proxy module to obtain the encapsulated infrared communication data.
[0154] In one alternative embodiment, the data encapsulation unit includes:
[0155] The first data filling unit is used to fill the infrared communication carrier frequency data in the infrared communication data into the first field of the main body of the preset encapsulated data structure;
[0156] The first data filling subunit is used to fill the original infrared signal data in the infrared communication data into the second field of the main body of the encapsulated data structure;
[0157] The first summary generation subunit is used to concatenate the first field and the second field of the main part of the encapsulated data structure to generate first summary information.
[0158] The first data filling subunit is used to fill the first summary information into the third field of the header of the encapsulated data structure to obtain the encapsulated infrared communication data.
[0159] In one optional embodiment, the infrared communication data transmission module 13 includes:
[0160] The first data sending unit is used to send the encapsulated infrared communication data to the first end cloud collaboration module of the cloud phone through the infrared proxy module of the cloud phone.
[0161] The second data sending unit is used to send the encapsulated infrared communication data to the second cloud collaboration module of the cloud mobile client through the first cloud collaboration module.
[0162] In one alternative embodiment, the device further includes:
[0163] The access request sending module is used to receive an access operation request sent by the cloud phone client before the third-party application of the cloud phone initiates the infrared communication request; wherein, the access operation request is initiated by the cloud phone client after applying to the cloud phone management platform to log in to the cloud phone;
[0164] The connection establishment module is used to establish a connection between the cloud mobile client and the cloud mobile phone based on the access operation request.
[0165] It should be noted that the working process of each module in the cloud mobile phone infrared remote control device described in the embodiments of the present invention can refer to the working process of the cloud mobile phone infrared remote control method described in the above embodiments, and the technical effect achieved is the same as that of the cloud mobile phone infrared remote control method described in the above embodiments, and will not be repeated here.
[0166] See Figure 6 , Figure 6 This invention provides another structural block diagram of a device for infrared remote control of a cloud phone application, which is applied to a cloud phone client and includes:
[0167] The infrared communication data receiving module 21 is used to receive encapsulated infrared communication data sent by the cloud phone; wherein, the encapsulated infrared communication data is obtained by the cloud phone encapsulating the infrared communication data carried in the infrared communication request, and the infrared communication request is initiated by a third-party application of the cloud phone.
[0168] The infrared remote control module 22 is used to remotely control the infrared receiving device based on the packaged infrared communication data.
[0169] In one optional embodiment, the infrared remote control module 22 is specifically used to remotely control the infrared receiving device based on the encapsulated infrared communication data when the terminal device where the cloud mobile client is located is aligned with the infrared receiving device with which it is communicating infraredly.
[0170] In one alternative embodiment, the infrared remote control module 22 includes:
[0171] The decapsulation unit is used to decapsulate the encapsulated infrared communication data to obtain the original infrared communication data; wherein, the infrared communication data includes: infrared communication carrier frequency data and the transmitted original infrared signal data;
[0172] The second infrared application calling unit is used to send the infrared communication data to the second infrared application module by calling the interface of the second infrared application module of the terminal device where the cloud mobile client is located, so that the second infrared application module forwards the infrared communication data to the infrared transmitting module of the terminal device to perform infrared remote control of the infrared receiving device.
[0173] In one optional embodiment, the decapsulation unit includes:
[0174] The first data acquisition subunit is used to acquire the first field of the main part of the encapsulated infrared communication data to obtain the infrared communication carrier frequency data.
[0175] The second data acquisition subunit is used to acquire the second field of the main body of the encapsulated infrared communication data to obtain the transmitted raw infrared signal data.
[0176] The second summary generation subunit is used to splice the acquired infrared communication carrier frequency data and the original infrared signal data to generate second summary information.
[0177] The comparison and verification subunit is used to compare and verify the second digest information with the first digest information in the third field of the header of the encapsulated infrared communication data.
[0178] When the verification is successful, the acquired infrared communication carrier frequency data and the original infrared signal data will be used as the original infrared communication data.
[0179] It should be noted that the working process of each module in the cloud mobile phone infrared remote control device described in the embodiments of the present invention can refer to the working process of the cloud mobile phone infrared remote control method described in the above embodiments, and the technical effect achieved is the same as that of the cloud mobile phone infrared remote control method described in the above embodiments, and will not be repeated here.
[0180] See Figure 7 , Figure 7 This is a structural block diagram of a cloud phone infrared remote control device provided in an embodiment of the present invention. The cloud phone infrared remote control device includes a processor 31, a memory 32, and a computer program stored in the memory 32 and executable on the processor 31. When the processor 31 executes the computer program, it implements the steps in the various cloud phone infrared remote control method embodiments described above, such as steps S11-S13 or steps S21-S22.
[0181] For example, the computer program can be divided into one or more modules / units, which are stored in the memory 32 and executed by the processor 31 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the cloud mobile phone application infrared remote control device.
[0182] The device for infrared remote control via cloud phone application may include, but is not limited to, processor 31 and memory 32. Those skilled in the art will understand that the schematic diagram is merely an example of a device for infrared remote control via cloud phone application and does not constitute a limitation on the device. It may include more or fewer components than illustrated, or combine certain components, or use different components. For example, the device for infrared remote control via cloud phone application may also include input / output devices, network access devices, buses, etc.
[0183] The processor 31 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor 31 is the control center of the cloud phone infrared remote control device, connecting various parts of the device via various interfaces and lines.
[0184] The memory 32 can be used to store the computer program and / or modules. The processor 31 implements various functions of the cloud phone application infrared remote control device by running or executing the computer program and / or modules stored in the memory 32 and calling the data stored in the memory 32. The memory 32 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory 32 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0185] Wherein, if the module / unit integrated into the cloud phone application infrared remote control device is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor 31, it can implement the steps of the above method embodiments. Wherein, the computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0186] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0187] The above description represents the preferred embodiments of the present invention. It should be noted that, for those skilled in the art, various improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for infrared remote control of a cloud mobile phone application, characterized in that, Applications to cloud phone servers include: An infrared communication request is initiated through a third-party application on a cloud phone; wherein the infrared communication request carries infrared communication data. The infrared communication data carried in the infrared communication request is encapsulated to obtain encapsulated infrared communication data; The encapsulated infrared communication data is sent to the cloud mobile client so that the cloud mobile client can remotely control the infrared receiving device based on the encapsulated infrared communication data.
2. The method for infrared remote control of cloud mobile phone applications as described in claim 1, characterized in that, The process of initiating an infrared communication request via a third-party application on a cloud phone includes: The infrared communication data is obtained by calling the interface of the first infrared application module through the third-party application; wherein, the infrared communication data includes infrared communication carrier frequency data and the transmitted raw infrared signal data; Based on the infrared communication data, an infrared communication request is initiated through the first infrared application module.
3. The method for infrared remote control of cloud mobile phone applications as described in claim 1, characterized in that, The process of encapsulating the infrared communication data carried in the infrared communication request to obtain encapsulated infrared communication data includes: The infrared proxy module of the cloud phone intercepts the infrared communication request initiated by the third-party application through the first infrared application module; The infrared proxy module encapsulates the infrared communication data carried in the infrared communication request to obtain the encapsulated infrared communication data.
4. The method for infrared remote control of cloud mobile phone applications as described in claim 3, characterized in that, The process of encapsulating the infrared communication data carried in the infrared communication request through the infrared proxy module to obtain the encapsulated infrared communication data includes: The infrared communication carrier frequency data in the infrared communication data is filled into the first field of the main body of the preset encapsulated data structure; The raw infrared signal data from the infrared communication data is filled into the second field of the main body of the encapsulated data structure; The first and second fields of the main body of the encapsulated data structure are concatenated to generate the first summary information; The first summary information is filled into the third field of the header of the encapsulated data structure to obtain the encapsulated infrared communication data.
5. The method for infrared remote control of cloud mobile phone applications as described in claim 1, characterized in that, Sending the encapsulated infrared communication data to the cloud mobile client includes: The encapsulated infrared communication data is sent to the first-end cloud collaboration module of the cloud phone through the infrared proxy module of the cloud phone. The encapsulated infrared communication data is sent to the second cloud collaboration module of the cloud mobile client through the first cloud collaboration module.
6. The method for infrared remote control of cloud mobile phone applications as described in claim 1, characterized in that, Before initiating the infrared communication request via a third-party application on a cloud phone, the method further includes: Receive an access operation request sent by the cloud phone client; wherein, the access operation request is initiated by the cloud phone client after applying to the cloud phone management platform to log in to the cloud phone; Based on the access operation request, a connection is established between the cloud mobile client and the cloud mobile phone.
7. A method for infrared remote control of a cloud mobile phone application, characterized in that, Applications to cloud mobile clients include: Receive encapsulated infrared communication data sent by a cloud phone; wherein, the encapsulated infrared communication data is obtained by the cloud phone encapsulating the infrared communication data carried in the infrared communication request, and the infrared communication request is initiated by a third-party application of the cloud phone. Based on the encapsulated infrared communication data, the infrared receiving device is remotely controlled.
8. The method for infrared remote control of cloud mobile phone applications as described in claim 7, characterized in that, The step of remotely controlling the infrared receiving device based on the encapsulated infrared communication data includes: When the terminal device where the cloud mobile client is located is aligned with the infrared receiving device with which it conducts infrared communication, the infrared receiving device can be remotely controlled using infrared based on the encapsulated infrared communication data.
9. The method for infrared remote control of cloud mobile phone applications as described in claim 7 or 8, characterized in that, The step of remotely controlling the infrared receiving device based on the encapsulated infrared communication data includes: The encapsulated infrared communication data is decapsulated to obtain the original infrared communication data; wherein, the infrared communication data includes: infrared communication carrier frequency data and the transmitted original infrared signal data; By calling the interface of the second infrared application module of the terminal device where the cloud mobile client is located, the infrared communication data is sent to the second infrared application module, so that the second infrared application module forwards the infrared communication data to the infrared transmitting module of the terminal device to perform infrared remote control of the infrared receiving device.
10. The method for infrared remote control of cloud mobile phone applications as described in claim 9, characterized in that, The process of decapsulating the encapsulated infrared communication data to obtain the original infrared communication data includes: Obtain the first field of the main body of the encapsulated infrared communication data to get the infrared communication carrier frequency data; Obtain the second field of the main body of the encapsulated infrared communication data to get the transmitted raw infrared signal data; The acquired infrared communication carrier frequency data and the original infrared signal data are spliced together to generate the second summary information; The second digest information is compared and verified with the first digest information in the third field of the header of the encapsulated infrared communication data; When the verification is successful, the acquired infrared communication carrier frequency data and the original infrared signal data will be used as the original infrared communication data.
11. A device for infrared remote control of a cloud mobile phone application, characterized in that, Applications to cloud phone servers include: An infrared communication request initiation module is used to initiate an infrared communication request through a third-party application of a cloud phone; wherein, the infrared communication request carries infrared communication data; An infrared communication request encapsulation module is used to encapsulate the infrared communication data carried in the infrared communication request to obtain encapsulated infrared communication data. An infrared communication data transmission module is used to send the encapsulated infrared communication data to a cloud mobile client, so that the cloud mobile client can remotely control the infrared receiving device based on the encapsulated infrared communication data.
12. A device for infrared remote control of a cloud mobile phone application, characterized in that, Applications to cloud mobile clients include: An infrared communication data receiving module is used to receive encapsulated infrared communication data sent by a cloud phone; wherein, the encapsulated infrared communication data is obtained by the cloud phone encapsulating the infrared communication data carried in the infrared communication request, and the infrared communication request is initiated by a third-party application of the cloud phone. An infrared remote control module is used to remotely control an infrared receiving device based on the packaged infrared communication data.
13. A device for infrared remote control using a cloud mobile phone application, characterized in that, include: A processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the method for infrared remote control of a cloud mobile phone application as described in any one of claims 1 to 6 or the method for infrared remote control of a cloud mobile phone application as described in any one of claims 7 to 10.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the method of infrared remote control for cloud mobile phone application as described in any one of claims 1 to 6 or the method of infrared remote control for cloud mobile phone application as described in any one of claims 7 to 10.
15. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the method for infrared remote control of cloud mobile phone application as described in any one of claims 1 to 6 or the method for infrared remote control of cloud mobile phone application as described in any one of claims 7 to 10.
Citation Information
Patent Citations
Cloud game cross-terminal switching method and related device
CN112691363A
Online payment method and device for calling real machine payment software by cloud mobile phone, computer equipment and storage medium
CN119338451A
Near field communication (NFC) method based on cloud terminal, cloud terminal and terminal
CN119402846A
Cited By
Infrared signal transmitting method and device of cloud virtual equipment and electronic equipment
CN121617235A
