CN114003139A - Vehicle-mounted equipment operation method and device, storage medium and electronic device - Google Patents
Vehicle-mounted equipment operation method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN114003139A CN114003139A CN202111260588.0A CN202111260588A CN114003139A CN 114003139 A CN114003139 A CN 114003139A CN 202111260588 A CN202111260588 A CN 202111260588A CN 114003139 A CN114003139 A CN 114003139A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- preset
- mouse event
- virtual mouse
- mounted equipment
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000004590 computer program Methods 0.000 claims description 18
- 230000006870 function Effects 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000004891 communication Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000011017 operating method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03543—Mice or pucks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/48—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The application discloses an operation method and device of vehicle-mounted equipment, a storage medium and an electronic device. The method comprises the steps of establishing connection with the vehicle-mounted equipment through a Bluetooth protocol; transmitting a preset control operation to the vehicle-mounted equipment through a preset application program through the Bluetooth protocol, wherein the preset control operation is used for realizing a preset touch function; sending a virtual mouse event to the vehicle-mounted equipment, wherein a preset system service is provided on the vehicle-mounted equipment, and the preset system service is used for receiving the virtual mouse event; and displaying the mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted equipment. The technical problem of the inconvenience in operation of the vehicle-mounted equipment is solved. According to the method and the device, the mouse operation on the vehicle-mounted equipment is realized.
Description
Technical Field
The application relates to the field of computer software, in particular to an operation method and device of vehicle-mounted equipment, a storage medium and an electronic device.
Background
The vehicle-mounted equipment part has no touch screen, and cannot complete operation through touch control.
The physical Bluetooth keyboard and the mouse have higher cost and cannot meet the convenience of use at any time in a vehicle-mounted environment.
Aiming at the problem of inconvenient operation of vehicle-mounted equipment in the related art, an effective solution is not provided at present.
Disclosure of Invention
The application mainly aims to provide an operation method and device of vehicle-mounted equipment, a storage medium and an electronic device so as to solve the problem that the vehicle-mounted equipment is inconvenient to operate.
In order to achieve the above object, according to one aspect of the present application, there is provided an in-vehicle apparatus operating method.
The vehicle-mounted device operation method according to the application comprises the following steps: establishing connection with the vehicle-mounted equipment through a Bluetooth protocol; transmitting a preset control operation to the vehicle-mounted equipment through a preset application program through the Bluetooth protocol, wherein the preset control operation is used for realizing a preset touch function; sending a virtual mouse event to the vehicle-mounted equipment, wherein a preset system service is provided on the vehicle-mounted equipment, and the preset system service is used for receiving the virtual mouse event; and displaying the mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted equipment.
Further, after the preset system service is used for receiving the virtual mouse event, the preset system service includes: starting an HID main program in an operating system in the vehicle-mounted equipment after receiving the virtual mouse event based on the preset system service; sending the analyzed mouse event to an HID Device service of the operating system through an input stream preset by the operating system, wherein the HID Device service is used for reporting to an input Device processor through an input reporting event component, and the input Device processor is used for sending an Iputreader through an EventHub and distributing the Iputreader to the operating system again.
Further, after receiving the virtual mouse event based on the preset system service, starting an HID main program in an operating system in the vehicle-mounted device includes: and after the virtual mouse event is received based on the preset system service, if the virtual mouse event cannot be identified as the HID, simulating and starting an HID main program in an operating system in the vehicle-mounted equipment through HID.
Further, after receiving the virtual mouse event based on the preset system service, starting an HID main program in an operating system in the vehicle-mounted device includes: and after receiving the virtual mouse event based on the preset system service, establishing a Bluetooth link and creating the HID under the condition that the opposite terminal equipment is identified as the HID.
Further, the preset control operation is transmitted to the vehicle-mounted device through the bluetooth protocol through a preset application program, wherein the preset control operation is used for realizing a preset touch function, and the method includes: and receiving the operation of a user through a preset application program, encoding the preset control operation into data, and sending the data to the preset system service of the load equipment through a Bluetooth channel.
Further, the sending the virtual mouse event to the vehicle-mounted device includes: the preset system service analyzes the received data into the mouse event, simulates the system mouse event through a system preset interface and distributes the system mouse event to an upper layer application; the displaying of the mouse input corresponding to the virtual mouse event in the display screen of the vehicle-mounted device includes: and the upper layer application displays the input operation of the mouse event after receiving the mouse event distributed by the system.
Further, comprising: the in-vehicle apparatus includes at least: and the vehicle-mounted HUD sends a virtual mouse event to the vehicle-mounted HUD, and transmits the virtual mouse event to an application program on the equipment according to a transparent mode through simulating an input device of a preset service system in the vehicle-mounted HUD.
In order to achieve the above object, according to another aspect of the present application, an in-vehicle apparatus operating device is provided.
An in-vehicle apparatus operating device according to the present application includes: the connection module is used for establishing connection with the vehicle-mounted equipment through a Bluetooth protocol; the transmission module is used for transmitting preset control operation to the vehicle-mounted equipment through a preset application program through the Bluetooth protocol, wherein the preset control operation is used for realizing a preset touch function; the sending module is used for sending a virtual mouse event to the vehicle-mounted equipment, wherein a preset system service is provided on the vehicle-mounted equipment, and the preset system service is used for receiving the virtual mouse event; and the display module is used for displaying the mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted equipment.
In order to achieve the above object, according to another aspect of the present application, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
In order to achieve the above object, according to yet another aspect of the present application, there is also provided an electronic device comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In the embodiment of the application, the vehicle-mounted device operation method and device, the storage medium and the electronic device adopt a mode of establishing connection with the vehicle-mounted device through a Bluetooth protocol, and preset control operation is transmitted to the vehicle-mounted device through the Bluetooth protocol and a virtual mouse event is sent to the vehicle-mounted device through a preset application program, so that the purpose of displaying the mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted device is achieved, the technical effect of simulating and completing the mouse input operation in the vehicle-mounted device through a terminal is achieved, and the technical problem of inconvenience in operation of the vehicle-mounted device is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1(a) is a schematic diagram of a hardware system structure of an operating method of an in-vehicle device according to an embodiment of the present application;
fig. 1(b) is a hardware system configuration diagram of an in-vehicle device in an in-vehicle device operation method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a method for operating an in-vehicle device according to an embodiment of the application;
FIG. 3 is a schematic structural diagram of an in-vehicle device operating apparatus according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for operating an in-vehicle device according to a preferred embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1(a) -1 (b), the hardware system includes the in-vehicle apparatus 100 and the terminal 200. The vehicle-mounted device 100 is a device used in a vehicle, and the terminal 200 includes, but is not limited to, an intelligent mobile terminal. The terminal 200 is connected with the vehicle-mounted device 100 in a bluetooth wireless communication manner.
The vehicle-mounted device 100 may include one or more processors 102 (only one is shown in fig. 1 (b)) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally, the camera terminal may further include a transmission device 106 for communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1(b) is merely an illustration, and does not limit the structure of the above-described in-vehicle apparatus 100. For example, the in-vehicle apparatus 100 may also include more or fewer components than those shown in fig. 1(b), or have a different configuration from that shown in fig. 1 (b).
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the privacy-blocking method for video surveillance in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the in-vehicle device 100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. The specific example of the network described above may include a wireless network provided by a communication provider of the in-vehicle apparatus 100. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
As shown in fig. 2, the method includes steps S201 to S204 as follows:
step S201, establishing connection with the vehicle-mounted equipment through a Bluetooth protocol;
step S202, transmitting a preset control operation to the vehicle-mounted equipment through a preset application program through the Bluetooth protocol, wherein the preset control operation is used for realizing a preset touch function;
step S203, sending a virtual mouse event to the vehicle-mounted device, wherein a preset system service is provided on the vehicle-mounted device, and the preset system service is used for receiving the virtual mouse event;
and step S204, displaying the mouse input corresponding to the virtual mouse event in the display screen of the vehicle-mounted equipment.
From the above description, it can be seen that the following technical effects are achieved by the present application:
the method comprises the steps of establishing connection with the vehicle-mounted device through a Bluetooth protocol, transmitting preset control operation to the vehicle-mounted device and sending a virtual mouse event to the vehicle-mounted device through the Bluetooth protocol through a preset application program, achieving the purpose of displaying mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted device, achieving the technical effect of simulating and completing mouse input operation through a terminal on the vehicle-mounted device, and further solving the technical problem of inconvenience in operation of the vehicle-mounted device.
In step S201, before the virtual operation is required, the terminal needs to establish a connection with the vehicle-mounted device through a bluetooth protocol.
As an optional implementation manner, establishing the bluetooth communication channel is established based on a preset application program of the terminal and an application program of the vehicle-mounted device.
As a preferred embodiment, when the terminal is monitored in the vehicle, the terminal will automatically establish a connection with the vehicle-mounted device.
In the step S202, a preset control operation is transmitted to the vehicle-mounted device through the bluetooth protocol in the terminal through a preset application program. It is understood that the preset control operation refers to a control operation of a virtual mouse on a display screen of the in-vehicle device. In the related art, if the on-board device does not have a touch screen, the on-board device cannot directly perform control operation.
As an optional implementation manner, the preset control operation is used to implement a preset touch function.
As a preferred embodiment, the preset touch function includes but is not limited to: touch operations such as double-click, drag, single-click, selection and the like.
In the step S203, the terminal sends a virtual mouse event to the vehicle-mounted device, and it can be understood that the virtual mouse event is synchronized with the terminal. Alternatively, the virtual mouse events are the same.
As an optional implementation, the preset system service is configured to receive the virtual mouse event. It is understood that the virtual mouse event is received based on the preset system service and displayed on an operating system or an application program.
In a preferred embodiment, a preset system service is provided on the vehicle-mounted device. It can be understood that the preset system service is a system service of the vehicle-mounted device.
In step S204, a mouse input corresponding to the virtual mouse event is displayed on the display screen of the vehicle-mounted device.
As an alternative embodiment, the display mode is displaying in the display screen.
In a preferred embodiment, the virtual mouse event is transparently passed to an application on the in-vehicle device.
As a preferable preference in this embodiment, after the preset system service is used for receiving the virtual mouse event, the preset system service includes: starting an HID main program in an operating system in the vehicle-mounted equipment after receiving the virtual mouse event based on the preset system service; sending the analyzed mouse event to an HID Device service of the operating system through an input stream preset by the operating system, wherein the HID Device service is used for reporting to an input Device processor through an input reporting event component, and the input Device processor is used for sending an Iputreader through an EventHub and distributing the Iputreader to the operating system again.
In specific implementation, after receiving the virtual mouse event based on the preset system service, the vehicle-mounted terminal starts an HID main program in an operating system in the vehicle-mounted equipment. The HID main program is used for managing the calling of the human interface equipment. And sending the analyzed mouse event to an HID Device service of the operating system through an input stream preset by the operating system.
It is noted that the HID Device service is configured to report to the input Device processor via the input report event component, and the input Device processor is configured to send the IputReader via the eventtub and redistribute it to the operating system. The above is only an example and is not intended to limit the scope of the present application, and those skilled in the art can select the method according to circumstances.
As a preferable preference in this embodiment, the starting the HID main program in the operating system in the vehicle device after receiving the virtual mouse event based on the preset system service includes: and after the virtual mouse event is received based on the preset system service, if the virtual mouse event cannot be identified as the HID, simulating and starting an HID main program in an operating system in the vehicle-mounted equipment through HID.
In specific implementation, after the vehicle-mounted terminal receives the virtual mouse event based on the preset system service through the HID main program in the operating system in the vehicle-mounted equipment, if the virtual mouse event cannot be identified as the HID equipment, the HID main program in the operating system in the vehicle-mounted equipment is simulated and started through HID. Java is simulated and started by HID if it cannot be identified as a HID device.
As a preferable preference in this embodiment, the starting the HID main program in the operating system in the vehicle device after receiving the virtual mouse event based on the preset system service includes: and after receiving the virtual mouse event based on the preset system service, establishing a Bluetooth link and creating the HID under the condition that the opposite terminal equipment is identified as the HID.
In specific implementation, after receiving the virtual mouse event based on the preset system service, the vehicle-mounted terminal establishes a bluetooth link and creates an HID device when recognizing that the opposite terminal device is the HID device.
As a preferred option in this embodiment, the transmitting, by a preset application program, a preset control operation to the vehicle-mounted device through the bluetooth protocol, where the preset control operation is used to implement a preset touch function, includes: and receiving the operation of a user through a preset application program, encoding the preset control operation into data, and sending the data to the preset system service of the load equipment through a Bluetooth channel.
During specific implementation, receiving operation of a user through a preset application program, and sending the preset control operation to a preset system service of the carrier device through a Bluetooth channel after obtaining corresponding data through preset codes.
As a preferable preference in this embodiment, the sending the virtual mouse event to the in-vehicle device includes: the preset system service analyzes the received data into the mouse event, simulates the system mouse event through a system preset interface and distributes the system mouse event to an upper layer application; the displaying of the mouse input corresponding to the virtual mouse event in the display screen of the vehicle-mounted device includes: and the upper layer application displays the input operation of the mouse event after receiving the mouse event distributed by the system.
In specific implementation, the preset system service analyzes the received data into the mouse event, and simulates the system mouse event through a system preset interface and distributes the system mouse event to an upper layer application. The process is carried out in a gathering mode by the vehicle-mounted terminal and is distributed to upper-layer applications after system mouse events are simulated.
Further, the upper layer application displays the input operation of the mouse event after receiving the mouse event distributed by the system. And after the upper layer application receives the mouse event distributed by the system, the upper layer application displays and synchronizes the mouse event. Therefore, mouse operation without a touch screen is realized on the vehicle-mounted terminal.
As a preference in the present embodiment, the following are included: the in-vehicle apparatus includes at least: and the vehicle-mounted HUD sends a virtual mouse event to the vehicle-mounted HUD, and transmits the virtual mouse event to an application program on the equipment according to a transparent mode through simulating an input device of a preset service system in the vehicle-mounted HUD.
During specific implementation, the vehicle-mounted HUD is connected with the terminal, the virtual mouse event is sent to the vehicle-mounted HUD, and the virtual mouse event is transmitted to the input device of the service system in the vehicle-mounted HUD in a simulated mode, so that the effect or the function of the application program on the device is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present application, there is also provided an in-vehicle device operating apparatus for implementing the above method, as shown in fig. 3, the apparatus including:
a connection module 301, configured to establish a connection with the vehicle-mounted device through a bluetooth protocol;
a transmission module 302, configured to transmit, through a preset application program, a preset control operation to the vehicle-mounted device through the bluetooth protocol, where the preset control operation is used to implement a preset touch function;
a sending module 303, configured to send a virtual mouse event to the vehicle-mounted device, where a preset system service is provided on the vehicle-mounted device, and the preset system service is used to receive the virtual mouse event;
and the display module 304 is configured to display a mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted device.
Before virtual control is required to be performed in the connection module 301, the terminal needs to be connected to the vehicle-mounted device through a bluetooth protocol.
As an optional implementation manner, establishing the bluetooth communication channel is established based on a preset application program of the terminal and an application program of the vehicle-mounted device.
As a preferred embodiment, when the terminal is monitored in the vehicle, the terminal will automatically establish a connection with the vehicle-mounted device.
In the transmission module 302, a preset control operation is transmitted to the vehicle-mounted device through the bluetooth protocol at the terminal through a preset application program. It is understood that the preset control operation refers to a control operation of a virtual mouse on a display screen of the in-vehicle device. In the related art, if the on-board device does not have a touch screen, the on-board device cannot directly perform control operation.
As an optional implementation manner, the preset control operation is used to implement a preset touch function.
As a preferred embodiment, the preset touch function includes but is not limited to: touch operations such as double-click, drag, single-click, selection and the like.
The terminal in the sending module 303 sends a virtual mouse event to the vehicle-mounted device, and it can be understood that the virtual mouse event is synchronized with the terminal. Alternatively, the virtual mouse events are the same.
As an optional implementation, the preset system service is configured to receive the virtual mouse event. It is understood that the virtual mouse event is received based on the preset system service and displayed on an operating system or an application program.
In a preferred embodiment, a preset system service is provided on the vehicle-mounted device. It can be understood that the preset system service is a system service of the vehicle-mounted device.
The display module 304 displays a mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted device.
As an alternative embodiment, the display mode is displaying in the display screen.
In a preferred embodiment, the virtual mouse event is transparently passed to an application on the in-vehicle device.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present application is not limited to any specific combination of hardware and software.
In order to better understand the flow of the operating method of the vehicle-mounted device, the following explains the technical solutions with reference to the preferred embodiments, but the technical solutions of the embodiments of the present invention are not limited.
According to the operation method of the vehicle-mounted equipment in the embodiment of the application, the application program on the mobile terminal is connected with the vehicle-mounted terminal through the Bluetooth, so that an external touchpad is simulated, and the input operation of a mouse is completed on the vehicle-mounted terminal.
As shown in fig. 4, a schematic flow chart of an operation method of a vehicle-mounted device is shown, and the description is given by taking the terminal as a mobile phone terminal, which specifically includes:
step S401, the mobile phone end application establishes Bluetooth connection with a specific virtual mouse service on the robot.
And step S402, the mobile phone application receives the operation of the user, codes the operation into data and sends the data to the robot system service through Bluetooth.
Step S403, the system service analyzes the received Bluetooth data into a mouse event, and simulates the system mouse event through a system interface to be distributed to the upper layer application.
And step S404, the upper layer application receives the mouse event distributed by the system and completes the input operation of the mouse.
During specific implementation, the mobile phone end application establishes Bluetooth connection with the vehicle-mounted robot without the touch screen through Bluetooth. The mobile phone end finishes an application program, provides the function of a user touch pad, and sends the operations of moving a mouse, clicking, double clicking and the like of the user to the vehicle-mounted robot through Bluetooth. And the vehicle-mounted terminal provides a system service to receive the virtual mouse event sent by the mobile phone terminal through the Bluetooth.
Further, after the service receives the event, starting an HID main program in the Android system, and sending the analyzed mouse event to the HID Device service of the system through the InputStream appointed by the system. The HID Device service reports to the Input Device processor via the highest _ report _ event. And the Input device processor sends Iputreader through EventHub and distributes the Iputreader to a common application system.
And finally, the application on the loading terminal can normally receive the system mouse event to complete the mouse input operation. The virtual mouse event is not handled by itself.
Embodiments of the present application further provide a storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, establishing connection with the vehicle-mounted equipment through a Bluetooth protocol;
s2, transmitting preset control operation to the vehicle-mounted equipment through a preset application program through the Bluetooth protocol, wherein the preset control operation is used for realizing a preset touch function;
s3, sending a virtual mouse event to the vehicle-mounted device, wherein a preset system service is provided on the vehicle-mounted device, and the preset system service is used for receiving the virtual mouse event;
and S4, displaying the mouse input corresponding to the virtual mouse event on the display screen of the vehicle-mounted equipment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, establishing connection with the vehicle-mounted equipment through a Bluetooth protocol;
s2, transmitting preset control operation to the vehicle-mounted equipment through a preset application program through the Bluetooth protocol, wherein the preset control operation is used for realizing a preset touch function;
s3, sending a virtual mouse event to the vehicle-mounted device, wherein a preset system service is provided on the vehicle-mounted device, and the preset system service is used for receiving the virtual mouse event;
and S4, displaying the mouse input corresponding to the virtual mouse event on the display screen of the vehicle-mounted equipment.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. An in-vehicle apparatus operation method characterized by comprising:
establishing connection with the vehicle-mounted equipment through a Bluetooth protocol;
transmitting a preset control operation to the vehicle-mounted equipment through a preset application program through the Bluetooth protocol, wherein the preset control operation is used for realizing a preset touch function;
sending a virtual mouse event to the vehicle-mounted equipment, wherein a preset system service is provided on the vehicle-mounted equipment, and the preset system service is used for receiving the virtual mouse event;
and displaying the mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted equipment.
2. The method of claim 1, wherein the default system service, after receiving the virtual mouse event, comprises:
starting an HID main program in an operating system in the vehicle-mounted equipment after receiving the virtual mouse event based on the preset system service;
sending the analyzed mouse event to an HID Device service of the operating system through an input stream preset by the operating system, wherein the HID Device service is used for reporting to an input Device processor through an input reporting event component, and the input Device processor is used for sending an Iputreader through an EventHub and distributing the Iputreader to the operating system again.
3. The method of claim 2, wherein starting a HID main program in an operating system of the vehicle-mounted device after receiving the virtual mouse event based on the preset system service comprises:
and after the virtual mouse event is received based on the preset system service, if the virtual mouse event cannot be identified as the HID, simulating and starting an HID main program in an operating system in the vehicle-mounted equipment through HID.
4. The method of claim 2, wherein starting a HID main program in an operating system of the vehicle-mounted device after receiving the virtual mouse event based on the preset system service comprises:
and after receiving the virtual mouse event based on the preset system service, establishing a Bluetooth link and creating the HID under the condition that the opposite terminal equipment is identified as the HID.
5. The method according to claim 1, wherein the transmitting, by a preset application program, a preset control operation to the vehicle-mounted device through the bluetooth protocol, wherein the preset control operation is used for implementing a preset touch function, comprises:
and receiving the operation of a user through a preset application program, encoding the preset control operation into data, and sending the data to the preset system service of the load equipment through a Bluetooth channel.
6. The method of claim 5, wherein:
the sending of the virtual mouse event to the vehicle-mounted device includes:
the preset system service analyzes the received data into the mouse event, simulates the system mouse event through a system preset interface and distributes the system mouse event to an upper layer application;
the displaying of the mouse input corresponding to the virtual mouse event in the display screen of the vehicle-mounted device includes:
and the upper layer application displays the input operation of the mouse event after receiving the mouse event distributed by the system.
7. The method of claim 1, comprising:
the in-vehicle apparatus includes at least: the HUD is carried by the vehicle,
and sending a virtual mouse event to the vehicle-mounted HUD, and transmitting the virtual mouse event to an application program on the device according to a transparent mode by simulating an input device of a preset service system in the vehicle-mounted HUD.
8. An in-vehicle device operation apparatus characterized by comprising:
the connection module is used for establishing connection with the vehicle-mounted equipment through a Bluetooth protocol;
the transmission module is used for transmitting preset control operation to the vehicle-mounted equipment through a preset application program through the Bluetooth protocol, wherein the preset control operation is used for realizing a preset touch function;
the sending module is used for sending a virtual mouse event to the vehicle-mounted equipment, wherein a preset system service is provided on the vehicle-mounted equipment, and the preset system service is used for receiving the virtual mouse event;
and the display module is used for displaying the mouse input corresponding to the virtual mouse event in a display screen of the vehicle-mounted equipment.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111260588.0A CN114003139A (en) | 2021-10-27 | 2021-10-27 | Vehicle-mounted equipment operation method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111260588.0A CN114003139A (en) | 2021-10-27 | 2021-10-27 | Vehicle-mounted equipment operation method and device, storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114003139A true CN114003139A (en) | 2022-02-01 |
Family
ID=79924506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111260588.0A Pending CN114003139A (en) | 2021-10-27 | 2021-10-27 | Vehicle-mounted equipment operation method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114003139A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114666363A (en) * | 2022-02-25 | 2022-06-24 | 阿波罗智联(北京)科技有限公司 | Information transmission method and device, electronic equipment, storage medium and product |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104571913A (en) * | 2014-12-25 | 2015-04-29 | 青岛歌尔声学科技有限公司 | System and method for simulating mouse control |
US20150138085A1 (en) * | 2013-07-31 | 2015-05-21 | Bradley Lloyd Wilk | Electronic apparatus for simulating or interfacing a backward compatible human input device by means or control of a gesture recognition system |
CN106303057A (en) * | 2016-08-24 | 2017-01-04 | 惠州Tcl移动通信有限公司 | The method and system of bluetooth equipment are controlled by mobile terminal simulation bluetooth mouse |
CN108055704A (en) * | 2017-12-22 | 2018-05-18 | 广州视源电子科技股份有限公司 | interaction control method, system, terminal and storage medium |
CN109358759A (en) * | 2018-09-05 | 2019-02-19 | 上海贝锐信息科技股份有限公司 | A kind of system and method using long-range control input controller controls controlled terminal |
CN110012328A (en) * | 2019-03-13 | 2019-07-12 | 青岛海信传媒网络技术有限公司 | A kind of method and device interacted with smart television |
CN113391782A (en) * | 2021-06-30 | 2021-09-14 | 深圳市斯博科技有限公司 | Method, system, electronic device and storage medium for controlling mobile terminal by computer |
-
2021
- 2021-10-27 CN CN202111260588.0A patent/CN114003139A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150138085A1 (en) * | 2013-07-31 | 2015-05-21 | Bradley Lloyd Wilk | Electronic apparatus for simulating or interfacing a backward compatible human input device by means or control of a gesture recognition system |
CN104571913A (en) * | 2014-12-25 | 2015-04-29 | 青岛歌尔声学科技有限公司 | System and method for simulating mouse control |
CN106303057A (en) * | 2016-08-24 | 2017-01-04 | 惠州Tcl移动通信有限公司 | The method and system of bluetooth equipment are controlled by mobile terminal simulation bluetooth mouse |
CN108055704A (en) * | 2017-12-22 | 2018-05-18 | 广州视源电子科技股份有限公司 | interaction control method, system, terminal and storage medium |
CN109358759A (en) * | 2018-09-05 | 2019-02-19 | 上海贝锐信息科技股份有限公司 | A kind of system and method using long-range control input controller controls controlled terminal |
CN110012328A (en) * | 2019-03-13 | 2019-07-12 | 青岛海信传媒网络技术有限公司 | A kind of method and device interacted with smart television |
CN113391782A (en) * | 2021-06-30 | 2021-09-14 | 深圳市斯博科技有限公司 | Method, system, electronic device and storage medium for controlling mobile terminal by computer |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114666363A (en) * | 2022-02-25 | 2022-06-24 | 阿波罗智联(北京)科技有限公司 | Information transmission method and device, electronic equipment, storage medium and product |
CN114666363B (en) * | 2022-02-25 | 2024-03-01 | 阿波罗智联(北京)科技有限公司 | Information transmission method, device, electronic equipment, storage medium and product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110888615B (en) | Multi-input equipment interaction method, device and medium for double-screen different display of Android system | |
CN105045639B (en) | Downloading method of mobile terminal, device and mobile terminal | |
CN102752369B (en) | The supplying method of TV applications service and virtual content service platform | |
CN106354512A (en) | User interface rendering method and device thereof | |
CN107634962B (en) | The management method and Related product of network bandwidth | |
US20230015800A1 (en) | A method, apparatus, medium and electronic device for configuring a gift list in a live broadcast room | |
CN107666406B (en) | Intelligent card display method and device | |
CN111338745B (en) | Deployment method and device of virtual machine and intelligent device | |
CN113038434B (en) | Device registration method and device, mobile terminal and storage medium | |
US20140156852A1 (en) | Method and system for sharing testing resources through the web | |
CN103813202A (en) | Smart television with interactive function, handheld device with interactive function and interactive method of smart television and handheld device | |
CN104852984A (en) | Method and system for transmitting data between smart terminals based on multi-screen interaction | |
CN110493756A (en) | Throw screen method and 5G terminal | |
CN107911547A (en) | Interactive system, the method for interface layout | |
CN108809561A (en) | A kind of transmission method, the network equipment and the user equipment of synchronizing signal block | |
CN114003139A (en) | Vehicle-mounted equipment operation method and device, storage medium and electronic device | |
CN105137750A (en) | Method realizing data transmission of intelligent watch, device and intelligent watch | |
CN113115101B (en) | LED display screen, distributed information display system and control method | |
CN105915997A (en) | Control part display method and device | |
CN104052528B (en) | The apparatus and method communicated with multiple terminals in Intelligent worn device | |
CN108924207A (en) | Terminal device and its system file update method, system and computer storage medium | |
CN105607913B (en) | The operation processing method and device of interconnecting application | |
CN107463395B (en) | Component calling method and device | |
CN106453494A (en) | Plug-in updating method, plug-in updating system, client and server side | |
CN106506623B (en) | A kind of data transmission method and 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 |