CN112363925A - Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium - Google Patents

Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN112363925A
CN112363925A CN202011246934.5A CN202011246934A CN112363925A CN 112363925 A CN112363925 A CN 112363925A CN 202011246934 A CN202011246934 A CN 202011246934A CN 112363925 A CN112363925 A CN 112363925A
Authority
CN
China
Prior art keywords
vehicle
basic information
machine
machine basic
storage module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011246934.5A
Other languages
Chinese (zh)
Inventor
徐梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Hubei Ecarx 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 Hubei Ecarx Technology Co Ltd filed Critical Hubei Ecarx Technology Co Ltd
Priority to CN202011246934.5A priority Critical patent/CN112363925A/en
Publication of CN112363925A publication Critical patent/CN112363925A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method for acquiring vehicle-mounted machine basic information, electronic equipment and a computer storage medium, wherein the method comprises the following steps: after the car machine is started, identifying whether a specific attribute value is stored in a setting storage module of the car machine; if yes, receiving vehicle-mounted machine basic information input from the outside and storing the vehicle-mounted machine basic information in the setting storage module; receiving a vehicle-machine basic information acquisition instruction sent by an upper-layer application on the vehicle machine; and calling target vehicle-machine basic information corresponding to the vehicle-machine basic information acquisition instruction from the setting storage module and outputting the target vehicle-machine basic information to the upper application. Based on the technical scheme provided by the invention, research and development testers can write corresponding vehicle machine basic information into the vehicle machine according to actual requirements without writing the vehicle machine basic information into the vehicle machine through a specific tool, thereby greatly facilitating the research and development testers to develop and test vehicle machine system software.

Description

Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium
Technical Field
The present invention relates to the field of vehicle-mounted devices, and in particular, to a method for acquiring vehicle-mounted device basic information, an electronic device, and a computer storage medium.
Background
The upper application in the car machine needs to read the basic information of the car machine to normally run, but the basic information of the car machine is written into the car machine through a specific tool at the final production stage of the car machine, so that the early development and test personnel can not normally develop and test the upper application function of the car machine due to the fact that the car machine does not have the basic information, and the problem is urgently needed to be solved.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a method, an electronic device and a computer storage medium for acquiring vehicle-mounted basic information that overcome or at least partially solve the above problems.
Particularly, the invention provides a method for acquiring vehicle-mounted machine basic information, which comprises the following steps:
after the car machine is started, identifying and judging whether a specific attribute value is stored in a setting storage module of the car machine;
if yes, receiving vehicle-mounted machine basic information input from the outside and storing the vehicle-mounted machine basic information in the setting storage module;
receiving a vehicle-machine basic information acquisition instruction sent by an upper-layer application on the vehicle machine;
and calling target vehicle-machine basic information corresponding to the vehicle-machine basic information acquisition instruction from the setting storage module and outputting the target vehicle-machine basic information to the upper application.
Optionally, when the specific attribute value is not stored in the setting storage module of the car machine, after receiving a car machine basic information obtaining instruction sent by an upper layer application on the car machine, the method further includes:
and calling target vehicle machine basic information corresponding to the vehicle machine basic information acquisition instruction from a storage module of the MCU of the vehicle machine and outputting the target vehicle machine basic information to the upper application.
Optionally, the in-vehicle device basic information at least includes identification information and configuration word information, where the identification information at least includes a VIN code, an XDSN code, an IHUID code, an in-vehicle device software version code, and an in-vehicle device hardware version code; and the configuration word information is used for representing the high, medium and low configuration information of the vehicle corresponding to the vehicle machine.
According to another aspect of the present invention, there is also provided an electronic device comprising a processor and a memory, the memory having stored therein a computer program, the processor being arranged to execute the computer program to perform the method of any one of the above.
According to yet another aspect of the present invention, there is also provided a computer storage medium having stored therein at least one instruction, at least one program, set of code or set of instructions, which is loaded by a processor and which performs a method as claimed in any preceding claim.
In the scheme provided by the invention, after the vehicle-mounted device is started, whether a specific attribute value is stored in a setting storage module of the vehicle-mounted device is firstly identified, and if the specific attribute value is stored in the setting storage module of the vehicle-mounted device, the vehicle-mounted device enters a debugging mode. In the debugging mode, the vehicle machine basic information input from the outside is received and stored in the setting storage module, and then after a vehicle machine basic information acquisition instruction sent by an upper layer application on the vehicle machine is received, the target vehicle machine basic information corresponding to the vehicle machine basic information acquisition instruction is called from the setting storage module and output to the upper layer application so that the upper layer application can normally run. Based on the scheme provided by the invention, research and development testers can write corresponding vehicle machine basic information into the vehicle machine according to actual requirements without writing the vehicle machine basic information into the vehicle machine through a specific tool, thereby greatly facilitating the research and development testers to develop or test vehicle machine system software.
The foregoing is a summary of the present invention, and so that the technical means of the present invention will be more clearly understood and appreciated in light of the following description, the present invention will now be described in detail with reference to the accompanying drawings.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
FIG. 1 is a schematic block diagram of a vehicle machine according to an embodiment of the present invention;
FIG. 2 is a block diagram of a schematic configuration of the electronic device of FIG. 1;
fig. 3 is a schematic flow chart of a method for acquiring vehicle-mounted device basic information according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that the technical features of the embodiments and alternative embodiments of the present invention may be combined with each other without conflict.
FIG. 1 is a block diagram of a vehicle machine 100 according to an embodiment of the present invention; fig. 2 is a schematic block diagram of the electronic device in fig. 1. Referring to fig. 1 and 2, the car machine 100 includes a setting storage module 110, an MCU130 and an electronic device 120, wherein the MCU130 includes a storage module 131. The setting storage module 110 is configured to store a specific attribute value and vehicle-mounted device basic information input by a research and development tester, specifically, the setting storage module 110 may be an Android system attribute module, and the setting storage module 110 may be configured to store the specific attribute value and the vehicle-mounted device basic information of the vehicle-mounted device 100. Specifically, the specific attribute values and the car machine basic information in the setting storage module 110 may be obtained by connecting a computer and the car machine 100 through an adb (Android Debug Bridge) by a development tester, and then writing the specific attribute values and the car machine basic information into the setting storage module 110 of the car machine 100 through an adb command. The storage module 131 of the MCU130 may be an Android Car Service (Android Car Service) module, and the storage module 131 of the MCU130 is mainly used for storing the in-vehicle basic information written by a specific tool. The electronic device 120 comprises a processor 121 and a memory 122, wherein the memory 122 stores a computer program 1221, and the processor 121 is arranged to execute the method in any of the following embodiments of the computer program 1221.
Based on the above-mentioned electronic device 120, an embodiment of the present invention further provides a method for acquiring vehicle-mounted device basic information, and fig. 3 is a flowchart illustrating the method for acquiring vehicle-mounted device basic information according to an embodiment of the present invention. Referring to fig. 3, the method may include at least the following steps:
step S302: after the car machine 100 is powered on, it is identified whether the specific attribute value is stored in the setting storage module 110 of the car machine 100.
Step S304: if yes, the vehicle-mounted device basic information input from the outside is received and stored in the setting storage module 110.
Step S306: and receiving a vehicle-machine basic information acquisition instruction sent by an upper-layer application on the vehicle machine 100.
Step S308: and calling the target vehicle-machine basic information corresponding to the vehicle-machine basic information acquisition instruction from the setting storage module 110 and outputting the target vehicle-machine basic information to an upper-layer application.
The car machine basic information mentioned in the above step may include at least identification information and configuration word information. The Identification information at least includes a VIN (Vehicle Identification Number) code, an XDSN (e-car product serial Number) code, an IHUID (information Head unit Identification code), a car software version code, and a car hardware version code. The configuration word information is used for representing high, medium and low configuration information of a vehicle corresponding to the vehicle machine.
And the upper application on the vehicle machine can identify the vehicle according to the identification information and present the functions of the vehicle machine to the user according to the configuration word information.
In the solution provided by the present invention, after the car machine is started, it is first identified whether the specific attribute value is stored in the setting storage module 110 of the car machine, and if yes, the car machine enters a debugging mode. In the debugging mode, the vehicle machine basic information input from the outside is received and stored in the setting storage module 110, and then after receiving a vehicle machine basic information acquisition instruction sent by an upper layer application on the vehicle machine, the target vehicle machine basic information corresponding to the vehicle machine basic information acquisition instruction is called from the setting storage module 110 and output to the upper layer application, so that the upper layer application can normally run. Based on the scheme provided by the invention, research and development testers can write corresponding vehicle machine basic information into the vehicle machine according to actual requirements without writing the vehicle machine basic information into the vehicle machine through a specific tool, thereby greatly facilitating the research and development testers to develop or test vehicle machine system software.
In addition, in some embodiments of the present invention, when the specific attribute value is not stored in the setting storage module 110 of the car machine, after receiving a car machine basic information obtaining instruction sent by an upper layer application on the car machine, the method further includes: and calling target vehicle machine basic information corresponding to the vehicle machine basic information acquisition instruction from a storage module 131 of the MCU130 of the vehicle machine and outputting the target vehicle machine basic information to an upper layer application.
If the specific attribute value is not stored in the setting storage module 110 of the car machine, it indicates that the car machine has written the car machine basic information through a specific tool when the car machine leaves the factory, and the car machine enters a normal mode. In the normal mode, the target vehicle machine basic information corresponding to the vehicle machine basic information acquisition instruction is called from the storage module 131 of the MCU130 of the vehicle machine and output to the upper layer application, so that the upper layer application operates normally.
According to another aspect of the invention, a computer storage medium is proposed, in which at least one instruction, at least one program, set of code or set of instructions is stored, which is loaded by a processor 121 and which performs the method according to any of the above.
The invention provides a method for acquiring vehicle-mounted machine basic information, an electronic device 120 and a computer storage medium. In the debugging mode, the vehicle-machine basic information input from the outside is received and stored in the setting storage module 110, and then after receiving a vehicle-machine basic information acquisition instruction sent by an upper layer application on the vehicle machine, the target vehicle-machine basic information corresponding to the vehicle-machine basic information acquisition instruction is called from the setting storage module 110 and output to the upper layer application. Based on the scheme provided by the invention, research and development testers can write corresponding vehicle machine basic information into the vehicle machine according to actual requirements without writing the vehicle machine basic information into the vehicle machine through a specific tool, thereby greatly facilitating the research and development testers to develop or test vehicle machine system software.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.

Claims (5)

1. The method for acquiring the vehicle machine basic information is characterized by comprising the following steps:
after the car machine is started, identifying whether a specific attribute value is stored in a setting storage module of the car machine;
if yes, receiving vehicle-mounted machine basic information input from the outside and storing the vehicle-mounted machine basic information in the setting storage module;
receiving a vehicle-machine basic information acquisition instruction sent by an upper-layer application on the vehicle machine;
and calling target vehicle-machine basic information corresponding to the vehicle-machine basic information acquisition instruction from the setting storage module and outputting the target vehicle-machine basic information to the upper application.
2. The method according to claim 1, wherein when the specific attribute value is not stored in the setting storage module of the in-vehicle device, after receiving an in-vehicle device basic information acquisition instruction sent by an upper layer application on the in-vehicle device, the method further comprises:
and calling target vehicle machine basic information corresponding to the vehicle machine basic information acquisition instruction from a storage module of the MCU of the vehicle machine and outputting the target vehicle machine basic information to the upper application.
3. The method according to claim 1 or 2,
the vehicle-mounted device basic information at least comprises identification information and configuration word information, wherein the identification information at least comprises VIN codes, XDSN codes, IHUID codes, vehicle-mounted device software version codes and vehicle-mounted device hardware version codes; and the configuration word information is used for representing the high, medium and low configuration information of the vehicle corresponding to the vehicle machine.
4. An electronic device, comprising a processor and a memory, the memory having stored therein a computer program, the processor being arranged to execute the computer program to perform the method of any of claims 1-3.
5. A computer storage medium having stored therein at least one instruction, at least one program, a set of code or instructions, which is loaded by a processor and which performs the method of any one of claims 1 to 3.
CN202011246934.5A 2020-11-10 2020-11-10 Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium Pending CN112363925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011246934.5A CN112363925A (en) 2020-11-10 2020-11-10 Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011246934.5A CN112363925A (en) 2020-11-10 2020-11-10 Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN112363925A true CN112363925A (en) 2021-02-12

Family

ID=74508542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011246934.5A Pending CN112363925A (en) 2020-11-10 2020-11-10 Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112363925A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118093420A (en) * 2024-03-18 2024-05-28 镁佳(北京)科技有限公司 Vehicle testing method, device, computer equipment, storage medium and program product

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5771385A (en) * 1996-03-29 1998-06-23 Sun Microsystems, Inc. Setting and getting system debug flags by name at runtime
US20020065646A1 (en) * 2000-09-11 2002-05-30 Waldie Arthur H. Embedded debug system using an auxiliary instruction queue
CN102566470A (en) * 2012-01-11 2012-07-11 株洲南车时代电气股份有限公司 System and method for timely monitoring and recording running condition and adjusting parameter of locomotive
CN203224780U (en) * 2013-04-01 2013-10-02 比亚迪股份有限公司 Debug system based on CAN and functional verification system of cars with debug system
CN104103104A (en) * 2014-07-24 2014-10-15 深圳市朗仁科技有限公司 Analyzing system based on VIN and mileage and method
CN109240273A (en) * 2018-11-02 2019-01-18 上海博泰悦臻网络技术服务有限公司 Vehicle remote diagnosis method, server-side, engine end and client based on cloud
CN109782736A (en) * 2019-01-25 2019-05-21 深圳市元征科技股份有限公司 Vehicle data read method, device, mobile unit
CN110071904A (en) * 2018-01-24 2019-07-30 比亚迪股份有限公司 A kind of detection method of car-mounted terminal and system, server and storage medium
WO2020001281A1 (en) * 2018-06-27 2020-01-02 中兴通讯股份有限公司 Tbox control method and apparatus, and computer readable storage medium
CN111131358A (en) * 2018-10-31 2020-05-08 比亚迪股份有限公司 Information acquisition method, device and system, readable storage medium and electronic equipment
US20200319991A1 (en) * 2019-04-03 2020-10-08 Graphcore Limited Debugging Mechanism

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5771385A (en) * 1996-03-29 1998-06-23 Sun Microsystems, Inc. Setting and getting system debug flags by name at runtime
US20020065646A1 (en) * 2000-09-11 2002-05-30 Waldie Arthur H. Embedded debug system using an auxiliary instruction queue
CN102566470A (en) * 2012-01-11 2012-07-11 株洲南车时代电气股份有限公司 System and method for timely monitoring and recording running condition and adjusting parameter of locomotive
CN203224780U (en) * 2013-04-01 2013-10-02 比亚迪股份有限公司 Debug system based on CAN and functional verification system of cars with debug system
CN104103104A (en) * 2014-07-24 2014-10-15 深圳市朗仁科技有限公司 Analyzing system based on VIN and mileage and method
CN110071904A (en) * 2018-01-24 2019-07-30 比亚迪股份有限公司 A kind of detection method of car-mounted terminal and system, server and storage medium
WO2020001281A1 (en) * 2018-06-27 2020-01-02 中兴通讯股份有限公司 Tbox control method and apparatus, and computer readable storage medium
CN111131358A (en) * 2018-10-31 2020-05-08 比亚迪股份有限公司 Information acquisition method, device and system, readable storage medium and electronic equipment
CN109240273A (en) * 2018-11-02 2019-01-18 上海博泰悦臻网络技术服务有限公司 Vehicle remote diagnosis method, server-side, engine end and client based on cloud
CN109782736A (en) * 2019-01-25 2019-05-21 深圳市元征科技股份有限公司 Vehicle data read method, device, mobile unit
US20200319991A1 (en) * 2019-04-03 2020-10-08 Graphcore Limited Debugging Mechanism

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邵贝贝: "《嵌入式系统中的双核技术》", 31 August 2008 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118093420A (en) * 2024-03-18 2024-05-28 镁佳(北京)科技有限公司 Vehicle testing method, device, computer equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN110515641A (en) The update method of server firmware, apparatus and system
US4694420A (en) Inverse assembly method and apparatus
CN112783516B (en) Method for hardware adaptation, electronic device and computer readable storage medium
CN111474923A (en) Vehicle diagnosis method, device and equipment
CN107516546B (en) Online detection device and method for random access memory
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN115756984A (en) Memory test method, device, equipment and storage medium
CN112445490A (en) File sequence processing method and device, terminal equipment and storage medium
CN115934503A (en) Program testing method, device, equipment and storage medium
CN112363925A (en) Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium
CN112306040A (en) Vehicle detection method, device, equipment and server
CN114610557B (en) Method and device for testing equipment driving unit
CN111857785A (en) MCU starting method and device and terminal equipment
CN111596199B (en) Test chip, integrated circuit test method and system and detection equipment
CN114328063A (en) Simulation method and device based on mapping mechanism and electronic equipment
CN110209433B (en) Method for identifying concentrators of different models
CN112596961A (en) Automatic testing method and system for satellite-borne computer
KR20000068217A (en) Diagnostic procedure for electrical appliances
JP5279816B2 (en) Test module, test apparatus and test method
EP3557422A1 (en) Method for accessing code sram, and electronic device
RU2678512C1 (en) Related to motor vehicles data processing method for the purpose of the subsequent electrical systems electrical diagrams graphic construction
WO2009122700A1 (en) Test device and test method
CN114756440B (en) Data writing method, device and equipment of smart card and storage medium
CN114942623B (en) Method and device for testing controller, vehicle and computer readable storage medium
CN111158658B (en) Instruction processing method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220412

Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: No.c101, chuanggu start up area, taizihu cultural Digital Industrial Park, No.18 Shenlong Avenue, Wuhan Economic Development Zone, Hubei Province

Applicant before: HUBEI ECARX TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210212