CN114265714A - Drive control method and device based on cloud mobile phone and storage medium - Google Patents

Drive control method and device based on cloud mobile phone and storage medium Download PDF

Info

Publication number
CN114265714A
CN114265714A CN202111562896.9A CN202111562896A CN114265714A CN 114265714 A CN114265714 A CN 114265714A CN 202111562896 A CN202111562896 A CN 202111562896A CN 114265714 A CN114265714 A CN 114265714A
Authority
CN
China
Prior art keywords
drive
mobile phone
layer
cloud mobile
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111562896.9A
Other languages
Chinese (zh)
Inventor
陈伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202111562896.9A priority Critical patent/CN114265714A/en
Publication of CN114265714A publication Critical patent/CN114265714A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application discloses a drive control method and device based on a cloud mobile phone, a storage medium and computer equipment, wherein the method comprises the following steps: monitoring a drive starting request from a preset application program through a HAL layer, sending the drive starting request to an intermediate layer when the drive starting request is monitored, sending the drive starting request to a preset transmission interface of a cloud mobile phone client based on the intermediate layer so as to enable the cloud mobile phone client to start a target drive, acquiring target data corresponding to the drive starting request based on the target drive, and feeding back the target data through the preset transmission interface; receiving the target data fed back by the preset transmission interface through the intermediate layer, forwarding the target data to the HAL layer, and storing the target data through the HAL layer. According to the method and the device, the experience of the user is improved while the functions of the cloud mobile phone are enriched.

Description

Drive control method and device based on cloud mobile phone and storage medium
Technical Field
The application relates to the technical field of cloud mobile phones, in particular to a drive control method and device based on a cloud mobile phone, a storage medium and computer equipment.
Background
With the continuous development of cloud technology, cloud mobile phones come into operation. The cloud mobile phone is a mobile phone which applies a cloud computing technology to network terminal service and realizes cloud service through a cloud server. The cloud mobile phone can be regarded as a smart mobile phone deeply combined with network service, and the mobile phone can realize a plurality of functions through a network by virtue of a self-contained system and a network terminal erected by a manufacturer, is not limited by hardware of the mobile phone, and does not worry about the problems of heating and blockage. Thus, cloud handsets are gaining more and more popularity.
However, the cloud mobile phone is virtualized on the cloud server, and has no real physical hardware and drive, so that the cloud mobile phone has a single function, cannot meet the use requirements of normal office work and the like of a user, and is poor in user experience. The functions of the cloud mobile phone are continuously expanded, the user experience is improved, and the requirements of the cloud mobile phone and the user are always met.
Disclosure of Invention
In view of this, the application provides a drive control method and device, a storage medium, and a computer device based on a cloud mobile phone, which enable a user to realize a drive function through a cloud mobile phone client without sensing in a process of using the cloud mobile phone, so that the experience of the user is greatly improved while the functions of the cloud mobile phone are enriched.
According to an aspect of the present application, there is provided a drive control method based on a cloud mobile phone, applied to the cloud mobile phone, including:
monitoring a drive starting request from a preset application program through a HAL layer, sending the drive starting request to an intermediate layer when the drive starting request is monitored, sending the drive starting request to a preset transmission interface of a cloud mobile phone client based on the intermediate layer so as to enable the cloud mobile phone client to start a target drive, acquiring target data corresponding to the drive starting request based on the target drive, and feeding back the target data through the preset transmission interface, wherein the preset application program is an application program installed in a cloud mobile phone;
receiving the target data fed back by the preset transmission interface through the intermediate layer, forwarding the target data to the HAL layer, and storing the target data through the HAL layer.
Optionally, before monitoring, by the HAL layer, a driver activation request from a preset application program, the method further includes:
responding to a cloud mobile phone starting request, loading the HAL layer and the middle layer, and starting a remote connection interface of the middle layer;
and receiving a communication connection request sent by the preset transmission interface through the remote connection interface of the middle layer, and establishing communication connection with the preset transmission interface.
Optionally, the storing the target data by the HAL layer specifically includes:
storing the target data by a circular queue in the HAL layer;
after storing the target data through a circular queue in the HAL layer, the method further comprises:
monitoring a data reading request from the preset application program through the HAL layer, and sending the target data corresponding to the data reading request in the circular queue to the preset application program when the data reading request is monitored.
Optionally, the method further comprises:
monitoring a drive closing request from the preset application program through the HAL layer, and sending the drive closing request to the preset transmission interface of the cloud mobile phone client based on the intermediate layer when the drive closing request is monitored, so that the cloud mobile phone client closes the target drive.
According to another aspect of the present application, there is provided a cloud-based mobile phone drive control method, applied to a cloud mobile phone client, including:
receiving a drive starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, starting a target drive based on the drive starting request, and acquiring target data corresponding to the drive starting request based on the target drive;
and calling the preset transmission interface, feeding the target data back to the intermediate layer through the preset transmission interface so that the intermediate layer forwards the target data to a HAL layer, and storing the target data through the HAL layer.
Optionally, before receiving, through a preset transmission interface, a drive starting request sent by a cloud mobile phone intermediate layer, the method further includes:
responding to a cloud mobile phone login instruction, acquiring a login personnel identifier, and generating a cloud mobile phone opening request based on the login personnel identifier;
calling an interface layer initialization function, establishing the preset transmission interface in the interface layer after the interface layer is initialized, generating a communication connection request through the preset transmission interface, sending the communication connection request to a remote connection interface of the middle layer, and establishing communication connection with the middle layer.
Optionally, after the interface layer establishes the preset transmission interface after the interface layer is initialized, the method further includes:
sending a preset callback pointer to the preset transmission interface;
the method includes the steps of receiving a drive starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, and starting a target drive based on the drive starting request, and specifically includes:
receiving a drive starting request sent by the cloud mobile phone intermediate layer through the preset transmission interface, identifying the callback pointer through the preset transmission interface, determining a target address corresponding to the callback pointer, forwarding the drive starting request to the target address, and calling a target drive function to start the target drive.
According to another aspect of the present application, there is provided a drive control apparatus based on a cloud mobile phone, applied to the cloud mobile phone, including:
the device comprises a request sending module, a data processing module and a data processing module, wherein the request sending module is used for monitoring a drive starting request from a preset application program through an HAL layer, sending the drive starting request to an intermediate layer when the drive starting request is monitored, sending the drive starting request to a preset transmission interface of a cloud mobile phone client based on the intermediate layer so as to enable the cloud mobile phone client to start a target drive, acquiring target data corresponding to the drive starting request based on the target drive, and feeding back the target data through the preset transmission interface, wherein the preset application program is an application program installed in a cloud mobile phone;
and the data receiving module is used for receiving the target data fed back by the preset transmission interface through the middle layer, forwarding the target data to the HAL layer and storing the target data through the HAL layer.
Optionally, the apparatus further comprises:
the loading module is used for responding to a cloud mobile phone starting request before monitoring a driving starting request from a preset application program through the HAL layer, loading the HAL layer and the middle layer and starting a remote connection interface of the middle layer;
and the connection establishing module is used for receiving the communication connection request sent by the preset transmission interface through the remote connection interface of the middle layer and establishing the communication connection with the preset transmission interface.
Optionally, the data receiving module is specifically configured to:
storing the target data by a circular queue in the HAL layer;
the device further comprises:
and the data reading module is used for monitoring a data reading request from the preset application program through the HAL layer after the target data is stored through the circular queue in the HAL layer, and sending the target data corresponding to the data reading request in the circular queue to the preset application program when the data reading request is monitored.
Optionally, the request sending module is further configured to:
monitoring a drive closing request from the preset application program through the HAL layer, and sending the drive closing request to the preset transmission interface of the cloud mobile phone client based on the intermediate layer when the drive closing request is monitored, so that the cloud mobile phone client closes the target drive.
According to another aspect of the present application, there is provided a drive control apparatus based on a cloud mobile phone, applied to a cloud mobile phone client, including:
the driving starting module is used for receiving a driving starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, starting a target drive based on the driving starting request, and acquiring target data corresponding to the driving starting request based on the target drive;
and the interface calling module is used for calling the preset transmission interface, feeding the target data back to the intermediate layer through the preset transmission interface so as to enable the intermediate layer to forward the target data to the HAL layer, and storing the target data through the HAL layer.
Optionally, the apparatus further comprises:
the request generation module is used for responding to a cloud mobile phone login instruction before receiving a driving starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, acquiring a login personnel identifier and generating a cloud mobile phone starting request based on the login personnel identifier;
the function calling module is used for calling an interface layer initialization function, establishing the preset transmission interface in the interface layer after the interface layer is initialized, generating a communication connection request through the preset transmission interface, sending the communication connection request to the remote connection interface of the middle layer, and establishing communication connection with the middle layer.
Optionally, the apparatus further comprises:
the pointer sending module is used for sending a preset callback pointer to the preset transmission interface after the interface layer establishes the preset transmission interface after the interface layer is initialized;
the drive starting module is specifically used for:
receiving a drive starting request sent by the cloud mobile phone intermediate layer through the preset transmission interface, identifying the callback pointer through the preset transmission interface, determining a target address corresponding to the callback pointer, forwarding the drive starting request to the target address, and calling a target drive function to start the target drive.
According to still another aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the cloud-based drive control method described above.
According to still another aspect of the present application, there is provided a computer device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, where the processor implements the cloud mobile phone-based drive control method when executing the program.
By means of the technical scheme, according to the drive control method and device based on the cloud mobile phone, the storage medium and the computer equipment, firstly, the HAL layer can monitor a drive starting request of a preset application program running in the cloud mobile phone, when the HAL layer monitors the drive starting request of the preset application program, the HAL layer can forward the drive starting request through the middle layer, the drive starting request is sent to the preset transmission interface which is in communication connection with the middle layer, after the preset transmission interface of the cloud mobile phone client receives the drive starting request, the cloud mobile phone client can start a corresponding target drive, and target data corresponding to the drive starting request can be obtained through the target drive. Then, after the cloud mobile phone client acquires target data corresponding to the drive starting request, a preset transmission interface can be called to feed the target data back to the intermediate layer. After receiving the target data, the intermediate layer may forward the target data to the HAL layer, so that the target data may be stored in the HAL layer. According to the cloud mobile phone driving method and device, the target data obtained by the cloud mobile phone client are returned to the HAL layer for storage, the driving function of the cloud mobile phone is achieved, the user can use the cloud mobile phone in the process of being unaware of the driving function achieved through the cloud mobile phone client, the cloud mobile phone function is enriched, and meanwhile the experience feeling of the user is greatly improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 shows a flow diagram of a cloud-based drive control method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating another cloud-based mobile phone drive control method provided in an embodiment of the present application;
fig. 3 shows a flowchart of a cloud-based drive control method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating another cloud-based mobile phone drive control method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating a drive control apparatus based on a cloud mobile phone according to an embodiment of the present application;
fig. 6 shows a schematic structural diagram of another cloud-based mobile phone drive control apparatus according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In this embodiment, a drive control method based on a cloud mobile phone is provided, and is applied to the cloud mobile phone, as shown in fig. 1, the method includes:
step 101, monitoring a drive starting request from a preset application program through an HAL layer, sending the drive starting request to an intermediate layer when the drive starting request is monitored, sending the drive starting request to a preset transmission interface of a cloud mobile phone client based on the intermediate layer so as to enable the cloud mobile phone client to start a target drive, acquiring target data corresponding to the drive starting request based on the target drive, and feeding back the target data through the preset transmission interface, wherein the preset application program is an application program installed in a cloud mobile phone;
the cloud mobile phone-based drive control method provided by the embodiment of the application can control the real phone drive where the cloud mobile phone client is located, so that the simulation of the cloud mobile phone drive is realized, and the functions of recording, recording video, photographing and the like of the cloud mobile phone are enriched. The cloud mobile phone-based drive control method provided by the embodiment of the application can be applied to a cloud mobile phone, and particularly can be used on a cloud server where the cloud mobile phone is located. The cloud mobile phone-based drive control method provided by the embodiment of the application is mainly realized by three parts, namely a Hardware Abstraction Layer (HAL) Layer of a cloud mobile phone end, an intermediate Layer and an interface Layer of a cloud mobile phone client, wherein the intermediate Layer is used for receiving communication between the HAL Layer and the interface Layer, and the interface Layer is used for receiving communication between the intermediate Layer and the cloud mobile phone client. Firstly, the HAL layer may monitor, in real time, a driver start request of a preset application running in the cloud mobile phone, where the driver start request may include a request for starting a recording, a request for starting a camera, and the like. After monitoring a drive starting request of a preset application program, the HAL layer can send the drive starting request to the intermediate layer, and can forward the drive starting request through the intermediate layer, and send the drive starting request to a preset transmission interface which is in communication connection with the intermediate layer, after receiving the drive starting request, the preset transmission interface of the cloud mobile phone client can further send the drive starting request to a target address, a target drive function can be stored in the target address, and after calling the target drive function, a corresponding target drive can be started, and then, corresponding physical hardware can be called through the target drive, and target data corresponding to the drive starting request is obtained. For example, when the drive starting request is a recording starting request, the cloud mobile phone client starts to start the recording device and record, and the target data may be recording data; when the drive starting request is a request for starting the camera, the cloud mobile phone client starts to start the camera and starts to record video, and the target data can be video data. Here, the preset application may be an application installed in the cloud phone, that is, a program running on the cloud phone.
And 102, receiving the target data fed back by the preset transmission interface through the intermediate layer, forwarding the target data to the HAL layer, and storing the target data through the HAL layer.
In this embodiment, after the cloud mobile phone client acquires the target data corresponding to the drive starting request, the preset transmission interface may be called to feed the target data back to the intermediate layer. After receiving the target data, the intermediate layer may forward the target data to the HAL layer, so that the target data may be stored in the HAL layer.
By applying the technical scheme of the embodiment, firstly, the HAL layer can monitor a drive starting request of a preset application program running in the cloud mobile phone, after the HAL layer monitors the drive starting request of the preset application program, the drive starting request can be forwarded through the intermediate layer, the drive starting request is sent to a preset transmission interface which is in communication connection with the intermediate layer, after the preset transmission interface of the cloud mobile phone client receives the drive starting request, the cloud mobile phone client can start a corresponding target drive, and target data corresponding to the drive starting request can be acquired through the target drive. Then, after the cloud mobile phone client acquires target data corresponding to the drive starting request, a preset transmission interface can be called to feed the target data back to the intermediate layer. After receiving the target data, the intermediate layer may forward the target data to the HAL layer, so that the target data may be stored in the HAL layer. According to the cloud mobile phone driving method and device, the target data obtained by the cloud mobile phone client are returned to the HAL layer for storage, the driving function of the cloud mobile phone is achieved, the user can use the cloud mobile phone in the process of being unaware of the driving function achieved through the cloud mobile phone client, the cloud mobile phone function is enriched, and meanwhile the experience feeling of the user is greatly improved.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully describe the specific implementation process of the embodiment, another drive control method based on a cloud mobile phone is provided, and is applied to the cloud mobile phone, as shown in fig. 2, the method includes:
step 201, responding to a cloud mobile phone starting request, loading the HAL layer and the middle layer, and starting a remote connection interface of the middle layer; receiving a communication connection request sent by the preset transmission interface through a remote connection interface of the middle layer, and establishing communication connection with the preset transmission interface;
in this embodiment, after receiving a cloud mobile phone opening request sent by a cloud mobile phone client, the HAL layer and the intermediate layer may be automatically loaded, and after the intermediate layer is loaded, the remote connection interface corresponding to the intermediate layer is opened to wait for connection of the cloud mobile phone client. Here, the remote connection interface corresponding to the middle layer may be a socket server interface. After the preset transmission interface of the cloud mobile phone client sends the communication connection request, the remote connection interface of the middle layer can receive the communication connection request and establish communication connection with the preset transmission interface.
Step 202, monitoring a drive starting request from a preset application program through an HAL layer, sending the drive starting request to an intermediate layer when the drive starting request is monitored, sending the drive starting request to a preset transmission interface of a cloud mobile phone client based on the intermediate layer so as to enable the cloud mobile phone client to start a target drive, acquiring target data corresponding to the drive starting request based on the target drive, and feeding back the target data through the preset transmission interface, wherein the preset application program is an application program installed in a cloud mobile phone;
in this embodiment, the HAL layer may monitor, in real time, a driver start request of a preset application running in the cloud mobile phone, after the HAL layer monitors the driver start request of the preset application, the driver start request may be forwarded through the intermediate layer, the driver start request is sent to a preset transmission interface that establishes communication connection with the intermediate layer, after the driver start request is received by the preset transmission interface of the cloud mobile phone client, the driver start request may be further sent to a target address, a target drive function may be stored in the target address, and after the target drive function is called, a corresponding target driver may be started, and then, a corresponding physical hardware may be called by the target driver, so as to obtain target data corresponding to the driver start request.
Step 203, receiving the target data fed back by the preset transmission interface through the middle layer, and forwarding the target data to the HAL layer;
in this embodiment, after the cloud mobile phone client acquires the target data corresponding to the drive starting request, the preset transmission interface may be called to feed the target data back to the intermediate layer. After receiving the target data, the intermediate layer may forward the target data to the HAL layer.
Step 204, storing the target data through a circular queue in the HAL layer; monitoring a data reading request from the preset application program through the HAL layer, and sending the target data corresponding to the data reading request in the circular queue to the preset application program when the data reading request is monitored;
in this embodiment, when the HAL layer stores the target data, the HAL layer may store the target data in the form of a circular queue, which may greatly reduce the space occupied by the target data storage. The HAL layer may also monitor a data reading request of a preset application program in real time, and after target data is stored in a circular queue of the HAL layer, if the HAL layer monitors the data reading request from the preset application program, the HAL layer may further find target data corresponding to the data reading request from the circular queue and send the target data to the preset application program. After the target data are stored in the circular queue of the HAL layer, the preset application program reads the target data immediately, so that the storage requirement of the target data can be met by the circular queue storage.
Step 205, monitoring a drive closing request from the preset application program through the HAL layer, and when the drive closing request is monitored, sending the drive closing request to the preset transmission interface of the cloud mobile phone client based on the intermediate layer, so that the cloud mobile phone client closes the target drive.
In this embodiment, the HAL layer may also monitor a drive closing request from a preset application in real time, and when the HAL layer monitors the drive closing request, the drive closing request may be sent to a preset transmission interface in the cloud mobile phone client through the intermediate layer, and after the preset transmission interface of the cloud mobile phone client receives the drive closing request, the drive closing request may be further sent to a target address, where a target drive function may be stored in the target address, and after the target drive function is called, the corresponding target drive may be closed.
In this embodiment, another cloud-based mobile phone drive control method is provided, and is applied to a cloud mobile phone client, as shown in fig. 3, the method includes:
step 301, receiving a drive starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, starting a target drive based on the drive starting request, and acquiring target data corresponding to the drive starting request based on the target drive;
the cloud mobile phone-based drive control method provided by the embodiment of the application can control the real phone drive where the cloud mobile phone client is located, so that the simulation of the cloud mobile phone drive is realized, and the functions of recording, recording video, photographing and the like of the cloud mobile phone are enriched. The cloud mobile phone-based drive control method provided by the embodiment of the application is mainly realized by three parts, namely an HAL layer and an intermediate layer of a cloud mobile phone end and a preset transmission interface of a cloud mobile phone client, wherein the intermediate layer is used for receiving communication between the HAL layer and the preset transmission interface, and the preset transmission interface is used for receiving communication between the intermediate layer and the cloud mobile phone client. The HAL layer may monitor, in real time, a driver start request of a preset application program running in the cloud mobile phone, where the driver start request may include a request for starting a recording, a request for starting a camera, and the like. When the HAL layer monitors a drive starting request of a preset application program, the HAL layer can forward the drive starting request through the middle layer and send the drive starting request to a preset transmission interface which is in communication connection with the middle layer. Firstly, a preset transmission interface of a cloud mobile phone client can receive a drive starting request sent by a cloud mobile phone intermediate layer, then the drive starting request can be further sent to a target address, a target drive function can be stored in the target address, after the target drive function is called, a corresponding target drive can be started, and then, corresponding physical hardware can be called through the target drive to obtain target data corresponding to the drive starting request. For example, when the drive starting request is a recording starting request, the cloud mobile phone client starts to start the recording device and record, and the target data may be recording data; when the drive starting request is a request for starting the camera, the cloud mobile phone client starts to start the camera and starts to record video, and the target data can be video data.
Step 302, calling the preset transmission interface, feeding the target data back to the intermediate layer through the preset transmission interface, so that the intermediate layer forwards the target data to a HAL layer, and storing the target data through the HAL layer.
In this embodiment, after the cloud mobile phone client acquires the target data corresponding to the drive starting request, the preset transmission interface may be called to feed the target data back to the intermediate layer. After receiving the target data, the intermediate layer may forward the target data to the HAL layer, so that the target data may be stored in the HAL layer.
According to the cloud mobile phone driving method and device, the target data obtained by the cloud mobile phone client are returned to the HAL layer for storage, the driving function of the cloud mobile phone is achieved, the user can use the cloud mobile phone in the process of being unaware of the driving function achieved through the cloud mobile phone client, the cloud mobile phone function is enriched, and meanwhile the experience feeling of the user is greatly improved.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully describe the specific implementation process of the embodiment, another cloud-based drive control method is provided, which is applied to a cloud mobile phone client, as shown in fig. 4, the method includes:
step 401, responding to a cloud mobile phone login instruction, acquiring a login personnel identifier, and generating a cloud mobile phone opening request based on the login personnel identifier; calling an interface layer initialization function, establishing a preset transmission interface in the interface layer after the interface layer is initialized, generating a communication connection request through the preset transmission interface, sending the communication connection request to a remote connection interface of the intermediate layer, and establishing communication connection with the intermediate layer;
in this embodiment, before logging in the cloud mobile phone, a user may generate a cloud mobile phone login instruction by triggering a cloud mobile phone icon on a cloud mobile phone client, and in response to the cloud mobile phone login instruction, may obtain a login person identifier, where the login person identifier may be an identifier corresponding to the cloud mobile phone client. Then, a cloud mobile phone opening request can be generated on the basis of the identification of the login personnel. And then, an interface layer initialization function can be called, the initialization of the interface layer of the cloud mobile phone client is realized through the interface layer initialization function, a preset transmission interface can be established in the interface layer after the initialization is finished, and a communication connection request is generated through the preset transmission interface. After the communication connection request is generated, the preset transmission interface can further send the communication connection request to a remote connection interface of the cloud mobile phone intermediate layer, so that communication connection is successfully established with the intermediate layer, and data transmission is achieved. Here, when the remote connection interface of the middle layer is a Socket server, the preset transmission interface of the cloud mobile phone client may be a Socket client, that is, the Socket client establishes communication connection with the Socket server, and the use of the Unix Socket enables communication to be simpler and more efficient.
Step 402, receiving a drive starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, starting a target drive based on the drive starting request, and acquiring target data corresponding to the drive starting request based on the target drive;
in this embodiment, first, a preset transmission interface of the cloud mobile phone client may receive a drive start request sent by the cloud mobile phone intermediate layer, then, the drive start request may be further sent to a target address, a target drive function may be stored in the target address, and after the target drive function is called, a corresponding target drive may be further started, and then, a corresponding physical hardware may be called by the target drive, so as to obtain target data corresponding to the drive start request.
Step 403, invoking the preset transmission interface, feeding the target data back to the intermediate layer through the preset transmission interface, so that the intermediate layer forwards the target data to the HAL layer, and storing the target data through the HAL layer.
In this embodiment, after the cloud mobile phone client acquires the target data corresponding to the drive starting request, the preset transmission interface may be called to feed the target data back to the intermediate layer. After receiving the target data, the intermediate layer may forward the target data to the HAL layer, so that the target data may be stored in the HAL layer.
In this embodiment of the present application, optionally, after "after the interface layer is initialized and the preset transmission interface is established in the interface layer" in step 401, the method further includes: sending a preset callback pointer to the preset transmission interface; in step 402, "receiving a drive start request sent by a cloud mobile phone intermediate layer through a preset transmission interface, and starting a target drive based on the drive start request" specifically includes: receiving a drive starting request sent by the cloud mobile phone intermediate layer through the preset transmission interface, identifying the callback pointer through the preset transmission interface, determining a target address corresponding to the callback pointer, forwarding the drive starting request to the target address, and calling a target drive function to start the target drive.
In this embodiment, after the interface layer establishes the preset transmission interface, the preset callback pointer may also be sent to the preset transmission interface, so that the preset transmission interface may send, when receiving the drive-related control requests sent by the remote connection interface from the intermediate layer, the requests to the corresponding target addresses through the callback pointer. Specifically, after the preset transmission interface receives a drive starting request sent by the intermediate layer through the remote transmission interface, the preset transmission interface can identify a corresponding target address in the callback pointer, so that the drive starting request can be sent to the target address, and a target drive function in the target address can be called to start the target drive.
Further, as a specific implementation of the method in fig. 1, an embodiment of the present application provides a drive control apparatus based on a cloud mobile phone, which is applied to the cloud mobile phone, and as shown in fig. 5, the apparatus includes:
the device comprises a request sending module, a data processing module and a data processing module, wherein the request sending module is used for monitoring a drive starting request from a preset application program through an HAL layer, sending the drive starting request to an intermediate layer when the drive starting request is monitored, sending the drive starting request to a preset transmission interface of a cloud mobile phone client based on the intermediate layer so as to enable the cloud mobile phone client to start a target drive, acquiring target data corresponding to the drive starting request based on the target drive, and feeding back the target data through the preset transmission interface, wherein the preset application program is an application program installed in a cloud mobile phone;
and the data receiving module is used for receiving the target data fed back by the preset transmission interface through the middle layer, forwarding the target data to the HAL layer and storing the target data through the HAL layer.
Optionally, the apparatus further comprises:
the loading module is used for responding to a cloud mobile phone starting request before monitoring a driving starting request from a preset application program through the HAL layer, loading the HAL layer and the middle layer and starting a remote connection interface of the middle layer;
and the connection establishing module is used for receiving the communication connection request sent by the preset transmission interface through the remote connection interface of the middle layer and establishing the communication connection with the preset transmission interface.
Optionally, the data receiving module is specifically configured to:
storing the target data by a circular queue in the HAL layer;
the device further comprises:
and the data reading module is used for monitoring a data reading request from the preset application program through the HAL layer after the target data is stored through the circular queue in the HAL layer, and sending the target data corresponding to the data reading request in the circular queue to the preset application program when the data reading request is monitored.
Optionally, the request sending module is further configured to:
monitoring a drive closing request from the preset application program through the HAL layer, and sending the drive closing request to the preset transmission interface of the cloud mobile phone client based on the intermediate layer when the drive closing request is monitored, so that the cloud mobile phone client closes the target drive.
Further, as a specific implementation of the method in fig. 3, an embodiment of the present application provides a drive control apparatus based on a cloud mobile phone, which is applied to a cloud mobile phone client, and as shown in fig. 6, the apparatus includes:
the driving starting module is used for receiving a driving starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, starting a target drive based on the driving starting request, and acquiring target data corresponding to the driving starting request based on the target drive;
and the interface calling module is used for calling the preset transmission interface, feeding the target data back to the intermediate layer through the preset transmission interface so as to enable the intermediate layer to forward the target data to the HAL layer, and storing the target data through the HAL layer.
Optionally, the apparatus further comprises:
the request generation module is used for responding to a cloud mobile phone login instruction before receiving a driving starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, acquiring a login personnel identifier and generating a cloud mobile phone starting request based on the login personnel identifier;
the function calling module is used for calling an interface layer initialization function, establishing the preset transmission interface in the interface layer after the interface layer is initialized, generating a communication connection request through the preset transmission interface, sending the communication connection request to the remote connection interface of the middle layer, and establishing communication connection with the middle layer.
Optionally, the apparatus further comprises:
the pointer sending module is used for sending a preset callback pointer to the preset transmission interface after the interface layer establishes the preset transmission interface after the interface layer is initialized;
the drive starting module is specifically used for:
receiving a drive starting request sent by the cloud mobile phone intermediate layer through the preset transmission interface, identifying the callback pointer through the preset transmission interface, determining a target address corresponding to the callback pointer, forwarding the drive starting request to the target address, and calling a target drive function to start the target drive.
It should be noted that other corresponding descriptions of the functional units related to the driving control device based on the cloud mobile phone provided in the embodiment of the present application may refer to corresponding descriptions in the methods in fig. 1 to fig. 4, and are not described herein again.
Based on the above methods shown in fig. 1 to 4, correspondingly, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the cloud mobile phone-based drive control method shown in fig. 1 to 4.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present application.
Based on the method shown in fig. 1 to 4 and the virtual device embodiment shown in fig. 5 to 6, in order to achieve the above object, the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, and the like, where the computer device includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing a computer program to implement the cloud handset based drive control method as shown in fig. 1 to 4.
Optionally, the computer device may also include a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, sensors, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., a bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the present embodiment provides a computer device architecture that is not limiting of the computer device, and that may include more or fewer components, or some components in combination, or a different arrangement of components.
The storage medium may further include an operating system and a network communication module. An operating system is a program that manages and maintains the hardware and software resources of a computer device, supporting the operation of information handling programs, as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and other hardware and software in the entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. The method comprises the steps that firstly, a HAL layer can monitor a drive starting request of a preset application program running in the cloud mobile phone, when the HAL layer monitors the drive starting request of the preset application program, the drive starting request can be forwarded through an intermediate layer, the drive starting request is sent to a preset transmission interface which is in communication connection with the intermediate layer, after the preset transmission interface of a cloud mobile phone client receives the drive starting request, the cloud mobile phone client can start a corresponding target drive, and target data corresponding to the drive starting request can be acquired through the target drive. Then, after the cloud mobile phone client acquires target data corresponding to the drive starting request, a preset transmission interface can be called to feed the target data back to the intermediate layer. After receiving the target data, the intermediate layer may forward the target data to the HAL layer, so that the target data may be stored in the HAL layer. According to the cloud mobile phone driving method and device, the target data obtained by the cloud mobile phone client are returned to the HAL layer for storage, the driving function of the cloud mobile phone is achieved, the user can use the cloud mobile phone in the process of being unaware of the driving function achieved through the cloud mobile phone client, the cloud mobile phone function is enriched, and meanwhile the experience feeling of the user is greatly improved.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (11)

1. A drive control method based on a cloud mobile phone is applied to the cloud mobile phone and is characterized by comprising the following steps:
monitoring a drive starting request from a preset application program through a HAL layer, sending the drive starting request to an intermediate layer when the drive starting request is monitored, sending the drive starting request to a preset transmission interface of a cloud mobile phone client based on the intermediate layer so as to enable the cloud mobile phone client to start a target drive, acquiring target data corresponding to the drive starting request based on the target drive, and feeding back the target data through the preset transmission interface, wherein the preset application program is an application program installed in a cloud mobile phone;
receiving the target data fed back by the preset transmission interface through the intermediate layer, forwarding the target data to the HAL layer, and storing the target data through the HAL layer.
2. The method as claimed in claim 1, wherein before the monitoring, by the HAL layer, the driver turn-on request from the predetermined application, the method further comprises:
responding to a cloud mobile phone starting request, loading the HAL layer and the middle layer, and starting a remote connection interface of the middle layer;
and receiving a communication connection request sent by the preset transmission interface through the remote connection interface of the middle layer, and establishing communication connection with the preset transmission interface.
3. The method according to claim 1, wherein said storing said object data by said HAL layer comprises:
storing the target data by a circular queue in the HAL layer;
after storing the target data through a circular queue in the HAL layer, the method further comprises:
monitoring a data reading request from the preset application program through the HAL layer, and sending the target data corresponding to the data reading request in the circular queue to the preset application program when the data reading request is monitored.
4. The method of claim 3, further comprising:
monitoring a drive closing request from the preset application program through the HAL layer, and sending the drive closing request to the preset transmission interface of the cloud mobile phone client based on the intermediate layer when the drive closing request is monitored, so that the cloud mobile phone client closes the target drive.
5. A drive control method based on a cloud mobile phone is applied to a cloud mobile phone client, and is characterized by comprising the following steps:
receiving a drive starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, starting a target drive based on the drive starting request, and acquiring target data corresponding to the drive starting request based on the target drive;
and calling the preset transmission interface, feeding the target data back to the intermediate layer through the preset transmission interface so that the intermediate layer forwards the target data to a HAL layer, and storing the target data through the HAL layer.
6. The method according to claim 5, wherein before receiving the driver turn-on request sent by the cloud mobile phone middle layer through the preset transmission interface, the method further comprises:
responding to a cloud mobile phone login instruction, acquiring a login personnel identifier, and generating a cloud mobile phone opening request based on the login personnel identifier;
calling an interface layer initialization function, establishing the preset transmission interface in the interface layer after the interface layer is initialized, generating a communication connection request through the preset transmission interface, sending the communication connection request to a remote connection interface of the middle layer, and establishing communication connection with the middle layer.
7. The method according to claim 6, wherein after the interface layer establishes the predetermined transmission interface at the interface layer after the interface layer is initialized, the method further comprises:
sending a preset callback pointer to the preset transmission interface;
the method includes the steps of receiving a drive starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, and starting a target drive based on the drive starting request, and specifically includes:
receiving a drive starting request sent by the cloud mobile phone intermediate layer through the preset transmission interface, identifying the callback pointer through the preset transmission interface, determining a target address corresponding to the callback pointer, forwarding the drive starting request to the target address, and calling a target drive function to start the target drive.
8. The utility model provides a drive control device based on cloud cell-phone, is applied to the cloud cell-phone, its characterized in that includes:
the device comprises a request sending module, a data processing module and a data processing module, wherein the request sending module is used for monitoring a drive starting request from a preset application program through an HAL layer, sending the drive starting request to an intermediate layer when the drive starting request is monitored, sending the drive starting request to a preset transmission interface of a cloud mobile phone client based on the intermediate layer so as to enable the cloud mobile phone client to start a target drive, acquiring target data corresponding to the drive starting request based on the target drive, and feeding back the target data through the preset transmission interface, wherein the preset application program is an application program installed in a cloud mobile phone;
and the data receiving module is used for receiving the target data fed back by the preset transmission interface through the middle layer, forwarding the target data to the HAL layer and storing the target data through the HAL layer.
9. The utility model provides a drive control device based on cloud cell-phone, is applied to cloud cell-phone client, its characterized in that includes:
the driving starting module is used for receiving a driving starting request sent by a cloud mobile phone intermediate layer through a preset transmission interface, starting a target drive based on the driving starting request, and acquiring target data corresponding to the driving starting request based on the target drive;
and the interface calling module is used for calling the preset transmission interface, feeding the target data back to the intermediate layer through the preset transmission interface so as to enable the intermediate layer to forward the target data to the HAL layer, and storing the target data through the HAL layer.
10. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 7.
11. A computer device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any one of claims 1 to 7 when executing the computer program.
CN202111562896.9A 2021-12-20 2021-12-20 Drive control method and device based on cloud mobile phone and storage medium Pending CN114265714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111562896.9A CN114265714A (en) 2021-12-20 2021-12-20 Drive control method and device based on cloud mobile phone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111562896.9A CN114265714A (en) 2021-12-20 2021-12-20 Drive control method and device based on cloud mobile phone and storage medium

Publications (1)

Publication Number Publication Date
CN114265714A true CN114265714A (en) 2022-04-01

Family

ID=80828111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111562896.9A Pending CN114265714A (en) 2021-12-20 2021-12-20 Drive control method and device based on cloud mobile phone and storage medium

Country Status (1)

Country Link
CN (1) CN114265714A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114845169A (en) * 2022-04-29 2022-08-02 东风汽车有限公司东风日产乘用车公司 Play control method, play control device, play terminal, and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114845169A (en) * 2022-04-29 2022-08-02 东风汽车有限公司东风日产乘用车公司 Play control method, play control device, play terminal, and storage medium
CN114845169B (en) * 2022-04-29 2023-07-25 东风汽车有限公司东风日产乘用车公司 Playback control method, playback control device, playback terminal, and storage medium

Similar Documents

Publication Publication Date Title
US10824449B2 (en) Application running method and device
EP3531290B1 (en) Data backup method, apparatus, electronic device, storage medium, and system
US20180043264A1 (en) Game Accessing Method and Processing Method, Server, Terminal, and System
CN111433743B (en) APP remote control method and related equipment
US11738277B2 (en) Game testing system
CN110069919B (en) Information acquisition method and device
CN109753332B (en) Method and device for displaying information
CN110457621B (en) Page display method, device and medium for hybrid application
CN110007936B (en) Data processing method and device
CN106027631B (en) Data transmission method and device
KR102133514B1 (en) Status message service providing method of electronic apparatus and electronic apparatus thereof
CN111857858A (en) Method and apparatus for processing information
CN112121411A (en) Vibration control method, device, electronic equipment and computer readable storage medium
CN110618806B (en) Application program control method and device, electronic equipment and storage medium
CN114265714A (en) Drive control method and device based on cloud mobile phone and storage medium
CN112925788A (en) Data set management method, system, device, electronic equipment and storage medium
CN111615171B (en) Access method and device of wireless local area network
CN107229470B (en) System font switching method, mobile terminal and computer readable storage medium
CN107168648B (en) File storage method and device and terminal
CN113617020B (en) Game control method, game control device, storage medium, server and terminal
CN112272223B (en) Application running method and device, server and computer readable storage medium
CN114265655A (en) Cloud application data processing method, device and system and storage medium
CN111135557B (en) Interaction method and device for multiple screens
CN111290672A (en) Image display method and device, storage medium and terminal
CN112261099B (en) Position information acquisition method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination