CN113467683B - Entertainment control method and device for vehicle, vehicle and storage medium - Google Patents

Entertainment control method and device for vehicle, vehicle and storage medium Download PDF

Info

Publication number
CN113467683B
CN113467683B CN202110806283.9A CN202110806283A CN113467683B CN 113467683 B CN113467683 B CN 113467683B CN 202110806283 A CN202110806283 A CN 202110806283A CN 113467683 B CN113467683 B CN 113467683B
Authority
CN
China
Prior art keywords
vehicle
mobile terminal
click event
entertainment
side click
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.)
Active
Application number
CN202110806283.9A
Other languages
Chinese (zh)
Other versions
CN113467683A (en
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.)
Chery Automobile Co Ltd
Lion Automotive Technology Nanjing Co Ltd
Wuhu Lion Automotive Technologies Co Ltd
Original Assignee
Chery Automobile Co Ltd
Lion Automotive Technology Nanjing Co Ltd
Wuhu Lion Automotive Technologies 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 Chery Automobile Co Ltd, Lion Automotive Technology Nanjing Co Ltd, Wuhu Lion Automotive Technologies Co Ltd filed Critical Chery Automobile Co Ltd
Priority to CN202110806283.9A priority Critical patent/CN113467683B/en
Publication of CN113467683A publication Critical patent/CN113467683A/en
Application granted granted Critical
Publication of CN113467683B publication Critical patent/CN113467683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The application discloses an entertainment control method and device for a vehicle, the vehicle and a storage medium, wherein the method comprises the following steps: obtaining an entertainment instruction input by a user at a vehicle end; generating a vehicle side click event according to the entertainment instruction, and sending the vehicle side click event to a mobile terminal connected with a vehicle end; and controlling the vehicle to execute entertainment action according to the feedback information of the mobile terminal while controlling the mobile terminal according to the click event of the vehicle side. Therefore, the problem that reverse control can be realized only by the specific app with customized mobile phone interconnection functions in the related technology is solved, and the use experience of a user is improved.

Description

Entertainment control method and device for vehicle, vehicle and storage medium
Technical Field
The present disclosure relates to the field of vehicle technologies, and in particular, to a vehicle entertainment control method and device, a vehicle, and a storage medium.
Background
In the mobile phone interconnection service, there should be a functional design of the mobile phone that can be controlled by the vehicle.
However, on an android system without root authority, due to process isolation, one Application has no way to control a click event of another Application, so that reverse control can be realized only when the mobile phone interconnection functions are customized specific apps (Application programs), and the use experience of users is greatly reduced.
Content of the application
The application provides a vehicle entertainment control method, a vehicle entertainment control device, a vehicle and a storage medium, so that the problem that reverse control can be realized only by a specific app with customized mobile phone interconnection functions in the related technology is solved, and the use experience of a user is improved.
An embodiment of a first aspect of the present application provides an entertainment control method for a vehicle, including the steps of:
obtaining an entertainment instruction input by a user at a vehicle end;
generating a vehicle side click event according to the entertainment instruction, and sending the vehicle side click event to a mobile terminal connected with the vehicle end; and
and controlling the vehicle to execute entertainment action according to the feedback information of the mobile terminal while controlling the mobile terminal according to the click event of the vehicle side.
Optionally, the sending the vehicle-side click event to a mobile terminal connected to the vehicle end includes:
generating coordinate data by the vehicle side click event;
and sending the coordinate data to the mobile terminal so that the mobile terminal converts the coordinate data into a terminal side click event for controlling the mobile terminal.
Optionally, before the vehicle-side click event is sent to the mobile terminal connected to the vehicle end, the method further includes:
and injecting the connection program of the vehicle end into the mobile terminal so as to establish communication between the mobile terminal and the vehicle end by using the connection program.
Optionally, the entertainment instruction is a shell command. An embodiment of a second aspect of the present application provides an entertainment control device for a vehicle, including:
the acquisition module is used for acquiring entertainment instructions input by a user at a vehicle end;
the sending module is used for generating a vehicle side click event according to the entertainment instruction and sending the vehicle side click event to a mobile terminal connected with the vehicle end; and
and the control module is used for controlling the vehicle to execute entertainment action according to the feedback information of the mobile terminal while controlling the mobile terminal according to the click event of the vehicle side.
Optionally, the sending module includes:
the generating unit is used for generating coordinate data of the click event at the vehicle side;
and the conversion unit is used for sending the coordinate data to the mobile terminal so that the mobile terminal converts the coordinate data into a terminal side click event for controlling the mobile terminal.
Optionally, before the vehicle-side click event is sent to the mobile terminal connected to the vehicle end, the sending module further includes:
and the establishing unit is used for injecting the connection program of the vehicle end into the mobile terminal so as to establish communication between the mobile terminal and the vehicle end by utilizing the connection program.
Optionally, the entertainment instruction is a shell command.
An embodiment of a third aspect of the present application provides a vehicle, including: the entertainment control system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to realize the entertainment control method of the vehicle according to the embodiment.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program for execution by a processor for implementing the entertainment control method for a vehicle as described in the above embodiments.
Therefore, the entertainment instruction input by the user at the vehicle end can be obtained, the vehicle side clicking event is generated according to the entertainment instruction, the vehicle side clicking event is sent to the mobile terminal connected with the vehicle end, and the vehicle is controlled to execute entertainment action according to feedback information of the mobile terminal while the mobile terminal is controlled according to the vehicle side clicking event. Therefore, the problem that reverse control can be realized only by the specific app with customized mobile phone interconnection functions in the related technology is solved, and the use experience of a user is improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of a method of entertainment control for a vehicle according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of entertainment control of a vehicle according to one particular embodiment of the present application;
FIG. 3 is an exemplary diagram of an entertainment control device of a vehicle according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a vehicle according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
An entertainment control method, an entertainment control device, a vehicle, and a storage medium of a vehicle according to embodiments of the present application are described below with reference to the accompanying drawings. Aiming at the problem that reverse control can be realized only by a specific app which is customized in the mobile phone interconnection function in the related art mentioned by the background technology center, the application provides a vehicle entertainment control method. Therefore, the problem that reverse control can be realized only by the specific app with customized mobile phone interconnection functions in the related technology is solved, and the use experience of a user is improved.
Specifically, fig. 1 is a schematic flow chart of an entertainment control method of a vehicle according to an embodiment of the present application.
As shown in fig. 1, the entertainment control method of the vehicle includes the steps of:
in step S101, an entertainment instruction input by a user at a vehicle end is acquired.
Optionally, in some embodiments, the entertainment instruction is a shell command.
It should be understood that a java program started through an app_process in a shell has shell rights, so that in order to solve the problem that in the related art, specific apps with customized mobile phone interconnection functions can realize reverse control, the embodiment of the present invention can acquire a shell command input by a user at a vehicle end.
In step S102, a vehicle-side click event is generated according to the entertainment instruction, and the vehicle-side click event is transmitted to a mobile terminal connected to the vehicle end.
Optionally, in some embodiments, sending the vehicle side click event to a mobile terminal connected to the vehicle side includes: generating coordinate data by using a click event of the vehicle side; and sending the coordinate data to the mobile terminal so that the mobile terminal converts the coordinate data into a terminal side click event for controlling the mobile terminal.
Optionally, in some embodiments, before sending the vehicle side click event to the mobile terminal connected to the vehicle side, the method further includes: and injecting a connection program of the vehicle end into the mobile terminal so as to establish communication between the mobile terminal and the vehicle end by using the connection program.
Specifically, the vehicle end can inject a Java program corresponding to a shell command into a mobile terminal, such as a mobile phone, and start the Java program through an app_process, and then run a socket and the mobile phone end app to establish local connection after the ava program is started, namely the ava program is started to establish connection with the local socket and the mobile phone end app, a vehicle side click event can be converted into a coordinate form and transmitted to the mobile phone end app, the mobile phone end app forwards the coordinate form to the Java service running in the shell through the socket, and the Java service converts x and y coordinates into a click event corresponding to the mobile terminal by calling an input tap x y.
In step S103, the vehicle is controlled to perform entertainment action according to the feedback information of the mobile terminal while controlling the mobile terminal according to the vehicle-side click event.
Therefore, the target of controlling the three-party app requiring the shell authority can be successfully executed under the condition of not having a root mobile phone.
In order for those skilled in the art to further understand the entertainment control device of the vehicle of the embodiments of the present application, the following description is made in connection with specific embodiments.
As shown in fig. 2, the entertainment control method of the vehicle includes the steps of:
s201, the vehicle end and the mobile phone are connected, and the three-party application needs to be clicked.
S202, the vehicle end injects the corresponding java program into the mobile phone through the shell and starts through the app_process.
S203, starting the java program to complete connection establishment between the local socket and the mobile phone terminal app.
S204, the vehicle end sends the coordinates to the mobile phone end app.
S205, the mobile terminal forwards the data to a java program through a socket. Because the java program has shell rights, input tap x y is called.
S206, ending.
In summary, by establishing a local socket, the click event on the vehicle side is forwarded to a service in the java program through the app, and the click event is processed through the service, so that the function of reversely controlling all the three-party apps can be realized instead of the customized app.
According to the entertainment control method of the vehicle, the entertainment instruction input by the user at the vehicle end can be obtained, the vehicle-side clicking event is generated according to the entertainment instruction, the vehicle-side clicking event is sent to the mobile terminal connected with the vehicle end, and the vehicle is controlled to execute entertainment according to feedback information of the mobile terminal while the mobile terminal is controlled according to the vehicle-side clicking event. Therefore, the problem that reverse control can be realized only by the specific app with customized mobile phone interconnection functions in the related technology is solved, and the use experience of a user is improved.
An entertainment control device of a vehicle according to an embodiment of the present application will be described next with reference to the accompanying drawings.
Fig. 3 is a block schematic diagram of an entertainment control device of a vehicle according to an embodiment of the present application.
As shown in fig. 3, the entertainment control device 10 of the vehicle includes: an acquisition module 100, a transmission module 200 and a control module 300.
The acquiring module 100 is configured to acquire an entertainment instruction input by a user at a vehicle end;
the sending module 200 is configured to generate a vehicle side click event according to the entertainment instruction, and send the vehicle side click event to a mobile terminal connected to the vehicle end; and
the control module 300 is used for controlling the vehicle to execute entertainment actions according to feedback information of the mobile terminal while controlling the mobile terminal according to the vehicle-side click event.
Optionally, the sending module 200 includes:
the generating unit is used for generating coordinate data from the click event of the vehicle side;
and the conversion unit is used for sending the coordinate data to the mobile terminal so that the mobile terminal converts the coordinate data into a terminal side click event for controlling the mobile terminal.
Optionally, before the vehicle-side click event is sent to the mobile terminal connected to the vehicle end, the sending module 200 further includes:
and the establishing unit is used for injecting the connection program of the vehicle end into the mobile terminal so as to establish communication between the mobile terminal and the vehicle end by using the connection program.
Optionally, the entertainment instruction is a shell command.
It should be noted that the foregoing explanation of the embodiment of the entertainment control method for a vehicle is also applicable to the entertainment control device for a vehicle of this embodiment, and will not be repeated here.
According to the entertainment control device of the vehicle, which is provided by the embodiment of the application, the entertainment instruction input by a user at the vehicle end can be obtained, the vehicle side clicking event is generated according to the entertainment instruction, the vehicle side clicking event is sent to the mobile terminal connected with the vehicle end, and the vehicle is controlled to execute entertainment action according to the feedback information of the mobile terminal while the mobile terminal is controlled according to the vehicle side clicking event. Therefore, the problem that reverse control can be realized only by the specific app with customized mobile phone interconnection functions in the related technology is solved, and the use experience of a user is improved.
Fig. 4 is a schematic structural diagram of a vehicle according to an embodiment of the present application. The vehicle may include:
memory 401, processor 402, and a computer program stored on memory 401 and executable on processor 402.
The processor 402 implements the entertainment control method of the vehicle provided in the above embodiment when executing a program.
Further, the vehicle further includes:
a communication interface 403 for communication between the memory 401 and the processor 402.
A memory 401 for storing a computer program executable on the processor 402.
Memory 401 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 401, the processor 402, and the communication interface 403 are implemented independently, the communication interface 403, the memory 401, and the processor 402 may be connected to each other by a bus and perform communication with each other. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (Peripheral Component, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 401, the processor 402, and the communication interface 403 are integrated on a chip, the memory 401, the processor 402, and the communication interface 403 may perform communication with each other through internal interfaces.
The processor 402 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement embodiments of the present application.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the entertainment control method of a vehicle as above.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more N executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.

Claims (4)

1. A method of entertainment control for a vehicle, comprising the steps of:
obtaining an entertainment instruction input by a user at a vehicle end;
generating a vehicle side click event according to the entertainment instruction, and sending the vehicle side click event to a mobile terminal connected with the vehicle end; and
controlling the vehicle to execute entertainment action according to the feedback information of the mobile terminal while controlling the mobile terminal according to the vehicle-side click event, wherein,
the sending the vehicle-side click event to the mobile terminal connected with the vehicle end comprises the following steps: generating coordinate data by the vehicle side click event; transmitting the coordinate data to the mobile terminal so that the mobile terminal converts the coordinate data into a terminal side click event for controlling the mobile terminal;
establishing a local socket, and forwarding the vehicle-side click event to a service in a java program through the mobile terminal to process the vehicle-side click event;
before the vehicle-side click event is sent to the mobile terminal connected with the vehicle end, the method further comprises the following steps: injecting a connection program of the vehicle end into the mobile terminal so as to establish communication between the mobile terminal and the vehicle end by using the connection program;
the entertainment instruction is a shell command.
2. An entertainment control device for a vehicle, comprising:
the acquisition module is used for acquiring entertainment instructions input by a user at a vehicle end;
the sending module is used for generating a vehicle side click event according to the entertainment instruction and sending the vehicle side click event to a mobile terminal connected with the vehicle end; and
the control module is used for controlling the vehicle to execute entertainment action according to the feedback information of the mobile terminal while controlling the mobile terminal according to the click event of the vehicle side;
wherein, the sending module includes: the generating unit is used for generating coordinate data of the click event at the vehicle side;
the conversion unit is used for sending the coordinate data to the mobile terminal so that the mobile terminal converts the coordinate data into a terminal side click event for controlling the mobile terminal;
establishing a local socket, and forwarding the vehicle-side click event to a service in a java program through the mobile terminal to process the vehicle-side click event;
before the vehicle-side click event is sent to the mobile terminal connected with the vehicle end, the sending module further includes: the establishing unit is used for injecting a connection program of the vehicle end into the mobile terminal so as to establish communication between the mobile terminal and the vehicle end by using the connection program;
the entertainment instruction is a shell command.
3. A vehicle, characterized by comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the entertainment control method for a vehicle as claimed in claim 1.
4. A computer-readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor for realizing the entertainment control method of the vehicle according to claim 1.
CN202110806283.9A 2021-07-16 2021-07-16 Entertainment control method and device for vehicle, vehicle and storage medium Active CN113467683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110806283.9A CN113467683B (en) 2021-07-16 2021-07-16 Entertainment control method and device for vehicle, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110806283.9A CN113467683B (en) 2021-07-16 2021-07-16 Entertainment control method and device for vehicle, vehicle and storage medium

Publications (2)

Publication Number Publication Date
CN113467683A CN113467683A (en) 2021-10-01
CN113467683B true CN113467683B (en) 2024-04-09

Family

ID=77880770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110806283.9A Active CN113467683B (en) 2021-07-16 2021-07-16 Entertainment control method and device for vehicle, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN113467683B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107215330A (en) * 2016-03-03 2017-09-29 大众汽车有限公司 The method that user is supported when mobile subscriber terminal device, technique device and its remote control
CN110457034A (en) * 2018-05-06 2019-11-15 苹果公司 Generate the navigation user interface for being used for third party application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150142261A1 (en) * 2013-11-18 2015-05-21 Mickey Wright, JR. Method and systems for an audio pass integrated vehicle safety system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107215330A (en) * 2016-03-03 2017-09-29 大众汽车有限公司 The method that user is supported when mobile subscriber terminal device, technique device and its remote control
CN110457034A (en) * 2018-05-06 2019-11-15 苹果公司 Generate the navigation user interface for being used for third party application

Also Published As

Publication number Publication date
CN113467683A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN109902053B (en) SPI communication method based on double controllers, terminal equipment and storage medium
CN108763140B (en) Bidirectional communication method, system and terminal equipment
CN110032512B (en) Debugging method of small program, related equipment and terminal
KR20200116519A (en) Software update management method, server, terminal, device, and storage medium
CN106201638A (en) A kind of plug-in loading method, system, client and service end
CN113467683B (en) Entertainment control method and device for vehicle, vehicle and storage medium
JP5462207B2 (en) Device management method and apparatus
CN110908881B (en) Buried point data transmitting method and device, electronic equipment and computer readable storage medium
US20170235943A1 (en) Application Access Control Method and Apparatus
CN112083912B (en) Service orchestration intermediate result processing method, device, equipment and storage medium
CN108108170B (en) Decoupling method and system of assembly
CN108920218B (en) Reflection calling method, device, terminal and computer readable storage medium
CN115373367A (en) Automobile remote diagnosis method, system, diagnostic instrument and terminal equipment
CN110968147A (en) Timer creating method and device, electronic equipment and medium
CN105392087A (en) Loudspeaker box management method and user terminal
CN115080068A (en) Resource file transmission method, device, equipment and storage medium
CN114244434A (en) Network distribution method, device, system, electronic equipment and storage medium
CN111123883B (en) Dual-drive unmanned vehicle simulation method, device, equipment and computer readable medium
CN112398870A (en) Cross-platform protocol generation method, device, system, equipment and storage medium
CN111767074A (en) Configuration updating method, device, terminal and storage medium
CN111488207A (en) Application process keep-alive method, device, network equipment and storage medium
KR101984150B1 (en) Control method and control device
CN117201577B (en) Communication method and system of cross-platform API and SPI based on PISA
CN113656164B (en) Task execution method, system, electronic device and computer storage medium
CN115914429B (en) Communication protocol adaptation method, device, electronic equipment, vehicle and storage medium

Legal Events

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