CN114416369A - Instrument internal data distribution method and system - Google Patents

Instrument internal data distribution method and system Download PDF

Info

Publication number
CN114416369A
CN114416369A CN202210061756.1A CN202210061756A CN114416369A CN 114416369 A CN114416369 A CN 114416369A CN 202210061756 A CN202210061756 A CN 202210061756A CN 114416369 A CN114416369 A CN 114416369A
Authority
CN
China
Prior art keywords
data
pps
object file
service
instrument
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.)
Granted
Application number
CN202210061756.1A
Other languages
Chinese (zh)
Other versions
CN114416369B (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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202210061756.1A priority Critical patent/CN114416369B/en
Priority claimed from CN202210061756.1A external-priority patent/CN114416369B/en
Publication of CN114416369A publication Critical patent/CN114416369A/en
Application granted granted Critical
Publication of CN114416369B publication Critical patent/CN114416369B/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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5055Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/503Resource availability

Abstract

The invention discloses a method and a system for distributing data inside an instrument, which comprises the following steps: s1, starting system PPS service, performing sub-packaging according to the type of the received external data, creating an object file for PPS communication, and creating a resource manager for managing the object file; s2, reading the data in the object file, performing service logic processing, and writing the processed data into the corresponding object file; s3, communicating the data after the service logic processing in a PPS multi-path I/O multiplexing mode, performing display logic processing on the data, and writing the processed data into a corresponding object file; s4, communicating the data processed by the display logic in a PPS multi-I/O multiplexing manner, analyzing the data, and displaying the data content. The invention can effectively solve the problems of system resource waste and system performance influence caused by excessive data receiving PPS data, and has more efficient efficiency and performance.

Description

Instrument internal data distribution method and system
Technical Field
The invention belongs to the technical field of data processing of vehicle-mounted instruments, and particularly relates to a method and a system for distributing internal data of an instrument.
Background
With the coming of the new and diversified era of automobiles, intelligent automobiles are more and more popular with people, as one of the interfaces between drivers and automobiles, the information displayed by the instruments is more and more abundant, the software is more and more complex, and the data required to be transmitted in the instruments is more and more. Due to the limitations of chip cost and performance, how to ensure the efficiency of data transmission and improve the running performance of the instrument is more and more important.
Chinese patent CN109932968A discloses a method for inter-process communication of a vehicle-mounted system based on PPS service, which comprises the following steps: s1, starting the PPS service, and generating/PPS/folder directories in the vehicle-mounted system; s2, the data processing center creates a plurality of subfolders with unique file names under the/PPS/folder directory, and creates communication files in the subfolders; and S3, subscribing and monitoring all communication files by the data processing center, traversing all the subfolders by each functional module, and respectively subscribing and monitoring the communication files related to the functional module. The PPS service is simple to start, the corresponding interface is complete, data does not need to be returned by a data receiving end, data transmission is very fast, an information interaction channel is provided for each module of the system through a communication file, a process module of the vehicle-mounted system can transmit data stably and efficiently, and data communication of the whole vehicle is completed in a short time. In order to solve the problem that ECU data cannot be efficiently and stably transmitted, the invention describes that inter-process communication is carried out through PPS (pulse per second) service, and the basic communication among a power supply management module, an animation module, a display module and a vehicle data module is realized. However, the description method of the invention is a general inter-process communication method, and a client side can have blockage when waiting for receiving PPS data, thereby wasting system resources, and greatly influencing system performance when the number of PPS is large and serious.
Disclosure of Invention
In order to solve the problems, the invention provides a method and a system for distributing data inside an instrument, so as to solve the problems that the prior art cannot realize system resource waste and influence system performance caused by receiving PPS data when the data is too much.
In order to solve the technical problem, the technical scheme adopted by the invention is as follows: an internal data distribution method for a meter comprises the following steps:
s1, starting system PPS service, performing sub-packaging according to the type of the received external data, creating an object file for PPS communication, and creating a resource manager for managing the object file;
s2, reading the data in the object file, performing service logic processing, and writing the processed data into the corresponding object file;
s3, communicating the data after the service logic processing in a PPS multi-path I/O multiplexing mode, performing display logic processing on the data, and writing the processed data into a corresponding object file;
s4, communicating the data processed by the display logic in a PPS multi-I/O multiplexing manner, analyzing the data, and displaying the data content.
Preferably, the PPS multiplex I/O communication scheme in S3 and S4 is a multiplex I/O communication scheme based on select service.
As optimization, the external data is driving and state data of the vehicle, which includes a speed signal, an electric quantity signal, a mileage signal and an ADAS signal, and each driving and state data corresponds to one object file.
And as optimization, the business logic processing adopts a system service read to read the data in the resource manager, processes each driving and state data in the data into corresponding value data and writes the value data into a corresponding object file.
And as optimization, the display logic processing comprises display logic priority processing, and data to be displayed is written into a corresponding object file.
As an optimization, the data in S3 and S4 are communicated in a PPS multiplex I/O multiplexing manner and communication instructions are executed according to the update of the object file.
An in-meter data distribution system includes,
the SOC unit is in communication connection with the MCU unit and is used for receiving data of the MCU unit;
the SOC unit includes a plurality of SOC units including,
the MCU receiving module is used for receiving the data of the MCU, subpackaging the data, creating a plurality of object files according to the data types, and writing the data of the MCU into the object files correspondingly; establishing a resource manager for managing the object file;
the instrument business processing module is used for reading the data in the resource manager, performing business logic processing on the data and writing the processed data into a corresponding object file;
the instrument display logic processing module is in communication connection with the instrument service processing module in a PPS multi-path I/O multiplexing mode, executes and receives data of the instrument service processing module according to the update of the object file, performs display logic priority processing on the data, and writes the processed data into a corresponding object file;
and the instrument display module is in communication connection with the instrument display logic processing module in a PPS (pulse per second) multi-path I/O (input/output) multiplexing mode, executes and receives data of the instrument display logic processing module according to the update of the object file, analyzes the data and displays the data content.
Compared with the prior art, the invention has the following advantages:
according to the invention, through classification of data in the instrument, the MCU receiving module distributes larger data transmitted by the MCU in a resource manager mode, and the instrument service module, the instrument display logic module and the instrument display module transmit state and control information through a PPS (pulse per second) multi-path I/O (input/output) multiplexing technology. The PPS multipath I/O multiplexing technology is characterized in that a receiving module receives a plurality of PPS signals through a select mode when receiving PPS, only one thread is adopted to receive the PPS signals, when a sending end does not update PPS information, the receiving thread is blocked, when the sending end updates any PPS signal, the receiving thread informs a registered callback function to process the received information, the efficiency and the performance are more efficient, and the problems that system resources are wasted and the system performance is influenced when the PPS data are excessively received are solved.
Drawings
FIG. 1 is a diagram of the internal data distribution architecture of the present invention;
fig. 2 is a flow chart of data distribution of the present invention.
Detailed Description
The invention will be further explained with reference to the drawings and the embodiments.
Example (b): with reference to figures 1-2 of the drawings,
an internal data distribution method for a meter comprises the following steps:
s1, starting system PPS service, performing sub-packaging according to the received external data type, creating an object file for PPS communication, and creating a resource manager for managing the object file. The external data is driving and state data of the vehicle machine, the external data comprises a speed signal, an electric quantity signal, a mileage signal and an ADAS signal, and each driving and state data corresponds to one object file.
S2, reading the data in the object file, performing service logic processing, and writing the processed data into the corresponding object file;
s3, communicating the data after the service logic processing in a PPS multi-path I/O multiplexing mode, performing display logic processing on the data, and writing the processed data into a corresponding object file;
s4, communicating the data processed by the display logic in a PPS multi-I/O multiplexing manner, analyzing the data, and displaying the data content.
An in-meter data distribution system includes,
the SOC unit is in communication connection with the MCU unit and is used for receiving data of the MCU unit;
the SOC unit includes a plurality of SOC units including,
the MCU receiving module is used for receiving the data of the MCU, subpackaging the data, creating a plurality of object files according to the data types, and writing the data of the MCU into the object files correspondingly; establishing a resource manager for managing the object file;
the instrument business processing module is used for reading the data in the resource manager, performing business logic processing on the data and writing the processed data into a corresponding object file;
the instrument display logic processing module is in communication connection with the instrument service processing module in a PPS multi-path I/O multiplexing mode, executes and receives data of the instrument service processing module according to the update of the object file, performs display logic priority processing on the data, and writes the processed data into a corresponding object file;
and the instrument display module is in communication connection with the instrument display logic processing module in a PPS (pulse per second) multi-path I/O (input/output) multiplexing mode, executes and receives data of the instrument display logic processing module according to the update of the object file, analyzes the data and displays the data content.
Specifically, the whole process of the invention is that the SOC receives the information transmitted by the MCU, and the MCU receiving module adopts a resource manager mode to distribute the data received from the MCU to the instrument business processing module. After the service logic processing, the instrument service processing module sends data to the instrument display logic module through the PPS multi-path I/O multiplexing technology, and the instrument display logic module carries out display priority processing and then sends the display data to the display module through the PPS.
More specifically, as shown in figure 1,
the SOC unit receives data transmitted by the MCU unit through a serial port, an MCU receiving module in the SOC unit subpackages the data, data required by instrument service logic processing are all integrated into a data packet, a resource manager/dev/name/local/changan/resmgr/mcucom/business is established, the instrument service processing module adopts a system service read to directly read the data in the business at one time, and the data comprise: speed signals, electric quantity signals, mileage signals, ADAS signals and other various driving and state data. The instrument service processing module performs corresponding service logic processing on the data to form values such as speed, electric quantity, mileage and ADAS, and writes the values into an object file, namely a PPS object. The receiving thread in the instrument display logic processing module realizes an I/O multiplexing function by using an operating system select service, when the instrument service processing module writes in a certain PPS Object, the operating system informs the receiving thread to read data in the corresponding PPS Object through a PPS bus, and the instrument display logic processing module analyzes the data in the PPS Object and performs display logic processing, mainly performs logic priority processing. And after the display logic processing is finished, writing the data required to be displayed by the current interface into the corresponding PPS Object. And after the receiving process of the instrument display module receives the notification of the PPS Object written by the operating system, the operation of reading the PPS Object is carried out, the processing is carried out, and finally the display is finished.
The work flow diagram is shown in fig. 2:
and starting the system PPS service.
And creating all PPS objects needing to use the PPS communication, and establishing according to types, such as vehicle speed PPS objects.
The MCU receiving module resource manager is created, "/dev/name/local/changan/resmgr/mcucom/business".
And a receiving thread of the instrument business processing module reads data in the resource manager established by the MCU receiving module by using the read system interface.
And carrying out instrument service logic processing on the received signals.
And writing the data processed by the service logic into the corresponding PPS Object.
If the PPS Object content is written, the meter display logic receiving thread enters a receiving state from a waiting state and reads the data in the PPS Object. If no content is input, the receiving thread enters a wait state.
And the instrument display logic processing module performs display logic priority processing according to the received service data.
And writing the data processed by the instrument display logic module, namely the data which needs to be displayed currently, into the corresponding PPS Object.
If the content of the PPS Object is written, the meter display receiving thread enters a receiving state from a waiting state and reads the data in the PPS Object. If no content is input, the receiving thread enters a wait state.
And reading and analyzing the data in the PPS Object.
Displaying the received display data through a display module
According to the invention, through classification of data in the instrument, the MCU receiving module distributes larger data transmitted by the MCU in a resource manager mode, and the instrument service module, the instrument display logic module and the instrument display module transmit state and control information through a PPS (pulse per second) multi-path I/O (input/output) multiplexing technology. The PPS multipath I/O multiplexing technology is characterized in that a receiving module receives a plurality of PPS signals through a select mode when receiving PPS, only one thread is adopted to receive the PPS signals, when a sending end does not update PPS information, the receiving thread is blocked, when the sending end updates any PPS signal, the receiving thread informs a registered callback function to process the received information, the efficiency and the performance are more efficient, and the problems that system resources are wasted and the system performance is influenced when the PPS data are excessively received are solved.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting the technical solutions, and those skilled in the art should understand that modifications or equivalent substitutions can be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions, and all that should be covered by the claims of the present invention.

Claims (7)

1. A method for distributing data inside a meter is characterized by comprising the following steps:
s1, starting system PPS service, performing sub-packaging according to the type of the received external data, creating an object file for PPS communication, and creating a resource manager for managing the object file;
s2, reading the data in the object file, performing service logic processing, and writing the processed data into the corresponding object file;
s3, communicating the data after the service logic processing in a PPS multi-path I/O multiplexing mode, performing display logic processing on the data, and writing the processed data into a corresponding object file;
s4, communicating the data processed by the display logic in a PPS multi-I/O multiplexing manner, analyzing the data, and displaying the data content.
2. The method of claim 1, wherein the communication of the PPS multiplex I/O in S3 and S4 is a multiplex I/O communication based on select service.
3. The method for distributing data inside a meter according to claim 1, wherein the external data is driving and status data of a vehicle, which includes a speed signal, a power signal, a mileage signal, and an ADAS signal, and each driving and status data corresponds to one object file.
4. The method as claimed in claim 3, wherein the business logic process uses a system service read to read the data in the resource manager, and processes each driving and status data therein into corresponding value data, and writes into corresponding object files.
5. The method according to claim 1, wherein the display logic processing includes display logic priority processing, and writes data to be displayed in a corresponding object file.
6. The meter internal data distribution method according to any one of claims 1 to 5, wherein the data in S3 and S4 are communicated in a PPS multiplexing I/O multiplexing manner and the communication instruction is executed according to the update of the object file.
7. An in-meter data distribution system, comprising,
the SOC unit is in communication connection with the MCU unit and is used for receiving data of the MCU unit;
the SOC unit includes a plurality of SOC units including,
the MCU receiving module is used for receiving the data of the MCU, subpackaging the data, creating a plurality of object files according to the data types, and writing the data of the MCU into the object files correspondingly; establishing a resource manager for managing the object file;
the instrument business processing module is used for reading the data in the resource manager, performing business logic processing on the data and writing the processed data into a corresponding object file;
the instrument display logic processing module is in communication connection with the instrument service processing module in a PPS multi-path I/O multiplexing mode, executes and receives data of the instrument service processing module according to the update of the object file, performs display logic priority processing on the data, and writes the processed data into a corresponding object file;
and the instrument display module is in communication connection with the instrument display logic processing module in a PPS (pulse per second) multi-path I/O (input/output) multiplexing mode, executes and receives data of the instrument display logic processing module according to the update of the object file, analyzes the data and displays the data content.
CN202210061756.1A 2022-01-19 Method and system for distributing data in instrument Active CN114416369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210061756.1A CN114416369B (en) 2022-01-19 Method and system for distributing data in instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210061756.1A CN114416369B (en) 2022-01-19 Method and system for distributing data in instrument

Publications (2)

Publication Number Publication Date
CN114416369A true CN114416369A (en) 2022-04-29
CN114416369B CN114416369B (en) 2024-04-26

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114859868A (en) * 2022-05-11 2022-08-05 中国第一汽车股份有限公司 Offline configuration error-proofing processing method for passenger car combination instrument system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device
CN108536612A (en) * 2017-03-03 2018-09-14 西部数据技术公司 Determine the state of a control for the address of cache in nonvolatile memory
CN110187932A (en) * 2019-05-23 2019-08-30 北京普天太力通信科技有限公司 A kind of business datum page loading method and system
CN110870282A (en) * 2017-07-13 2020-03-06 高通股份有限公司 Processing media data using file tracks of web content
CN112637343A (en) * 2020-12-23 2021-04-09 中国建设银行股份有限公司 File transmission method, device and system
WO2021081269A1 (en) * 2019-10-23 2021-04-29 Texas Instruments Incorporated Common bus data flow for serially chained devices
CN113760400A (en) * 2021-01-13 2021-12-07 北京沃东天骏信息技术有限公司 Request processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device
CN108536612A (en) * 2017-03-03 2018-09-14 西部数据技术公司 Determine the state of a control for the address of cache in nonvolatile memory
CN110870282A (en) * 2017-07-13 2020-03-06 高通股份有限公司 Processing media data using file tracks of web content
CN110187932A (en) * 2019-05-23 2019-08-30 北京普天太力通信科技有限公司 A kind of business datum page loading method and system
WO2021081269A1 (en) * 2019-10-23 2021-04-29 Texas Instruments Incorporated Common bus data flow for serially chained devices
CN112637343A (en) * 2020-12-23 2021-04-09 中国建设银行股份有限公司 File transmission method, device and system
CN113760400A (en) * 2021-01-13 2021-12-07 北京沃东天骏信息技术有限公司 Request processing method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FRANCISCO FRAILE: ""Evaluation of Background Push Content Download Services to Mobile Devices Over DVB Networks"", 《IEEE TRANSACTIONS ON BROADCASTING》, vol. 60, no. 1, 31 March 2014 (2014-03-31), pages 1 - 15, XP011541839, DOI: 10.1109/TBC.2013.2289639 *
LINUX内核园: ""Linux内核poll/select机制简析"", Retrieved from the Internet <URL:《https://zhuanlan.zhihu.com/p/451817921》> *
韩雪: ""一个基于企业服务总线的API网关的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 2019, 15 May 2019 (2019-05-15), pages 138 - 712 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114859868A (en) * 2022-05-11 2022-08-05 中国第一汽车股份有限公司 Offline configuration error-proofing processing method for passenger car combination instrument system
CN114859868B (en) * 2022-05-11 2024-04-16 中国第一汽车股份有限公司 Error-proofing processing method for off-line configuration of passenger car combination instrument system

Similar Documents

Publication Publication Date Title
CN111190565B (en) Multi-screen interaction system and method based on single host and single system
CN111221759B (en) Data processing system and method based on DMA
CN102970202B (en) 1553B bus communication method based on preemptive strategy
CN101246678A (en) Multi-screen real-time signal processing method and system
CN105426260B (en) A kind of transparent interprocess communication system and method for supporting distributed system
CN206178464U (en) Multi -protocols vehicle diagnostic system based on ARMCortex
CN102981827B (en) A kind of display interface data processing method based on middleware and platform
CN110399221A (en) Data processing method, system and terminal device
CN114039808B (en) CAN/LIN/SENT forwarding protocol of CAN-based multichannel
CN113347273B (en) Vehicle-mounted Ethernet data conversion method, device, equipment and medium
CN114416369A (en) Instrument internal data distribution method and system
CN114416369B (en) Method and system for distributing data in instrument
CN112311641B (en) CAN communication-based communication method and system for upper computer and lower computer
CN108197043B (en) Control system and method for peripheral hardware of intelligent vehicle machine
CN106354486B (en) The method and system of nand flash equipment management
CN109600420A (en) It is a kind of to realize the method and system remotely controlled online based on raspberry pie technology
CN115242307A (en) Unmanned aerial vehicle machine carries CAN optical fiber conversion equipment
CN210168057U (en) Multifunctional vehicle-mounted gateway
CN114297109A (en) Data processing method and device based on subscription and publishing mode, electronic equipment and storage medium
CN112887149A (en) Service visual management system and management method thereof
CN209118095U (en) A kind of vehicle mounted massaging seat control system
CN111858103A (en) Method for realizing compatibility of high-version and low-version communication of modules in software system
CN101741880A (en) Power service mobile service system-based method for interacting wireless remote data
CN214240679U (en) Car networking control box and car networking system
CN114296809B (en) Object model construction method based on operating system and system call interface thereof

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