Communication method, device and protocol stack based on SPI bus
By adding application layer, transport layer and data link layer data processing flow to the SPI bus, the problem of no upper layer message format definition and transmission protocol guarantee of the SPI bus is solved, and reliable data transmission and connection management are realized.
Patent Information
- Application Number
- CN202211192689.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-09-28
AI Technical Summary
The SPI bus only defines the communication specifications related to the physical layer, without upper-layer message format definitions and transmission protocol guarantees, and therefore cannot provide reliable connection management.
A communication method based on the SPI bus is provided. The application layer receives command messages and calculates the command length, calls the transport layer for frame processing, adds start characters and check codes at the data link layer, and sends data through the driver layer and physical layer. Data verification and packet assembly are performed to ensure data integrity and accuracy.
It achieves more reliable connection management, ensuring the integrity and accuracy of data transmission, and solves the problem that the SPI bus cannot provide reliable connection management.
Smart Images

Figure CN115643126B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a communication method, device and protocol stack based on SPI bus. BACKGROUND
[0002] SPI (Serial Peripheral Interface) bus is a high-speed full-duplex communication bus, which works in a master-slave mode, usually has one master device and one or more slave devices, and is widely used in the transmission of data between ADAS (Advanced Driving Assistance System) domain controller SOC (System on Chip). SUMMARY
[0003] The purpose of the present application is to provide a communication method, a communication protocol stack and a communication device based on SPI bus, a terminal device and a readable storage medium.
[0004] In a first aspect, the present application provides a communication method based on SPI bus, comprising:
[0005] receiving a command message sent by an application in an application layer, and calculating a corresponding command length according to the command message;
[0006] calling a first sending interface of a transmission layer, and performing frame processing on the command message according to the command length through the first sending interface to obtain at least one frame data;
[0007] adding a first frame start symbol and a first check code to the at least one frame data through a second sending interface of a data link layer to obtain first communication data, and sending the first communication data to a peer through a driver layer and a physical layer.
[0008] In an optional embodiment, the method further comprises:
[0009] receiving second communication data sent by the peer through the data link layer, and checking the second communication data based on a second frame start symbol and a second check code;
[0010] after the second communication data passes the check, buffering the second communication data through a first receiving interface of the transmission layer, and packetizing the second communication data to obtain a data packet after receiving a tail frame of the second communication data;
[0011] The second receiving interface based on the application layer sends the data packet to a corresponding function application according to a function command ID of the data packet.
[0012] In an optional implementation, the method further comprises:
[0013] After the second communication data verification fails, an error response is sent to the opposite end.
[0014] In an optional implementation, the calculating of the corresponding command length according to the command message comprises:
[0015] The corresponding function command ID and timestamp are filled based on the command message, and the corresponding command length is calculated.
[0016] In an optional implementation, the frame processing of the command message according to the command length through the first sending interface to obtain at least one frame data comprises:
[0017] The frame mode corresponding to the command message is determined according to the command length through the first sending interface, wherein the type of the frame mode comprises a single frame mode and a continuous frame mode.
[0018] When the type of the frame mode is the continuous frame mode, the command message is split into at least one fixed-length data, and the at least one fixed-length data is encapsulated according to a transmission layer protocol to obtain at least one frame data.
[0019] In an optional implementation, the determining of the frame mode corresponding to the command message according to the command length through the first sending interface comprises:
[0020] When the command length is less than or equal to a preset length, the single frame mode is selected.
[0021] When the command length is greater than the preset length, the continuous frame mode is selected.
[0022] In a second aspect, the application provides a communication protocol stack based on an SPI bus, the communication protocol stack comprising an application layer, a transmission layer and a data link layer.
[0023] The application layer is configured to receive a command message sent by a function application, and calculate a corresponding command length according to the command message.
[0024] The transmission layer is configured to perform frame processing on the command message according to the command length through a first sending interface to obtain at least one frame data.
[0025] The data link layer adds a first frame start symbol and a first check code to the at least one frame data through a second sending interface of the data link layer to obtain first communication data, and transmits the first communication data to a peer end through the driver layer and the physical layer.
[0026] In a third aspect, the present application provides a communication device based on an SPI bus, the device comprising:
[0027] The receiving module receives a command message sent by a functional application through an application layer, and calculates a corresponding command length according to the command message.
[0028] The fragmentation module invokes a first sending interface of a transport layer, and performs frame processing on the command message according to the command length through the first sending interface to obtain at least one frame data.
[0029] The sending module adds a first frame start symbol and a first check code to the at least one frame data through a second sending interface of a data link layer to obtain first communication data, and transmits the first communication data to a peer end through a driver layer and a physical layer.
[0030] In a fourth aspect, the present application provides a terminal device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program performs the communication method based on the SPI bus when running on the processor.
[0031] In a fifth aspect, the present application provides a readable storage medium storing a computer program, and the computer program performs the communication method based on the SPI bus when running on a processor.
[0032] The embodiment of the present application has the following beneficial effects:
[0033] The embodiment of the present application provides a communication method based on an SPI bus, which receives a command message sent by a functional application through an application layer, and calculates a corresponding command length according to the command message; invokes a first sending interface of a transport layer, and performs frame processing on the command message according to the command length through the first sending interface to obtain at least one frame data; adds a first frame start symbol and a first check code to the at least one frame data through a second sending interface of a data link layer to obtain first communication data, and transmits the first communication data to a peer end through a driver layer and a physical layer, and the present application can provide more reliable connection management.
[0034] In order to make the above objectives, characteristics and advantages of the present application more obvious and easy to understand, the following preferred embodiments are described in detail below, and the accompanying drawings are described as follows. BRIEF DESCRIPTION OF DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the present application, the drawings required to be used in the embodiments will be briefly introduced as follows. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be regarded as limiting the scope of protection of the present application. In the various drawings, similar components are denoted by similar reference numerals.
[0036] Figure 1 A structure schematic diagram of a communication protocol stack based on an SPI bus according to an embodiment of the present application is shown.
[0037] Figure 2 A first flow schematic diagram of a communication method based on an SPI bus according to an embodiment of the present application is shown.
[0038] Figure 3 A flow schematic diagram of determining frame data in a communication method based on an SPI bus according to an embodiment of the present application is shown.
[0039] Figure 4 A second flow schematic diagram of a communication method based on an SPI bus according to an embodiment of the present application is shown.
[0040] Figure 5 A structure schematic diagram of a communication device based on an SPI bus according to an embodiment of the present application is shown.
[0041] Main component symbol explanation:
[0042] 10 - a communication device based on an SPI bus; 11 - a receiving module; 12 - a fragmentation module; 13 - a sending module. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application.
[0044] The components of the embodiments of the present application generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0045] Hereinafter, the terms "include", "has", and similar terms are intended to mean that specific features, numbers, steps, operations, elements, components, or combinations thereof are present, and should not be understood as excluding the presence or addition of one or more other features, numbers, steps, operations, elements, components, or combinations thereof.
[0046] In addition, the terms "first", "second", "third", and the like are used only to distinguish descriptions, and should not be understood as indicating or implying relative importance.
[0047] Unless otherwise defined, all terms used herein (including technical terms and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present application belong. The terms (such as those defined in a generally used dictionary) will be interpreted to have the same meaning as the contextual meaning in the relevant technical field and will not be interpreted to have an idealized or overly formal meaning unless clearly defined in various embodiments of the present application.
[0048] Embodiment 1
[0049] In this application, as shown in Figure 1 The SPI bus-based communication protocol stack includes a master node (Master node) and a slave node (Slave node), both of which include a hardware part and a data link layer (Data Link Layer), a transport layer (Transport Layer) and an application layer (Application Layer), the hardware part includes a physical layer (Physical Layer) and a driver layer (SPI Driver), the physical layer is implemented through the SPI controller hardware of the chip; the driver layer is the driving part of the chip, mainly used to provide the SPI frame transceiver of the underlying SPI and the interrupt notification mechanism of the related GPIO (General-purpose input / output, General-purpose input / output). Among them, the data link layer is used to implement the SPI communication protocol management, and the fixed length SPI frame will be adopted; the transport layer will be responsible for the data fragmentation operation of the functional application, and is used to transmit variable length data blocks between the application layer; the application layer is used to implement the SPI message protocol transmission of the functional application definition data, and the application layer and the functional application interact with each other through inter-process communication data distribution.
[0050] Please refer to Figure 2 , the application embodiment proposes a SPI bus-based communication method, which exemplarily includes steps S100-S300.
[0051] Step S100: receiving the command message sent by the application layer function application, and calculating the corresponding command length according to the command message.
[0052] It can be understood that the application layer adopts a common data format, such as an xml format and a JSON format, and the protocol of the application layer can be a DNS domain name system, an HTTP hypertext transfer protocol, and an FTP file transfer protocol, etc. Different protocols correspond to different protocol IDs. The command message is composed of a Msg Header (message title) and a Msg Content (message content). The message title includes a function command ID, a command length, a protocol ID, and a timestamp. The message content is data defined by the function application, and the length is not limited, and the message data sent by the application layer will be split by the transmission layer. Exemplarily, the application layer format is shown in Table 1, and the message title definition is shown in Table 2.
[0053] Byte0-15 Byte16-x Msg Header Msg Content
[0054] Table 1
[0055]
[0056]
[0057] Table 2
[0058] In the present application, the function application will send a command message to the application layer through inter-process communication, the application layer will receive the command message, and will determine the corresponding command length after filling the function command ID and supplementing the timestamp in the application layer. The message title of the command message includes a protocol ID, a function command ID, and a timestamp, etc. After receiving the command message, the corresponding function command ID will be filled and the corresponding timestamp will be supplemented in the application layer according to the message title, and the corresponding command length of the command message will be calculated.
[0059] Step S200: calling a first sending interface of the transmission layer, and performing frame processing on the command message according to the command length through the first sending interface to obtain at least one frame data.
[0060] It can be understood that the transmission layer is used to implement a fixed-length fragmentation mechanism, that is, the long data is split into several fixed-length data for sending, and the split data is sent. When sending, the split data of the application layer is encapsulated according to the transmission layer protocol, and after encapsulation, the data is sent through the data link layer. When the sending is completed, a notification of successful sending is received. In addition, when the application layer receives data, the received data from the opposite end is buffered, and the data is packaged according to the transmission layer protocol.
[0061] Wherein, the command message is divided into single frame mode and continuous frame mode according to the data length received by the application layer, and will be distinguished by Mask mask, i.e. the first byte of the transmission layer. Wherein, the description of Mask mask is shown in Table 3, including tail frame flag, continuous frame flag, first frame flag and reserved part, etc. The format of single frame mode is shown in Table 4, and the multi-frame mode is continuous frame mode, which is divided into first frame and non-first frame. The format of first frame is the same as that of single frame mode, and the format of non-first frame is shown in Table 5, including fragmentation mask, fragmentation sequence number and fragmentation data, etc. In this application, the message data will be distinguished as first frame or non-first frame by Mask mask.
[0062]
[0063] Table 3
[0064]
[0065] Table 4
[0066] Byte0 Byte1 Byte2~251 Mask (Fragment Mask) Count (Fragment Sequence Number) Data (Fragment Data)
[0067] Table 5
[0068] The transmission layer includes a first sending interface. After obtaining the command length, the first sending interface of the transmission layer is called to perform corresponding frame processing on the command message according to the command length, so as to obtain at least one frame data.
[0069] In an embodiment, as shown in Figure 3 frame processing on the command message according to the command length through the first sending interface to obtain at least one frame data, including sub-steps S210-S220.
[0070] Sub-step S210: determining the frame mode corresponding to the command message according to the command length through the first sending interface, wherein the type of the frame mode includes single frame mode and continuous frame mode.
[0071] In this application, the first sending interface of the transmission layer called will select the corresponding frame mode according to the command length of the command message, wherein the frame mode is single frame mode or continuous frame mode. When the command length is less than or equal to the preset length, the single frame mode is selected; when the command length is greater than the preset length, the continuous frame mode is selected. For example, when the application data to be transmitted by the transmission layer does not exceed 248 Bytes, the single frame mode is selected; when the application data to be transmitted by the transmission layer is greater than 248 Bytes, the continuous frame mode is selected.
[0072] Sub-step S220: when the type of the frame mode is continuous frame mode, the command message is split into at least one fixed-length data, and the at least one fixed-length data is encapsulated according to the transmission layer protocol to obtain at least one frame data.
[0073] After determining the corresponding frame mode, when the type of the frame mode is the continuous frame mode, the command message is data fragmented, i.e., the command message is split into at least one fixed-length data, and the obtained at least one fixed-length data is encapsulated according to the transport layer protocol, so as to obtain the corresponding at least one frame data, and the at least one frame data is sent through the data link layer.
[0074] Step S300: adding a first frame start symbol and a first check code to the at least one frame data through the second sending interface of the data link layer to obtain first communication data, and sending the first communication data to the opposite end through the driving layer and the physical layer.
[0075] It can be understood that the data link layer will provide services to the transport layer on the basis of the services provided by the physical layer, mainly including adding and identifying the start symbol and the end symbol of each frame, checking through a corresponding check mechanism, such as CRC (Cyclic Redundancy Check, cyclic redundancy check) and CHECKSUM check, and corresponding error diagnosis mechanism and error processing mechanism for diagnosis and processing of data, and the specific format of the data link layer is shown in Table 6. Among them, Sync occupies 8 bits (bit), indicating synchronization; RC occupies 8 bits, indicating a rolling counter, mainly used to supervise whether the data link layer loses frames; CRC16 / Checksum16 occupies 16 bits, indicating a cyclic verification code, mainly used for error checking; Data indicates the useful data transmitted by the data link layer.
[0076] Byte0 Byte1 Byte2~3 Byte4~255 Sync RC CRC16 / Checksum16 Data
[0077] Table 6
[0078] In the present application, the data link layer includes a second sending interface, and the first frame start symbol and the first check code are added to the obtained at least one frame data through the second interface of the data link layer called to ensure the integrity and accuracy of the data, and the first communication data obtained after adding the first frame start symbol and the first check code is sent to the corresponding opposite end through the driving layer and the physical layer.
[0079] In an embodiment, as shown in FIG. 4, the method further includes steps S400-S600. Figure 4
[0080] Step S400: receiving the second communication data sent from the opposite end through the data link layer, and checking the second communication data based on the second frame start symbol and the second check code.
[0081] In the present application, the data link layer will also receive the second communication data sent by the opposite end, wherein the second communication data comprises a second frame start symbol and a second check code. After receiving the second communication data at the data link layer, the start of a frame will be found according to the second frame start symbol, and then the second check code in the second communication data will be checked by a corresponding check method, such as a CRC and CHECKSUM check method, so as to ensure the integrity and accuracy of the second communication data. If the second communication data fails the check, step S700 of sending an error response to the opposite end will be performed. If the second communication data passes the check, step S500 will be performed. The first communication data is the data sent, and the second communication data is the data received.
[0082] Step S500: buffering the second communication data through the first receiving interface of the transmission layer, and packetizing the second communication data after receiving the tail frame of the second communication data to obtain a data packet.
[0083] The transmission layer comprises a first receiving interface. After the data frame passes the check, the first receiving interface of the transmission layer will be called back, and the second communication data received will be buffered through the first receiving interface. When the second communication data comprises a corresponding tail frame flag, the first receiving interface of the transmission layer will identify the tail frame flag, that is, the transmission layer receives the corresponding tail frame. After receiving the tail frame of the second communication data, a response notification will be sent to the opposite end, and packetizing will be performed according to the transmission layer protocol to obtain a corresponding data packet. The application layer comprises a second receiving interface. After the transmission layer completes the packetizing, the second receiving interface of the application layer will be called back.
[0084] Step S600: sending the data packet to a corresponding function application according to the function command ID of the data packet based on the second receiving interface of the application layer.
[0085] It can be understood that the data packet obtained by packetizing comprises corresponding message content, command length, function command ID, and the like. Each function command ID corresponds to a function application, and the data packet is sent to the corresponding function application according to the function command ID in the data packet through the second receiving interface of the application layer.
[0086] The present application solves the problem that the SPI bus only defines the communication specification related to the physical layer, without upper-layer message format definition and transmission protocol guarantee, and cannot provide reliable connection management. The present application can provide more reliable connection management.
[0087] Based on the SPI bus-based communication method of the above embodiment, an SPI bus-based communication protocol stack is proposed, which comprises an application layer, a transmission layer, and a data link layer.
[0088] The application layer is configured to receive a command message sent by a function application, and calculate a corresponding command length according to the command message.
[0089] The transmission layer is configured to perform frame processing on the command message according to the command length through a first sending interface, to obtain at least one frame data.
[0090] The data link layer is configured to add a first frame start symbol and a first check code to the at least one frame data through a second sending interface of the data link layer, to obtain first communication data, and send the first communication data to a peer end through the driver layer and the physical layer.
[0091] It can be understood that the method steps of the embodiment correspond to the corresponding functions of the SPI bus-based communication method in the above embodiment, and the options of the SPI bus-based communication method are also applicable to the method of the embodiment, which will not be described here.
[0092] The SPI bus-based communication method of the above embodiment, Figure 5 A structure diagram of an SPI bus-based communication device 10 is shown. The SPI bus-based communication device 10 includes:
[0093] The receiving module 11 is configured to receive a command message sent by a function application through an application layer, and calculate a corresponding command length according to the command message.
[0094] The fragmentation module 12 is configured to call a first sending interface of a transmission layer, and perform frame processing on the command message according to the command length through the first sending interface, to obtain at least one frame data.
[0095] The sending module 13 is configured to add a first frame start symbol and a first check code to the at least one frame data through a second sending interface of a data link layer, to obtain first communication data, and send the first communication data to a peer end through a driver layer and a physical layer.
[0096] The SPI bus-based communication device 10 of the embodiment is configured to execute the SPI bus-based communication method of the above embodiment, and the implementation solutions and beneficial effects of the above embodiment are also applicable to the embodiment, which will not be described here.
[0097] The embodiment of the application further provides a terminal device including a memory and a processor, the memory stores a computer program, and the computer program executes the SPI bus-based communication method when running on the processor.
[0098] The embodiment of the application further provides a computer readable storage medium storing a computer program, and the computer program executes the SPI bus-based communication method when running on the processor.
[0099] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can also be implemented by other means. The apparatus embodiments described above are only illustrative, for example, the flowcharts and structural diagrams in the drawings show the possible implementation architecture, function and operation of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that in alternative implementation, the functions noted in the blocks can also occur in different order from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flowchart, and the combination of blocks in the structural diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0100] In addition, the functional modules or modules in the embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0101] 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 solutions of the present application or the part of the present application that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0102] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application.
Claims
1. A communication method based on an SPI bus, characterized in that, The method includes: The application layer receives command messages sent by functional applications and calculates the corresponding command length based on the command messages. The first sending interface of the transport layer is invoked, and the command message is processed into frames according to the command length through the first sending interface to obtain at least one frame data. First communication data is obtained by adding a first frame start character and a first checksum to the at least one frame data through the second transmission interface of the data link layer, and then sending the first communication data to the other end through the driver layer and the physical layer. The step of processing the command message into frames according to the command length through the first sending interface to obtain at least one frame of data includes: The frame mode corresponding to the command message is determined by the first sending interface according to the command length, wherein the frame mode type includes single frame mode and continuous frame mode; When the frame mode type is the continuous frame mode, the command message is split into at least one fixed-length data, and the at least one fixed-length data is encapsulated according to the transport layer protocol to obtain at least one frame data.
2. The communication method based on the SPI bus according to claim 1, characterized in that, Also includes: The data link layer receives the second communication data sent from the peer and verifies the second communication data based on the second frame start character and the second checksum. After the second communication data passes the verification, the second communication data is buffered through the first receiving interface of the transmission layer, and after receiving the tail frame of the second communication data, the second communication data is reassembled to obtain a data packet; Based on the second receiving interface of the application layer, the data packet is sent to the corresponding functional application according to the function command ID of the data packet.
3. The communication method based on the SPI bus according to claim 2, characterized in that, Also includes: If the second communication data verification fails, an error response will be sent to the peer.
4. The communication method based on the SPI bus according to any one of claims 1 to 3, characterized in that, The calculation of the corresponding command length based on the command message includes: Based on the command message, fill in the corresponding function command ID and timestamp, and calculate the corresponding command length.
5. The communication method based on the SPI bus according to claim 1, characterized in that, The step of determining the frame mode corresponding to the command message based on the command length through the first sending interface includes: When the command length is less than or equal to the preset length, the single-frame mode is selected; When the command length is greater than the preset length, the continuous frame mode is selected.
6. A communication protocol stack based on an SPI bus, characterized in that, The communication protocol stack includes an application layer, a transport layer, and a data link layer; The application layer is used to receive command messages sent by functional applications and calculate the corresponding command length based on the command messages; The transport layer is used to perform frame processing on the command message according to the command length through a first sending interface to obtain at least one frame data; specifically, the transport layer is used to determine the frame mode corresponding to the command message according to the command length through the first sending interface, wherein the frame mode type includes single frame mode and continuous frame mode; when the frame mode type is continuous frame mode, the command message is split into at least one fixed-length data, and the at least one fixed-length data is encapsulated according to the transport layer protocol to obtain at least one frame data; The data link layer is used to add a first frame start symbol and a first checksum to the at least one frame data through the second transmission interface of the data link layer to obtain first communication data, and then send the first communication data to the other end through the driver layer and the physical layer.
7. A communication device based on an SPI bus, characterized in that, The device includes: The receiving module is used to receive command messages sent by functional applications through the application layer, and calculate the corresponding command length based on the command messages; The fragmentation module is used to call the first sending interface of the transport layer, and to perform frame processing on the command message according to the command length through the first sending interface to obtain at least one frame data; the fragmentation module is specifically used to: determine the frame mode corresponding to the command message according to the command length through the first sending interface, wherein the frame mode type includes single frame mode and continuous frame mode; when the frame mode type is continuous frame mode, the command message is split into at least one fixed-length data, and the at least one fixed-length data is encapsulated according to the transport layer protocol to obtain at least one frame data; The sending module is used to add a first frame start symbol and a first checksum to the at least one frame data through the second sending interface of the data link layer to obtain first communication data, and send the first communication data to the other end through the driver layer and the physical layer.
8. A terminal device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when run on the processor, executes the SPI bus-based communication method according to any one of claims 1 to 5.
9. A readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the SPI bus-based communication method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Communication method and device based on vehicle-mounted SPI bus
CN114050947A