CN114416369B - Method and system for distributing data in instrument - Google Patents

Method and system for distributing data in instrument Download PDF

Info

Publication number
CN114416369B
CN114416369B CN202210061756.1A CN202210061756A CN114416369B CN 114416369 B CN114416369 B CN 114416369B CN 202210061756 A CN202210061756 A CN 202210061756A CN 114416369 B CN114416369 B CN 114416369B
Authority
CN
China
Prior art keywords
data
object file
pps
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.)
Active
Application number
CN202210061756.1A
Other languages
Chinese (zh)
Other versions
CN114416369A (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
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

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 in an instrument, comprising the following steps: s1, starting a system PPS service, packetizing according to the received external data type, 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 business logic processing, and writing the processed data into the corresponding object file; s3, communicating the data processed by the service logic in a PPS multiplexing mode, performing display logic processing on the data, and writing the processed data into a corresponding object file; and S4, communicating the data processed by the display logic in a PPS multiplexing I/O multiplexing mode, analyzing the data and displaying the data content. The invention can effectively solve the problems of system resource waste and influence on system performance caused by excessive reception of PPS data, and has more efficient efficiency and performance.

Description

Method and system for distributing data in instrument
Technical Field
The invention belongs to the technical field of vehicle-mounted instrument data processing, and particularly relates to an instrument internal data distribution method and system.
Background
Along with the coming of the automobile 'new four' age, intelligent automobiles are popular, as one of the interactive interfaces between drivers and automobiles, the information displayed by the instruments is more and more rich, the software is more and more complex, and the data to be transmitted inside the instruments are more and more. Due to the limitations of chip cost and performance, it is becoming more and more important how to ensure the efficiency of data transmission and improve the operation performance of the instrument.
The patent CN109932968A in China discloses a method for communication between processes of a vehicle-mounted system based on PPS service, which comprises the following steps: s1, starting the PPS service, and generating a PPS/folder directory 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, the data processing center subscribes and monitors all the communication files, and each functional module traverses all the subfolders, subscribes the communication files related to the data processing center and monitors the communication files. The PPS service is simple to start, the corresponding interface is perfect, the data receiving end does not need to wait for returning data, the data transmission is very fast, an information interaction channel is provided for each module of the system through a communication file, the process module of the vehicle-mounted system can stably and efficiently transmit data, and the 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 performed through PPS service, and basic communication among a power 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 the client has a blockage when waiting for receiving the PPS data, wastes system resources, and greatly influences system performance when the number of PPS is large.
Disclosure of Invention
In order to solve the problems, the invention provides a method and a system for distributing data in an instrument, which are used for solving the problems that the prior art cannot realize the waste of system resources and the influence on the system performance caused by receiving PPS data when the data are too much.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows: an in-meter data distribution method comprising the steps of:
S1, starting a system PPS service, packetizing according to the received external data type, 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 business logic processing, and writing the processed data into the corresponding object file;
S3, communicating the data processed by the service logic in a PPS multiplexing mode, performing display logic processing on the data, and writing the processed data into a corresponding object file;
and S4, communicating the data processed by the display logic in a PPS multiplexing I/O multiplexing mode, analyzing the data and displaying the data content.
As optimization, the communication mode of the PPS multiplexing I/O multiplexing in S3 and S4 is a multiplexing I/O multiplexing communication mode based on the select service.
As optimization, the external data are running and state data of the vehicle, including a speed signal, an electric quantity signal, a mileage signal and an ADAS signal, and each running and state data corresponds to one object file.
As optimization, the business logic processing adopts a system service read to read the data in the resource manager, processes each running and state data in the data into corresponding value data, and writes the corresponding value data into a corresponding object file.
As optimization, the display logic processing includes 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 PPS multiplexing I/O multiplexing, and a communication instruction is executed according to the update of the object file.
An in-meter data distribution system comprising,
The system comprises an SOC unit and an MCU unit, wherein the SOC unit is in communication connection with the MCU unit and is used for receiving data of the MCU unit;
the SOC unit may include a plurality of the SOC units,
The MCU receiving module is used for receiving the data of the MCU unit, packetizing the data, creating a plurality of object files according to the data types, and writing the data of the MCU unit into the object files correspondingly; establishing a resource manager for managing the object file;
The meter service processing module is used for reading the data in the resource manager, carrying out service 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 (pulse packet switching) multiplexing mode, and is used for receiving data of the instrument service processing module according to updating of the object file, carrying out display logic priority processing on the data, and writing the processed data into the corresponding object file;
the instrument display module is in communication connection with the instrument display logic processing module in a PPS multiplexing mode, and is used for receiving data of the instrument display logic processing module according to updating of the object file, analyzing the data and displaying the data content.
Compared with the prior art, the invention has the following advantages:
According to the invention, through classifying the data in the instrument, the MCU receiving module distributes the 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 multipath I/O multiplexing technology. The PPS multiplexing technology is characterized in that a receiving module receives a plurality of PPS signals by a select mode when receiving PPS, the receiving thread is blocked when the transmitting end does not update PPS information, and the receiving thread notifies a registered callback function to process the received information when the transmitting end updates any PPS signal, so that the efficiency and the performance are more efficient, and the problems of system resource waste and system performance influence caused by excessive data receiving of PPS data are solved.
Drawings
FIG. 1 is a diagram of an internal data distribution architecture of the present invention;
fig. 2 is a flow chart of data distribution according to the present invention.
Detailed Description
The invention will be further described with reference to the drawings and examples.
Examples: with reference to figures 1-2 of the drawings,
An in-meter data distribution method comprising the steps of:
S1, starting a system PPS service, packetizing 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 are running and state data of the vehicle, including a speed signal, an electric quantity signal, a mileage signal and an ADAS signal, and each running and state data corresponds to one object file.
S2, reading the data in the object file, performing business logic processing, and writing the processed data into the corresponding object file;
S3, communicating the data processed by the service logic in a PPS multiplexing mode, performing display logic processing on the data, and writing the processed data into a corresponding object file;
and S4, communicating the data processed by the display logic in a PPS multiplexing I/O multiplexing mode, analyzing the data and displaying the data content.
An in-meter data distribution system comprising,
The system comprises an SOC unit and an MCU unit, wherein the SOC unit is in communication connection with the MCU unit and is used for receiving data of the MCU unit;
the SOC unit may include a plurality of the SOC units,
The MCU receiving module is used for receiving the data of the MCU unit, packetizing the data, creating a plurality of object files according to the data types, and writing the data of the MCU unit into the object files correspondingly; establishing a resource manager for managing the object file;
The meter service processing module is used for reading the data in the resource manager, carrying out service 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 (pulse packet switching) multiplexing mode, and is used for receiving data of the instrument service processing module according to updating of the object file, carrying out display logic priority processing on the data, and writing the processed data into the corresponding object file;
the instrument display module is in communication connection with the instrument display logic processing module in a PPS multiplexing mode, and is used for receiving data of the instrument display logic processing module according to updating of the object file, analyzing the data and displaying the data content.
Specifically, the whole flow of the invention is that the SOC receives information transmitted by the MCU, and the MCU receiving module distributes data received from the MCU to the instrument service processing module in a resource manager mode. After the service logic processing, the meter service processing module sends data to the meter display logic module through the PPS multiplexing technology, the meter display logic module carries out display priority processing, and then the display data is sent to the display module through the PPS.
More specifically, as shown in FIG. 1,
The system comprises an SOC unit, an MCU receiving module, a resource manager "/dev/name/local/changan/resmgr/mcucom/business", a system service read and a data processing module, wherein the data transmitted by the MCU unit is received by the SOC unit through a serial port, the MCU receiving module in the SOC unit packetizes the data, the data required by instrument service logic processing are all integrated into a data packet, the resource manager "/dev/name/local/changan/resmgr/mcucom/business" is established, and the data in the business is directly read by the instrument service processing module at one time by adopting the system service read, and the data comprises: speed signal, electric quantity signal, mileage signal, ADAS signal, etc. The meter service processing module carries out corresponding service logic processing on the data to form speed, electric quantity, mileage, ADAS (advanced data access system) values, and writes the values into an object file, namely a PPS object. The receiving thread in the instrument display logic processing module realizes the I/O multiplexing function by using the selection service of the operating system, when the instrument service processing module writes a certain PPS Object, the operating system can inform the receiving thread to read the data in the corresponding PPS Object through the PPS bus, and the instrument display logic processing module can analyze the data in the PPS Object and perform display logic processing, mainly logic priority processing. After the display logic processing is completed, the data required to be displayed by the current interface is written into the corresponding PPS Object. And after the instrument display module receives the notification of the operating system that the PPS Object is written in, the instrument display module reads the PPS Object and processes the PPS Object, and finally, the display is completed.
The workflow diagram is shown in fig. 2:
The system PPS service is started.
All PPS objects that need to be used for PPS communication are created, and are established by type, such as establishing a vehicle speed PPS Object.
The MCU receiving module resource manager is created, "/dev/name/local/changan/resmgr/mcucom/business".
And the receiving thread of the instrument service processing module uses a read system interface to read the data in the resource manager established by the MCU receiving module.
And carrying out meter service logic processing on the received signals.
And writing the data processed by the business logic into the corresponding PPS Object.
If the PPS Object content has a write, the meter display logic receiving thread enters a receiving state from a waiting state and reads the data in the PPS Object. If there is no content 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 meter display logic module, namely the data which is required to be displayed currently, into the corresponding PPS Object.
If the PPS Object content has writing, the meter display receiving thread enters a receiving state from a waiting state and reads the data in the PPS Object. If there is no content input, the receiving thread enters a wait state.
The data in PPS Object is read and parsed.
The received display data is displayed through the display module
According to the invention, through classifying the data in the instrument, the MCU receiving module distributes the 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 multipath I/O multiplexing technology. The PPS multiplexing technology is characterized in that a receiving module receives a plurality of PPS signals by a select mode when receiving PPS, the receiving thread is blocked when the transmitting end does not update PPS information, and the receiving thread notifies a registered callback function to process the received information when the transmitting end updates any PPS signal, so that the efficiency and the performance are more efficient, and the problems of system resource waste and system performance influence caused by excessive data receiving of PPS data are solved.
Finally, it should be noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the technical solution, and those skilled in the art should understand that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the present invention, and all such modifications and equivalents are included in the scope of the claims.

Claims (5)

1. An instrument internal data distribution method is characterized by comprising the following steps:
S1, starting a system PPS service, packetizing according to the received external data type, 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 business logic processing, and writing the processed data into the corresponding object file;
S3, communicating the data processed by the service logic in a PPS 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 multipath I/O multiplexing mode, analyzing the data and displaying the data content;
the PPS multiplexing communication mode is a multiplexing communication mode based on a select service, namely, a receiving thread is adopted to process data, and when an object file is not updated, the receiving thread is blocked and is in a waiting state; when the object file is updated, the receiving thread notifies the registered callback function to process the data.
2. The method for distributing the data in the instrument according to claim 1, wherein the external data is driving and state data of the vehicle, the driving and state data 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.
3. The method for distributing data in meters according to claim 2, wherein the business logic process uses a system service read to read the data in the resource manager, and processes each running and status data therein into corresponding value data, and writes the corresponding value data into the corresponding object file.
4. The method for distributing data in a meter according to claim 1, wherein the display logic processing includes display logic priority processing, and the data to be displayed is written into the corresponding object file.
5. An in-meter data distribution system comprising,
The system comprises an SOC unit and an MCU unit, wherein the SOC unit is in communication connection with the MCU unit and is used for receiving data of the MCU unit;
the SOC unit may include a plurality of the SOC units,
The MCU receiving module is used for receiving the data of the MCU unit, packetizing the data, creating a plurality of object files according to the data types, and writing the data of the MCU unit into the object files correspondingly; establishing a resource manager for managing the object file;
The meter service processing module is used for reading the data in the resource manager, carrying out service 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 (pulse packet switching) multiplexing mode, and is used for receiving data of the instrument service processing module according to updating of the object file, carrying out display logic priority processing on the data, and writing the processed data into the corresponding object file;
the instrument display module is in communication connection with the instrument display logic processing module in a PPS (pulse signal processing) multiplexing mode, and is used for receiving data of the instrument display logic processing module according to updating of the object file, analyzing the data and displaying the data content;
the PPS multiplexing communication mode is a multiplexing communication mode based on a select service, namely, a receiving thread is adopted to process data, and when an object file is not updated, the receiving thread is blocked and is in a waiting state; when the object file is updated, the receiving thread notifies the registered callback function to process the data.
CN202210061756.1A 2022-01-19 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 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 2022-01-19 Method and system for distributing data in instrument

Publications (2)

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

Family

ID=81275044

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114416369B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114859868B (en) * 2022-05-11 2024-04-16 中国第一汽车股份有限公司 Error-proofing processing method for off-line configuration of 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 (2)

* Cited by examiner, † Cited by third party
Title
"Evaluation of Background Push Content Download Services to Mobile Devices Over DVB Networks";Francisco Fraile;《IEEE TRansactions on Broadcasting》;20140331;第60卷(第1期);第1-15页 *
"一个基于企业服务总线的API网关的设计与实现";韩雪;《中国优秀硕士学位论文全文数据库 信息科技辑》;20190515(2019年第05期);第I138-712页 *

Also Published As

Publication number Publication date
CN114416369A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
EP4171078A1 (en) Voice scene update method and device, and terminal, server and system
CN114416369B (en) Method and system for distributing data in instrument
CN101246678A (en) Multi-screen real-time signal processing method and system
CN109547243B (en) DDS-based cross-network-segment communication method
CN112445630A (en) Information interaction method and device and terminal equipment
CN102044092B (en) OBU transaction processing device and method
CN109635972A (en) Net about vehicle worksheet processing method and apparatus
CN110795369A (en) Method and terminal for realizing MIDO slave function based on GPIO pin
CN114500152B (en) Instrument SOA system and implementation method thereof
CN116383240A (en) Multi-database acceleration query method, device, equipment and medium based on FPGA
CN113752966B (en) Interaction method and device of vehicle machine system and computer readable medium
CN115129395A (en) SOMEIP code generation method and device, computer terminal and storage medium
CN112887149A (en) Service visual management system and management method thereof
CN115277886B (en) Vehicle data acquisition method based on data distribution service
CN112782467A (en) Intelligent electric meter based on embedded operating system
CN111858103A (en) Method for realizing compatibility of high-version and low-version communication of modules in software system
CN112613955A (en) Order processing method and device, electronic equipment and storage medium
CN116578655B (en) Data transmission system and control method thereof
CN210574324U (en) Bus electronic stop board information management system
CN115114051B (en) Node communication method, device, equipment and storage medium
CN115589576A (en) Vehicle machine and information processing method thereof, electronic equipment and storage medium
CN116980859A (en) Information synchronous interaction method for vehicle and cloud and related equipment
CN115658764A (en) Internet of vehicles data processing method, device, equipment and storage medium
CN114741076A (en) SOA service parameter fast definition method
CN116647545A (en) Vehicle data joint debugging test method and device, electronic 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
GR01 Patent grant
GR01 Patent grant