Automobile business layer communication method, device, electronic equipment and storage medium

By connecting with multiple peripheral memory chips at the SOC end of the car, multiple communication channels are established, and processing request and reply data are classified and processed, the data processing rate and data transmission disorder caused by communication between the underlying control end of the car and the upper-layer operating system in the prior art is solved, and more efficient data processing and transmission is achieved.

CN115987898BActive Publication Date: 2025-03-21BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211672256.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2025-03-21
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

The communication method between the existing automotive underlying control end and the upper operating system leads to the risk of reduced data processing rate, increased concurrent processing load, and confusion of data transmission.

Method used

By connecting with multiple peripheral memory chips at the SOC end of the vehicle, multiple communication channels are established, processing and transmitting processing request and response data, and determining the target chip for data transmission is used to determine the target chip.

Benefits of technology

It improves the data processing efficiency between the bottom control end of the vehicle and the upper operating system, reduces the concurrent processing load on the OS system, improves the accuracy of data transmission, and reduces the risk of data transmission disorder.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115987898B_ABST
    Figure CN115987898B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention proposes an automobile business layer communication method, device, electronic device and storage medium, which belongs to the field of communication technology. Multiple communication channels are established between the SOC end and the controller of the vehicle through multiple peripheral storage chips. When the controller receives a processing request sent by the SOC end through the peripheral storage chip, according to the classification result of the processing request, the response data of the processing request is transmitted to the SOC end through the communication channel matching the classification result, that is, it is sent and received by the peripheral storage chip matching the classification result, so as to realize the classified transmission of communication data, which can reduce the confusion of data transmission. At the same time, it realizes the concurrent processing of multiple communication channels, which can improve data processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an automobile business layer communication method, device, electronic equipment and storage medium. Background Art

[0002] With the rapid development of my country's economy and the rapid development of the automobile industry, the performance of automobile computers has been continuously improved, and the software functions on automobiles have become more and more complex. The communication data between the bottom control end (Microcontroller Unit, MCU) and the upper operating system (Operating System, OS) of automobile computers has also increased dramatically.

[0003] At present, the common communication method between the bottom control end and the upper operating system of the car is to integrate the instrument communication data and the central control communication data transmitted from the MCU end to the upper operating system end into a single communication channel for processing. This communication method not only affects the processing rate of communication data, but also increases the load rate of concurrent processing on the OS system end and the risk of confusion in the transmission of instrument data and central control data during the communication process. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide an automobile business layer communication method, device, electronic device and storage medium, which can improve the data processing efficiency of the vehicle computer bottom-level control end and the upper-level operating system end, and improve the problem of data transmission disorder.

[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0006] In a first aspect, an embodiment of the present invention provides an automobile business layer communication method, which is applied to a vehicle controller, wherein a plurality of peripheral storage chips are connected to a SOC end of the vehicle, a first communication interface of the controller is respectively connected to a second communication interface of each of the peripheral storage chips, and the SOC end is communicatively connected to an on-board instrument and a central control device of the vehicle, and the method comprises:

[0007] Receiving any processing request through the first communication interface; wherein the processing request is sent by the SOC end through the second communication interface of the peripheral storage chip matching the processing request after receiving the processing request from the vehicle instrument or the central control device;

[0008] Obtaining a processing result in response to the processing request, classifying the processing request, and generating response data of the processing request according to the processing result and the classification result;

[0009] According to the classification result, determining a target chip from the plurality of peripheral storage chips;

[0010] The response data is sent to the SOC end through the target chip, so that the SOC end displays the response data on the functional interface of the central control device or the vehicle-mounted instrument.

[0011] Furthermore, the step of classifying the processing request includes:

[0012] Parsing the processing request to obtain a request keyword, and determining a data structure of the processing request according to the request keyword;

[0013] The step of generating response data of the processing request according to the processing result and the classification result comprises:

[0014] According to the logic processing result, the value of the result field in the data structure is updated to obtain the response data.

[0015] Further, a communication channel is formed between the first communication interface and each of the second communication interfaces, and the controller pre-stores a matching table, which records the matching relationship between each data structure and each of the communication channels;

[0016] The step of determining a target chip from the plurality of peripheral storage chips according to the classification result comprises:

[0017] The matching table is queried to determine a communication channel that matches the data structure of the processing request, and the peripheral storage chip corresponding to the communication channel is used as the target chip.

[0018] Furthermore, the controller is communicatively connected with each underlying hardware device of the vehicle and / or a monitoring device of each underlying hardware device;

[0019] The step of obtaining a processing result in response to the processing request comprises:

[0020] Obtaining operation data reported by the underlying hardware device and / or the monitoring device corresponding to the processing request;

[0021] The operation data is processed to obtain a processing result.

[0022] Furthermore, the method further comprises:

[0023] Obtain a protocol table file, and read the text content of the protocol table file; wherein the text content includes a structure definition of each protocol message of the communication protocol between the SOC end and the controller;

[0024] Generate a data structure of each protocol message according to the structure definition;

[0025] Classify and store each of the data structures according to preset keyword classification rules;

[0026] The step of determining the data structure of the processing request according to the request keyword comprises:

[0027] According to the request keyword, a data structure matching the request keyword is determined from all stored data structures, and a sender and receiver are determined according to the project file where the data structure is located.

[0028] In a second aspect, an embodiment of the present invention provides an automobile business layer communication method, which is applied to a SOC end of a vehicle, wherein the SOC end is connected to a plurality of peripheral storage chips, and the second communication interface of each of the peripheral storage chips is connected to the first communication interface of the controller of the vehicle to form a communication channel, and the SOC end is communicatively connected to an on-board instrument and a central control device of the vehicle, and the method includes:

[0029] Receiving a processing request sent by the vehicle instrument or central control device;

[0030] Determine a communication channel that matches the processing request, and use the peripheral storage chip corresponding to the communication channel as the target chip;

[0031] The processing request is sent to the controller through the second interface of the target chip; wherein the controller implements the automobile business layer communication method as described in the first aspect;

[0032] Receive response data returned by the controller through the target chip, and report the response data to the target device for display on the functional interface of the target device; wherein the target device is the vehicle instrument or central control device that sends the processing request.

[0033] Further, the processing request is parsed to obtain a request keyword, and a data structure of the processing request is determined according to the request keyword;

[0034] A preset matching table is queried to determine a communication channel that matches the data structure of the processing request.

[0035] In a third aspect, an embodiment of the present invention provides an automobile business layer communication device, which is applied to a vehicle controller, wherein a plurality of peripheral storage chips are connected to the SOC end of the vehicle, a first communication interface of the controller is respectively connected to a second communication interface of each of the peripheral storage chips, and the SOC end is communicatively connected to an on-board instrument and a central control device of the vehicle, and the device includes a receiving module, a processing module and a sending module:

[0036] The receiving module is used to receive any processing request through the first communication interface; wherein the processing request is sent by the SOC end through the second communication interface of the peripheral storage chip matching the processing request after receiving the processing request from the vehicle instrument or the central control device;

[0037] The processing module is used to obtain a processing result in response to the processing request, classify the processing request, and generate response data of the processing request according to the processing result and the classification result;

[0038] The processing module is further used to determine a target chip from the plurality of peripheral storage chips according to the classification result;

[0039] The sending module is further used to send the response data to the SOC end through the target chip, so that the SOC end displays the response data on the functional interface of the central control device or the vehicle instrument.

[0040] In a fourth aspect, an embodiment of the present invention provides an automobile business layer communication device, which is applied to the SOC end of a vehicle, the SOC end is connected to a plurality of peripheral storage chips, the second communication interface of each of the peripheral storage chips is connected to the first communication interface of the controller of the vehicle to form a communication channel, the SOC end is communicatively connected with the on-board instrument and the central control device of the vehicle, and the device includes a transceiver module and a processing module;

[0041] The transceiver module is used to receive a processing request sent by the vehicle instrument or the central control device;

[0042] The processing module is used to determine a communication channel matching the processing request and use the peripheral storage chip corresponding to the communication channel as a target chip;

[0043] The transceiver module is further used to send the processing request to the controller through the second interface of the target chip; wherein the controller implements the automobile business layer communication method as described in the first aspect;

[0044] The transceiver module is also used to receive response data returned by the controller through the target chip, and report the response data to the target device for display on the functional interface of the target device; wherein the target device is the vehicle-mounted instrument or central control device that sends the processing request.

[0045] In a fifth aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the automotive business layer communication method as described in the first aspect, or the automotive business layer communication method as described in the second aspect.

[0046] In a sixth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the automobile business layer communication method as described in the first aspect or the automobile business layer communication method as described in the second aspect is implemented.

[0047] The automotive business layer communication method, device, electronic device and storage medium provided by the embodiments of the present invention, after the vehicle controller receives a processing request from the first communication interface connected to each peripheral storage chip at the SOC end of the vehicle, obtains a processing result in response to the processing request, generates response data for the processing request based on the processing result and the classification result of the processing request, and determines the target chip based on the classification result, thereby sending the response data to the SOC end through the target chip, so that the SOC end displays the response data on the functional interface of the vehicle's central control device or the on-board instrument, realizes classification processing of the response data, and sends the response data to the peripheral storage chip corresponding to the classification result, which can improve data processing efficiency and reduce data transmission confusion.

[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0050] Figure 1 A block diagram of an automobile service layer communication system provided by an embodiment of the present invention is shown.

[0051] Figure 2 A schematic diagram showing the connection between the controller and the SOC terminal provided by an embodiment of the present invention is shown.

[0052] Figure 3 One of the flow diagrams of the automobile service layer communication method provided by an embodiment of the present invention is shown.

[0053] Figure 4 Shows Figure 3Schematic diagram of the flow chart of some sub-steps of step S13.

[0054] Figure 5 The second flowchart of the automobile service layer communication method provided by the embodiment of the present invention is shown.

[0055] Figure 6 The third flowchart of the automobile service layer communication method provided by the embodiment of the present invention is shown.

[0056] Figure 7 Shows Figure 6 Schematic diagram of the process of some sub-steps of step S32.

[0057] Figure 8 A block diagram of an automobile service layer communication device provided by an embodiment of the present invention is shown.

[0058] Fig. 9 A block diagram of an electronic device provided by an embodiment of the present invention is shown.

[0059] Figure numerals: 100 - automobile business layer communication system; 110 - controller; 120 - SOC terminal; 121 - peripheral storage chip; 130 - vehicle instrument; 140 - central control device; 150 - underlying hardware device; 160 - monitoring device; 170 - automobile business layer communication device; 180 - receiving module; 190 - processing module; 200 - sending module; 210 - electronic device. DETAILED DESCRIPTION

[0060] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0061] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0062] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0063] With the development of economy and technology, the performance of automobile computers has been continuously improved, and the software functions on the car have become more and more complicated. The communication data between the bottom control end (Microcontroller Unit, MCU) and the upper operating system (Operating System, OS) of the automobile computer has also increased dramatically.

[0064] For the communication between the bottom control end and the upper operating system of the car, the commonly used communication method is to integrate the instrument communication data and the central control communication data transmitted from the MCU end to the upper operating system end into a single communication channel for processing. This communication method not only affects the processing rate of the communication data, but also increases the load rate of the concurrent processing of the OS system end, and increases the risk of confusion in the transmission of instrument data and central control data during the communication process, which is an error that is extremely difficult to find during code execution.

[0065] Based on the above considerations, an embodiment of the present invention provides an automobile business layer communication method, which can improve the data processing efficiency of the vehicle computer bottom control end and the upper operating system end, reduce the load rate of the OS system end during concurrent processing, and improve the problem of data transmission disorder. The method is introduced below.

[0066] The automobile service layer communication method provided by the embodiment of the present invention can be applied to Figure 1 In the shown automobile business layer communication system 100, the automobile business layer communication system 100 includes a vehicle controller 110, a SOC end 120, an on-board instrument 130 and a central control device 140. The SOC end 120 is connected to multiple peripheral storage chips 121. The first communication interface of the controller 110 is respectively connected to the second communication interface of each peripheral storage chip 121. The SOC end 120 can be respectively communicated with the on-board instrument 130 and the central control device 140 in a wired or wireless manner.

[0067] The controller 110 is connected to the vehicle's underlying hardware devices 150 and the monitoring device 160 of the underlying hardware devices 150 through the CAN bus.

[0068] It should be understood that a communication channel is formed between the second communication interface of each peripheral storage chip 121 and the first communication interface of the controller 110 .

[0069] The underlying hardware devices 150 include but are not limited to: an engine, an electric motor, an oil / electricity monitoring device 160, a brake device, a transmission, an onboard air conditioner and a handle, etc.

[0070] Taking the setting of two peripheral memory chips 121 as an example, the connection method between the controller 110, the peripheral memory chip 121 and the SOC terminal 120 can be as follows: Figure 2 As shown, two peripheral memory chips 121 are used as slaves of the controller 110 and are both connected to the SOC terminal 120 .

[0071] After determining the communication protocol between the controller 110 and the SOC end 120 , each protocol message under the communication protocol can be matched with each channel according to the function or data structure, the matching relationship can be recorded in a matching table, and the matching table can be stored.

[0072] It should be noted that the controller 110 and each peripheral memory chip 121 of the SOC end 120 transmit communication data using the Serial Peripheral Interface (SPI) communication protocol to achieve SPI communication with one master and multiple slaves (the controller 110 is the master and the peripheral memory chip 121 is the slave). The SOC end 120 and the central control device 140 and the vehicle instrument 130 use a transparent transmission method to transmit communication data, and the SOC end 120 runs the vehicle computer operating system.

[0073] In a possible implementation manner, an embodiment of the present invention provides an automobile service layer communication method, referring to Figure 3 , may include the following steps. In this embodiment, the automobile service layer communication method is applied to Figure 1 The controller 110 in FIG. 1 is used as an example.

[0074] S11, receiving any processing request through the first communication interface.

[0075] In this embodiment, after receiving the processing request from the vehicle instrument 130 or the central control device 140 , the SOC end 120 sends the processing request through the second communication interface of the peripheral storage chip 121 matching the processing request.

[0076] S13, obtaining a processing result in response to the processing request, classifying the processing request, and generating response data of the processing request according to the processing result and the classification result.

[0077] S15, determining a target chip from a plurality of peripheral storage chips according to the classification result.

[0078] S17, sending the response data to the SOC end through the target chip, so that the SOC end displays the response data on the function interface of the central control device or the vehicle instrument.

[0079] The processing requests include but are not limited to: motor start request, vehicle speed query request, air conditioner on request, air conditioner off request, fuel / electricity acquisition request and driving data request.

[0080] The vehicle instrument 130 or the central control device 140 transparently transmits the processing request to the SOC end 120, and the SOC end 120 classifies the processing request and sends the processing request to the peripheral storage chip 121 matching the classification result according to the classification result. Each peripheral storage chip 121 caches the received processing request in the message queue, scans the message queue regularly, and sends the processing request with the highest order in the message queue to the first communication interface of the controller 110.

[0081] After the controller 110 receives the processing request from its first communication interface, it performs logic processing in response to the processing request to obtain the processing result. For example, if it is a vehicle speed query request, the controller 110 obtains the current speed from the motor monitoring device 160 and obtains the current vehicle speed based on the current speed. In addition, the processing request is classified to obtain the classification result, so that the controller 110 generates response data based on the classification result and the processing result. Furthermore, a target chip matching the classification result is determined from multiple peripheral storage chips 121, and the response data is sent to the target chip from the first communication interface.

[0082] After the SOC end 120 obtains the response data through the target chip, it transparently transmits the response data to the central control device 140 or the vehicle instrument 130 that sends the processing request.

[0083] Compared with the traditional communication method in which all communication data are concentrated into one communication channel to communicate between the controller and the SOC end, in the automobile business layer communication method provided by the embodiment of the present invention, multiple communication channels are established between the SOC end of the vehicle and the controller through multiple peripheral storage chips, so that processing requests and response data of different classification results are transmitted through the communication channel matching the classification result, that is, sent and received by the peripheral storage chip matching the classification result, thereby realizing classified transmission of communication data, which can reduce the confusion of data transmission and, at the same time, realize concurrent processing of multiple communication channels to improve data processing efficiency.

[0084] In addition, since data transmission is shared among various peripheral memory chips on the SOC side, the load rate on the SOC side can be greatly reduced.

[0085] Depending on the processing request, the method of obtaining the processing result in response to the processing request can be flexibly set. For example, data can be obtained from the underlying hardware device 150, or it can be processed according to preset rules. In this embodiment, no specific limitation is made.

[0086] In one possible implementation, refer to Figure 4 , the processing results can be obtained through the following steps.

[0087] S131, obtaining operation data reported by the underlying hardware device and / or monitoring device corresponding to the processing request.

[0088] S132, processing the run data to obtain a processing result.

[0089] The operation data may be the operation data (e.g., fuel / electricity and speed) reported by the underlying hardware device 150 and / or the monitoring device 160 before receiving the processing request, or the operation data returned after the execution command is sent to the underlying hardware device 150 and / or the monitoring device 160 after receiving the processing request. For example, if the processing request is an air-conditioning start-up request, a start-up command is sent to the vehicle air-conditioning, and the vehicle air-conditioning turns on the air-conditioning, switches the model, and sets the temperature, and then returns an ok command to the controller 110. After receiving the ok command, the controller 110 obtains the processing result.

[0090] Furthermore, the method for classifying processing requests can also be flexibly set. For example, they can be classified according to preset rules, or they can be classified using a neural network algorithm. In this embodiment, no specific limitation is made.

[0091] In order to quickly classify processing requests, refer to Figure 5 The automobile service layer communication method provided by the embodiment of the present invention may also include the following steps.

[0092] S21, obtaining a protocol table file, and reading text content of the protocol table file.

[0093] The protocol table file is a table file of the communication protocol used for communication between the SOC terminal 120 and the controller 110, and records the structure information of each protocol instruction / protocol message of the protocol. For example, if the communication protocol is the SPI protocol, the protocol table file records the structure information of each protocol instruction / protocol message of the SPI protocol. The structure information includes the structure definition.

[0094] It should be understood that the text content includes the structure definition of each protocol message of the communication protocol between the SOC terminal 120 and the controller 110 .

[0095] S22, generating a data structure for each protocol message according to the structure definition.

[0096] S23, classify and store each data structure according to the preset keyword classification rules.

[0097] The keyword classification rules include but are not limited to: classification based on senders and receivers as keywords, and classification based on functions as keywords.

[0098] It should be understood that the essence of the data structure is a data packet encoding assistance program, that is, a program for generating data packets.

[0099] Since the sender and receiver of the communication data (i.e., the initiator and the receiver) are the vehicle-mounted instrument 130 or the central control device 140, all communication data can be divided into instrument data (Cluster) or central control data (HU). According to the different functions and display methods, the communication data can also be divided into icon display data and soft switch button status display data.

[0100] Therefore, each data structure can be classified and stored according to function and display, or can be classified and stored according to sender and receiver.

[0101] For example, after reading the text content, before step S22, the sender and receiver can be used as keywords for classification and classification processing. For example, if it is the warning and indication information of the vehicle instrument 130, it can be classified into an item named "MCU_cluster warning and indicator INFO"; if it is the status acquisition information of the underlying hardware device 150 of the central control device 140, it can be classified into an item named "MCU_HU can 0x20B INFO", which can be as shown in Table 1.

[0102] Table 1

[0103]

[0104]

[0105] In step S22, for each protocol instruction / protocol message that has been classified, a corresponding data structure is generated according to its own structure definition. In a possible implementation, it can be a C language data structure.

[0106] In step S23, based on the classified projects, create .c project files and .h project files of the data packet encoding helper corresponding to the projects, for example, they may include MCU_Cluster_PacketCodecHelper.h project file, MCU_Cluster_PacketCodecHelper.c project file, MCU_HU_PacketCodecHelper.h project file, MCU_HU_PacketCodecHelper.c project file, and store the data structure of each protocol instruction / protocol message in the corresponding project file.

[0107] When the communication protocol adopted by the controller 110 and the SOC end 120 is changed, the protocol format file in step S21 is replaced with the protocol format file of the new communication protocol.

[0108] The above steps S21-S22 are the pre-steps of the automatic classification algorithm, and can also be understood as the acquisition steps of the automatic classification algorithm.

[0109] On the basis of the above, an automatic classification algorithm may be used to classify the processing requests. Specifically, it may be further implemented as follows: parsing the processing requests to obtain request keywords, and determining the data structure of the processing requests according to the request keywords.

[0110] The request keyword may be a characteristic part of a structure for processing a request.

[0111] After the data structure of the processing request is determined, the sender and receiver can be determined according to the project file where the data structure is located.

[0112] For a processing request, the structure of the corresponding response message has the same parts as its own structure. Therefore, after obtaining the request keyword of the processing request, the controller 110 can determine the data structure that matches the request keyword from all stored data structures based on the request keyword, and determine the sender and receiver based on the project file where the data structure is located.

[0113] After the data structure of the processing request is determined, the response data of the processing request can be generated in the following manner: according to the logical processing result, the value of the result field in the data structure is updated to obtain the response data.

[0114] In a possible implementation, the controller 110 may pre-store a matching table, which records the matching relationship between each data structure and each communication channel. Step S15 may be further implemented as: querying the matching table, determining the communication channel that matches the data structure of the processing request, and using the external storage chip 121 corresponding to the communication channel as the target chip.

[0115] Through the above steps S21-S23, and the implementations of S13 and S15, the processing requests can be quickly and accurately classified, the corresponding response data can be generated, and the target chip matching the response data can be determined, which can avoid data streaming to a certain extent.

[0116] In order to avoid data streaming, in a possible implementation, the sender's identifier is added to the response data, so that after the SOC end 120 obtains the response data, it can send the response data to the device corresponding to the identifier according to the identifier on the response data.

[0117] In a possible implementation manner, the embodiment of the present invention further provides an automobile service layer communication method, referring to Figure 6 , may include the following steps. In this embodiment, the automobile service layer communication method is applied to Figure 1 Take the SOC end 120 in FIG. 1 as an example.

[0118] S31, receiving a processing request sent by an on-board instrument or a central control device.

[0119] S32, determining a communication channel that matches the processing request, and taking the peripheral storage chip corresponding to the communication channel as the target chip.

[0120] S33, sending the processing request to the controller through the second interface of the target chip.

[0121] The controller implements the automobile business layer communication method provided above, that is, the controller uses the above steps S11-S17 to send the response data of the processing request to the target chip, and the target chip sends the response data to the SOC end.

[0122] S34, receiving the response data returned by the controller through the target chip, and reporting the response data to the target device for display on the function interface of the target device, wherein the target device is the vehicle instrument or central control device that sends the processing request.

[0123] In one possible implementation, refer to Figure 7 , the communication channel that matches the processing request can be determined through the following steps.

[0124] S321, parsing the processing request to obtain a request keyword, and determining a data structure of the processing request according to the request keyword.

[0125] S322, query a preset matching table to determine a communication channel that matches the data structure of the processing request.

[0126] For further implementation of S321, reference may be made to the automobile business layer communication method applied to the controller provided above, which will not be described in detail in this implementation.

[0127] In the above-mentioned automobile business layer communication method, when the SOC receives a processing request from the central control device or the vehicle instrument, it sends the processing request to the matching communication channel for processing according to the matching result of the request keyword, which can reduce the probability of data streaming. And through multiple peripheral storage chips, multi-concurrent communication can be achieved to improve the transmission efficiency of communication data. In addition, there is no need for the SOC to process the sending process, which can greatly reduce the load rate of the SOC.

[0128] In a possible implementation manner, the present invention further provides an automobile service layer communication device 170, which can be applied to Figure 1 The controller 110 in FIG. Figure 8 The automobile business layer communication device 170 may include a receiving module 180 , a processing module 190 and a sending module 200 .

[0129] The receiving module 180 is used to receive any processing request through the first communication interface. After receiving the processing request from the vehicle instrument or the central control device, the SOC sends the processing request through the second communication interface of the peripheral storage chip matching the processing request.

[0130] The processing module 190 is used to obtain a processing result in response to the processing request, classify the processing request, and generate response data of the processing request according to the processing result and the classification result.

[0131] The processing module 190 is further configured to determine a target chip from a plurality of peripheral storage chips according to the classification result.

[0132] The sending module 200 is also used to send the response data to the SOC end through the target chip, so that the SOC end displays the response data on the function interface of the central control device or the vehicle instrument.

[0133] In the above-mentioned automobile business layer communication device 170, through the coordinated action of the receiving module, the processing module and the sending module, multiple communication channels are established between the SOC end of the vehicle and the controller through multiple peripheral storage chips, so that the processing requests and response data of different classification results are transmitted through the communication channel matching the classification results, thereby realizing the classified transmission of communication data, which can reduce the confusion of data transmission, and at the same time, realize concurrent processing of multiple communication channels, which can improve data processing efficiency.

[0134] In a possible implementation manner, the embodiment of the present invention further provides an automobile service layer communication device, which can be applied to Figure 1In the SOC end 120, the automobile business layer communication device may include a transceiver module and a processing module.

[0135] The transceiver module is used to receive processing requests sent by the vehicle instrument or central control device.

[0136] The processing module is used to determine a communication channel that matches the processing request and use the peripheral storage chip corresponding to the communication channel as the target chip.

[0137] The transceiver module is also used to send the processing request to the controller through the second interface of the target chip.

[0138] Among them, the controller implements the automobile business layer communication method provided above.

[0139] The transceiver module is also used to receive the response data returned by the controller through the target chip, and report the response data to the target device so as to be displayed on the function interface of the target device.

[0140] The target device is the vehicle instrument or central control device that sends the processing request.

[0141] In the above-mentioned automobile business layer communication device, through the synergy of the transceiver module and the processing module, when the SOC receives a processing request from the central control device or the vehicle instrument, it sends the processing request to the matching communication channel for processing according to the matching result of the request keyword, which can reduce the probability of data streaming. And through multiple peripheral storage chips, multi-concurrent communication can be achieved to improve the transmission efficiency of communication data. In addition, there is no need for the SOC to process the sending process, which can greatly reduce the load rate of the SOC.

[0142] For the specific limitations of the automotive service layer communication device applied to the controller and SOC ends, please refer to the limitations of the automotive service layer communication method and index demodulation method mentioned above, which will not be repeated here. Each module in the above-mentioned automotive service layer communication device can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0143] In one embodiment, an electronic device 210 is provided. The electronic device 210 may be a terminal, and its internal structure diagram may be as follows: Fig. 9As shown. The electronic device 210 includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device 210 is used to provide computing and control capabilities. The memory of the electronic device 210 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device 210 is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, the automotive business layer communication method applied to the controller and the SOC end as provided in the above-mentioned embodiment is implemented.

[0144] Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the electronic device 210 to which the solution of the present invention is applied. The specific electronic device 210 may include Fig. 9 More or fewer components may be shown, or certain components may be combined, or may have a different arrangement of components.

[0145] In one embodiment, the automobile service layer communication device 170 provided by the present invention can be implemented in the form of a computer program. The computer program can be used in Fig. 9 The electronic device 210 is shown as running. The memory of the electronic device 210 can store various program modules constituting the automobile business layer communication device 170, for example, Figure 8 The receiving module 180, the processing module 190 and the sending module 200 are shown. The computer program composed of various program modules enables the processor to execute the steps of the automobile business layer communication method described in this specification.

[0146] For example, Fig. 9 The electronic device 210 shown may be Figure 8 The receiving module 180 in the automobile business layer communication device 170 shown in the figure performs step S11. The electronic device 210 can perform steps S13 and S15 through the processing module 190. The electronic device 210 can perform step S17 through the sending module 200.

[0147] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: receiving any processing request through a first communication interface; obtaining a processing result in response to the processing request, and classifying the processing request, and generating response data for the processing request based on the processing result and the classification result; determining a target chip from a plurality of peripheral storage chips based on the classification result; and sending the response data to a SOC end through the target chip, so that the SOC end displays the response data on a functional interface of a central control device or an on-board instrument.

[0148] In one embodiment, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: receiving any processing request through a first communication interface; obtaining a processing result in response to the processing request, and classifying the processing request, and generating response data for the processing request based on the processing result and the classification result; determining a target chip from a plurality of peripheral storage chips based on the classification result; and sending the response data to the SOC end through the target chip, so that the SOC end displays the response data on a functional interface of a central control device or an on-board instrument.

[0149] In one embodiment, an electronic device 210 is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: receiving a processing request sent by an on-board instrument or a central control device; determining a communication channel matching the processing request, and using the peripheral storage chip corresponding to the communication channel as a target chip; sending the processing request to a controller through a second interface of the target chip; receiving response data returned by the controller through the target chip, and reporting the response data to the target device for display on a functional interface of the target device. The target device is the on-board instrument or the central control device that sends the processing request.

[0150] In one embodiment, a storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: receiving a processing request sent by an on-board instrument or a central control device; determining a communication channel that matches the processing request, and using the peripheral storage chip corresponding to the communication channel as a target chip; sending the processing request to a controller through a second interface of the target chip; receiving response data returned by the controller through the target chip, and reporting the response data to the target device for display on a functional interface of the target device. The target device is the on-board instrument or the central control device that sends the processing request.

[0151] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0152] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0153] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0154] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A vehicle service layer communication method, characterized in that: A controller applied to a vehicle, wherein a plurality of peripheral storage chips are connected to a SOC end of the vehicle, a first communication interface of the controller is respectively connected to a second communication interface of each of the peripheral storage chips, and the SOC end is communicatively connected to an onboard instrument and a central control device of the vehicle, and the method comprises: receiving any processing request through the first communication interface; wherein the processing request is sent by the SOC end through the second communication interface of the peripheral storage chip matching the processing request after receiving the processing request from the vehicle instrument or the central control device; a communication channel is formed between the second communication interface of each of the peripheral storage chips and the first communication interface of the controller; Obtaining a processing result in response to the processing request, classifying the processing request, and generating response data of the processing request according to the processing result and the classification result; According to the classification result, determining a target chip from the plurality of peripheral storage chips; The response data is sent to the SOC end through the target chip, so that the SOC end displays the response data on the functional interface of the central control device or the vehicle-mounted instrument.

2. The automobile service layer communication method according to claim 1, characterized in that: The step of classifying the processing request comprises: Parsing the processing request to obtain a request keyword, and determining a data structure of the processing request according to the request keyword; The step of generating response data of the processing request according to the processing result and the classification result comprises: According to the logic processing result, the value of the result field in the data structure is updated to obtain the response data.

3. The automobile service layer communication method according to claim 2, characterized in that: A communication channel is formed between the first communication interface and each of the second communication interfaces, and the controller pre-stores a matching table, which records the matching relationship between each data structure and each of the communication channels; The step of determining a target chip from the plurality of peripheral storage chips according to the classification result comprises: The matching table is queried to determine a communication channel that matches the data structure of the processing request, and the peripheral storage chip corresponding to the communication channel is used as the target chip.

4. The automobile service layer communication method according to claim 1 or 2, characterized in that: The controller is communicatively connected with each underlying hardware device of the vehicle and / or a monitoring device of each underlying hardware device; The step of obtaining a processing result in response to the processing request comprises: Obtaining operation data reported by the underlying hardware device and / or the monitoring device corresponding to the processing request; The operation data is processed to obtain a processing result.

5. The automobile service layer communication method according to claim 2, characterized in that: The method further comprises: Obtain a protocol table file, and read the text content of the protocol table file; wherein the text content includes a structure definition of each protocol message of the communication protocol between the SOC end and the controller; Generate a data structure of each protocol message according to the structure definition; According to preset keyword classification rules, each of the data structures is stored in a different project file; The step of determining the data structure of the processing request according to the request keyword comprises: According to the request keyword, a data structure matching the request keyword is determined from all stored data structures, and a sender and receiver are determined according to the project file where the data structure is located.

6. A vehicle service layer communication method, characterized in that: The SOC end is applied to a vehicle, the SOC end is connected to a plurality of peripheral storage chips, the second communication interface of each of the peripheral storage chips is connected to the first communication interface of the controller of the vehicle to form a communication channel, the SOC end is communicatively connected with the vehicle-mounted instrument and the central control device of the vehicle, and the method includes: Receiving a processing request sent by the vehicle instrument or central control device; Determine a communication channel that matches the processing request, and use the peripheral storage chip corresponding to the communication channel as the target chip; The processing request is sent to the controller through the second interface of the target chip; wherein the controller implements the automotive business layer communication method according to any one of claims 1 to 5; Receive response data returned by the controller through the target chip, and report the response data to the target device for display on the functional interface of the target device; wherein the target device is the vehicle instrument or central control device that sends the processing request.

7. The automobile service layer communication method according to claim 6, characterized in that: The step of determining a communication channel matching the processing request comprises: Parsing the processing request to obtain a request keyword, and determining a data structure of the processing request according to the request keyword; A preset matching table is queried to determine a communication channel that matches the data structure of the processing request.

8. An automobile service layer communication device, characterized in that: A controller applied to a vehicle, wherein a plurality of peripheral storage chips are connected to the SOC end of the vehicle, a first communication interface of the controller is respectively connected to a second communication interface of each of the peripheral storage chips, the SOC end is communicatively connected to an onboard instrument and a central control device of the vehicle, and the device comprises a receiving module, a processing module and a sending module: The receiving module is used to receive any processing request through the first communication interface; wherein the processing request is sent by the SOC end through the second communication interface of the peripheral storage chip matching the processing request after receiving the processing request from the vehicle instrument or the central control device; a communication channel is formed between the second communication interface of each of the peripheral storage chips and the first communication interface of the controller; The processing module is used to obtain a processing result in response to the processing request, classify the processing request, and generate response data of the processing request according to the processing result and the classification result; The processing module is further used to determine a target chip from the plurality of peripheral storage chips according to the classification result; The sending module is further used to send the response data to the SOC end through the target chip, so that the SOC end displays the response data on the functional interface of the central control device or the vehicle instrument.

9. An electronic device, characterized in that: It comprises a processor and a memory, the memory storing a computer program executable by the processor, and the processor executing the computer program to implement the automotive business layer communication method as described in any one of claims 1 to 5, or the automotive business layer communication method as described in claim 6 or 7.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the automobile service layer communication method according to any one of claims 1 to 5 or the automobile service layer communication method according to claim 6 or 7 is implemented.

Citation Information

Patent Citations

  • MCU communication service system of intelligent host

    CN113973088A