Information processing method, device, computer equipment and storage medium
By using the simulated processor and preset interface to access the on-board device files before the AUTOSAR package is delivered, verifying and improving application operations, the slow development problem caused by developers waiting for the software package to be delivered is solved, and switch to the AUTOSAR driver after delivery. Improve efficiency.
Patent Information
- Application Number
- CN202410237232.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-03-01
AI Technical Summary
Before the AUTOSAR package is delivered, in-vehicle application developers need to wait for a long time, resulting in slow development speed because they cannot call the device driver and access the in-vehicle device files, and cannot verify and improve application operations.
Before obtaining the AUTOSAR software package, the first processor is simulated to run the first operating system using the simulation processor tool, and the preset device driver is called through the preset interface to access the on-board device files to verify and improve application operations; after obtaining the software package, it is possible to obtain the preset device driver; , switch to the runtime environment and device driver provided by the AUTOSAR software package for access.
You can develop in-vehicle application without waiting for the AUTOSAR package, improve development speed, and switch to the driver provided by AUTOSAR to improve access efficiency after obtaining the software package.
Smart Images

Figure CN118113637B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an information processing method, apparatus, computer equipment and storage medium. Background Art
[0002] At present, in-vehicle applications based on the Automotive Open System Architecture (AUTOSAR) are widely used. In the related art, after the developer of the in-vehicle application obtains the AUTOSAR software package, the in-vehicle application is developed according to the AUTOSAR software package. Before obtaining the AUTOSAR software package, the development of in-vehicle applications cannot be carried out. It takes a long time for the developers of the AUTOSAR software package to develop the AUTOSAR software package, and the developers of the in-vehicle application have to wait for a long time for the AUTOSAR software package, resulting in a slow development speed of the in-vehicle application. Summary of the invention
[0003] In view of this, embodiments of the present disclosure provide an information processing method, apparatus, computer device, and storage medium.
[0004] In a first aspect, an embodiment of the present disclosure provides an information processing method, which includes:
[0005] Before the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package of the automotive open system architecture, a first processor is simulated using a tool for simulating processors; a first operating system is run using the simulated first processor, and the target vehicle application is run on the first operating system; when the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device during the process of running on the first operating system, the target vehicle application calls a preset interface; calls the preset device driver corresponding to the target vehicle device file through the preset interface, so that the target vehicle device file is accessed by the preset device driver corresponding to the target vehicle device file to obtain a first access result, wherein the preset device driver corresponding to the target vehicle device file is pre-developed by the developer of the target vehicle application, and the target vehicle application receives the first access result returned by the preset device driver corresponding to the target vehicle device file during the process of running on the first operating system, and performs the target vehicle application operation related to the first access result;
[0006] After the developer of the target vehicle application obtains the AUTOSAR software package, the developer stops using the simulated first processor to run the first operating system, and stops running the target vehicle application on the first operating system; uses the second processor to run the second operating system, and runs the target vehicle application on the second operating system; when the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device during the process of running on the second operating system, the target vehicle application calls the runtime environment provided by the AUTOSAR software package; calls the device driver corresponding to the target vehicle device file provided by the AUTOSAR software package through the runtime environment provided by the AUTOSAR software package, accesses the target vehicle device file with the device driver corresponding to the target vehicle device file provided by the AUTOSAR software package, and obtains a second access result, wherein the target vehicle application receives the second access result returned by the device driver corresponding to the target vehicle device file provided by the AUTOSAR software package during the process of running on the second operating system, and performs the target vehicle application operation related to the second access result.
[0007] In a second aspect, an embodiment of the present disclosure provides a device, the device comprising:
[0008] The first unit is used to simulate a first processor using a tool for simulating processors before the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package of the automotive open system architecture; use the simulated first processor to run the first operating system, and run the target vehicle application on the first operating system; when the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device during the process of running on the first operating system, the target vehicle application calls a preset interface; calls the preset device driver corresponding to the target vehicle device file through the preset interface, so as to access the target vehicle device file through the preset device driver corresponding to the target vehicle device file, and obtain a first access result, wherein the preset device driver corresponding to the target vehicle device file is pre-developed by the developer of the target vehicle application, and the target vehicle application receives the first access result returned by the preset device driver corresponding to the target vehicle device file during the process of running on the first operating system, and performs the target vehicle application operation related to the first access result;
[0009] The second unit is used for, after the developer of the target vehicle-mounted application obtains the AUTOSAR software package, stopping using the simulated first processor to run the first operating system and stopping running the target vehicle-mounted application on the first operating system; using the second processor to run the second operating system and running the target vehicle-mounted application on the second operating system; when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the second operating system, the target vehicle-mounted application calls the runtime environment provided by the AUTOSAR software package; calling the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package through the runtime environment provided by the AUTOSAR software package, accessing the target vehicle-mounted device file with the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package, and obtaining a second access result, wherein the target vehicle-mounted application receives the second access result returned by the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package during the process of running on the second operating system, and performs the target vehicle-mounted application operation related to the second access result.
[0010] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0011] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding implementation manner thereof.
[0012] The information processing method provided by the embodiment of the present disclosure is, before the developer of the target vehicle-mounted application obtains the AUTOSAR software package provided by the provider of the AUTOSAR software package, that is, before the AUTOSAR software package is delivered to the developer of the vehicle-mounted application, a first processor is simulated using a tool for simulating a processor; a first operating system is run using the simulated first processor, and a target vehicle-mounted application is run on the first operating system; when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during operation on the first operating system, the target vehicle-mounted application calls a preset interface; the preset device driver corresponding to the target vehicle-mounted device file is called through the preset interface, so that the preset device driver corresponding to the target vehicle-mounted device file accesses the target vehicle-mounted device file to obtain a first access result. According to the first access result, it can be verified whether the target vehicle-mounted application can successfully perform related target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device.
[0013] Thus, before the developer of the vehicle-mounted application obtains the AUTOSAR software package developed by the AUTOSAR software package, when the target vehicle-mounted application needs to perform relevant application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during operation on the first operating system, the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device can be obtained, and the relevant target vehicle-mounted application operations can be performed according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device, and it is verified whether the vehicle-mounted application can successfully perform the relevant target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device. Since it can be verified whether the target vehicle-mounted application can successfully perform the relevant target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device, therefore, in the case of determining that the target vehicle-mounted application cannot successfully perform the relevant target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device, the developer of the target vehicle-mounted application can improve the code of the target vehicle-mounted application that performs the relevant target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device. Therefore, it is not necessary to wait for the AUTOSAR software package to be delivered before developing vehicle applications. In other words, the target vehicle application can be developed without waiting for the delivery of the AUTOSAR software package, which improves the development speed of the target vehicle application. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0015] Figure 1 is a flowchart of an information processing method provided by an embodiment of the present disclosure;
[0016] Figure 2 It is a schematic diagram of the hardware structure of the computer device provided in the embodiment of the present disclosure. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0018] In order to solve the problem that the developers of vehicle-mounted applications in the related art have to wait for a long time for the AUTOSAR software package, resulting in a slow development speed of the vehicle-mounted applications. The disclosed embodiment provides an information processing method. The reason why the AUTOSAR software package must be waited for in the related art and the vehicle-mounted application can be developed only after the AUTOSAR software package is obtained is that without the AUTOSAR software package, the device driver cannot be called, and the access result obtained by accessing the device file of the vehicle-mounted device cannot be obtained. If the access result obtained by accessing the device file of the vehicle-mounted device cannot be obtained, the relevant application operation cannot be performed according to the access result obtained by accessing the device file of the vehicle-mounted device, and the result of performing the relevant application operation cannot be obtained, and it is impossible to verify whether the vehicle-mounted application can successfully perform the relevant application operation according to the access result obtained by accessing the vehicle-mounted device file of the vehicle-mounted device. Since it is impossible to verify whether the vehicle-mounted application can successfully perform the relevant application operation according to the access result obtained by accessing the vehicle-mounted device file of the vehicle-mounted device, and it is impossible for the developer of the vehicle-mounted application to improve the code of the vehicle-mounted application that performs the relevant application operation according to the access result obtained by accessing the vehicle-mounted device file of the vehicle-mounted device when it is determined that the vehicle-mounted application cannot successfully perform the relevant application operation according to the access result obtained by accessing the vehicle-mounted device file of the vehicle-mounted device. Therefore, in the related art, the developer of the vehicle-mounted application must wait for the AUTOSAR software package, and can only develop the vehicle-mounted application after obtaining the AUTOSAR software package.
[0019] In the information processing method provided by the embodiment of the present disclosure, before the developer of the target vehicle-mounted application obtains the AUTOSAR software package provided by the provider of the AUTOSAR software package, that is, before the AUTOSAR software package is delivered to the developer of the vehicle-mounted application, a first processor is simulated using a tool for simulating a processor; the first operating system is run using the simulated first processor, and the target vehicle-mounted application is run on the first operating system; when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during operation on the first operating system, the target vehicle-mounted application calls a preset interface; the preset device driver corresponding to the target vehicle-mounted device file is called through the preset interface, so that the preset device driver corresponding to the target vehicle-mounted device file accesses the target vehicle-mounted device file to obtain a first access result. According to the first access result, it can be verified whether the target vehicle-mounted application can successfully perform related target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device.
[0020] Thus, before the developer of the vehicle-mounted application obtains the AUTOSAR software package developed by the AUTOSAR software package, when the target vehicle-mounted application needs to perform relevant application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during operation on the first operating system, the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device can be obtained, and the relevant target vehicle-mounted application operations can be performed according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device, and it is verified whether the vehicle-mounted application can successfully perform the relevant target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device. Since it can be verified whether the target vehicle-mounted application can successfully perform the relevant target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device, therefore, in the case of determining that the target vehicle-mounted application cannot successfully perform the relevant target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device, the developer of the target vehicle-mounted application can improve the code of the target vehicle-mounted application that performs the relevant target vehicle-mounted application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device. Therefore, it is not necessary to wait for the AUTOSAR software package to be delivered before developing the vehicle application. In other words, there is no need to wait for the delivery of the AUTOSAR software package before developing the target vehicle application.
[0021] In the information processing method provided by the embodiment of the present disclosure, after the developer of the target vehicle-mounted application obtains the AUTOSAR software package, the developer stops using the simulated first processor to run the first operating system, and stops running the target vehicle-mounted application on the first operating system; uses the second processor to run the second operating system, and runs the target vehicle-mounted application on the second operating system; when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the second operating system, the target vehicle-mounted application calls the AUTOSAR software package; calls the device driver corresponding to the target vehicle-mounted device file of the target vehicle-mounted device provided by the AUTOSAR software package through the runtime environment provided by the AUTOSAR software package, accesses the target vehicle-mounted device file with the device driver corresponding to the target vehicle-mounted device file of the target vehicle-mounted device provided by the AUTOSAR software package, and obtains a second access result, wherein the target vehicle-mounted application receives the second access result returned by the device driver corresponding to the target vehicle-mounted device file of the target vehicle-mounted device provided by the AUTOSAR software package during the process of running on the second operating system, and performs the target vehicle-mounted application operation related to the second access result. Therefore, after the developer of the target vehicle application obtains the AUTOSAR software package, the access mode of the device file can be switched to the access mode provided by the AUTOSAR software package.
[0022] The target vehicle device file of the target vehicle device is accessed by the device driver corresponding to the target vehicle device file. The target vehicle application and the AUTOSAR software package can constitute an AUTOSAR-based vehicle application. The device driver provided by the AUTOSAR software package is more complete than the preset driver developed by the target vehicle application. By using the device driver provided by the AUTOSAR software package, the target vehicle device file can be accessed more efficiently and the access result can be obtained more efficiently.
[0023] refer to Figure 1 , which shows an example flow chart of an information processing method provided by an embodiment of the present disclosure, which method can be executed by a terminal device.
[0024] Step S101, before the developer of the target vehicle-mounted application obtains the AUTOSAR software package from the provider of the automotive open system architecture AUTOSAR software package, when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during running on the first operating system, a first access result is obtained by using a preset device driver.
[0025] Among them, when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the first operating system, obtaining the first access result through the preset device driver includes: step S1011, simulating the first processor using a tool for simulating the processor; step S1012, running the first operating system using the simulated first processor, and running the target vehicle-mounted application on the first operating system; step S1013, when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the first operating system, the target vehicle-mounted application calls the preset interface; step S1014, calling the preset device driver corresponding to the target vehicle-mounted device file through the preset interface, so as to access the target vehicle-mounted device file by the preset device driver corresponding to the target vehicle-mounted device file, and obtain the first access result, wherein the preset device driver corresponding to the target vehicle-mounted device file is pre-developed by the developer of the target vehicle-mounted application, and the target vehicle-mounted application receives the first access result returned by the preset device driver corresponding to the target vehicle-mounted device file during the process of running on the first operating system, and performs the target vehicle-mounted application operation related to the first access result.
[0026] In the embodiment of the present disclosure, the target in-vehicle application may be any in-vehicle application to which the information processing method provided by the embodiment of the present disclosure can be applied.
[0027] The target vehicle-mounted device may be a vehicle-mounted device to which the information processing method provided by the embodiment of the present disclosure can be applied.
[0028] As an example, the first operating system may be a real-time operating system such as FreeRTOS, or other existing operating systems that can be applied to a vehicle.
[0029] As an example, accessing the target vehicle-mounted device file of the target vehicle-mounted device may include driving data from a device file, writing data to a device file, modifying data in a device file, deleting data in a device file, and the like.
[0030] As an example, the target in-vehicle application is an application belonging to the smart cockpit system of the vehicle. The target in-vehicle application can interact with the user of the vehicle, receive the user's input, and perform operations according to the user's input.
[0031] In the embodiment of the present disclosure, the tool for simulating the processor may be Qemu. Qemu may be installed on an operating system such as Window / Linux on a terminal device that executes the method provided by the embodiment of the present disclosure.
[0032] The simulated architecture of the first processor may be a default one, or may be selected by a developer of the target vehicle-mounted application from a plurality of processing architectures.
[0033] As an example, the simulated first processor is a simulated MCU.
[0034] Qemu can be used to simulate a first processor, the simulated first processor can be used to run a first operating system, and a target vehicle-mounted application can be run on the first operating system.
[0035] Running the target in-vehicle application on the first operating system may specifically refer to running the current code of the target in-vehicle application on the first operating system.
[0036] As an example, the preset interface is an API interface.
[0037] In the embodiment of the present disclosure, the device file of the target vehicle-mounted device may be called a target vehicle-mounted device file.
[0038] In an embodiment of the present disclosure, when a target vehicle-mounted application needs to perform related application operations according to an access result obtained by accessing a target vehicle-mounted device file of a target vehicle-mounted device during operation on a first operating system, the target vehicle-mounted application calls a preset interface. In response to being called by the target vehicle-mounted application, the preset interface calls a preset device driver corresponding to the target vehicle-mounted device file. In response to being called by the preset interface, the preset device driver corresponding to the target vehicle-mounted device file accesses the target vehicle-mounted device file to obtain a first access result.
[0039] In the embodiment of the present disclosure, the operation performed by the target in-vehicle application may be called a target in-vehicle application operation.
[0040] In an embodiment of the present disclosure, the target vehicle-mounted application receives a first access result returned by a preset device driver corresponding to a device file of a target vehicle-mounted device file during operation on a first operating system, executes a target vehicle-mounted application operation related to the first access result, and obtains an operation result. Based on the operation result, it can be verified whether the target vehicle-mounted application can successfully execute the relevant application operation based on the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device. In the case where it is determined that the target vehicle-mounted application cannot successfully execute the relevant application operation based on the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device, the developer of the target vehicle-mounted application can improve the code of the target vehicle-mounted application that executes the relevant application operation based on the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device.
[0041] It should be noted that, before the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package, the target vehicle application can be developed, and the code of the target vehicle application that performs relevant application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device can be continuously improved. Before the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package, each time the code of the target vehicle application that needs to perform relevant application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device is improved, steps S1013-S1014 can be executed.
[0042] As an example, the developer of the target vehicle-mounted application can pre-develop preset drivers such as the controller area network (CAN) bus, universal asynchronous receiver / transmitter (Uart) bus, serial peripheral interface (Spi) bus, vehicle-mounted Ethernet and other vehicle-mounted devices that correspond to the controller area network bus driver, universal asynchronous receiver / transmitter bus driver, serial peripheral interface bus driver, vehicle-mounted Ethernet driver, etc., which can run on the first operating system.
[0043] In an optional implementation, the preset interface is a simulated runtime environment (RTE), which is pre-developed by the developer of the target vehicle application. RTE is the core of the AUTOSAR ECU system. RTE is a specific implementation of the AUTOSAR virtual function bus (VFB) for a specific electronic control unit (ECU), supporting communication between AUTOSAR software components, between basic software, and between software components and basic software. RTE encapsulates the communication and services of the basic software layer, and provides standardized basic software and communication interfaces for the software components of the application layer, so that the application layer can call the services of the basic software through API functions.
[0044] When the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during operation on the first operating system, the target vehicle-mounted application calls the simulated RTE; and calls the preset device driver corresponding to the target vehicle-mounted device file through the simulated RTE. By calling the preset device driver corresponding to the target vehicle-mounted device file through the simulated RTE, the process of accessing the target vehicle-mounted device file of the target vehicle-mounted device is close to the actual process of accessing the target vehicle-mounted device file after the development of the target application is completed, that is, the process of using RTE to access the target vehicle-mounted device file of the target vehicle-mounted device. Therefore, after the developer of the target vehicle-mounted application obtains the AUTOSAR software package, when the access method to the device file is switched to access using the device driver provided by the AUTOSAR software package, the simulated RTE can be directly replaced with the RTE provided by the AUTOSAR software package, thereby improving the convenience of switching.
[0045] It should be noted that the simulated RTE in the embodiment of the present disclosure is only to make the process of accessing the target vehicle-mounted device files of the target vehicle-mounted device close to the actual process of accessing the target vehicle-mounted device files after the development of the target application is completed, that is, the process of using RTE to access the target vehicle-mounted device files of the target vehicle-mounted device. The functions of the RTE provided by the AUTOSAR software package are more complete than those of the simulated RTE. The RTE provided by the AUTOSAR software package can access the target vehicle-mounted device files more efficiently. In the embodiment of the present disclosure, it is not necessary to implement all the functions of the RTE provided by the AUTOSAR software package.
[0046] In an optional implementation, calling a preset device driver corresponding to the target vehicle-mounted device through a preset interface includes: calling a preset middleware corresponding to the target vehicle-mounted device through a preset interface, so that the preset middleware corresponding to the target vehicle-mounted device calls the preset device driver corresponding to the target vehicle-mounted device. The preset middleware corresponding to the target vehicle-mounted device may be called through a simulated RTE, so that the preset middleware corresponding to the target vehicle-mounted device calls the preset device driver corresponding to the target vehicle-mounted device.
[0047] As an example, construct middleware such as Network Manager (NM), Non-Volatile RAM Manager (Nvm), SomeIp, etc. The preset middleware corresponding to the target vehicle device is called through the simulated RTE, so that the preset middleware corresponding to the target vehicle device calls the preset device driver corresponding to the target vehicle device, so that the process of accessing the target vehicle device file of the target vehicle device is closer to the actual process of accessing the target vehicle device file after the development of the target application is completed, that is, the process of using RTE to call the preset middleware corresponding to the target vehicle device through RTE to access the target vehicle device file of the target vehicle device.
[0048] Step S102, after the developer of the target vehicle-mounted application obtains the AUTOSAR software package, the developer stops using the simulated first processor to run the first operating system, and stops running the target vehicle-mounted application on the first operating system; uses the second processor to run the second operating system; when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the second operating system, the second access result is obtained through the device driver corresponding to the target vehicle-mounted device file of the target vehicle-mounted device provided by the AUTOSAR software package.
[0049] Wherein, when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the second operating system, obtaining the second access result through the device driver corresponding to the target vehicle-mounted device file of the target vehicle-mounted device provided by the AUTOSAR software package includes: step S1021, running the target vehicle-mounted application on the second operating system; step S1022, when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the second operating system, the target vehicle-mounted application calls the AUTOSAR software package The runtime environment provided by the AUTOSAR software package; step S1023, calling the device driver corresponding to the target vehicle-mounted device file of the target vehicle-mounted device provided by the AUTOSAR software package through the runtime environment provided by the AUTOSAR software package, accessing the target vehicle-mounted device file with the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package, to obtain a second access result, wherein the target vehicle-mounted application receives the second access result returned by the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package and the target vehicle-mounted device during the process of running on the second operating system, and executes the target vehicle-mounted application operation related to the second access result.
[0050] The architecture of the second processor may be a default one, or may be selected by a developer of the target in-vehicle application from a plurality of processing architectures.
[0051] As an example, the second processor is an MCU.
[0052] As an example, the second operating system may be an AUTOSAR OS operating system or other existing operating systems that may be applied to a vehicle.
[0053] Running the target in-vehicle application on the second operating system may specifically refer to running the current code of the target in-vehicle application on the second operating system.
[0054] It should be noted that, after the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package, the target vehicle application may continue to improve the code that the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device. After the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package, each time the code that the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device is improved, steps S1022 to S1023 may be executed.
[0055] The embodiments of the present disclosure provide an information processing device. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "unit" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0056] The information processing device comprises:
[0057] The first unit is used to simulate a first processor using a tool for simulating processors before the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package of the automotive open system architecture; use the simulated first processor to run the first operating system, and run the target vehicle application on the first operating system; when the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device during the process of running on the first operating system, the target vehicle application calls a preset interface; calls the preset device driver corresponding to the target vehicle device file through the preset interface, so as to access the target vehicle device file through the preset device driver corresponding to the target vehicle device file, and obtain a first access result, wherein the preset device driver corresponding to the target vehicle device file is pre-developed by the developer of the target vehicle application, and the target vehicle application receives the first access result returned by the preset device driver corresponding to the target vehicle device file during the process of running on the first operating system, and performs the target vehicle application operation related to the first access result;
[0058] The second unit is used for, after the developer of the target vehicle-mounted application obtains the AUTOSAR software package, stopping using the simulated first processor to run the first operating system and stopping running the target vehicle-mounted application on the first operating system; using the second processor to run the second operating system and running the target vehicle-mounted application on the second operating system; when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the second operating system, the target vehicle-mounted application calls the runtime environment provided by the AUTOSAR software package; calling the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package through the runtime environment provided by the AUTOSAR software package, accessing the target vehicle-mounted device file with the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package, and obtaining a second access result, wherein the target vehicle-mounted application receives the second access result returned by the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package during the process of running on the second operating system, and performs the target vehicle-mounted application operation related to the second access result.
[0059] In an optional implementation, the preset interface is a simulated runtime environment, and the simulated runtime environment is pre-developed by a developer of the target vehicle-mounted application.
[0060] In an optional implementation, the first unit is further configured to call a preset middleware corresponding to the target vehicle-mounted device through a preset interface, so that the preset middleware corresponding to the target vehicle-mounted device calls a preset device driver corresponding to the target vehicle-mounted device.
[0061] In an optional implementation, the first operating system is different from the second operating system.
[0062] In an optional implementation, the target vehicle-mounted device is a smart cockpit device or a vehicle-mounted ECU.
[0063] In the embodiments of the present disclosure, the device is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and a memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0064] The further functional description of each of the above units is the same as that of the above corresponding embodiments and will not be repeated here.
[0065] refer to Figure 2 , which shows a schematic diagram of the hardware structure of a computer device provided by an embodiment of the present disclosure, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0066] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0067] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0068] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0069] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0070] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means.
[0071] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0072] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0073] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. An information processing method, characterized in that: The method comprises: Before the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package of the automotive open system architecture, a first processor is simulated using a tool for simulating processors; a first operating system is run using the simulated first processor, and the target vehicle application is run on the first operating system; when the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device during the process of running on the first operating system, the target vehicle application calls a preset interface; calls the preset device driver corresponding to the target vehicle device file through the preset interface, so that the target vehicle device file is accessed by the preset device driver corresponding to the target vehicle device file to obtain a first access result, wherein the preset device driver corresponding to the target vehicle device file is pre-developed by the developer of the target vehicle application, and the target vehicle application receives the first access result returned by the preset device driver corresponding to the target vehicle device file during the process of running on the first operating system, and performs the target vehicle application operation related to the first access result; After the developer of the target vehicle application obtains the AUTOSAR software package, the developer stops using the simulated first processor to run the first operating system, and stops running the target vehicle application on the first operating system; uses the second processor to run the second operating system, and runs the target vehicle application on the second operating system; when the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device during the process of running on the second operating system, the target vehicle application calls the runtime environment provided by the AUTOSAR software package; calls the device driver corresponding to the target vehicle device file provided by the AUTOSAR software package through the runtime environment provided by the AUTOSAR software package, accesses the target vehicle device file with the device driver corresponding to the target vehicle device file provided by the AUTOSAR software package, and obtains a second access result, wherein the target vehicle application receives the second access result returned by the device driver corresponding to the target vehicle device file provided by the AUTOSAR software package during the process of running on the second operating system, and performs the target vehicle application operation related to the second access result.
2. The method according to claim 1, characterized in that The preset interface is a simulated runtime environment, and the simulated runtime environment is pre-developed by a developer of a target vehicle-mounted application.
3. The method according to claim 2, characterized in that Calling the preset device driver corresponding to the target vehicle device through the preset interface includes: The preset middleware corresponding to the target vehicle-mounted device is called through the preset interface, so that the preset middleware corresponding to the target vehicle-mounted device calls the preset device driver corresponding to the target vehicle-mounted device.
4. The method according to claim 1, characterized in that: The first operating system is different from the second operating system.
5. The method according to any one of claims 1 to 4, characterized in that The target vehicle-mounted device is a smart cockpit device or a vehicle-mounted ECU.
6. An information processing device, characterized in that: The device comprises: The first unit is used to simulate a first processor using a tool for simulating processors before the developer of the target vehicle application obtains the AUTOSAR software package from the provider of the AUTOSAR software package of the automotive open system architecture; use the simulated first processor to run the first operating system, and run the target vehicle application on the first operating system; when the target vehicle application needs to perform related application operations according to the access result obtained by accessing the target vehicle device file of the target vehicle device during the process of running on the first operating system, the target vehicle application calls a preset interface; calls the preset device driver corresponding to the target vehicle device file through the preset interface, so as to access the target vehicle device file through the preset device driver corresponding to the target vehicle device file, and obtain a first access result, wherein the preset device driver corresponding to the target vehicle device file is pre-developed by the developer of the target vehicle application, and the target vehicle application receives the first access result returned by the preset device driver corresponding to the target vehicle device file during the process of running on the first operating system, and performs the target vehicle application operation related to the first access result; The second unit is used for, after the developer of the target vehicle-mounted application obtains the AUTOSAR software package, stopping using the simulated first processor to run the first operating system and stopping running the target vehicle-mounted application on the first operating system; using the second processor to run the second operating system and running the target vehicle-mounted application on the second operating system; when the target vehicle-mounted application needs to perform related application operations according to the access result obtained by accessing the target vehicle-mounted device file of the target vehicle-mounted device during the process of running on the second operating system, the target vehicle-mounted application calls the runtime environment provided by the AUTOSAR software package; calling the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package through the runtime environment provided by the AUTOSAR software package, accessing the target vehicle-mounted device file with the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package, and obtaining a second access result, wherein the target vehicle-mounted application receives the second access result returned by the device driver corresponding to the target vehicle-mounted device file provided by the AUTOSAR software package during the process of running on the second operating system, and performs the target vehicle-mounted application operation related to the second access result.
7. The device according to claim 6, characterized in that The preset interface is a simulated runtime environment, and the simulated runtime environment is pre-developed by a developer of a target vehicle-mounted application.
8. The device according to claim 7, characterized in that The first unit is further used to call the preset middleware corresponding to the target vehicle-mounted device through the preset interface, so that the preset middleware corresponding to the target vehicle-mounted device calls the preset device driver corresponding to the target vehicle-mounted device.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 5 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
General car code conversion method
CN102622470A
Electronic controller test system and method
CN110333976A
Real-time operating system generation method and device, real-time operating system use method and device, electronic equipment and medium
CN115826938A
Software testing method, system and equipment and storage medium
CN116069648A
Apparatus for communicating diagnostic vehicle based on autosar and method thereof
KR1020170059685A
