Method, device, equipment and medium for vehicle control communication based on intelligent central control system
Through the vehicle control communication method of the intelligent central control system, using fixed-length full-duplex SPI media and interrupt lines, the problem of insufficient timeliness of vehicle system bus communication information transmission is solved, and efficient and safe information transmission is achieved.
Patent Information
- Application Number
- CN202211512004.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-11-29
AI Technical Summary
The vehicle system bus communication information transmission has insufficient timeliness, resulting in information transmission delays and non-real-time problems.
The vehicle control communication method based on the intelligent central control system is used to transmit information to the vehicle micro control unit MCU through the vehicle CAN bus, and the fixed-length full-duplex SPI medium is used to interact with the charging status SOC end of the vehicle battery to analyze and Feed back communication information and add interrupt lines to improve communication timeliness and security.
It improves the timeliness and security of vehicle system bus communication information transmission, reduces the system response burden, and ensures the real-time and integrity of communication data.
Smart Images

Figure CN116032733B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of vehicle control communication, and in particular, relates to a method, device, equipment and medium for vehicle control communication based on an intelligent central control system. Background Art
[0002] As the vehicle-mounted system develops towards informatization and intelligence, the amount of information transmitted by the vehicle-mounted bus has increased, and the carrier has been upgraded from CAN / LIN bus protocol communication to CAN-FD, Flexray, and Ethernet bus protocol communication. However, at present, when the vehicle-mounted bus communication information is transmitted, there is often a certain period of delay, and the timeliness of the bus communication information transmission is not enough. In view of this, the present application proposes a method, device, equipment and medium for vehicle control communication based on an intelligent central control system to solve the above-mentioned problem of vehicle system bus communication information transmission. Summary of the invention
[0003] The present application provides a method, device, equipment and medium for vehicle control communication based on an intelligent central control system to improve the timeliness of vehicle system bus communication information transmission.
[0004] The purpose of this application and the solution of its technical problems are achieved by adopting the following technical solutions.
[0005] The present application provides a method for vehicle control communication based on an intelligent central control system, which is applied to vehicle-side communication transmission. The vehicle control communication method includes:
[0006] S1, transmit the acquired communication information to the vehicle micro control unit MCU through the vehicle-side CAN bus;
[0007] S2, after acquiring the communication information, the vehicle microcontroller unit MCU exchanges the processed communication information with the charging state SOC terminal of the vehicle battery based on the fixed-length full-duplex SPI medium;
[0008] S3, based on the acquired processed communication information, the charging state SOC terminal of the vehicle battery transmits the parsed communication information to the vehicle application APP of the vehicle system;
[0009] S4, based on the acquired communication information, the vehicle application APP feeds back the processed communication information to the vehicle micro control unit MCU via a fixed-length full-duplex SPI medium.
[0010] Optionally, before transmitting the acquired communication information to the vehicle microcontroller unit MCU through the vehicle-side CAN bus, the following steps are also included:
[0011] The vehicle-side CAN bus communication information is filtered to remove invalid signals in the communication information.
[0012] Optionally, before filtering the vehicle-side CAN bus communication information to filter out invalid signals in the communication information, the method further includes:
[0013] Pick up the valid signal in the vehicle-side CAN bus communication information.
[0014] Optionally, based on a fixed-length full-duplex SPI medium, the vehicle microcontroller unit MCU exchanges the processed communication information with the state of charge SOC of the vehicle battery, including:
[0015] Based on the format of the fixed-length full-duplex SPI medium and the communication connection mode between the vehicle microcontroller unit MCU and the charging state SOC terminal of the vehicle battery, in the uplink communication information, the charging state SOC terminal of the vehicle battery actively inquires the message status of the vehicle microcontroller unit MCU; or
[0016] In the downlink communication information channel, the message status of the vehicle micro control unit MCU actively inquires about the status of the charging state SOC terminal of the vehicle battery.
[0017] Optionally, based on a fixed-length full-duplex SPI medium, the vehicle microcontroller unit MCU exchanges the processed communication information with the charging state SOC terminal of the vehicle battery, further comprising:
[0018] When the downlink communication information is transmitted to the charging state SOC terminal of the vehicle battery, the vehicle micro control unit MCU transmits the downlink communication information to the charging state SOC terminal of the vehicle battery in the form of a bus structure CAN MSG, and communicates with the charging state SOC terminal of the vehicle battery through the bus structure CAN MSG;
[0019] When the downlink communication information is transmitted to the vehicle micro control unit MCU, the vehicle micro control unit MCU parses the downlink communication information and sends it to the CAN bus according to the type of the downlink communication information.
[0020] Optionally, the vehicle battery state of charge SOC acquisition communication information includes:
[0021] The charging status SOC end of the vehicle battery obtains the bus structure CAN MSG through the fixed-length full-duplex SPI medium, and uploads the obtained bus structure CAN MSG to the vehicle hardware abstraction layer Vehicle hal to read or write the downlink communication information.
[0022] Optionally, transmitting the parsed communication information to a vehicle application APP in the vehicle system includes:
[0023] The vehicle hardware abstraction layer Vehicle hal reads or writes downlink communication information through the charging state SOC of the vehicle battery in the interface mode of character device node; and transmits the parsed communication information to the vehicle application APP.
[0024] Optionally, transmitting the parsed communication information to the vehicle application APP includes:
[0025] The vehicle hardware abstraction layer Vehicle hal parses the bus structure CAN MSG according to the DBC protocol to obtain multiplexed Signal communication information;
[0026] Get the multiplexed Signal communication information generated by the analysis, and encapsulate each multiplexed Signal communication information to generate the corresponding property;
[0027] The vehicle hardware abstraction layer Vehicle hal notifies the property property to the car service framework Carservice through the HIDL interface adapter system according to different interfaces;
[0028] The car service framework Carservice notifies the vehicle application APP in the form of interface definition language AIDL.
[0029] The present application also provides a vehicle control communication device based on an intelligent central control system, which is applied to vehicle-side communication transmission. The vehicle control communication device includes:
[0030] The vehicle-side CAN bus is used to transmit the acquired communication information to the vehicle microcontroller unit MCU through the vehicle-side CAN bus;
[0031] The vehicle microcontroller unit MCU is used to exchange the processed communication information with the charging state SOC terminal of the vehicle battery based on the fixed-length full-duplex SPI medium after acquiring the communication information;
[0032] The charging state SOC terminal of the vehicle battery is used to transmit the parsed communication information to the vehicle application APP of the vehicle system based on the acquired processed communication information;
[0033] The vehicle application APP is used to feed back the processed communication information to the vehicle micro control unit MCU through a fixed-length full-duplex SPI medium based on the acquired communication information.
[0034] The present application also provides an electronic device, the electronic device comprising:
[0035] a memory for storing non-transitory computer-readable instructions; and
[0036] The processor is used to run the computer-readable instructions, so that the computer-readable instructions implement the above-mentioned method when executed by the processor.
[0037] The present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on a device, the device executes the method described above.
[0038] Compared with the prior art, the present application has obvious advantages and beneficial effects. By means of the above technical solution, the present application has at least one of the following advantages and beneficial effects:
[0039] 1. The present application provides a method for vehicle control communication based on an intelligent central control system, which is applied to vehicle-side communication transmission. The vehicle control communication method includes: transmitting the acquired communication information to the vehicle microcontroller unit MCU through the vehicle-side CAN bus; after acquiring the communication information, based on a fixed-length full-duplex SPI medium, the vehicle microcontroller unit MCU exchanges the processed communication information with the charging state SOC end of the vehicle battery for communication information; based on the acquired processed communication information, the charging state SOC end of the vehicle battery transmits the parsed communication information to the vehicle application APP of the vehicle system; based on the acquired communication information, the vehicle application APP feeds back the processed communication information to the vehicle microcontroller unit MCU through a fixed-length full-duplex SPI medium. The present application is based on a fixed-length full-duplex SPI medium and the exchange of communication information between the MCU and the SOC end, so as to improve the timeliness of the transmission of communication information on the vehicle system bus.
[0040] 2. Before transmitting the acquired communication information to the vehicle microcontroller unit MCU through the vehicle-side CAN bus, the present application filters the vehicle-side CAN bus communication information to filter out invalid signals in the communication information; and before filtering the vehicle-side CAN bus communication information to filter out invalid signals in the communication information, the present application picks up valid signals in the vehicle-side CAN bus communication information. By first picking up valid signals in the vehicle-side CAN bus communication information and then filtering the picked up valid signals in the vehicle-side CAN bus communication information, the present application can effectively prevent the accumulation response of the system caused by frequent signal changes, thereby reducing the burden of system response and communication.
[0041] 3. This application is based on the format of the fixed-length full-duplex SPI medium, and the communication connection method between the vehicle microcontroller unit MCU and the charging status SOC end of the vehicle battery. In the uplink communication information, the charging status SOC end of the vehicle battery actively inquires the message status of the vehicle microcontroller unit MCU; or in the downlink communication information channel, the message status of the vehicle microcontroller unit MCU actively inquires the status of the charging status SOC end of the vehicle battery. This application adds two communication interrupt lines on the basis of the traditional SPI medium to notify the other party of the interaction whether there is any communication information sent, and through the two communication interrupt lines, both parties can actively initiate interaction, on the one hand, improving the timeliness of communication; at the same time, using a fixed-length full-duplex protocol, by setting blank frames at the vehicle microcontroller unit MCU and the charging status SOC end of the vehicle battery respectively, and making full use of the advantages of SPI medium transmission, the security and efficiency of communication transmission are improved.
[0042] Fourth, the present application is based on a fixed-length full-duplex SPI medium, and the vehicle microcontroller unit MCU also includes that when the downlink communication information is transmitted to the charging state SOC end of the vehicle battery, the vehicle microcontroller unit MCU transmits the downlink communication information to the charging state SOC end of the vehicle battery in the form of a bus structure CAN MSG, and communicates with the charging state SOC end of the vehicle battery through the bus structure CAN MSG; when the downlink communication information is transmitted to the vehicle microcontroller unit MCU, the vehicle microcontroller unit MCU parses the downlink communication information and sends it to the CAN bus according to the downlink communication information type. This application uses CAN MSG for communication interaction and uses SOC data processing resources to quickly parse the bus structure CAN MSG; the vehicle microcontroller unit MCU performs a transparent transmission operation on CAN MSG, which, on the one hand, ensures the real-time nature of communication. On the other hand, the bus structure CANMSG covers all current signals to ensure the integrity of the communication data information. And. For the vehicle microcontroller unit MCU to transmit the communication information to the SOC end in the form of a bus structure CAN MSG, the communication problem of the vehicle microcontroller unit MCU can be effectively located based on the snapshot method.
[0043] 5. This application transmits the parsed communication information to the vehicle application APP, and parses the bus structure CAN MSG according to the DBC protocol through the vehicle hardware abstraction layer Vehicle hal to obtain the multiplexed Signal communication information; obtains the multiplexed Signal communication information generated by the parsing, and encapsulates each multiplexed Signal communication information to generate the corresponding attribute property; the vehicle hardware abstraction layer Vehicle hal notifies the attribute property to the car service framework Carservice through the HIDL interface adapter system according to different interfaces; the car service framework Carservice notifies the vehicle application APP in the form of the interface definition language AIDL. This application uses the dbc database file in the DBC protocol to represent the communication data information between the vehicle bus CAN nodes, which can monitor and analyze the message data on the CAN network, and can also be used to simulate a certain CAN node, and complete the creation of bus communication signals, message data, and bus CAN nodes; then associates and links them, and completes the bus communication signals, message data, and bus CAN nodes through consistency checks to ensure the consistency of the communication objects in the DBC database file and the internal relationships between the two communicating parties.
[0044] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flow chart of a vehicle control communication method based on an intelligent central control system according to an embodiment of the present application;
[0046] Figure 2 It is a structural schematic diagram of a vehicle control communication device based on an intelligent central control system according to an embodiment of the present application;
[0047] Figure 3 It is a flow chart of a vehicle control communication electronic device based on an intelligent central control system according to an embodiment of the present application;
[0048] Figure 4 It is a structural schematic diagram of another embodiment of the present application in which a vehicle-side CAN bus is connected to a charging state SOC terminal of a vehicle battery and a vehicle micro control unit MCU;
[0049] Figure 5 It is a schematic diagram of the communication and interaction between the state of charge SOC end master device of the vehicle battery and the vehicle micro control unit MCU slave device through frames in one embodiment of the present application.
[0050] Figure 6 It is a structural diagram of the communication interaction between the state of charge SOC end master device of the vehicle battery and the vehicle micro control unit MCU slave device in one embodiment of the present application.
[0051] Figure 7 It is a structural diagram of the pickup and filtering design of the communication signal transmitted in the vehicle-side CAN bus in one embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects proposed according to the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0053] The present application provides a method for vehicle control communication based on an intelligent central control system, which is applied to vehicle-side communication transmission. The vehicle control communication method includes:
[0054] The acquired communication information is transmitted to the vehicle microcontroller unit MCU via the vehicle-side CAN bus;
[0055] After acquiring the communication information, the vehicle microcontroller unit MCU exchanges the processed communication information with the charging state SOC terminal of the vehicle battery based on the fixed-length full-duplex SPI medium;
[0056] Based on the acquired processed communication information, the state of charge SOC terminal of the vehicle battery transmits the parsed communication information to the vehicle application APP of the vehicle system;
[0057] Based on the acquired communication information, the vehicle application APP feeds back the processed communication information to the vehicle microcontroller unit MCU via a fixed-length full-duplex SPI medium.
[0058] It should be noted that during the communication transmission process between the CAN / CANFD bus and the vehicle microcontroller unit MCU, the signal will be picked up and filtered. For example, the effective signal is picked up and the interference information in the effective signal is filtered out, which effectively prevents the communication signal in the bus from being maliciously attacked by external interference signals. A fixed-length full-duplex SPI medium is used between the vehicle microcontroller unit MCU and the charging state SOC end of the vehicle battery. Two interrupt lines are added on the basis of the traditional SPI to notify the other party of the communication interaction whether a message has been sent. Both parties of the communication can actively initiate communication interaction through the addition of the two interrupt lines, thereby improving the timeliness of the communication. At the same time, the fixed-length full-duplex protocol can fully utilize the SPI medium for communication transmission. For example, the SPI full-duplex high-efficiency protocol format uses data frames, response frames, and blank frames. When the uplink communication data information and the downlink communication data information are carried out synchronously, according to the principle of SPI full-duplex high-efficiency protocol communication data information exchange, there are 8 combinations, such as the uplink communication data information is the data frame (or response frame, or blank frame) corresponding to the downlink communication data information, where the response frame is a response mechanism to ensure that the data frames of both parties of the communication can correctly receive the data frames; the blank frame is the communication data exchange information of the data frame or response frame of the communication interaction party when there is no valid information in the uplink communication data information or the downlink communication data information. When the downlink communication data information is transmitted to the vehicle microcontroller unit MCU, the vehicle microcontroller unit MCU parses the communication data information and then sends it to the CAN / CANFD bus according to the communication signal data information type; when the uplink communication data information is transmitted to the charging state SOC end of the vehicle battery, the charging state SOC end of the vehicle battery provides the vehicle hardware abstraction layer (Vehicle hal) with the interface of the character device node for read and write operations, and the vehicle hardware abstraction layer (Vehicle hal) parses the data and transmits it to the vehicle application APP for processing.
[0059] In the embodiment of the present application, when the vehicle microcontroller unit MCU and the charging state SOC end of the vehicle battery communicate and interact in the manner of the bus structure CAN MSG, the CAN MSG is quickly parsed through the CAN MSG communication method and the powerful data processing resources of the SOC are utilized; the vehicle microcontroller unit MCU only performs transparent transmission of the CAN MSG, thereby ensuring the real-time interaction between the two communicating parties. In addition, since the CAN MSG method covers all signals of the current communication interaction, the integrity of the communication data information is ensured. The vehicle microcontroller unit MCU transmits to the charging state SOC end of the vehicle battery in the manner of CAN MSG, and through the snapshot function, the complete vehicle information can be transmitted to the charging state SOC end of the vehicle battery.
[0060] In the embodiment of the present application, at the state of charge SOC end of the vehicle battery, the CAN MSG is split into multiplexed Signal communication information and notified to the vehicle application APP in the form of corresponding properties, effectively completing data parsing. At the same time, for special needs, such as the need to report the communication signal at a fixed frequency, the throttling function throttle() is used for filtering when the communication signal changes frequently to meet the communication performance requirements.
[0061] In the embodiment of the present application, the car service framework Carservice notifies the vehicle application APP in the interface definition language AIDL, and the vehicle application APP matches and displays according to the DBC signal corresponding to the vehicle attribute property. In the case of CAN bus communication signal overload or affecting system performance, the throttle function throttle() is used for filtering, filtering is performed in a fixed periodic reporting mode or a delayed reporting mode, and the reporting frequency of CAN bus communication data information is changed.
[0062] Optionally, before transmitting the acquired communication information to the vehicle microcontroller unit MCU through the vehicle-side CAN bus, the following steps are also included:
[0063] The vehicle-side CAN bus communication information is filtered to remove invalid signals in the communication information.
[0064] It should be noted that the filter may be a filter in a functional or physical form, or a combination of the two, to filter out invalid signals (including interference signals) in the communication information.
[0065] Optionally, before filtering the vehicle-side CAN bus communication information to filter out invalid signals in the communication information, the method further includes:
[0066] Pick up the valid signal in the vehicle-side CAN bus communication information.
[0067] It should be noted that by placing the picking operation before the filtering operation to avoid filtering out valid information in the communication information, the integrity of the valid signal is guaranteed to the greatest extent when eliminating the invalid communication signal.
[0068] Optionally, based on a fixed-length full-duplex SPI medium, the vehicle microcontroller unit MCU exchanges the processed communication information with the state of charge SOC of the vehicle battery, including:
[0069] Based on the format of the fixed-length full-duplex SPI medium and the communication connection mode between the vehicle microcontroller unit MCU and the charging state SOC terminal of the vehicle battery, in the uplink communication information, the charging state SOC terminal of the vehicle battery actively inquires the message status of the vehicle microcontroller unit MCU; or
[0070] In the downlink communication information channel, the message status of the vehicle micro control unit MCU actively inquires about the status of the charging state SOC terminal of the vehicle battery.
[0071] It should be noted that the format of the fixed-length full-duplex SPI medium can be implemented in the form of an SPI module. In order to exchange data with peripherals, the output serial synchronous clock polarity (CPOL) and phase can be configured according to the peripheral working requirements. The clock polarity (CPOL) has no significant impact on the transmission protocol. If CPOL = 0, the idle state of the serial synchronous clock is low; if CPOL = 1, the idle state of the serial synchronous clock is high. The clock phase (CPHA) can be configured to select one of two different transmission protocols for data transmission. If CPHA = 0, the data is sampled at the first transition edge (rising or falling) of the serial synchronous clock; if CPHA = 1, the data is sampled at the second transition edge (rising or falling) of the serial synchronous clock. The SPI master module and the peripheral device communicating with it have consistent clock phase and polarity. For different serial interface peripheral chips, the clock timing of the master device and the slave device is different. Communication data information is input (received) on the rising edge of SCK and output (sent) on the falling edge. It is also applicable to various other serial peripheral interfaces that input on the rising edge and output on the falling edge of the serial clock. Just change the input or output level sequence of the serial clock (SCK) and make corresponding adjustments.
[0072] In an embodiment of the present application, two interrupt lines are added between the master device and the slave device to notify both parties of the communication interaction whether a message has been sent, and by adding the two interrupt lines, both parties of the communication can actively initiate communication interaction to the communication interaction party at the same time, independently of each other and without interference, thereby improving the timeliness and efficiency of the communication interaction.
[0073] Optionally, based on a fixed-length full-duplex SPI medium, the vehicle microcontroller unit MCU exchanges the processed communication information with the charging state SOC terminal of the vehicle battery, further comprising:
[0074] When the downlink communication information is transmitted to the charging state SOC terminal of the vehicle battery, the vehicle micro control unit MCU transmits the downlink communication information to the charging state SOC terminal of the vehicle battery in the form of a bus structure CAN MSG, and communicates with the charging state SOC terminal of the vehicle battery through the bus structure CAN MSG;
[0075] When the downlink communication information is transmitted to the vehicle micro control unit MCU, the vehicle micro control unit MCU parses the downlink communication information and sends it to the CAN bus according to the type of the downlink communication information.
[0076] It should be noted that two interrupt lines are added between the vehicle microcontroller unit MCU and the charging state SOC end of the vehicle battery. Through the above-mentioned additional interrupt lines and communication connection lines, the vehicle microcontroller unit MCU and the charging state SOC end of the vehicle battery communicate and interact through the CAN MSG communication method, using the bus structure CAN MSG method, and using the powerful data processing resources of SOC to quickly parse the CAN MSG; it is equivalent to the vehicle microcontroller unit MCU only performing transparent transmission of CAN MSG, which ensures the real-time interaction between the two communicating parties. In addition, since the CAN MSG method covers all signals of the current communication interaction, the integrity of the communication data information is guaranteed. When the vehicle microcontroller unit MCU transmits to the charging state SOC end of the vehicle battery in the CAN MSG method, the snapshot function can quickly transmit the complete vehicle information to the charging state SOC end of the vehicle battery.
[0077] Optionally, the vehicle battery state of charge SOC acquisition communication information includes:
[0078] The charging status SOC end of the vehicle battery obtains the bus structure CAN MSG through the fixed-length full-duplex SPI medium, and uploads the obtained bus structure CAN MSG to the vehicle hardware abstraction layer Vehicle hal to read or write the downlink communication information.
[0079] It should be noted that the properties that can be implemented by the original equipment manufacturer (OEM) are defined through the vehicle hardware abstraction layer (Vehicle hal) interface, the callback interface, and the Set call, and the acquired bus structure CAN MSG is uploaded to the vehicle hardware abstraction layer Vehicle hal to read or write the downlink communication information.
[0080] Optionally, transmitting the parsed communication information to a vehicle application APP in the vehicle system includes:
[0081] The vehicle hardware abstraction layer Vehicle hal reads or writes downlink communication information through the charging state SOC of the vehicle battery in the interface mode of character device node; and transmits the parsed communication information to the vehicle application APP.
[0082] It should be noted that the downlink communication information is read or written through the vehicle battery's charging status SOC in the interface mode of the character device node. Specifically, the vehicle battery's charging status SOC end master device is driven by the character device, the slave device vehicle microcontroller unit MCU number registers / unloads the character device driver, and the device node address is created through mapping.
[0083] Optionally, transmitting the parsed communication information to the vehicle application APP includes:
[0084] The vehicle hardware abstraction layer Vehicle hal parses the bus structure CAN MSG according to the DBC protocol to obtain multiplexed Signal communication information;
[0085] Get the multiplexed Signal communication information generated by the analysis, and encapsulate each multiplexed Signal communication information to generate the corresponding property;
[0086] The vehicle hardware abstraction layer Vehicle hal notifies the property property to the car service framework Carservice through the HIDL interface adapter system according to different interfaces;
[0087] The car service framework Carservice notifies the vehicle application APP in the form of interface definition language AIDL.
[0088] It should be noted that each multiplexed Signal communication information is encapsulated to generate the corresponding attribute property, and the attribute property used can be a decorator method and / or a class attribute method. For example, the attribute property can add the @property decorator on the basis of the instance method, and only add a self parameter to characterize the decorator. When calling, there is no need to put the self parameter in parentheses, which is the same as the calling method of the attribute property, and the return value (return) is returned as the attribute value after being called. The attribute property has three access methods. According to the access characteristics of the attribute property, the three access methods can be defined as three methods for the same attribute property: get, modify and delete. When creating a property as a class attribute, there are four parameters in the property method, which can convert three methods into property. The above four parameters can be set as follows: the first parameter is the method name, which is automatically triggered when the object property is called; the second parameter is the method name, which is automatically triggered when the object property is called; the third parameter is the method name, which is automatically triggered when the del object property is called; the fourth parameter is a string, called object property.doc, this parameter is the representation information of the property.
[0089] The present application also provides a vehicle control communication device based on an intelligent central control system, which is applied to vehicle-side communication transmission, as shown in the attached Figure 2 As shown in a structural diagram of a vehicle control communication device based on an intelligent central control system according to an embodiment of the present application, the vehicle control communication device 200 includes:
[0090] The vehicle-side CAN bus 210 is used to transmit the acquired communication information to the vehicle micro control unit MCU via the vehicle-side CAN bus;
[0091] The vehicle microcontroller unit MCU220 is used to exchange the processed communication information with the charging state SOC terminal of the vehicle battery based on the fixed-length full-duplex SPI medium after acquiring the communication information;
[0092] The vehicle battery state of charge SOC terminal 230 is used for transmitting the parsed communication information to the vehicle application APP of the vehicle system based on the acquired processed communication information;
[0093] The vehicle application APP240 is used to feed back the processed communication information to the vehicle micro control unit MCU through a fixed-length full-duplex SPI medium based on the acquired communication information.
[0094] It should be noted that the above-mentioned vehicle control communication device 200 corresponds to the above-mentioned vehicle control communication method. The steps executed by the vehicle-side CAN bus 210, the vehicle micro control unit MCU220, the vehicle battery charging status SOC end 230 and the vehicle application APP240 in the vehicle control communication device 200 can be found in the vehicle control communication method part, which will not be repeated here.
[0095] The present application also provides an electronic device, such as the attached Figure 3 As shown in a structural diagram of a vehicle control communication device based on an intelligent central control system according to an embodiment of the present application, the electronic device 300 includes:
[0096] Memory 310 for storing non-transitory computer-readable instructions 330; and
[0097] The processor 320 is used to run the computer-readable instructions 330, so that the computer-readable instructions 330 are executed by the processor 320 to implement the above-mentioned method.
[0098] The present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on a device, the device executes the method described above.
[0099] As attached Figure 4As shown, in one embodiment of the present application, the communication data information on the CANFD bus is transmitted to the CANFD bus transceiver, and the vehicle microcontroller unit MCU220 includes: a bus controller, a hardware abstraction layer, a functional module layer, and an application layer. The communication data information on the CANFD bus is received by the serial peripheral interface communication bus controller set in the bus control layer of the vehicle microcontroller unit MCU220, and the acquired communication data information on the CANFD bus is transmitted to the serial peripheral interface communication bus / direct memory extraction in the hardware abstraction layer, or the communication data information on the CANFD bus can also be transmitted to the communication module in the functional module layer through a CAN bus, Ethernet bus, or other similar buses, and the communication module places the communication data information in the data processing module in the application layer for parsing and other processing, and then transmits it to the charging state SOC terminal 230 of the vehicle battery through the CAN bus / other bus in the form of a structure CAN MSG through a fixed-length full-duplex SPI medium, wherein the charging state SOC terminal 230 of the vehicle battery includes an application, a framework layer, a vehicle hardware abstraction layer and a hardware device for receiving communication information. The hardware device transmits the communication information from the serial peripheral interface communication bus set in the hardware abstraction layer to the vehicle hardware abstraction layer through the Linux operating system in the hardware abstraction layer, and the vehicle hardware abstraction layer quickly parses the structure CAN MSG; the vehicle hardware abstraction layer (Vehicle hal) parses the bus structure CAN MSG according to the DBC protocol to obtain multiplexed (Signal) communication information; obtains the multiplexed (Signal) communication information generated by the analysis, and encapsulates each multiplexed (Signal) communication information to generate corresponding vehicle properties (properties); the vehicle hardware abstraction layer Vehiclehal notifies the vehicle service framework vehicle service (Carservice) of the vehicle property (property) through the HIDL interface adaptation system according to different interfaces; the vehicle service (Carservice) in the vehicle service framework notifies the vehicle application APP in the form of the interface definition language AIDL to process the above encapsulation to generate the corresponding vehicle property (property), and feeds back the processed communication data information to the vehicle micro control unit MCU through the serial peripheral interface communication bus SPI of the charging state SOC terminal 230 of the vehicle battery, and the vehicle micro control unit MCU will use CAN MSG performs transparent transmission, transparently transmits the communication data information to the CAN bus controller in a snapshot manner, and the CAN bus controller transmits the communication data information to the CANFD bus.
[0100] As attached Figure 5The schematic diagram of the communication and interaction between the charging state SOC end master device of the vehicle battery and the vehicle micro control unit MCU slave device through the frame mode of the embodiment of the present application is based on the SPI full-duplex high-efficiency protocol format, using data frames, response frames, and blank frames. When the uplink and downlink are carried out synchronously, according to the principle of SPI data exchange, there are 8 combinations between the charging state SOC end master device (SOC master) of the vehicle battery and the vehicle micro control unit MCU (slave device slave), such as the uplink is a data frame corresponding to the downlink data frame (or response frame, or blank frame), and the response frame is a response mechanism to ensure that the data frame can correctly receive the data frame; the blank frame is the data exchange information of the data frame or the response frame when there is no valid information in the uplink or downlink. When the downlink data is transmitted to the MCU, the MCU parses the data and then sends it to the CAN bus according to the signal type; when the uplink data is transmitted to the charging state SOC end of the vehicle battery, the charging state SOC of the vehicle battery is provided to the Vehicle hal for read and write operations in the interface mode of the character device node, and the Vehicle hal parses the data and transmits the parsed communication data information to the vehicle application for processing.
[0101] As attached Figure 6 The schematic diagram of the structure of the communication interaction between the vehicle battery charging state SOC end master device and the vehicle micro control unit MCU slave device of an embodiment of the present application, the vehicle battery charging state SOC end master device (SOC Master) and the vehicle micro control unit MCU (slave device Slave) have 6 types of communication connections, namely, the vehicle micro control unit MCU uses MOSI as the main output and slave input, MISO as the main input and slave output, and the vehicle battery charging state SOC end battery maintenance state The vehicle microcontroller unit MCU returns the request The vehicle battery's state of charge SOC terminal returns a request Communicates with the vehicle battery's state of charge SOC host device, where CLK is the synchronous clock.
[0102] As attached Figure 7 A schematic diagram of the structure for picking up and filtering the communication signal transmitted in the vehicle-side CAN bus of one embodiment of the present application. As shown in the figure, in the time period of 0 to 1400ms, the communication data information in the CAN bus or CANFD bus can be filtered by a physical filter, such as making the physical filter open at the rising edge representing the high level and closed at the falling edge representing the low level. ×: indicates an invalid signal (level state <300ms), √: indicates a valid signal (level state ≥300ms, except for the first change). The physical filter is considered a valid signal once every 300ms or when the valid signal changes for the first time.
[0103] Alternatively, the filter may also be implemented using a digital filter, which will not be described in detail here.
[0104] It should be noted that any process or method description in the flowchart or otherwise described herein may be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations, in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0105] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0106] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0107] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0108] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be partially implemented in the form of hardware, or may be implemented in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0109] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
[0110] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as a preferred embodiment as above, it is not intended to limit the present application. Any technician familiar with the profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A method for vehicle control communication based on an intelligent central control system, characterized in that: Applied to vehicle-side communication transmission, including: S1, transmit the acquired communication information to the vehicle micro control unit MCU through the vehicle-side CAN bus; S2, after acquiring the communication information, based on the fixed-length full-duplex SPI medium, the vehicle microcontroller unit MCU exchanges the processed communication information with the charging state SOC terminal of the vehicle battery. Based on the format of the fixed-length full-duplex SPI medium and the communication connection mode between the vehicle microcontroller unit MCU and the charging state SOC terminal of the vehicle battery, in the uplink communication information, the charging state SOC terminal of the vehicle battery actively inquires the message status of the vehicle microcontroller unit MCU; or In the downlink communication information channel, the message status of the vehicle microcontroller unit MCU actively inquires about the state of charge SOC of the vehicle battery; S3, based on the acquired processed communication information, the charging state SOC terminal of the vehicle battery transmits the parsed communication information to the vehicle application APP of the vehicle system; S4, based on the acquired communication information, the vehicle application APP feeds back the processed communication information to the vehicle micro control unit MCU via a fixed-length full-duplex SPI medium.
2. The method according to claim 1, characterized in that Before transmitting the acquired communication information to the vehicle microcontroller unit MCU through the vehicle-side CAN bus, the following steps are also included: The vehicle-side CAN bus communication information is filtered to remove invalid signals in the communication information.
3. The method according to claim 2, characterized in that Before filtering the vehicle-side CAN bus communication information to filter out invalid signals in the communication information, the following steps are also included: Pick up the valid signal in the vehicle-side CAN bus communication information.
4. The method according to claim 1, characterized in that: Based on the fixed-length full-duplex SPI medium, the vehicle microcontroller unit MCU exchanges the processed communication information with the charging state SOC terminal of the vehicle battery, and further includes: When the downlink communication information is transmitted to the charging state SOC terminal of the vehicle battery, the vehicle micro control unit MCU transmits the downlink communication information to the charging state SOC terminal of the vehicle battery in the form of a bus structure CAN MSG, and communicates with the charging state SOC terminal of the vehicle battery through the bus structure CAN MSG; When the downlink communication information is transmitted to the vehicle micro control unit MCU, the vehicle micro control unit MCU parses the downlink communication information and sends it to the CAN bus according to the type of the downlink communication information.
5. The method according to claim 4, characterized in that The vehicle battery's state of charge SOC acquisition communication information includes: The charging status SOC end of the vehicle battery obtains the bus structure CAN MSG through the fixed-length full-duplex SPI medium, and uploads the obtained bus structure CAN MSG to the vehicle hardware abstraction layer Vehicle hal to read or write the downlink communication information.
6. The method according to claim 5, characterized in that The vehicle application APP that transmits the parsed communication information to the vehicle system includes: The vehicle hardware abstraction layer Vehicle hal reads or writes downlink communication information through the charging state SOC of the vehicle battery in the interface mode of character device node; and transmits the parsed communication information to the vehicle application APP.
7. The method according to claim 6, characterized in that Transmitting parsed communication information to the vehicle application APP includes: The vehicle hardware abstraction layer Vehicle hal parses the bus structure CAN MSG according to the DBC protocol to obtain multiplexed Signal communication information; Get the multiplexed Signal communication information generated by the analysis, and encapsulate each multiplexed Signal communication information to generate the corresponding property; The vehicle hardware abstraction layer Vehicle hal notifies the property property to the car service framework Carservice through the HIDL interface adapter system according to different interfaces; The car service framework Carservice notifies the vehicle application APP in the form of interface definition language AIDL.
8. A vehicle control communication device based on an intelligent central control system, characterized in that: Applied to vehicle-side communication transmission, including: The vehicle-side CAN bus is used to transmit the acquired communication information to the vehicle microcontroller unit MCU through the vehicle-side CAN bus; The vehicle microcontroller unit MCU is used to obtain the communication information and then, based on the fixed-length full-duplex SPI medium, the vehicle microcontroller unit MCU exchanges the processed communication information with the charging state SOC terminal of the vehicle battery. Based on the format of the fixed-length full-duplex SPI medium and the communication connection mode between the vehicle microcontroller unit MCU and the charging state SOC terminal of the vehicle battery, in the uplink communication information, the charging state SOC terminal of the vehicle battery actively inquires the message status of the vehicle microcontroller unit MCU; or In the downlink communication information channel, the message status of the vehicle microcontroller unit MCU actively inquires about the state of charge SOC of the vehicle battery; The vehicle battery state of charge SOC terminal is used for transmitting the parsed communication information to the vehicle application APP of the vehicle system based on the acquired processed communication information; The vehicle application APP is used to feed back the processed communication information to the vehicle micro control unit MCU through a fixed-length full-duplex SPI medium based on the acquired communication information.
9. An electronic device, characterized in that: include: a memory for storing non-transitory computer-readable instructions; as well as A processor, configured to run the computer-readable instructions, so that when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on a device, cause the device to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Simplified serial transmission circuit
CN112650701A
SPI-based communication method and device, electronic equipment and storage medium
CN112822002A
Low-speed MIPI observation type SOC chip and operation method thereof
CN113626360A
Data processing method and device based on MCU communication path, equipment and medium
CN114124610A
Control method and system for car networking system
CN114312618A
