CN115145645B - Touch screen control method, system and chip supporting multiple operating systems - Google Patents

Touch screen control method, system and chip supporting multiple operating systems Download PDF

Info

Publication number
CN115145645B
CN115145645B CN202211065056.6A CN202211065056A CN115145645B CN 115145645 B CN115145645 B CN 115145645B CN 202211065056 A CN202211065056 A CN 202211065056A CN 115145645 B CN115145645 B CN 115145645B
Authority
CN
China
Prior art keywords
touch screen
control subsystem
coordinate data
coordinate
subsystem
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
CN202211065056.6A
Other languages
Chinese (zh)
Other versions
CN115145645A (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.)
Nanjing Semidrive Technology Co Ltd
Original Assignee
Nanjing Semidrive Technology 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 Nanjing Semidrive Technology Co Ltd filed Critical Nanjing Semidrive Technology Co Ltd
Priority to CN202211065056.6A priority Critical patent/CN115145645B/en
Publication of CN115145645A publication Critical patent/CN115145645A/en
Application granted granted Critical
Publication of CN115145645B publication Critical patent/CN115145645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A touch screen control method, a system and a chip supporting multiple operating systems are provided, and the touch screen control method supporting the multiple operating systems comprises the following steps: driving a touch screen based on an RTOS system; a first control subsystem loads a touch screen driver; the RTOS system acquires coordinate data reported by the touch screen interrupt, determines a coordinate area according to the coordinate data, and determines a corresponding control subsystem according to the coordinate area; in response to the corresponding control subsystem being the first control subsystem, the RTOS system sends the coordinate data to a core layer of the corresponding control subsystem based on inter-core communication; and the core layer of the corresponding control subsystem reports the coordinate data information to the application layer for application processing. The touch screen control method can realize that a single touch screen simultaneously supports touch control of a plurality of operating systems, thereby effectively reducing the cost and being beneficial to improving the safety and stability.

Description

Touch screen control method, system and chip supporting multiple operating systems
Technical Field
The present application relates to the field of touch control technologies, and in particular, to a method, a system, and a chip for controlling a touch screen supporting multiple operating systems.
Background
With the gradual popularization of automobiles in the consumption field, especially under the impact of new energy automobiles on the existing automobile industry field, the automobile industry is undergoing great changes. The vehicle-mounted automobile has multiple functions of electronic safety, science and technology feeling, entertainment and the like as a component part of the automobile, so that more and more attention is paid.
In a vehicle, an instrument, a central control vehicle-mounted System and an air conditioning panel are usually controlled by a single System on a Chip (SOC), and the SOC are independent and do not affect each other. Currently, a high-performance processor appears in the market, a multi-core heterogeneous CPU (Central Processing Unit) is integrated in a hard isolation manner, and the integration of multiple operating systems is realized in a specific communication manner between cores, so that the high-performance processor has outstanding advantages.
In the related art, for the multi-operating system SOC, a touch screen needs to be configured for each system. Compared with a single touch screen, the cost of a plurality of touch screens is high, and the safety and stability are poor. Therefore, the demand for a single touch screen to simultaneously support multiple operating systems is becoming stronger.
Disclosure of Invention
In order to solve at least one problem in the prior art, an object of the present application is to provide a touch screen control method, system and chip supporting multiple operating systems, which can implement that a single touch screen simultaneously supports touch control of multiple operating systems, thereby effectively reducing cost and contributing to improving safety and stability.
In order to achieve the above object, the touch screen control method supporting multiple operating systems provided by the present application is applied to a touch screen and a touch screen control system for controlling the touch screen, where the touch screen control system includes at least two control subsystems; the at least two control subsystems including an RTOS system and at least one first control subsystem, the method comprising:
driving a touch screen based on the RTOS system;
the first control subsystem loads a touch screen driver;
the RTOS system acquires coordinate data reported by the touch screen interrupt, determines a coordinate area according to the coordinate data, and determines a corresponding control subsystem according to the coordinate area;
in response to the corresponding control subsystem being the first control subsystem, the RTOS system sending the coordinate data to a core layer of the corresponding control subsystem based on inter-core communication;
and the core layer of the corresponding control subsystem reports the coordinate data information to the application layer for application processing.
Further, the method further comprises:
and responding to the corresponding control subsystem as the RTOS system, calling a local coordinate reporting function by a core layer of the RTOS system, and reporting the local coordinate data to an application layer for application processing.
Further, the step of driving the touch screen by the RTOS system includes: registering at least one of a GPIO interrupt function, a handle of an I2C interface function and a touch screen drive service function.
Still further, the method further comprises: and after the touch screen driving service function is registered, the touch screen driving service function acquires the coordinate data by calling a touch screen core layer reporting interface.
Further, the inter-core communication is an RPMSG based inter-core communication.
Still further, the method further comprises: after the touch screen driving service function is registered, the touch screen driving service function calls and starts an RPMSG function name interface to register the inter-core communication service, and calls and initializes each equipment function to initialize the coordinate area corresponding to the control subsystem.
Further, the step of loading the touch screen driver by the first control subsystem includes: the input subsystem is registered, and the inter-core communication callback function is registered.
Further, the step of reporting the coordinate data information to the application layer by the core layer of the corresponding control subsystem for application processing includes:
and calling a submit absolute coordinate event interface of the corresponding input subsystem, packaging the received coordinate data into an absolute coordinate type event, and reporting the absolute coordinate type event to the corresponding input subsystem for application processing.
Further, the step of invoking a submit absolute coordinate event interface of the corresponding input subsystem includes:
the corresponding control subsystem receives coordinate data sent by an inter-core communication sending function of the RTOS system based on the inter-core communication receiving function;
and sending the received coordinate data to the interface for submitting the absolute coordinate event.
Further, before the step of driving the touch screen based on the RTOS system, the method includes:
starting the RTOS system;
the RTOS system controls the at least one first control subsystem to be started in different cores respectively.
Further, the RTOS system is a FreeRTOS system.
Further, the at least one first control subsystem comprises at least one of an Android system and a Linux system.
In order to achieve the above object, the present application further provides a touch screen control system supporting multiple operating systems, where the touch screen control system is applied to a touch screen and includes at least two control subsystems; the at least two control subsystems comprising:
the RTOS system is used for driving the touch screen; acquiring coordinate data which are reported by the touch screen in an interrupted mode, determining a coordinate area according to the coordinate data, and determining a corresponding control subsystem according to the coordinate area; in response to the corresponding control subsystem being the first control subsystem, sending the coordinate data to a core layer of the corresponding control subsystem based on inter-core communication;
the system comprises at least one first control subsystem and at least one second control subsystem, wherein the first control subsystem is used for loading a touch screen driving program;
the at least one first control subsystem comprising the corresponding control subsystem; and the corresponding control subsystem is used for reporting the coordinate data information to the application layer through the core layer so as to perform application processing.
In order to achieve the above object, the present application further provides a chip on which the touch screen control system supporting multiple operating systems as described above is integrated.
In order to achieve the above object, the car machine provided by the present application further includes the touch screen control system supporting multiple operating systems as described above.
To achieve the above object, the present application also provides a computer readable storage medium having stored thereon computer instructions, which, when executed, perform the steps of the touch screen control method supporting multiple operating systems as described above.
According to the touch screen control method, the touch screen control system and the touch screen control chip supporting multiple operating systems, a single touch screen can simultaneously support touch control of the multiple operating systems, so that the cost is effectively reduced, and the safety and stability are improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application.
Drawings
The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application and not limit the application. In the drawings:
FIG. 1 is a flowchart of a touch screen control method supporting multiple operating systems according to one embodiment of the present application;
FIG. 2 is a schematic diagram illustrating region division of a touch screen according to an embodiment of the present application;
FIG. 3 is a flowchart of a touch screen control method supporting multiple operating systems according to another embodiment of the present application;
FIG. 4 is a block diagram of a touch screen control system supporting multiple operating systems according to an embodiment of the present application;
FIG. 5 is a block diagram of a touch screen control system supporting multiple operating systems according to another embodiment of the present application;
FIG. 6 is a diagram illustrating a chip structure according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a vehicle machine structure according to an embodiment of the application.
Detailed Description
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are for illustration purposes only and are not intended to limit the scope of the present application.
It should be understood that the various steps recited in the method embodiments of the present application may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present application is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the references to "first", "second", etc. in this application are only used for distinguishing different devices, modules, units or data, and are not used for limiting the order or interdependence of the functions performed by these devices, modules, units or data.
It is noted that references to "a", "an", and "the" modifications in this application are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise. "plurality" is to be understood as two or more.
Hereinafter, embodiments of the present application will be described in detail with reference to the accompanying drawings.
First, it should be noted that the touch screen control method supporting multiple operating systems in the present application is applied to a touch screen and a touch screen control system controlling the touch screen, where the touch screen control system includes at least two control subsystems. The at least two control subsystems include a Real Time Operating System (RTOS) System and at least one first control subsystem.
Taking the whole body software control system as an example, the instrument system and the air conditioning panel system are the most stability-demanding, which results in the requirement of multiple systems. Conventionally, a FreeRTOS (Free Real Time Operating System) runs an air conditioner panel, a Linux (linnas) System runs a meter, and an Android (Android) System is used for central vehicle-mounted entertainment. Thus, in a particular embodiment, the RTOS system may be a FreeRTOS system; the at least one first control subsystem may include at least one of an Android system and a Linux system.
For convenience of description, in the following explanation of the embodiments, the touch screen control system includes at least one first control subsystem, which is exemplified by an Android system and a Linux system, and both of them run on the multi-core heterogeneous processor with the FreeRTOS system.
However, it should be understood that the present application is not limited to the above specific control system, nor to the vehicle-mounted application scenario, and is applicable to any case where multiple operating systems SOC share the same touch screen.
Example 1
Fig. 1 is a flowchart of a touch screen control method supporting multiple operating systems according to an embodiment of the present application, and the touch screen control method supporting multiple operating systems according to the present application will be described in detail with reference to fig. 1.
In step 101, the touch screen is driven based on the RTOS system.
Specifically, the touch screen is driven based on the RTOS system, and the touch screen does not need to be driven by the at least one first control subsystem such as Linux and Android independently.
In this embodiment of the present application, before step 101, the method further includes: starting an RTOS system; the RTOS system controls at least one first control subsystem to be respectively started in different cores.
That is to say, after the SOC is powered on, the FreeRTOS system is started first, and after the FreeRTOS system is started, the Linux system and the Android system are controlled to be started in different cores respectively, and the touch screen is controlled to be driven. In a specific example, multiple cores are integrated in a multi-core heterogeneous SOC: one Cortex-R55 core, six Cortex-A55 cores, and two Cortex-A5 cores. The FreeRTOS system runs in the Cortex-R5 core, the Android system runs in the six Cortex-A55 cores, and the Linux system runs in the Cortex-A55 core.
In this embodiment of the present application, step 101 may include: registering at least one of a General Port Input Output (GPIO) interrupt function, a handle of an Inter-Integrated Circuit (I2C handle) interface function, and a touch screen drive service function (safe _ tp). Specifically, the relevant register may be configured by I2C, and data may be read by I2C in a GPIO interrupt function.
Further, the method also includes: after the touch screen driving service function is registered, the touch screen driving service function acquires coordinate data by calling a touch screen core layer reporting interface.
That is, when the touch screen is driven by the RTOS system, the touch screen driving service function (safe _ TP) is registered, and then the touch screen driving service function (safe _ TP) acquires the coordinate data touched by the touch screen by calling the touch screen core layer reporting interface (safe _ TP _ report _ data), and sends the coordinate data to the TP core layer of the RTOS system,
at step 102, the first control subsystem loads a touch screen driver.
Specifically, after the Linux system and the Android system are started, respective touch screen drivers (such as semeriver _ tp) are loaded in the Linux system and the Android system respectively.
In this embodiment of the present application, step 102 may include: and registering an input subsystem and registering an inter-core communication callback function.
Specifically, when loading the respective touch screen driver (semidriver _ tp), the Linux system and the Android system may register respective standard input subsystems and register an inter-core communication (Mailbox) callback function, respectively. The Mailbox callback function may call a report input data function (input _ report _ abs) to report data.
In step 103, the rtos system obtains the coordinate data reported by the interruption of the touch screen, determines a coordinate area according to the coordinate data, and determines a corresponding control subsystem according to the coordinate area.
Specifically, when a user touch operation (including single-point touch, multi-point touch, sliding, etc.) is detected, the interrupt pin is controlled to change (such as from a high level to a low level), and coordinate data is reported. And the TP core layer of the RTOS system divides the coordinate area displayed by the touch screen, analyzes the packaged coordinate data after receiving the reported coordinate data, and then distributes according to the coordinate area corresponding to the coordinate data. In a specific example, referring to fig. 2, one touch screen 10 (resolution may be 1920 × 1080) may be divided into three regions, and the three regions are respectively provided for the control panel air conditioner panel control system 11 (resolution may be 1920 × 120), the Linux Cluster meter system 12 (resolution may be 640 × 960), and the Android desktop display system 13 (resolution may be 1280 × 960) to perform display and touch control.
In step 104, in response to the corresponding control subsystem being the first control subsystem, the RTOS system transmits the coordinate data to the core layer of the corresponding control subsystem based on inter-core communication.
Specifically, when the coordinate region corresponds to a Linux system or an Android system, the RTOS system implements communication with the Linux system or the Android system based on the Mailbox to transmit data agreed with the first control subsystem in real time. In a specific example, the Mailbox may be a Mailbox based on RPMSG (Remote Processor Messaging).
In an embodiment of the present application, the method further includes: after the touch screen driving service function is registered, the touch screen driving service function calls and starts an RPMSG function name interface to register the inter-core communication service, and calls and initializes each equipment function to initialize the coordinate area corresponding to the control subsystem.
That is, after registering the touch screen driving service function (safe _ tp), the safe _ tp core layer in the FreeRTOS system may call a start RPMSG function name interface (start _ ipcc _ rpc _ service) to register the Mailbox service, call and initialize each device function (index _ local _ init) to initialize each system-divided area, and report data through the touch screen core layer report interface (safe _ tp _ report _ data).
In the embodiment of the present application, the method further includes: and responding to the fact that the corresponding control subsystem is an RTOS system, and the core layer calls a local coordinate reporting function to report the local coordinate data to the application layer for application processing. That is, when the coordinate region corresponds to the RTOS system, the TP core layer of the RTOS system calls the Local coordinate reporting function (Local _ process _ report), reports the Local coordinate data to the TP application layer of the RTOS system through the Local coordinate reporting function (Local _ process _ report), and performs application processing through the TP application layer.
In step 105, the core layer of the corresponding control subsystem reports the coordinate data information to the application layer for application processing.
That is to say, when the coordinate region corresponds to the first control subsystem, the TP core layer of the first control subsystem reports the coordinate data information (such as an event) to the corresponding TP application layer, and the TP application layer performs application processing.
In this embodiment, step 105 may include: and calling a submit absolute coordinate event interface of the corresponding input subsystem, packaging the received coordinate data into an absolute coordinate type event, and reporting the absolute coordinate type event to the corresponding input subsystem for application processing.
That is, when the coordinate region corresponds to the first control subsystem, the input _ report _ abs of the input subsystem corresponding to the first control subsystem is called to receive the coordinate data and encapsulate the coordinate data as an event. Then, the event is reported to the input subsystem through a submit absolute coordinate event interface (input _ report _ abs).
Further, the step of calling the submit absolute coordinate event interface of the corresponding input subsystem includes: the corresponding control subsystem receives the coordinate data sent by the inter-core communication sending function of the RTOS system based on the inter-core communication receiving function; and sending the received coordinate data to a submitting absolute coordinate event interface.
Specifically, when the coordinate region corresponds to the first control subsystem, the inter-core communication sending function (mbox _ send) of the RTOS system sends the coordinate data to the inter-core communication receiving function (mbox _ receive) of the first control subsystem, and then sends the received coordinate data to the submit absolute coordinate event interface (input _ report _ abs) through the inter-core communication receiving function (mbox _ receive).
According to the touch screen control method supporting multiple operating systems, the touch screen is driven based on the RTOS system, the touch screen driving program is loaded through the first control subsystem, the coordinate data reported by the touch screen interruption are obtained through the RTOS system, the coordinate area is determined according to the coordinate data, the corresponding control subsystem is determined according to the coordinate area, the corresponding control subsystem is responded to be the first control subsystem, the RTOS system sends the coordinate data to the core layer of the corresponding control subsystem based on inter-core communication, and the coordinate data information is reported to the application layer through the core layer of the corresponding control subsystem for application processing. Therefore, the touch screen can simultaneously support the touch of a plurality of operating systems, for example, the functions of an instrument, a central control unit and an air conditioner panel can be integrated on one touch screen, so that the cost is effectively reduced, and the safety and stability are improved.
The present application is further explained and illustrated by means of a specific embodiment.
Fig. 3 is a flowchart of a touch screen control method supporting multiple operating systems according to another embodiment of the present application. Referring to fig. 3, the touch screen control method includes the steps of:
at step 201, power-up is initiated.
In step 202, the FreeRTOS system is started.
In step 203, the Android system is started under the control of the FreeRTOS system.
In step 204, the Linux system is started under the control of the FreeRTOS system.
In step 205, the touch screen is driven.
In step 206, the touch screen core layer reporting interface acquires and distributes coordinate data.
In step 207, when the coordinate data is in the coordinate area corresponding to the FreeRTOS system, the local coordinate reporting function receives and reports the local coordinate data.
At step 208, application processing is performed on the local coordinate data.
In step 209, when the coordinate data is in the coordinate region corresponding to the Android system or the Linux system, the inter-core communication sending function receives and sends the coordinate data.
At step 210, a touch screen driver is loaded.
In step 211, when the coordinate data is in a coordinate area corresponding to the Android system, the inter-core communication receiving function receives the coordinate data.
In step 212, the submit absolute coordinate event interface of the corresponding input subsystem encapsulates the coordinate data and reports the event.
In step 213, application processing is performed on the event.
At step 214, the touch screen driver is loaded.
In step 215, the inter-core communication receiving function receives the coordinate data when the coordinate data is in the coordinate area corresponding to the Linux system.
In step 216, the reporting input data function of the corresponding input subsystem encapsulates the coordinate data and reports the event.
At step 217, application processing is performed on the event.
In summary, according to the touch screen control method supporting multiple operating systems in the embodiment of the present application, the touch screen is driven by the RTOS-based system, the touch screen driver is loaded by the first control subsystem, the coordinate data reported by the touch screen interrupt is acquired by the RTOS-based system, the coordinate region is determined according to the coordinate data, the corresponding control subsystem is determined according to the coordinate region, the corresponding control subsystem is responded as the first control subsystem, the RTOS-based system sends the coordinate data to the core layer of the corresponding control subsystem based on inter-core communication, and the coordinate data information is reported to the application layer by the core layer of the corresponding control subsystem, so as to perform application processing. Therefore, the touch control of a plurality of operating systems can be simultaneously supported by a single touch screen, for example, the functions of an instrument, a central control unit and an air conditioner panel can be integrated on one touch screen, so that the cost is effectively reduced, and the safety and stability are improved.
Example 2
FIG. 4 is a block diagram of a touch screen control system supporting multiple operating systems according to an embodiment of the present application. Referring to fig. 4, the multi-os-capable touch screen control system 20 is applied to a touch screen, and includes at least two control subsystems 21; the at least two control subsystems 21 include an RTOS system 211 and at least one first control subsystem 212.
The RTOS system 211 is used for driving the touch screen; acquiring coordinate data reported by the touch screen in an interruption manner, determining a coordinate area according to the coordinate data, and determining a corresponding control subsystem according to the coordinate area; in response to the corresponding control subsystem being the first control subsystem, sending the coordinate data to the core layer of the corresponding control subsystem based on the inter-core communication.
At least one first control subsystem 212 for loading touch screen drivers. At least one first control subsystem 212, including a corresponding control subsystem; and the corresponding control subsystem is used for reporting the coordinate data information to the application layer through the core layer so as to perform application processing.
In an embodiment of the present application, the RTOS system 211 is further configured to: and responding to the fact that the corresponding control subsystem is the RTOS system, calling a local coordinate reporting function by a core layer of the RTOS system, and reporting the local coordinate data to an application layer for application processing.
In an embodiment of the present application, the RTOS system 211 is specifically configured to: registering at least one of a GPIO interrupt function, a handle of an I2C interface function and a touch screen drive service function.
Further, the RTOS system 211 is also configured to: after the touch screen driving service function is registered, the touch screen driving service function acquires coordinate data by calling a touch screen core layer reporting interface.
In an embodiment of the present application, the inter-core communication is RPMSG-based inter-core communication.
Still further, the RTOS system 211 is also operable to: after the touch screen driving service function is registered, the touch screen driving service function calls and starts an RPMSG function name interface to register the inter-core communication service, and calls and initializes each equipment function to initialize the coordinate area corresponding to the control subsystem.
In an embodiment of the present application, the at least one first control subsystem 212 is specifically configured to: and registering an input subsystem and registering an inter-core communication callback function.
In an embodiment of the present application, the corresponding control subsystem is specifically configured to: and calling a submit absolute coordinate event interface of the corresponding input subsystem, packaging the received coordinate data into an absolute coordinate type event, and reporting the absolute coordinate type event to the corresponding input subsystem for application processing.
Further, the corresponding control subsystem is specifically configured to: receiving coordinate data transmitted by an inter-core communication transmission function of the RTOS system based on the inter-core communication reception function; and sending the received coordinate data to a submit absolute coordinate event interface.
In an embodiment of the present application, the RTOS system 211 is further configured to: after the startup, the at least one first control subsystem 212 is controlled to be started up in different cores respectively.
In the embodiment of the present application, the RTOS system 211 is a FreeRTOS system.
In an embodiment of the present application, the at least one first control subsystem 212 includes at least one of an Android system and a Linux system.
Fig. 5 is a block diagram of a touch screen control system supporting multiple operating systems according to another embodiment of the present application. Referring to fig. 5, the touch screen control system 30 includes a FreeRTOS system 31 and a first control subsystem 32 (Linux system or Android system).
The TP driver layer of the FreeRTOS system 31 includes a first touch screen driver (such as goodix driver), a second touch screen driver (such as goodix driver), and a third touch screen driver (such as sine _ touch driver), and is used for supporting driving of touch screens with different specifications; the TP core layer of the FreeRTOS system 31 includes a touch screen driving service function (safe _ TP) and an inter-core communication (Mailbox), the touch screen driving service function (safe _ TP) is used for calling, receiving, processing, reporting and distributing coordinate data, and the inter-core communication (Mailbox) is used for sending the coordinate data to the TP core layer of the first control subsystem 32 in an RPMSG manner; the TP application layer of the FreeRTOS system 31 includes a control panel (control panel) for performing application processing on local coordinate data.
The TP core layer of the first control subsystem 32 includes an inter-core communication (Mailbox) and a touch screen driver (semidriver _ TP), wherein the inter-core communication (Mailbox) is used for receiving RPMSG sent by the TP core layer of the FreeRTOS system 31, processing coordinate data, and reporting an event; the TP application layer of the first control subsystem 32 includes a corresponding input subsystem (input system) for application processing of event events.
It should be noted that the explanation of the touch screen control method supporting multiple operating systems in the foregoing embodiment is also applicable to the touch screen control system supporting multiple operating systems in the foregoing embodiment, and details are not repeated here.
According to the touch screen control system supporting multiple operating systems, the touch screen is driven through the RTOS system, coordinate data reported by interruption of the touch screen are obtained, a coordinate area is determined according to the coordinate data, a corresponding control subsystem is determined according to the coordinate area, the corresponding control subsystem is responded to be a first control subsystem, and the coordinate data are sent to a core layer of the corresponding control subsystem based on inter-core communication; loading a touch screen driving program through at least one first control subsystem; and reporting the coordinate data information to an application layer through the corresponding control subsystem by the core layer so as to perform application processing. Therefore, the touch control of a plurality of operating systems can be simultaneously supported by a single touch screen, so that the cost is effectively reduced, and the safety and stability are improved.
Example 3
Fig. 6 is a schematic diagram of a chip structure according to an embodiment of the present application. Referring to fig. 6, the touch screen control system 30 supporting multiple operating systems as described above is integrated on the chip 40.
Example 4
Fig. 7 is a schematic diagram of a vehicle machine structure according to an embodiment of the application. Referring to fig. 7, the car machine 50 includes the touch screen control system 30 supporting multiple operating systems as described above.
Example 5
In one embodiment of the present application, there is also provided a computer-readable storage medium, which may be included in the system described in the above embodiment; or may be separate and not assembled into the system. The computer-readable storage medium carries one or more computer instructions which, when executed, implement the steps of the FIFO buffer control method of the embodiments.
In embodiments of the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Those of ordinary skill in the art will understand that: although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention as defined in the appended claims. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (15)

1. A touch screen control method supporting multiple operating systems is applied to a touch screen and a touch screen control system for controlling the touch screen, wherein the touch screen control system comprises at least two control subsystems; the at least two control subsystems including an RTOS system and at least one first control subsystem, the method comprising:
starting the RTOS system;
the RTOS system controls the at least one first control subsystem to be started in different cores respectively;
driving the touch screen based on the RTOS system; the method comprises the steps of registering an interrupt function, registering a handle of an interface function and registering a touch screen driving service function;
the first control subsystem loads a touch screen driver;
the RTOS system acquires coordinate data reported by the touch screen interrupt, determines a coordinate area according to the coordinate data, and determines a corresponding control subsystem according to the coordinate area;
in response to the corresponding control subsystem being the first control subsystem, the RTOS system sending the coordinate data to a core layer of the corresponding control subsystem based on inter-core communication;
and the core layer of the corresponding control subsystem reports the coordinate data information to the application layer for application processing.
2. The touch screen control method according to claim 1, further comprising:
and responding to the corresponding control subsystem as the RTOS system, calling a local coordinate reporting function by a core layer of the RTOS system, and reporting the local coordinate data to an application layer for application processing.
3. The touch screen control method of claim 1, wherein the step of driving the touch screen by the RTOS system comprises: registering at least one of a GPIO interrupt function and a handle of an I2C interface function.
4. The touch screen control method of claim 3, further comprising: and after the touch screen driving service function is registered, the touch screen driving service function acquires the coordinate data by calling a touch screen core layer reporting interface.
5. The touch screen control method according to claim 1, wherein the inter-core communication is RPMSG-based inter-core communication.
6. The touch screen control method of claim 5, further comprising: after the touch screen driving service function is registered, the touch screen driving service function calls and starts an RPMSG function name interface to register the inter-core communication service, and calls and initializes each equipment function to initialize the coordinate area corresponding to the control subsystem.
7. The touch screen control method of claim 1, wherein the step of loading the touch screen driver by the first control subsystem comprises: the input subsystem is registered, and the inter-core communication callback function is registered.
8. The touch screen control method of claim 1, wherein the step of reporting the coordinate data information to the application layer by the core layer of the corresponding control subsystem for application processing comprises:
and calling a submit absolute coordinate event interface of the corresponding input subsystem, packaging the received coordinate data into an absolute coordinate type event, and reporting the absolute coordinate type event to the corresponding input subsystem for application processing.
9. The touch screen control method of claim 8, wherein the step of invoking a submit absolute coordinate event interface of the corresponding input subsystem comprises:
the corresponding control subsystem receives coordinate data sent by an inter-core communication sending function of the RTOS system based on the inter-core communication receiving function;
and sending the received coordinate data to the interface for submitting the absolute coordinate event.
10. The touch screen control method of claim 1, wherein the RTOS system is a FreeRTOS system.
11. The touch screen control method according to any one of claims 1 to 10, wherein the at least one first control subsystem comprises at least one of an Android system and a Linux system.
12. A touch screen control system supporting multiple operating systems is applied to a touch screen and comprises at least two control subsystems; the at least two control subsystems include an RTOS system and at least one first control subsystem, wherein,
the RTOS system is used for controlling the at least one first control subsystem to be started in different cores respectively after being started; driving the touch screen, wherein the driving comprises registering an interrupt function, registering a handle of an interface function and registering a touch screen driving service function; acquiring coordinate data reported by the touch screen in an interruption manner, determining a coordinate area according to the coordinate data, and determining a corresponding control subsystem according to the coordinate area; in response to the corresponding control subsystem being the first control subsystem, sending the coordinate data to a core layer of the corresponding control subsystem based on inter-core communication;
the at least one first control subsystem is used for loading a touch screen driving program; the at least one first control subsystem comprising the corresponding control subsystem; and the corresponding control subsystem is used for reporting the coordinate data information to the application layer through the core layer so as to perform application processing.
13. A chip on which the multi-os capable touch screen control system of claim 12 is integrated.
14. A car machine, characterized in that, the car machine includes the touch screen control system supporting multiple operating systems of claim 12.
15. A computer-readable storage medium having stored thereon computer instructions which, when executed, perform the multi-os supporting touch screen control method according to any one of claims 1 to 11.
CN202211065056.6A 2022-09-01 2022-09-01 Touch screen control method, system and chip supporting multiple operating systems Active CN115145645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211065056.6A CN115145645B (en) 2022-09-01 2022-09-01 Touch screen control method, system and chip supporting multiple operating systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211065056.6A CN115145645B (en) 2022-09-01 2022-09-01 Touch screen control method, system and chip supporting multiple operating systems

Publications (2)

Publication Number Publication Date
CN115145645A CN115145645A (en) 2022-10-04
CN115145645B true CN115145645B (en) 2022-11-25

Family

ID=83415255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211065056.6A Active CN115145645B (en) 2022-09-01 2022-09-01 Touch screen control method, system and chip supporting multiple operating systems

Country Status (1)

Country Link
CN (1) CN115145645B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048305B (en) * 2023-03-27 2023-06-16 南京芯驰半导体科技有限公司 Touch display control method, device, system and chip

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116329A (en) * 2013-01-04 2013-05-22 浙江海康集团有限公司 Vehicle-mounted information platform adopting virtual machine and dual system
CN104364750A (en) * 2013-01-06 2015-02-18 英特尔公司 A method, apparatus, and system for distributed pre-processing of touch data and display region control
CN106114410A (en) * 2014-07-17 2016-11-16 杭州飞生科技有限公司 Onboard system
CN106610784A (en) * 2016-10-18 2017-05-03 广州视源电子科技股份有限公司 Control method and system for multi-system touch screen
CN109558174A (en) * 2018-11-28 2019-04-02 江苏艾萨克机器人股份有限公司 RTOS-GPOS dual operating systems robot controller based on ZYNQ dual core processor
CN110443078A (en) * 2019-07-19 2019-11-12 南京芯驰半导体科技有限公司 A kind of safe storage system based on privilege classification
CN112231001A (en) * 2020-10-14 2021-01-15 佛吉亚歌乐电子(佛山)有限公司 Vehicle dual-system compatible control method and system, storage medium and vehicle-mounted terminal
CN112433826A (en) * 2021-01-27 2021-03-02 南京芯驰半导体科技有限公司 Hybrid heterogeneous virtualization communication method and chip
WO2021171719A1 (en) * 2020-02-27 2021-09-02 Mitsubishi Electric Corporation Method to process data in multicore system on chip processing architecture, multicore system on chip device and storage medium
CN113986048A (en) * 2021-12-27 2022-01-28 广州朗国电子科技股份有限公司 Control method, device and storage medium for dual-system touch screen
CN114185705A (en) * 2022-02-17 2022-03-15 南京芯驰半导体科技有限公司 Multi-core heterogeneous synchronization system and method based on PCIe
CN114327137A (en) * 2021-12-23 2022-04-12 宁波均联智行科技股份有限公司 Touch method and device based on multiple vehicle-mounted operating systems and computer equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6803581B2 (en) * 2018-09-28 2020-12-23 パナソニックIpマネジメント株式会社 Display control device, display control method, and display control system
US20200364088A1 (en) * 2019-05-16 2020-11-19 Nvidia Corporation Resource sharing by two or more heterogeneous processing cores
US11687364B2 (en) * 2019-07-30 2023-06-27 Samsung Electronics Co., Ltd. Methods and apparatus for cache-aware task scheduling in a symmetric multi-processing (SMP) environment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116329A (en) * 2013-01-04 2013-05-22 浙江海康集团有限公司 Vehicle-mounted information platform adopting virtual machine and dual system
CN104364750A (en) * 2013-01-06 2015-02-18 英特尔公司 A method, apparatus, and system for distributed pre-processing of touch data and display region control
CN106114410A (en) * 2014-07-17 2016-11-16 杭州飞生科技有限公司 Onboard system
CN106610784A (en) * 2016-10-18 2017-05-03 广州视源电子科技股份有限公司 Control method and system for multi-system touch screen
CN109558174A (en) * 2018-11-28 2019-04-02 江苏艾萨克机器人股份有限公司 RTOS-GPOS dual operating systems robot controller based on ZYNQ dual core processor
CN110443078A (en) * 2019-07-19 2019-11-12 南京芯驰半导体科技有限公司 A kind of safe storage system based on privilege classification
WO2021171719A1 (en) * 2020-02-27 2021-09-02 Mitsubishi Electric Corporation Method to process data in multicore system on chip processing architecture, multicore system on chip device and storage medium
CN112231001A (en) * 2020-10-14 2021-01-15 佛吉亚歌乐电子(佛山)有限公司 Vehicle dual-system compatible control method and system, storage medium and vehicle-mounted terminal
CN112433826A (en) * 2021-01-27 2021-03-02 南京芯驰半导体科技有限公司 Hybrid heterogeneous virtualization communication method and chip
CN114327137A (en) * 2021-12-23 2022-04-12 宁波均联智行科技股份有限公司 Touch method and device based on multiple vehicle-mounted operating systems and computer equipment
CN113986048A (en) * 2021-12-27 2022-01-28 广州朗国电子科技股份有限公司 Control method, device and storage medium for dual-system touch screen
CN114185705A (en) * 2022-02-17 2022-03-15 南京芯驰半导体科技有限公司 Multi-core heterogeneous synchronization system and method based on PCIe

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于ARM和CAN总线的混合动力轿车虚拟仪表的研究和实现;徐雪峰;《中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑)》;20180315;第C035-166页 *
基于模型的异构多核嵌入式系统开发研究;翟文正;《中国博士学位论文全文数据库 (信息科技辑)》;20140515;第I137-4页 *

Also Published As

Publication number Publication date
CN115145645A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
EP3092566B1 (en) Vehicle with multiple user interface operating domains
CN112764872B (en) Computer device, virtualization acceleration device, remote control method, and storage medium
KR102262926B1 (en) Vehicle software control device
CN115145645B (en) Touch screen control method, system and chip supporting multiple operating systems
US20120054393A1 (en) Computer system, i/o device control method, and i/o drawer
CN112203130B (en) Vehicle-mounted information entertainment terminal, multi-screen interactive display method thereof and automobile
US20120144146A1 (en) Memory management using both full hardware compression and hardware-assisted software compression
CN113821308A (en) System on chip, virtual machine task processing method and device, and storage medium
CN113056729B (en) Programming and control of a computational cell in an integrated circuit
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
CN115168256A (en) Interrupt control method, interrupt controller, electronic device, medium, and chip
JP3739615B2 (en) In-vehicle information processing apparatus and recording medium
CN106484535A (en) Hardware virtual platform on vehicle and integrated system
CN114048005A (en) GPU virtualization method and device
CN115185594B (en) Data interaction method and device based on virtual display, electronic equipment and medium
US20200334033A1 (en) Apparatus and method for providing update in vehicle
CN115285044A (en) Resource sharing method, vehicle-mounted system and vehicle-mounted controller
WO2017051453A1 (en) Storage system and storage system management method
WO2024035566A1 (en) Real-time cpu availability monitoring
US20220269546A1 (en) Control device, method, program, and vehicle
CN116353343A (en) Vehicle display method, display device, vehicle, and storage medium
CN114500593B (en) Remote driving system, method and equipment
JP3082297B2 (en) Task control method
CN112241380B (en) Interrupt processing system and method applied to PCIE (peripheral component interface express) on heterogeneous equipment
CN115766783A (en) Data transmission method based on multiple vehicle-mounted machine operating systems and computer 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
GR01 Patent grant
GR01 Patent grant