WO2019006938A1 - 车载控制系统及其数据处理方法 - Google Patents

车载控制系统及其数据处理方法 Download PDF

Info

Publication number
WO2019006938A1
WO2019006938A1 PCT/CN2017/109193 CN2017109193W WO2019006938A1 WO 2019006938 A1 WO2019006938 A1 WO 2019006938A1 CN 2017109193 W CN2017109193 W CN 2017109193W WO 2019006938 A1 WO2019006938 A1 WO 2019006938A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
priority queue
priority
information
control system
Prior art date
Application number
PCT/CN2017/109193
Other languages
English (en)
French (fr)
Inventor
胡仲阳
Original Assignee
深圳市沃特沃德股份有限公司
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 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Publication of WO2019006938A1 publication Critical patent/WO2019006938A1/zh

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4818Priority circuits therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • G06F13/26Handling requests for interconnection or transfer for access to input/output bus using interrupt with priority control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence

Definitions

  • the present invention relates to the field of vehicle technology, and in particular to an in-vehicle control system and a data processing method thereof.
  • the main control processor of the vehicle control system receives the data sent by the microprocessor (Micro Control Unit, MCU) in real time and processes it.
  • MCU Micro Control Unit
  • the main control processor needs to process in accordance with the receiving time of the data, resulting in insufficient data processing.
  • important data if it cannot be processed in time, it may bring security risks.
  • the main control processor is processing other data, which will cause the reverse information processing to lag, so that the reverse image cannot be started in time, and the safety of the reverse is not guaranteed, which seriously affects the user experience.
  • the main object of the present invention is to provide an in-vehicle control system and a data processing method thereof, which aim to improve the real-time performance of important data processing, thereby improving the safety of the vehicle.
  • an embodiment of the present invention provides a data processing method for an in-vehicle control system, where the in-vehicle control system includes a main control processor, including the following steps:
  • the master processor adds the received data to a corresponding priority queue, where the priority queue includes at least a high priority queue and a low priority queue;
  • the master processor processes the data in each priority queue in order from highest to lowest priority.
  • the onboard control system further includes a microprocessor, and the step of adding, by the main control processor, the received data to the corresponding priority queue further includes:
  • the microprocessor acquires in-vehicle information
  • the microprocessor processes the in-vehicle information and forms the data
  • the microprocessor transmits the data to the master processor.
  • the onboard control system further includes at least two communication interfaces, the main control processor and the microprocessor transmit the data through the communication interface, and the at least two communication interfaces respectively have different Priority information, the step of the main control processor adding the received data to the corresponding priority queue includes:
  • the master processor acquires priority information of the communication interface
  • the method before the step of adding, by the master processor, the received data to the corresponding priority queue, the method further includes:
  • the main control processor receives an operation instruction of a user
  • the master processor processes the operational instructions and forms the data.
  • the step of adding, by the master processor, the received data to the corresponding priority queue includes:
  • the master processor acquires priority information of the data
  • the master processor adds the data to a corresponding priority queue according to the priority information of the data.
  • the step of the master processor acquiring the priority information of the data includes:
  • the main control processor queries the corresponding priority information in the data and information comparison library according to the data.
  • the step of the master processor acquiring the priority information of the data includes:
  • the master processor parses a priority identifier in the data to obtain priority information of the data.
  • the method further includes: sorting data in the same priority queue according to a sequence of receiving time of the data.
  • the method further includes: sorting data in the same priority queue according to a priority order of the data.
  • the master processor processes each priority queue in order from highest to lowest priority.
  • the steps of the data include:
  • the master processor determines whether data exists in the high priority queue
  • the master processor interrupts processing data in the low priority queue
  • the master processor processes data in the high priority queue
  • the main control processor determines whether the data in the high priority queue is processed
  • An embodiment of the present invention further provides an in-vehicle control system, where the system includes a main control processor, and the main control processor includes:
  • Adding a module configured to add the received data to a corresponding priority queue, where the priority queue includes at least a high priority queue and a low priority queue;
  • the processing module is configured to process data in each priority queue in order from highest to lowest priority.
  • the onboard control system further includes a microprocessor, the microprocessor comprising:
  • a micro processing module configured to process the in-vehicle information and form the data
  • a transmission module configured to transmit the data to the main control processor.
  • the onboard control system further includes at least two communication interfaces, the main control processor and the microprocessor transmit the data through the communication interface, and the at least two communication interfaces respectively have different Priority information, wherein the adding module includes:
  • a first acquiring unit configured to acquire priority information of the communication interface
  • a first adding unit configured to add the data transmitted by the transmission module to a corresponding priority queue according to the priority information.
  • the adding module includes:
  • An instruction receiving module configured to receive an operation instruction of the user
  • a data forming module for processing the operation instructions and forming the data.
  • the adding module includes:
  • a second acquiring unit configured to acquire priority information of the data
  • a second adding unit configured to add the data to the corresponding priority queue according to the priority information of the data.
  • the second obtaining unit includes a query subunit, configured to query corresponding priority information in the data and information comparison library according to the data.
  • the second obtaining unit includes a parsing subunit, configured to parse a priority identifier in the data, and obtain priority information of the data.
  • the adding module further includes a sorting unit, configured to: sort data in the same priority queue according to a sequence of receiving times of the data.
  • the adding module further includes a sorting unit, configured to: sort data in the same priority queue according to a priority order of the data.
  • the processing module includes:
  • a first determining unit configured to determine whether the data exists in the high priority queue
  • An interrupting unit configured to interrupt processing of data in the low priority queue when the first determining unit determines that the data is in the high priority queue
  • a first execution unit configured to process data in the high priority queue
  • a second determining unit configured to determine whether the data in the high priority queue is processed
  • a second execution unit configured to resume processing data in the low priority queue when the second determining unit determines that the data in the high priority queue is processed.
  • a data processing method for an in-vehicle control system provided by an embodiment of the present invention, by grouping received data, adding them to different priority queues, and sequentially processing the priorities according to priorities from high to low.
  • the data in the queue enables important data to be prioritized, improves the real-time performance of important data processing, avoids blocking of important data, improves vehicle security, and improves user experience.
  • FIG. 1 is a flow chart showing an embodiment of a data processing method of an in-vehicle control system of the present invention
  • FIG. 2 is a schematic diagram showing the connection between a main control processor and a microprocessor in an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a priority queue in an embodiment of the present invention.
  • FIG. 5 is another schematic diagram of a priority queue in an embodiment of the present invention.
  • Figure 6 is a block diagram showing an embodiment of an in-vehicle control system of the present invention.
  • Figure 7 is a block diagram of the main control processor of Figure 6;
  • Figure 8 is a block diagram of the microprocessor of Figure 6;
  • FIG. 9 is another block diagram of the main control processor of FIG. 6;
  • FIG. 10 is a schematic block diagram of an adding module of a main control processor of an in-vehicle control system according to an embodiment of the present invention
  • FIG. 11 is another block diagram of an adding module of a main control processor of an in-vehicle control system according to an embodiment of the present invention.
  • FIG. 12 is another block diagram of an adding module of a main control processor of an in-vehicle control system according to an embodiment of the present invention
  • FIG. 13 is a schematic block diagram of a processing module of a main control processor of an in-vehicle control system according to an embodiment of the present invention.
  • the in-vehicle control system includes a main control processor, and the method includes the following steps:
  • the main control processor adds the received data to the corresponding priority queue.
  • the main control processor processes the data in each priority queue in order according to the priority from high to low.
  • the data processing method of the in-vehicle control system of the embodiment of the present invention is mainly applied to an in-vehicle control system, and can of course be applied to other systems or devices, such as a terminal device, a server, and the like.
  • the in-vehicle control system of the embodiment of the present invention may be based on an Android system, and may also be based on other systems, which is not limited by the present invention.
  • the priority queues in the embodiments of the present invention refer to queues having different priorities. There are at least two priority queues, such as two priority queues including a high priority queue and a low priority queue, or three priority queues including a high priority queue, a medium priority queue, and a low priority queue, or The first priority queue, the second priority queue, the third priority queue, the fourth priority queue, the total number of priority queues, and the like are included.
  • step S11 after receiving the data, the main control processor classifies the data and adds the data to the corresponding priority queue.
  • the priority queue is a first input first output (FIFO) queue.
  • the data received by the master processor includes in-vehicle information.
  • the in-vehicle control system further includes a microprocessor.
  • the method further comprises: the microprocessor acquiring the in-vehicle information, processing the in-vehicle information and forming the data, and transmitting the data to the main control processor.
  • the master processor classifies the data and adds the data to the corresponding priority queue.
  • the vehicle information includes reversing information, adaptive cruise control (ACC) information, tire pressure information, and air Status information (including air conditioning temperature, wind, switch, etc.), fuel consumption information, FM frequency information, ON/OFF information, and serial bus system (ControLLer Area Net-work Bus, CANBus) information.
  • ACC adaptive cruise control
  • air Status information including air conditioning temperature, wind, switch, etc.
  • fuel consumption information including air conditioning temperature, wind, switch, etc.
  • FM frequency information including air conditioning temperature, wind, switch, etc.
  • ON/OFF information including air conditioning temperature, wind, switch, etc.
  • serial bus system ControLLer Area Net-work Bus, CANBus
  • the data received by the master processor includes an operation instruction of the user.
  • the method further includes: the main control processor receives an operation instruction of the user, processes the operation instruction, and forms data.
  • the master processor then adds the data to the corresponding priority queue.
  • the operation instructions include an air conditioning operation instruction, a radio operation instruction, a multimedia operation instruction, and the like.
  • the onboard control system includes at least two communication interfaces, the control processor and the microprocessor transmitting data over the communication interface, wherein the at least two communication interfaces each have different priority information.
  • the main control processor acquires the priority information of the communication interface, and adds the data transmitted by the micro control unit to the corresponding priority according to the priority information of the communication interface. In the level queue.
  • the main control processor first acquires the priority information of the communication interface that receives the data, and then adds the data to the corresponding priority queue according to the priority information of the communication interface, that is, the priority is high.
  • the data received by the communication interface is added to the high priority queue, and the data received by the communication interface with the lower priority is added to the low priority queue.
  • the main control processor and the microprocessor communicate through two universal asynchronous receivers (Universal Asynchronous Receiver/Transmitter, UART) serial ports.
  • the two UART serial ports are UART serial port 1 and UART serial port 2, respectively.
  • the data transmitted between the two is UART data.
  • UART serial port 1 priority is higher than UART serial port 2 priority, and UART serial port 1 is used to transmit important data related to emergency and safety related, such as ACC information, reversing information, tire pressure information, etc.;
  • UART serial port 2 To transmit regular data, such as air conditioning status information, fuel consumption information, FM frequency information and other data.
  • the priority of the data may be predefined, and when the data is received, the priority information of the data is first obtained, and then the data is added to the corresponding priority team according to the priority information of the data. In the column, the data with high priority is added to the high priority queue, and the data with lower priority is added to the low priority queue.
  • the data and priority information comparison library may be preset, and the main control processor queries the corresponding priority information in the data and priority information comparison library according to the received data.
  • the reversing information and the ACC information correspond to a high priority
  • the tire pressure information and the speed information correspond to a medium priority
  • the air conditioning state information, the fuel consumption information, and the FM frequency information correspond to a low priority.
  • a priority identifier may be added to the data, and the master processor parses the priority identifier in the received data to obtain the priority information of the data. For example, the priority identifier “1” represents high priority, and the priority identifier “0” represents low priority.
  • the data and priority information comparison library is preset in the main control processor, wherein the reverse information and the ACC information correspond to high priority, the tire pressure information and the speed information correspond to the medium priority, the air conditioning temperature information, and the fuel consumption. Information and FM frequency information correspond to low priority.
  • main control processor when the main control processor receives the ACC information and the reverse information, it is added to the high priority queue; when the main control processor receives the tire pressure information and the speed information, it is added to the medium priority. In the queue; when the air conditioner temperature information, fuel consumption information, and FM frequency information are received, they are added to the low priority queue.
  • the master processor can also sort the data in the same priority queue.
  • the master processor may sort the data in the same priority queue according to the order in which the data is received, that is, the data received first is received first, and the received data is followed.
  • the master processor can order the data in the same priority queue in the order of the priority of the data.
  • nine priority levels are defined for the data, and data of the first to third priorities is added to the high priority queue, and the data is sorted according to the order of the first, second, and third priorities; Data to the sixth priority is added to the medium priority queue, and the data therein is sorted in the order of the fourth, fifth, and sixth priorities; the data of the seventh to ninth priority is added to the low priority The data is sorted in the queue and in the order of the seventh, eighth, and ninth priorities. Thus, even in the same priority queue, more important data can be processed with higher priority.
  • the master processor preferentially processes the data in the priority queue with a higher priority, and processes the data in the lower priority queue when the data in the higher priority queue is processed. data. And in the process of processing the data in the priority queue with lower priority, when new data is added to the priority queue with higher priority, the data in the priority queue with lower priority is suspended, and the priority is prioritized. The new data added in the priority queue with higher priority is processed, and the data in the lower priority queue is processed after the processing is completed. For the data in the same priority queue, it is processed in the order of the order.
  • the main control processor determines whether there is data in the high priority queue; if there is data in the high priority queue, interrupts processing the data in the low priority queue. Then, the data in the high priority queue is processed; then, the data in the high priority queue is processed; if the data in the high priority queue is processed, the data in the low priority queue is restored.
  • the main control processor preferentially processes the reverse information and the ACC information in the high priority queue, and then processes the tire pressure information and the speed information in the priority queue when the processing is completed, when the processing is completed.
  • the air conditioning temperature information, fuel consumption information, and FM frequency information in the low priority queue are then processed.
  • the reverse information is preferentially processed.
  • the ACC information is preferentially processed; when the tire pressure information is received and added to the medium priority queue , the tire pressure information is preferentially processed.
  • the data processing method in the embodiment of the present invention adds the data to the different priority queues by grouping the received data, and sequentially processes the data in each priority queue according to the priority from high to low, thereby making the important Data can be prioritized, improving the real-time performance of important data processing, avoiding the blocking of important data, improving vehicle security and improving user experience.
  • the main control processor 10 includes an adding module 11 and a processing module 12, as shown in FIG. 7, wherein the adding module 11 is configured to add the received data to a corresponding priority queue, and the processing module 12 is configured to use the priority.
  • the data in each priority queue is processed in order from high to low.
  • the vehicle control system of the embodiment of the present invention may be based on an Android system or may be based on Other systems are not limited by the present invention.
  • the priority queues in the embodiments of the present invention refer to queues having different priorities.
  • the priority queue is a FIFO queue.
  • the data received by the main control processor 10 includes in-vehicle information, including reversing information, adaptive cruise control (ACC) information, tire pressure information, air conditioning status information (including air conditioning temperature, wind power, Information such as switches, fuel consumption information, FM frequency information, ON/OFF information, and ControLLer Area Net-work Bus (CANBus) information.
  • in-vehicle information including reversing information, adaptive cruise control (ACC) information, tire pressure information, air conditioning status information (including air conditioning temperature, wind power, Information such as switches, fuel consumption information, FM frequency information, ON/OFF information, and ControLLer Area Net-work Bus (CANBus) information.
  • ACC adaptive cruise control
  • tire pressure information including air conditioning temperature, wind power
  • air conditioning status information including air conditioning temperature, wind power
  • Information such as switches, fuel consumption information, FM frequency information, ON/OFF information, and ControLLer Area Net-work Bus (CANBus) information.
  • CANBus ControLLer Area Net-work Bus
  • the in-vehicle control system further includes a microprocessor 20, which includes an acquisition module 21, a micro-processing module 2212, and a transmission module 23, wherein the acquisition module 21 is configured to acquire in-vehicle information;
  • the micro-processing module 2212 is configured to process the in-vehicle information and form data, and the transmission module 23 is configured to transmit the data to the main control processor 10.
  • the data received by the main control processor 10 includes an operation instruction of the user, and the operation instruction includes an air conditioning operation instruction, a radio operation instruction, a multimedia operation instruction, and the like.
  • the main control processor 10 further includes an instruction receiving module 13 and a data forming module 14, wherein: the instruction receiving module 13 is configured to receive an operation instruction of the user, and the data forming module 14 is configured to use the operation instruction. Process and form data.
  • the in-vehicle control system includes at least two communication interfaces, and the control processor and the microprocessor 20 transmit data over the communication interface, wherein the at least two communication interfaces each have different priority information.
  • the adding module 11 includes the first obtaining unit 111 and the first adding unit 112 as shown in FIG.
  • the first obtaining unit 111 is configured to acquire priority information of the communication interface that receives the data when the data received by the main control processor 10 is data formed by the in-vehicle information
  • the first adding unit 112 is configured to use the communication interface according to the communication interface.
  • the priority information adds the data to the corresponding priority queue, that is, the data received by the communication interface with the higher priority is added to the high priority queue, and the data received by the communication interface with the lower priority is added to the lower priority. In the queue.
  • the main control processor 10 and the microprocessor 20 communicate through two Universal Asynchronous Receiver/Transmitter (UART) serial ports, and the two UART serial ports are UART serial port 1 and UART serial port 2 respectively.
  • UART serial port 1 priority is higher than UART serial port 2 priority, and UART serial port 1 is used to transmit important data related to emergency and safety related, such as ACC information, reversing information, tire pressure information, etc.;
  • UART serial port 2 To transmit regular data, such as air conditioning status information, fuel consumption information, FM frequency information and other data.
  • the adding module 1110 is added to the high priority queue; when the main control processor 10 When the UART serial port 2 receives data such as air conditioning status information, fuel consumption information, and FM frequency information, the adding module 1110 is added to the low priority queue.
  • the priority of the data may be predefined.
  • the adding module 11 includes the second obtaining unit 113 and the second adding unit 114 as shown in FIG.
  • the second obtaining unit 113 is configured to: after receiving the data, obtain the priority information of the data; the second adding unit 114 is configured to add the data to the corresponding priority queue according to the priority information of the data, That is, the data with higher priority is added to the high priority queue, and the data with lower priority is added to the low priority queue.
  • the data and priority information comparison library may be preset, and the second obtaining unit 113 includes a query subunit, configured to query the corresponding priority information in the data and priority information comparison library according to the received data.
  • the reversing information and the ACC information correspond to a high priority
  • the tire pressure information and the speed information correspond to a medium priority
  • the air conditioning state information, the fuel consumption information, and the FM frequency information correspond to a low priority.
  • the priority identifier may be added to the data, and the second obtaining unit 113 includes a parsing subunit, configured to parse the priority identifier of the received data, and obtain priority information of the data.
  • the priority identifier “1” represents high priority
  • the priority identifier “0” represents low priority.
  • the preset data and the priority information are compared in the main control processor 10, wherein the reverse information and the ACC information correspond to a high priority, the tire pressure information and the speed information correspond to a medium priority, the air conditioning temperature information, and the fuel consumption.
  • Information and FM frequency information correspond to low priority.
  • the adding module 11 is added to the high priority queue; when the main control processor 10 receives the tire pressure information and the speed information, it is added. Mode Block 11 is added to the medium priority queue; when the air conditioner temperature information, fuel consumption information, and FM frequency information are received, the adding module 11 is added to the low priority queue.
  • the adding module 11 further includes a sorting unit 115 for sorting data in the same priority queue.
  • the sorting unit 115 may sort the data in the same priority queue according to the order in which the data is received, that is, the data is received first and the received data is followed. In other embodiments, the sorting unit 115 may sort the data in the same priority queue in the order of the priority of the data.
  • the second adding unit 114 adds the data of the first to third priorities to the high priority queue, and the sorting unit 115 follows the order of the first, second, and third priorities.
  • the data is sorted; the second adding unit 114 adds the data of the fourth to sixth priorities to the medium priority queue, and the sorting unit 115 performs the data in the order of the fourth, fifth, and sixth priorities.
  • the sorting unit 115 may also be added to the adding module 11 shown in FIG.
  • the processing module 12 preferentially processes the data in the priority queue with higher priority, and processes the data in the lower priority queue when the data in the higher priority queue is processed. And in the process of processing the data in the priority queue with lower priority, when new data is added to the priority queue with higher priority, the data in the priority queue with lower priority is suspended, and the priority is prioritized. The new data added in the priority queue with higher priority is processed, and the data in the lower priority queue is processed after the processing is completed. For the data in the same priority queue, it is processed in the order of the order.
  • the priority module includes a high priority queue and a low priority queue.
  • the processing module 12 includes a first determining unit 31, an interrupting unit 32, a first executing unit 33, a second determining unit 34, and a The second execution unit 35, wherein: the first determining unit 31 is configured to determine whether data exists in the high priority queue; and the interrupting unit 32 is configured to: when the first determining unit 31 determines that there is data in the high priority queue, the interrupt processing is low.
  • the first execution unit 33 is configured to process the data in the high priority queue when the interrupt unit 32 interrupts processing the data in the low priority queue;
  • the second determining unit 34 is configured to: Determining whether the data in the high priority queue is processed;
  • the second executing unit 35 is configured to resume processing the data in the low priority queue when the second determining unit 34 determines that the data in the high priority queue is processed.
  • the processing module 12 preferentially processes the reverse information and the ACC information in the high priority queue, and then processes the tire pressure information and the speed information in the priority queue after the processing is completed, when the processing is completed.
  • the air conditioning temperature information, fuel consumption information and FM frequency information in the low priority queue are processed.
  • the reverse information is preferentially processed.
  • the ACC information is preferentially processed; when the tire pressure information is received and added to the medium priority queue , the tire pressure information is preferentially processed.
  • the in-vehicle control system of the embodiment of the present invention adds the data to each priority queue by grouping the received data, and sequentially processes the data in each priority queue according to the priority from high to low, thereby making it important.
  • Data can be prioritized, improving the real-time performance of important data processing, avoiding the blocking of important data, improving vehicle security and improving user experience.
  • the present invention includes apparatus that is directed to performing one or more of the operations described herein. These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer. These devices have computer programs stored therein that are selectively activated or reconfigured.
  • Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and coupled to a bus, respectively, including but not limited to any Types of disks (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory) , EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.
  • a readable medium includes any medium that is stored or transmitted by a device (eg, a computer) in a readable form.
  • steps, measures, and solutions in the various operations, methods, and processes that have been discussed in the present invention may be alternated, changed, combined, or deleted. Further, other steps, measures, and schemes of the various operations, methods, and processes that have been discussed in the present invention may be alternated, modified, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and solutions in the prior art having various operations, methods, and processes disclosed in the present invention may also be alternated, modified, rearranged, decomposed, combined, or deleted.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种车载控制系统及其数据处理方法,所述方法包括以下步骤:主控处理器将接收到的数据添加到对应的优先级队列中(S11);主控处理器按照优先级从高到低的顺序依次处理各优先级队列中的数据(S12),从而使得重要数据能够被优先处理,提高了重要数据处理的实时性。

Description

车载控制系统及其数据处理方法 技术领域
本发明涉及车载技术领域,特别是涉及到一种车载控制系统及其数据处理方法。
背景技术
车辆运行时,车辆控制系统的主控处理器实时接收微处理器(Micro Control Unit,MCU)发送的数据,并进行处理。当数据量较大时,则会导致数据堆积,主控处理器需要按照数据的接收时间依次进行处理,从而导致数据处理得不够及时。特别是对于重要数据,如果不能及时处理,有可能带来安全隐患。例如,当开始倒车时,主控处理器正在处理其它数据,就会导致倒车信息处理滞后,从而不能及时启动倒车影像,无法保证倒车的安全性,严重影响用户体验。
因此,如何提高重要数据处理的实时性,进而提高车辆的安全性,是当前亟需解决的技术问题。
技术问题
本发明的主要目的为提供一种车载控制系统及其数据处理方法,旨在提高重要数据处理的实时性,进而提高车辆的安全性。
问题的解决方案
技术解决方案
为达以上目的,本发明实施例提出一种车载控制系统的数据处理方法,所述车载控制系统包括主控处理器,包括以下步骤:
所述主控处理器将接收到的数据添加到对应的优先级队列中,所述优先级队列至少包括高优先级队列和低优先级队列;
所述主控处理器按照优先级从高到低的顺序依次处理各优先级队列中的数据。
可选地,所述车载控制系统还包括微处理器,所述主控处理器将接收到的数据添加到对应的优先级队列中的步骤之前还包括:
所述微处理器获取车载信息;
所述微处理器对所述车载信息进行处理并形成所述数据;
所述微处理器向所述主控处理器传输所述数据。
可选地,所述车载控制系统还包括至少两个通信接口,所述主控处理器与所述微处理器通过所述通信接口传输所述数据,所述至少两个通信接口分别具有不同的优先级信息,所述主控处理器将接收到的数据添加到对应的优先级队列中的步骤包括:
所述主控处理器获取所述通信接口的优先级信息;
根据所述优先级信息将所述微控制单元传输的所述数据添加到对应的优先级队列中。
可选地,所述主控处理器将接收到的数据添加到对应的优先级队列中的步骤之前还包括:
所述主控处理器接收用户的操作指令;
所述主控处理器对所述操作指令进行处理并形成所述数据。
可选地,所述主控处理器将接收到的数据添加到对应的优先级队列中的步骤包括:
所述主控处理器获取所述数据的优先级信息;
所述主控处理器根据所述数据的优先级信息将所述数据添加到对应的优先级队列中。
可选地,所述主控处理器获取所述数据的优先级信息的步骤包括:
所述主控处理器根据所述数据在数据与信息对照库中查询对应的优先级信息。
可选地,所述主控处理器获取所述数据的优先级信息的步骤包括:
所述主控处理器解析所述数据中的优先级标识,获取所述数据的优先级信息。
可选地,所述方法还包括:对同一优先级队列中的数据,按照所述数据的接收时间的先后顺序进行排序。
可选地,所述方法还包括:对同一优先级队列中的数据,按照所述数据的优先级的高低顺序进行排序。
可选地,所述主控处理器按照优先级从高到低的顺序依次处理各优先级队列中 的数据的步骤包括:
所述主控处理器判断所述高优先级队列中是否存在数据;
若存在,所述主控处理器则中断处理所述低优先级队列中的数据;
所述主控处理器处理所述高优先级队列中的数据;
所述主控处理器判断所述高优先级队列中的数据是否处理完毕;
若处理完毕,则恢复处理所述低优先级队列中的数据。
本发明实施例同时提出一种车载控制系统,所述系统包括主控处理器,所述主控处理器包括:
添加模块,用于将接收到的数据添加到对应的优先级队列中,所述优先级队列至少包括高优先级队列和低优先级队列;
处理模块,用于按照优先级从高到低的顺序依次处理各优先级队列中的数据。
可选地,所述车载控制系统包括还包括微处理器,所述微处理器包括:
获取模块,用于获取车载信息;
微处理模块,用于对所述车载信息进行处理并形成所述数据;
传输模块,用于向所述主控处理器传输所述数据。
可选地,所述车载控制系统还包括至少两个通信接口,所述主控处理器与所述微处理器通过所述通信接口传输所述数据,所述至少两个通信接口分别具有不同的优先级信息,其中,所述添加模块包括:
第一获取单元,用于获取所述通信接口的优先级信息;
第一添加单元,用于根据所述优先级信息将所述传输模块传输的所述数据添加到对应的优先级队列中。
可选地,所述添加模块包括:
指令接收模块,用于接收用户的操作指令;
数据形成模块,用于对所述操作指令进行处理并形成所述数据。
可选地,所述添加模块包括:
第二获取单元,用于获取所述数据的优先级信息;
第二添加单元,用于根据所述数据的优先级信息将所述数据添加到对应的优先级队列中。
可选地,所述第二获取单元包括查询子单元,其用于根据所述数据在数据与信息对照库中查询对应的优先级信息。
可选地,所述第二获取单元包括解析子单元,其用于解析所述数据中的优先级标识,获取所述数据的优先级信息。
可选地,所述添加模块还包括排序单元,所述排序单元用于:对同一优先级队列中的数据,按照所述数据的接收时间的先后顺序进行排序。
可选地,所述添加模块还包括排序单元,所述排序单元用于:对同一优先级队列中的数据,按照所述数据的优先级的高低顺序进行排序。
可选地,所述处理模块包括:
第一判断单元,用于判断所述高优先级队列中是否存在所述数据;
中断单元,用于在所述第一判断单元判定所述高优先级队列中有所述数据时,中断处理所述低优先级队列中的数据;
第一执行单元,用于处理所述高优先级队列中的数据;
第二判断单元,用于判断所述高优先级队列中的数据是否处理完毕;
第二执行单元,用于在第二判断单元判定所述高优先级队列中的数据处理完毕时,恢复处理所述低优先级队列中的数据。
发明的有益效果
有益效果
本发明实施例所提供的一种车载控制系统的数据处理方法,通过对接收到的数据进行分组,添加到不同的优先级队列中,并按照优先级从高到低的顺序依次处理各优先级队列中的数据,从而使得重要数据能够被优先处理,提高了重要数据处理的实时性,避免了重要数据的阻塞,提高了车辆的安全性,提升了用户体验。
对附图的简要说明
附图说明
图1是本发明的车载控制系统的数据处理方法一实施例的流程图;
图2是本发明实施例中主控处理器与微处理器的连接示意图;
图3是本发明实施例中优先级队列的示意图;
图4是本发明实施例中的数据与优先级信息对照库的示例;
图5是本发明实施例中优先级队列的另一示意图;
图6是本发明的车载控制系统一实施例的模块示意图;
图7是图6中的主控处理器的模块示意图;
图8是图6中的微处理器的模块示意图;
图9是图6中的主控处理器的又一模块示意图;
图10是本发明实施例中车载控制系统的主控处理器的添加模块的模块示意图;
图11是本发明实施例中车载控制系统的主控处理器的添加模块的又一模块示意图;
图12是本发明实施例中车载控制系统的主控处理器的添加模块的又一模块示意图;
图13是本发明实施例中车载控制系统的主控处理器的处理模块的模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
实施该发明的最佳实施例
本发明的最佳实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包 括一个或更多个相关联的列出项的全部或任一单元和全部组合。
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。
参照图1,提出本发明的车载控制系统的数据处理方法一实施例,所述车载控制系统包括主控处理器,所述方法包括以下步骤:
S11、主控处理器将接收到的数据添加到对应的优先级队列中。
S12、主控处理器按照优先级从高到低的顺序依次处理各优先级队列中的数据。
本发明实施例的车载控制系统的数据处理方法,主要应用于车载控制系统,当然也可以应用于其它系统或设备,如终端设备、服务器等。本发明实施例的车载控制系统可以基于安卓(Android)系统,也可以基于其它系统,本发明对此不做限定。
本发明实施例所述的优先级队列,是指具有不同优先级的队列。优先级队列至少有两个,如包括高优先级队列和低优先级队列共两个优先级队列,或者包括高优先级队列、中优先级队列和低优先级队列共三个优先级队列,或者包括第一优先级队列、第二优先级队列、第三优先级队列、第四优先级队列......共多个优先级队列,等等。
步骤S11中,主控处理器接收到数据后,立即对该数据进行分类,将该数据添加到对应的优先级队列中。本发明实施例中,所述优先级队列为先入先出(First Input First Output,FIFO)队列。
可选地,主控处理器接收的数据包括车载信息。此时,车载控制系统还包括微处理器,步骤S11之前还包括:微处理器获取车载信息,对车载信息进行处理并形成数据,并向主控处理器传输该数据。主控处理器接收到数据后,立即对该数据进行分类,将该数据添加到对应的优先级队列中。其中,车载信息包括倒车信息、自适应巡航控制(Adaptive Cruise Control,ACC)信息、胎压信息、空 调状态信息(包括空调温度、风力、开关等信息)、油耗信息、FM频率信息、开/关(ON/OFF)信息、串行总线系统(ControLLer Area Net-work Bus,CANBus)信息等。
可选地,主控处理器接收的数据包括用户的操作指令。此时,步骤S11之前还包括:主控处理器接收用户的操作指令,对操作指令进行处理并形成数据。然后,主控处理器将该数据添加到对应的优先级队列中。所述操作指令包括空调操作指令、收音机操作指令、多媒体操作指令等。
在某些实施例中,车载控制系统包括至少两个通信接口,控处理器与微处理器通过通信接口传输数据,其中,至少两个通信接口分别具有不同的优先级信息。此时,当主控处理器接收的数据为车载信息形成的数据时,主控处理器获取通信接口的优先级信息,根据通信接口的优先级信息将微控制单元传输的数据添加到对应的优先级队列中。
例如,主控处理器接收到数据后,首先获取接收该数据的通信接口的优先级信息,然后根据通信接口的优先级信息将数据添加到对应的优先级队列中,即:将优先级高的通信接口接收的数据添加到高优先级队列中,将优先级低的通信接口接收的数据添加到低优先级队列中。
举例而言:
如图2所示,主控处理器与微处理器通过两个通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)串口进行通讯,两个UART串口分别为UART串口1和UART串口2,二者之间传输的数据为UART数据。定义UART串口1的优先级高于UART串口2的优先级,且UART串口1用来传输传送紧急的和安全相关的重要数据,如ACC信息、倒车信息、胎压信息等数据;UART串口2用来传输常规数据,如空调状态信息、油耗信息、FM频率信息等数据。
如图3所示,当主控处理器的UART串口1接收到ACC信息、倒车信息、胎压信息等数据时,则添加到高优先级队列中;当主控处理器的UART串口2接收到空调状态信息、油耗信息、FM频率信息等数据时,则添加到低优先级队列中。
在其它实施例中,可以预先定义数据的优先级,当接收到数据后,首先获取数据的优先级信息,然后根据数据的优先级信息将该数据添加到对应的优先级队 列中,即:将优先级高的数据添加到高优先级队列中,将优先级低的数据添加到低优先级队列中。
可选地,可以预先设置数据与优先级信息对照库,主控处理器根据接收的数据在数据与优先级信息对照库中查询对应的优先级信息。例如:倒车信息和ACC信息对应高优先级,胎压信息和速度信息对应中优先级,空调状态信息、油耗信息和FM频率信息对应低优先级。
可选地,可以在数据中添加优先级标识,主控处理器解析接收到的数据中的优先级标识,就能获取该数据的优先级信息。例如:优先级标识“1”代表高优先级,优先级标识“0”代表低优先级。
举例而言:
如图4所示,主控处理器中预设了数据与优先级信息对照库,其中,倒车信息和ACC信息对应高优先级,胎压信息、速度信息对应中优先级,空调温度信息、油耗信息和FM频率信息对应低优先级。
如图5所示,当主控处理器接收到ACC信息、倒车信息时,则添加到高优先级队列中;当主控处理器接收到胎压信息和速度信息时,则添加到中优先级队列中;当接收到空调温度信息、油耗信息和FM频率信息时,则添加到低优先级队列中。
进一步地,对同一优先级队列中的数据,主控处理器也可以对其进行排序。在一些实施例中,主控处理器可以对同一优先级队列中的数据按照数据的接收时间的先后顺序进行排序,即:先接收到数据排在前面,后接收到的数据排在后面。在另一些实施例中,主控处理器可以对同一优先级队列中的数据按照数据的优先级的高低顺序进行排序。
例如,对数据定义九个优先级,第一到第三优先级的数据添加到高优先级队列中,且按照第一、第二、第三优先级的顺序对其中的数据进行排序;第四到第六优先级的数据添加到中优先级队列中,且按照第四、第五、第六优先级的顺序对其中的数据进行排序;第七到第九优先级的数据添加到低优先级队列中,且按照第七、第八、第九优先级的顺序对其中的数据进行排序。从而,即使在同一优先级队列中,更加重要的数据也能够得到更优先的处理。
步骤12中,主控处理器优先处理优先级较高的优先级队列中的数据,当优先级较高的优先级队列中的数据处理完毕时,才处理优先级较低的优先级队列中的数据。并且在处理优先级较低的优先级队列中的数据过程中,当优先级较高的优先级队列中又添加了新数据时,则暂停处理优先级较低的优先级队列中的数据,优先处理优先级较高的优先级队列中添加的新数据,待处理完毕后再继续处理优先级较低的优先级队列中的数据。对于同一优先级队列中的数据,则按照排列顺序依次处理。
以优先级队列包括高优先级队列和低优先级队列为例,主控处理器判断高优先级队列中是否存在数据;若高优先级队列中存在数据,则中断处理低优先级队列中的数据,转而处理高优先级队列中的数据;接着判断高优先级队列中的数据是否处理完毕;若高优先级队列中的数据处理完毕,则恢复处理低优先级队列中的数据。
举例而言,如图5所示,主控处理器优先处理高优先级队列中的倒车信息和ACC信息,当处理完毕后再处理中优先级队列中的胎压信息和速度信息,当处理完毕后再处理低优先级队列中的空调温度信息、油耗信息和FM频率信息。在处理中优先级队列中的数据的过程中,当接收到倒车信息并添加到高优先级队列中时,则优先处理该倒车信息。在处理低优先级队列中的数据的过程中,当接收到ACC信息并添加到高优先级队列中时,则优先处理该ACC信息;当接收到胎压信息并添加到中优先级队列中时,则优先处理该胎压信息。
本发明实施例的数据处理方法,通过对接收到的数据进行分组,添加到不同的优先级队列中,并按照优先级从高到低的顺序依次处理各优先级队列中的数据,从而使得重要数据能够被优先处理,提高了重要数据处理的实时性,避免了重要数据的阻塞,提高了车辆的安全性,提升了用户体验。
参照图6,提出本发明的车载控制系统一实施例,所述系统包括主控处理器10。该主控处理器10如图7所示,包括添加模块11和处理模块12,其中,添加模块11用于将接收到的数据添加到对应的优先级队列中,处理模块12用于按照优先级从高到低的顺序依次处理各优先级队列中的数据。
本发明实施例的车载控制系统,可以基于安卓(Android)系统,也可以基于 其它系统,本发明对此不做限定。
本发明实施例所述的优先级队列,是指具有不同优先级的队列。本发明实施例中,所述优先级队列为FIFO队列。优先级队列至少有两个,如包括高优先级队列和低优先级队列共两个优先级队列,或者包括高优先级队列、中优先级队列和低优先级队列共三个优先级队列,或者包括第一优先级队列、第二优先级队列、第三优先级队列、第四优先级队列......共多个优先级队列,等等。
可选地,主控处理器10接收的数据包括车载信息,该车载信息包括倒车信息、自适应巡航控制(Adaptive Cruise Control,ACC)信息、胎压信息、空调状态信息(包括空调温度、风力、开关等信息)、油耗信息、FM频率信息、开/关(ON/OFF)信息、串行总线系统(ControLLer Area Net-work Bus,CANBus)信息等。
此时,车载控制系统还包括微处理器20,该微处理器20如图8所示,包括获取模块21、微处理模块2212和传输模块23,其中:获取模块21,用于获取车载信息;微处理模块2212,用于对车载信息进行处理并形成数据;传输模块23,用于向主控处理器10传输该数据。
可选地,主控处理器10接收的数据包括用户的操作指令,该操作指令包括空调操作指令、收音机操作指令、多媒体操作指令等。此时,如图9所示,主控处理器10还包括指令接收模块13和数据形成模块14,其中:指令接收模块13用于接收用户的操作指令,数据形成模块14用于对该操作指令进行处理并形成数据。
在某些实施例中,车载控制系统包括至少两个通信接口,控处理器与微处理器20通过通信接口传输数据,其中,至少两个通信接口分别具有不同的优先级信息。此时,添加模块11如图10所示,包括第一获取单元111和第一添加单元112。其中:第一获取单元111,用于当主控处理器10接收的数据为车载信息形成的数据时,获取接收该数据的通信接口的优先级信息;第一添加单元112,用于根据通信接口的优先级信息将数据添加到对应的优先级队列中,即:将优先级高的通信接口接收的数据添加到高优先级队列中,将优先级低的通信接口接收的数据添加到低优先级队列中。
举例而言:
如图2所示,主控处理器10与微处理器20通过两个通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)串口进行通讯,两个UART串口分别为UART串口1和UART串口2,二者之间传输的数据为UART数据。定义UART串口1的优先级高于UART串口2的优先级,且UART串口1用来传输传送紧急的和安全相关的重要数据,如ACC信息、倒车信息、胎压信息等数据;UART串口2用来传输常规数据,如空调状态信息、油耗信息、FM频率信息等数据。
如图3所示,当主控处理器10的UART串口1接收到ACC信息、倒车信息、胎压信息等数据时,添加模块1110则添加到高优先级队列中;当主控处理器10的UART串口2接收到空调状态信息、油耗信息、FM频率信息等数据时,添加模块1110则添加到低优先级队列中。
在其它实施例中,可以预先定义数据的优先级,此时,添加模块11如图11所示,包括第二获取单元113和第二添加单元114。其中:第二获取单元113,用于当接收到数据后,获取该数据的优先级信息;第二添加单元114,用于根据数据的优先级信息将该数据添加到对应的优先级队列中,即:将优先级高的数据添加到高优先级队列中,将优先级低的数据添加到低优先级队列中。
可选地,可以预先设置数据与优先级信息对照库,第二获取单元113包括查询子单元,其用于根据接收的数据在数据与优先级信息对照库中查询对应的优先级信息。例如:倒车信息和ACC信息对应高优先级,胎压信息和速度信息对应中优先级,空调状态信息、油耗信息和FM频率信息对应低优先级。
可选地,可以在数据中添加优先级标识,第二获取单元113包括解析子单元,其用于解析接收到的数据的优先级标识,获取该数据的优先级信息。例如:优先级标识“1”代表高优先级,优先级标识“0”代表低优先级。
举例而言:
如图4所示,主控处理器10中预设数据与优先级信息对照库,其中,倒车信息和ACC信息对应高优先级,胎压信息、速度信息对应中优先级,空调温度信息、油耗信息和FM频率信息对应低优先级。
如图5所示,当主控处理器10接收到ACC信息、倒车信息时,添加模块11则添加到高优先级队列中;当主控处理器10接收到胎压信息和速度信息时,添加模 块11则添加到中优先级队列中;当接收到空调温度信息、油耗信息和FM频率信息时,添加模块11则添加到低优先级队列中。
进一步地,如图12所示,添加模块11还包括排序单元115,该排序单元115用于对同一优先级队列中的数据进行排序。在一些实施例中,排序单元115可以对同一优先级队列中的数据按照数据的接收时间的先后顺序进行排序,即:先接收到数据排在前面,后接收到的数据排在后面。在另一些实施例中,排序单元115可以对同一优先级队列中的数据按照数据的优先级的高低顺序进行排序。
例如,对数据定义九个优先级,第二添加单元114将第一到第三优先级的数据添加到高优先级队列中,排序单元115按照第一、第二、第三优先级的顺序对其中的数据进行排序;第二添加单元114将第四到第六优先级的数据添加到中优先级队列中,排序单元115按照第四、第五、第六优先级的顺序对其中的数据进行排序;第二添加单元114将第七到第九优先级的数据添加到低优先级队列中,排序单元115按照第七、第八、第九优先级的顺序对其中的数据进行排序。从而,即使在同一优先级队列中,更加重要的数据也能够得到更优先的处理。
在其它实施例中,也可以在图10所示的添加模块11中增加排序单元115。
处理模块12优先处理优先级较高的优先级队列中的数据,当优先级较高的优先级队列中的数据处理完毕时,才处理优先级较低的优先级队列中的数据。并且在处理优先级较低的优先级队列中的数据过程中,当优先级较高的优先级队列中又添加了新数据时,则暂停处理优先级较低的优先级队列中的数据,优先处理优先级较高的优先级队列中添加的新数据,待处理完毕后再继续处理优先级较低的优先级队列中的数据。对于同一优先级队列中的数据,则按照排列顺序依次处理。
以优先级队列包括高优先级队列和低优先级队列为例,处理模块12如图13所示,包括第一判断单元31、中断单元32、第一执行单元33、第二判断单元34和第二执行单元35,其中:第一判断单元31,用于判断高优先级队列中是否存在数据;中断单元32,用于在第一判断单元31判定高优先级队列中有数据时,中断处理低优先级队列中的数据;第一执行单元33,用于当中断单元32中断处理低优先级队列中的数据时,处理高优先级队列中的数据;第二判断单元34,用于 判断高优先级队列中的数据是否处理完毕;第二执行单元35,用于在第二判断单元34判定高优先级队列中的数据处理完毕时,恢复处理低优先级队列中的数据。
举例而言,如图5所示,处理模块12优先处理高优先级队列中的倒车信息和ACC信息,当处理完毕后再处理中优先级队列中的胎压信息和速度信息,当处理完毕后再处理低优先级队列中的空调温度信息、油耗信息和FM频率信息。在处理中优先级队列中的数据的过程中,当接收到倒车信息并添加到高优先级队列中时,则优先处理该倒车信息。在处理低优先级队列中的数据的过程中,当接收到ACC信息并添加到高优先级队列中时,则优先处理该ACC信息;当接收到胎压信息并添加到中优先级队列中时,则优先处理该胎压信息。
本发明实施例的车载控制系统,通过对接收到的数据进行分组,添加到不同的优先级队列中,并按照优先级从高到低的顺序依次处理各优先级队列中的数据,从而使得重要数据能够被优先处理,提高了重要数据处理的实时性,避免了重要数据的阻塞,提高了车辆的安全性,提升了用户体验。
本领域技术人员可以理解,本发明包括涉及用于执行本申请中所述操作中的一项或多项的设备。这些设备可以为所需的目的而专门设计和制造,或者也可以包括通用计算机中的已知设备。这些设备具有存储在其内的计算机程序,这些计算机程序选择性地激活或重构。这样的计算机程序可以被存储在设备(例如,计算机)可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何类型的介质中,所述计算机可读介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存储器)、EPROM(Erasable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically Erasable Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,可读介质包括由设备(例如,计算机)以能够读的形式存储或传输信息的任何介质。
本技术领域技术人员可以理解,可以用计算机程序指令来实现这些结构图和/ 或框图和/或流图中的每个框以及这些结构图和/或框图和/或流图中的框的组合。本技术领域技术人员可以理解,可以将这些计算机程序指令提供给通用计算机、专业计算机或其他可编程数据处理方法的处理器来实现,从而通过计算机或其他可编程数据处理方法的处理器来执行本发明公开的结构图和/或框图和/或流图的框或多个框中指定的方案。
本技术领域技术人员可以理解,本发明中已经讨论过的各种操作、方法、流程中的步骤、措施、方案可以被交替、更改、组合或删除。进一步地,具有本发明中已经讨论过的各种操作、方法、流程中的其他步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。进一步地,现有技术中的具有与本发明中公开的各种操作、方法、流程中的步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种车载控制系统的数据处理方法,所述车载控制系统包括主控处理器,其特征在于,包括以下步骤:
    所述主控处理器将接收到的数据添加到对应的优先级队列中,所述优先级队列至少包括高优先级队列和低优先级队列;
    所述主控处理器按照优先级从高到低的顺序依次处理各优先级队列中的数据。
  2. 根据权利要求1所述的车载控制系统的数据处理方法,其特征在于,所述车载控制系统还包括微处理器,所述主控处理器将接收到的数据添加到对应的优先级队列中的步骤之前还包括:
    所述微处理器获取车载信息;
    所述微处理器对所述车载信息进行处理并形成所述数据;
    所述微处理器向所述主控处理器传输所述数据。
  3. 根据权利要求2所述的车载控制系统的数据处理方法,其特征在于,所述车载控制系统还包括至少两个通信接口,所述主控处理器与所述微处理器通过所述通信接口传输所述数据,所述至少两个通信接口分别具有不同的优先级信息,所述主控处理器将接收到的数据添加到对应的优先级队列中的步骤包括:
    所述主控处理器获取所述通信接口的优先级信息;
    根据所述优先级信息将所述微控制单元传输的所述数据添加到对应的优先级队列中。
  4. 根据权利要求1所述的车载控制系统的数据处理方法,其特征在于,所述主控处理器将接收到的数据添加到对应的优先级队列中的步骤之前还包括:
    所述主控处理器接收用户的操作指令;
    所述主控处理器对所述操作指令进行处理并形成所述数据。
  5. 根据权利要求1所述的车载控制系统的数据处理方法,其特征在于,所述主控处理器将接收到的数据添加到对应的优先级队列中的 步骤包括:
    所述主控处理器获取所述数据的优先级信息;
    所述主控处理器根据所述数据的优先级信息将所述数据添加到对应的优先级队列中。
  6. 根据权利要求5所述的车载控制系统的数据处理方法,其特征在于,所述主控处理器获取所述数据的优先级信息的步骤包括:
    所述主控处理器根据所述数据在数据与优先级信息对照库中查询对应的优先级信息。
  7. 根据权利要求5所述的车载控制系统的数据处理方法,其特征在于,所述主控处理器获取所述数据的优先级信息的步骤包括:
    所述主控处理器解析所述数据中的优先级标识,获取所述数据的优先级信息。
  8. 根据权利要求1所述的车载控制系统的数据处理方法,其特征在于,所述方法还包括:对同一优先级队列中的数据,按照所述数据的接收时间的先后顺序进行排序。
  9. 根据权利要求1所述的车载控制系统的数据处理方法,其特征在于,所述方法还包括:对同一优先级队列中的数据,按照所述数据的优先级的高低顺序进行排序。
  10. 根据权利要求1所述的车载控制系统的数据处理方法,其特征在于,所述主控处理器按照优先级从高到低的顺序依次处理各优先级队列中的数据的步骤包括:
    所述主控处理器判断所述高优先级队列中是否存在数据;
    若存在,所述主控处理器则中断处理所述低优先级队列中的数据;
    所述主控处理器处理所述高优先级队列中的数据;
    所述主控处理器判断所述高优先级队列中的数据是否处理完毕;若处理完毕,则恢复处理所述低优先级队列中的数据。
  11. [根据细则91更正 14.03.2018]
    一种车载控制系统,其特征在于,包括主控处理器,所述主控处 理器包括:
    添加模块,用于将接收到的数据添加到对应的优先级队列中,所述优先级队列至少包括高优先级队列和低优先级队列;
    处理模块,用于按照优先级从高到低的顺序依次处理各优先级队列中的数据。
  12. [根据细则91更正 14.03.2018]
    根据权利要求11所述的车载控制系统,其特征在于,所述车载控制系统包括还包括微处理器,所述微处理器包括:
    获取模块,用于获取车载信息;
    微处理模块,用于对所述车载信息进行处理并形成所述数据;
    传输模块,用于向所述主控处理器传输所述数据。
  13. [根据细则91更正 14.03.2018]
    根据权利要求12所述的车载控制系统,其特征在于,所述车载控制系统还包括至少两个通信接口,所述主控处理器与所述微处理器通过所述通信接口传输所述数据,所述至少两个通信接口分别具有不同的优先级信息,其中,所述添加模块包括:
    第一获取单元,用于获取所述通信接口的优先级信息;
    第一添加单元,用于根据所述优先级信息将所述传输模块传输的所述数据添加到对应的优先级队列中。
  14. [根据细则91更正 14.03.2018]
    根据权利要求11所述的车载控制系统的数据处理方法,其特征在于,所述主控处理器还包括:
    指令接收模块,用于接收用户的操作指令;
    数据形成模块,用于对所述操作指令进行处理并形成所述数据。
  15. [根据细则91更正 14.03.2018]
    根据权利要求11所述的车载控制系统,其特征在于,所述添加模块包括:
    第二获取单元,用于获取所述数据的优先级信息;
    第二添加单元,用于根据所述数据的优先级信息将所述数据添加到对应的优先级队列中。
  16. [根据细则91更正 14.03.2018]
    根据权利要求15所述的车载控制系统,其特征在于,所述第二获取单元包括查询子单元,其用于根据所述数据在数据与信息对照 库中查询对应的优先级信息。
  17. [根据细则91更正 14.03.2018]
    根据权利要求15所述的车载控制系统,其特征在于,所述第二获取单元包括解析子单元,其用于解析所述数据中的优先级标识,获取所述数据的优先级信息。
  18. [根据细则91更正 14.03.2018]
    根据权利要求11所述的车载控制系统,其特征在于,所述添加模块还包括排序单元,所述排序单元用于:对同一优先级队列中的数据,按照所述数据的接收时间的先后顺序进行排序。
  19. [根据细则91更正 14.03.2018]
    根据权利要求11所述的车载控制系统,其特征在于,所述添加模块还包括排序单元,所述排序单元用于:对同一优先级队列中的数据,按照所述数据的优先级的高低顺序进行排序。
  20. [根据细则91更正 14.03.2018]
    根据权利要求11所述的车载控制系统的数据处理方法,其特征在于,所述处理模块包括:
    第一判断单元,用于判断所述高优先级队列中是否存在所述数据;
    中断单元,用于在所述第一判断单元判定所述高优先级队列中有所述数据时,中断处理所述低优先级队列中的数据;
    第一执行单元,用于处理所述高优先级队列中的数据;
    第二判断单元,用于判断所述高优先级队列中的数据是否处理完毕;
    第二执行单元,用于在第二判断单元判定所述高优先级队列中的数据处理完毕时,恢复处理所述低优先级队列中的数据。
PCT/CN2017/109193 2017-07-03 2017-11-02 车载控制系统及其数据处理方法 WO2019006938A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710533637.0 2017-07-03
CN201710533637.0A CN107273201A (zh) 2017-07-03 2017-07-03 车载控制系统及其数据处理方法

Publications (1)

Publication Number Publication Date
WO2019006938A1 true WO2019006938A1 (zh) 2019-01-10

Family

ID=60069773

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109193 WO2019006938A1 (zh) 2017-07-03 2017-11-02 车载控制系统及其数据处理方法

Country Status (2)

Country Link
CN (1) CN107273201A (zh)
WO (1) WO2019006938A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273201A (zh) * 2017-07-03 2017-10-20 深圳市沃特沃德股份有限公司 车载控制系统及其数据处理方法
CN109640294B (zh) * 2019-01-15 2021-06-01 北京百度网讯科技有限公司 无人车数据传输方法、装置、系统及存储介质
US11157004B2 (en) * 2019-04-01 2021-10-26 GM Global Technology Operations LLC Real-time control system for a vehicle and a method of executing control of the vehicle via the real-time control system
CN111818148B (zh) * 2020-06-30 2023-04-28 深圳市海邻科信息技术有限公司 车载事件的处理方法、系统、装置和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049324A (zh) * 2013-01-08 2013-04-17 浙江大学 一种基于优先级位图的AUTOSAR NvM读写任务的管理方法
CN103918242A (zh) * 2011-10-03 2014-07-09 高通股份有限公司 用于基于可靠性信息来过滤和处理接收的车辆对等传输的方法和装置
CN104991816A (zh) * 2015-06-25 2015-10-21 浪潮(北京)电子信息产业有限公司 一种进程调度方法及装置
CN107273201A (zh) * 2017-07-03 2017-10-20 深圳市沃特沃德股份有限公司 车载控制系统及其数据处理方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100371896C (zh) * 2005-08-22 2008-02-27 威盛电子股份有限公司 计算机系统及其开机方法
JP5124375B2 (ja) * 2008-07-18 2013-01-23 Kddi株式会社 情報処理装置
CN103457875A (zh) * 2013-08-29 2013-12-18 上海永畅信息科技有限公司 车联网中基于多优先级的消息队列控制方法
CN104468400B (zh) * 2014-10-21 2017-07-14 中国科学技术大学苏州研究院 一种保障车联网紧急事件消息实时性的方法
CN104580469A (zh) * 2015-01-12 2015-04-29 深圳楼兰辉煌科技有限公司 一种基于文件队列存储及传输的车联网系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103918242A (zh) * 2011-10-03 2014-07-09 高通股份有限公司 用于基于可靠性信息来过滤和处理接收的车辆对等传输的方法和装置
CN103049324A (zh) * 2013-01-08 2013-04-17 浙江大学 一种基于优先级位图的AUTOSAR NvM读写任务的管理方法
CN104991816A (zh) * 2015-06-25 2015-10-21 浪潮(北京)电子信息产业有限公司 一种进程调度方法及装置
CN107273201A (zh) * 2017-07-03 2017-10-20 深圳市沃特沃德股份有限公司 车载控制系统及其数据处理方法

Also Published As

Publication number Publication date
CN107273201A (zh) 2017-10-20

Similar Documents

Publication Publication Date Title
WO2019006938A1 (zh) 车载控制系统及其数据处理方法
WO2017166646A1 (zh) 一种车载语音控制方法和装置、设备
CN110445810B (zh) 基于多级反馈队列的车辆控制系统网络安全检测方法
CN106534337A (zh) 一种车载信息系统的调试系统及其调试方法
CN113347273A (zh) 一种车载以太网数据转换方法、装置、设备及介质
CN101714925A (zh) 通信设备端口管理方法和系统、管理设备和通信设备
JP2015149715A (ja) 設定可能な通信システム及び通信方法
CN106341388A (zh) 一种车辆远程监控系统及其联网控制方法
US10157158B2 (en) Method and apparatus for distributed computing using controller area network protocols
CN109649304A (zh) 一种远程控制车辆的方法、设备及系统
WO2024066512A1 (zh) 车载网络通信事件滤波方法、装置、设备和介质
CN115167351B (zh) 一种控制器功能更新方法、系统、车辆和服务器
WO2023051057A1 (zh) 芯片升级方法及装置
CN103413413B (zh) 面向多车型的新能源汽车综合运行管理平台
CN110430223B (zh) 基于多级反馈队列的车辆控制系统网络安全检测系统
CN114499958B (zh) 控制方法及装置、车辆及存储介质
CN115955669A (zh) 一种基于ota的车辆数据升级方法、装置及车载终端
CN116260674A (zh) 车辆数据传输方法、装置、车辆及计算机可读存储介质
CN110764926B (zh) 一种1553b总线rt端消息堆栈串并交叉查询方法
CN114430424A (zh) 车联网大数据的处理方法、装置与存储介质
CN107979605B (zh) 一种安全的大数据网络通信方法
CN102256276B (zh) 路测信息处理方法及装置
CN106528467B (zh) 用于控制器安全消息处理的构架和设备
CN102508805B (zh) 一种dvd机芯解码串口的通信方法
CN109150241A (zh) 一种单片机间通信方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17916726

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17916726

Country of ref document: EP

Kind code of ref document: A1