Bus communication method and device, equipment, storage medium and program product

By assigning node ID parameters to each component according to the number of bus nodes in the two-wheeled electric vehicle bus communication, the problem of non-universal bus communication protocol is solved, communication efficiency and compatibility are improved, and maintenance costs are reduced.

CN119996107APending Publication Date: 2025-05-13YADEA TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510145785.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the existing two-wheeled electric vehicle bus communication architecture, the node allocation caused by the number of components is inconsistent, resulting in the bus communication protocol being uncommon, increasing communication timing changes and maintenance costs.

Method used

By assigning node ID parameters to each component according to the number of bus nodes, ensuring that the number of nodes of integrated and split components is consistent, thereby achieving a unified bus communication protocol.

Benefits of technology

Improves the efficiency and compatibility of bus communication, reduces component maintenance costs, and simplifies the communication process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996107A_ABST
    Figure CN119996107A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a bus communication method and device, equipment, a storage medium and a program product. The method comprises the following steps: distributing node ID parameters for each component mounted on a bus according to the number of bus nodes; at least one integrated component and a plurality of split components are hung on the bus; the integrated component comprises a master node and at least one slave node; the split type part comprises at least one slave node; the master node in the integrated component sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in the multiple split components through the bus; and the integrated component and the split components send response messages to the main node through the bus based on the corresponding request messages. According to the embodiment of the invention, the node ID parameters are distributed for each component mounted on the bus according to the number of the bus nodes, so that the problem that a bus communication protocol is not universal can be solved, the communication efficiency can be improved, and the component maintenance cost can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of bus communication technology, and in particular to a bus communication method, device, equipment, storage medium and program product. Background Art

[0002] At present, the bus communication architecture of two-wheeled electric vehicles allocates nodes according to the number of components. Whether it is an integrated component or a split component, each component is only allocated one node, making the previous bus communication protocol not universal. When the communication timing changes, multiple sets of firmware are required when developing components, and the cost and maintenance increase. When there are many ways to integrate, the situation is more complicated and troublesome. Summary of the invention

[0003] The present application provides a bus communication method, device, equipment, storage medium and program product, which can solve the problem that the bus communication protocol is not universal, improve communication efficiency and save component maintenance costs.

[0004] In the first aspect, an embodiment of the present application provides a bus communication method, comprising: allocating node ID parameters to each component mounted on the bus according to the number of bus nodes; wherein at least one integrated component and multiple split components are mounted on the bus; the integrated component includes a master node and at least one slave node; the split component includes at least one slave node; the master node in the integrated component sends a corresponding request message to the slave node in the integrated component and the slave nodes in the multiple split components through the bus; the integrated component and each of the split components send a response message to the master node through the bus based on the corresponding request message.

[0005] In the second aspect, an embodiment of the present application also provides a bus communication device, comprising: a node allocation module, used to allocate node ID parameters to each component mounted on the bus according to the number of bus nodes; wherein at least one integrated component and multiple split components are mounted on the bus; the integrated component includes a master node and at least one slave node; the split component includes at least one slave node; a request message module, used for the master node in the integrated component to send corresponding request messages to the slave nodes in the integrated component and the slave nodes in the multiple split components through the bus; a response message module, used for the integrated component and each of the split components to send response messages to the master node through the bus based on the corresponding request messages.

[0006] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the bus communication method as described in the embodiment of the present application.

[0007] In a fourth aspect, an embodiment of the present application further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the bus communication method as described in the embodiment of the present application.

[0008] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the bus communication method as described in the embodiment of the present application.

[0009] The technical solution of the embodiment of the present application is to allocate node ID parameters to each component mounted on the bus according to the number of bus nodes; at least one integrated component and multiple split components are mounted on the bus; the integrated component includes a master node and at least one slave node; the split component includes at least one slave node; the master node in the integrated component sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in the multiple split components through the bus; the integrated component and each of the split components send response messages to the master node through the bus based on the corresponding request messages. In this embodiment, the method of allocating node ID parameters to each component mounted on the bus according to the number of bus nodes can solve the problem that the bus communication protocol is not universal, improve communication efficiency and save component maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0011] Figure 1 A schematic diagram of a bus communication method flow chart provided in an embodiment of the present application;

[0012] Figure 2 A bus communication node topology diagram is provided for an embodiment of the present invention;

[0013] Figure 3 An electrical architecture diagram of a vehicle bus component provided by an embodiment of the present invention;

[0014] Figure 4Another electrical architecture diagram of a vehicle bus component provided by an embodiment of the present invention;

[0015] Figure 5 A bus communication node polling timing diagram provided by an embodiment of the present invention;

[0016] Figure 6 Another bus communication node polling timing diagram provided by an embodiment of the present invention;

[0017] Figure 7 Another bus communication flow chart provided by an embodiment of the present invention;

[0018] Figure 8 Another bus communication flow chart provided by an embodiment of the present invention;

[0019] Fig. 9 A schematic diagram of the structure of a bus communication device provided in an embodiment of the present application;

[0020] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0022] It should be understood that the various steps recorded in the method implementation of the present disclosure can be performed in different orders and / or in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect. The term "including" and its variations used herein are open inclusions, that is, "including but not limited to". It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless otherwise clearly stated in the context, it should be understood as "one or more". It is understandable that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of the corresponding laws, regulations and relevant provisions.

[0023] Figure 1The present invention provides a flowchart of a bus communication method. The present invention is applicable to the situation where the components in a two-wheeled electric vehicle perform bus communication. In this embodiment, there is no limitation on the communication standard of the bus. For example, the communication standard of the bus may be RS485. The method may be executed by a bus communication device, which may be implemented in the form of software and / or hardware. Optionally, the method may be implemented by an electronic device, which may be a mobile terminal, a PC, or a server. Figure 1 As shown, the method includes:

[0024] S110 , assigning node ID parameters to each component mounted on the bus according to the number of bus nodes.

[0025] Among them, at least one integrated component and a plurality of split components are mounted on the bus; the integrated component includes a master node and at least one slave node; the split component includes at least one slave node.

[0026] In this embodiment, there is no restriction on the components and the number of components included in the integrated component. For example, the number of components in the integrated component is 2, and the integrated component can be a body control module (Body Control Module, BCM). The integrated component can be integrated by an Application Lifecycle Management (Application Lifecycle Management, ALM) component and an Internet of Things (Internet of Things, IOT) component. The integrated component can also be integrated by an ignition control module (Ignition Control Module, ICM) component and an ALM component. Among them, the ALM component is the master node in the integrated component, and the remaining nodes are slave nodes. The nodes in the split component are all used as slave nodes.

[0027] In this embodiment, there is no restriction on the split components. For example, if the integrated component is integrated by ALM and IOT, the multiple split components can be ICM components, Motor Control Unit (MCU) components, and Battery Management System (BMS) components. For another example, if the integrated component is integrated by ALM and ICM, the multiple split components can be IOT components, MCU components, and BMS components. Among them, the MCU can also be connected to other split components, such as the Anti-lock Braking System (ABS), through the K solid line 1. The BMS can be connected to other split components, such as the Charger (CHG), through the K solid line 2.

[0028] The number of integrated component nodes is equal to the total number of all components in the integrated component, for example, the integrated component (ALM and IOT), one component, two nodes.

[0029] For example, taking ALM, IOT and ICM as examples, ALM, IOT and ICM are originally three components and three nodes. In the integrated components (ALM and IOT) and the split component ICM in this embodiment, there are two components and three nodes. Although the components are different, there are still three nodes during bus communication (that is, the nodes remain unchanged), and the bus protocol can share a copy, thereby improving the compatibility of bus communication and the reusability of bus protocol. That is, in this embodiment, node identification (ID) parameters are allocated to each component based on the number of bus nodes, and node ID parameters are not allocated based on the number of electrical components. In this way, the bus communication protocol can be uniformly designed according to the number of nodes, so that it can be consistent under different electrical architectures (that is, the number of nodes remains unchanged under different electrical architectures), thereby improving the compatibility of bus communication and the reusability of the protocol.

[0030] S120. The master node in the integrated component sends a corresponding request message to the slave nodes in the integrated component and the slave nodes in the plurality of split components through the bus.

[0031] Among them, the split component itself can be used as a slave node. It should be noted that if the MCU is not mounted with ABS, the number of slave nodes of the split component MCU is one, that is, the MCU itself is used as a slave node. If the MCU is mounted with ABS, the ABS is also used as a slave node on the basis that the MCU itself is used as a slave node. Since the ABS is connected to the MCU through a solid line, the response message of the ABS can be sent by the MCU, so that the split component MCU is equivalent to including 2 slave nodes. It should be noted that if CHG is not online, that is, the BMS is not plugged in with CHG, the number of slave nodes of the split component BMS is one, that is, the BMS itself is used as a slave node. If CHG is online, that is, the BMS is plugged in with CHG, the CHG is also used as a slave node on the basis that the BMS itself is used as a slave node. Since CHG is connected to the BMS through a solid line, the response message of CHG can be sent by the BMS, so that the split component BMS is equivalent to including 2 slave nodes.

[0032] In this embodiment, the master node in the integrated component can send corresponding request messages to the slave nodes in the integrated component and the slave nodes in multiple split components through the bus in a preset order and in combination with the received response messages.

[0033] Optionally, the master node in the integrated component sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in multiple split components through the bus, including: the master node sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in multiple split components in turn through the bus in a polling manner.

[0034] In this embodiment, the master node sends corresponding request messages to each slave node in a polling manner through the bus, that is, sends corresponding request messages to each slave node in sequence according to a set order. In addition, the master node can send a request message to the current slave node after receiving the request message from the previous slave node.

[0035] Optionally, the master node sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in the multiple split components in turn through the bus in a polling manner, including: if the current slave node is the first slave node, the master node sends the corresponding request message to the current slave node through the bus; wherein the request message includes the ID parameter of the current slave node; if the current slave node is not the first slave node, the master node sends the corresponding request message to the current slave node through the bus based on the response message received from the previous slave node.

[0036] Exemplarily, the ID parameters of each node are distributed as shown in Table 1 below.

[0037] Table 1 Distribution of node ID parameters

[0038] node IOT ALM ICM MCU BMS ABS CHG ID Parameters 0Ah 0B 0Ch 0h 0eH 0F 10h

[0039] In this embodiment, a request message is sent to the current slave node based on the response message received from the previous slave node, which can ensure orderly and efficient communication between the master node and the slave node, avoid communication conflicts, and ensure the accuracy and integrity of the communication.

[0040] S130, the integrated component and each split component sends a response message to the master node through the bus based on the corresponding request message.

[0041] The number of response messages sent by the integrated component and each split component is one.

[0042] In this embodiment, although the number of nodes in bus communication does not change, on this basis, the number of messages in bus communication is based on the number of components. For example, for an integrated component, a response message can be sent to carry messages of all nodes included in the integrated component. For a split component, a response message can also be sent to carry a message of at least one node included in the split component. Therefore, not only can the bus communication protocol be reused, but the number of messages can also be reduced, which can solve the problem of too many bus communication messages, resulting in a longer bus duration and low bus efficiency, and can improve the flexibility and communication efficiency of component communication.

[0043] Optionally, the integrated component and each split component send response messages to the master node through the bus based on the corresponding request message, including: if the current slave node is a slave node in the integrated component, then the response message sent by the current slave node to the master node carries the message information of all nodes in the integrated component; if the current slave node is one of multiple slave nodes in the split component, then the response message sent by the current slave node to the master node carries the message information of multiple slave nodes in the split component; if the current slave node is the only slave node in the split component, then the response message sent by the current slave node to the master node carries the message information of the current slave node in the split component.

[0044] Exemplarily, the number of nodes included in the integrated component and the split component is taken as two, and the response message format is as shown in Table 2 below.

[0045] Table 2 Response message format

[0046]

[0047]

[0048] Among them, the length LEN1 is the length of data content 1, and the length LEN2 is the length of data content 2. Data content 1 is the message corresponding to node ID1, and data content 2 is the message corresponding to node ID2.

[0049] In this embodiment, if two nodes of an integrated component or a split component need to be sent simultaneously, node ID1, length LEN1, and data content 1 are the message of node 1, and node ID2, length LEN2, and data content 2 are the message of node 2, as shown in Table 3, Table 4, Table 5, and Table 6.

[0050] Table 3 Integrated component (IOT+ALM) response message

[0051]

[0052] Table 4 Integrated component (ICM+ALM) response message

[0053]

[0054]

[0055] Table 5 MCU (when ABS is installed) response message

[0056]

[0057] In this embodiment, the MCU component is connected to the ABS through the K line. When the ABS is mounted as an optional component, the MCU sends the ABS message information on the bus. Therefore, the BMS component sends a response message. The response message sent by the MCU (when the ABS is installed) carries the message information of the MCU node and the ABS node. The response message sent by the MCU (when the ABS is not installed) carries the message information of the MCU node, thereby improving communication efficiency.

[0058] Table 6 BMS (when charger is plugged in) response message

[0059]

[0060]

[0061] In this embodiment, the charger CHG is not real-time online and is not directly mounted on the bus, but it still needs to communicate on the bus and can use the BMS node to send it. Therefore, the BMS component sends a response message. When the charger is plugged in, the response message sent carries the message information of the BMS and CHG nodes. When the charger is not plugged in, the response message sent carries the message information of the BMS, thereby improving communication efficiency.

[0062] In this embodiment, when the split component has only one node, node ID1, length LEN1, data content 1 is the message of node 1, node ID2 and length LEN2 are 0, and data content 2 is none, as shown in Table 7, Table 8, Table 9 and Table 10.

[0063] Table 7 ICM response message

[0064]

[0065] Table 8 IOT response message

[0066]

[0067] Table 9 MCU (when ABS is not equipped) response message

[0068]

[0069]

[0070] Table 10 BMS (charger not detected) response message

[0071]

[0072] In this embodiment, when the charger is not plugged in, the response message sent carries the message information of the BMS.

[0073] In this embodiment, the response message sent by the slave node in the integrated component to the master node carries the message information of all nodes in the integrated component. When the split component includes multiple nodes, the response message sent by the split component to the master node carries the message information of multiple slave nodes in the split component, which can improve the bus communication efficiency.

[0074] Optionally, the master node reads the response message sent by each slave node in real time. Each slave node reads the request message sent by the master node to each slave node in real time.

[0075] In this embodiment, when the master node sends a request message to any slave node, all slave nodes will read the request message in real time through the bus, and each slave node will read the request message sent by the master node to each slave node in real time. After each slave node receives the request message, if the ID parameter carried in the request message is consistent with the ID parameter of its own node, the corresponding component (or slave node) sends a response message to the master node through the bus, and the master node and the slave node will receive and read the response message in real time. After the master node receives the response message, it sends a request message to another component (or slave node). If the ID parameter carried in the request message is inconsistent with the ID parameter of its own node, no operation is performed.

[0076] In this embodiment, the nodes of each component on the bus can read message information (including request messages and response messages) from the bus in real time, thereby improving communication efficiency.

[0077] For example, Figure 2 A bus communication node topology diagram is provided for an embodiment of the present invention. Figure 2 In the figure, each node has a corresponding node ID. The dotted ABS and CHG are not online in real time. ABS can be optional or installed later. CHG is offline when not charging and online when charging. Figure 3 An electrical architecture diagram of a vehicle bus component provided in an embodiment of the present invention. Figure 4 Another electrical architecture diagram of a vehicle bus component provided in an embodiment of the present invention. Figure 5 A bus communication node polling timing diagram provided by an embodiment of the present invention. Figure 6 Another bus communication node polling timing diagram provided by an embodiment of the present invention.

[0078] For example, Figure 7Another bus communication flow chart provided by the embodiment of the present invention. Figure 7 As shown, the integrated component is integrated by the ALM component and the IOT component, and the multiple split components are the ICM component, the MCU component and the BMS component. Among them, the node of the ALM component is the ALM node, which is the master node, and the node of the IOT component is the IOT node, which is the slave node. The node of the ICM component is the ICM node, which is the slave node. The node of the MCU component is the MCU node, which is the slave node. The node of the BMS component is the BMS node, which is the slave node. The ALM node sends a request message to the IOT node through the bus. The IOT node is a node in the integrated component. The response message sent by the integrated component through the bus carries the message of the IOT node and the ALM node. The ALM node sends a request message to the ICM node through the bus. The response message sent by the ICM component through the bus carries the message of the ICM node. The ALM node sends a request message to the MCU node through the bus. If the MCU component is mounted with the ABS component, the response message sent by the MCU component through the bus carries the message of the MCU node and the ABS node. If the MCU component is not equipped with an ABS component, the response message sent by the MCU component through the bus carries the message of the MCU node. The ALM node sends a request message to the BMS node through the bus. If the CHG component is plugged into the BMS component, the response message sent by the BMS component through the bus carries the messages of the BMS node and the CHG node. If the CHG component is not plugged into the BMS component, the response message sent by the BMS component through the bus carries the message of the BMS node.

[0079] Figure 8 Another bus communication flow chart provided by the embodiment of the present invention. Figure 8As shown, the integrated component is integrated by the ALM component and the ICM component, and the multiple split components are the IOT component, the MCU component and the BMS component. Among them, the node of the ALM component is the ALM node, which is the master node, and the node of the ICM component is the ICM node, which is the slave node. The node of the IOT component is the IOT node, which is the slave node. The node of the MCU component is the MCU node, which is the slave node. The node of the BMS component is the BMS node, which is the slave node. The ALM node sends a request message to the IOT node through the bus, and the response message sent by the IOT component through the bus carries the message of the IOT node. The ALM node sends a request message to the ICM node through the bus, and the response message sent by the integrated component through the bus carries the messages of the ICM node and the ALM node. The ALM node sends a request message to the MCU node through the bus. If the MCU component is mounted with the ABS component, the response message sent by the MCU component through the bus carries the messages of the MCU node and the ABS node. If the MCU component is not mounted with the ABS component, the response message sent by the MCU component through the bus carries the message of the MCU node. The ALM node sends a request message to the BMS node through the bus. If the CHG component is plugged into the BMS component, the response message sent by the BMS component through the bus carries the messages of the BMS node and the CHG node. If the CHG component is not plugged into the BMS component, the response message sent by the BMS component through the bus carries the message of the BMS node.

[0080] The technical solution of the embodiment of the present application is to allocate node ID parameters to each component mounted on the bus according to the number of bus nodes; wherein at least one integrated component and multiple split components are mounted on the bus; the integrated component includes a master node and at least one slave node; the split component includes at least one slave node; the master node in the integrated component sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in the multiple split components through the bus; the integrated component and each split component send response messages to the master node through the bus based on the corresponding request messages. In this embodiment, the method of allocating node ID parameters to each component according to the number of bus nodes can solve the problem that the bus communication protocol is not universal, improve communication efficiency and save component maintenance costs.

[0081] Fig. 9 A schematic diagram of a bus communication device structure provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the device includes: a node allocation module 910, a request message module 920 and a response message module 930;

[0082] The node allocation module 910 is used to allocate node ID parameters to each component mounted on the bus according to the number of bus nodes; wherein at least one integrated component and a plurality of split components are mounted on the bus; the integrated component includes a master node and at least one slave node; the split component includes at least one slave node;

[0083] A request message module 920, configured for the master node in the integrated component to send a corresponding request message to the slave nodes in the integrated component and the slave nodes in the plurality of split components through the bus;

[0084] The response message module 930 is used for the integrated component and each of the split components to send a response message to the master node through the bus based on the corresponding request message.

[0085] The technical solution of the embodiment of the present application is to allocate node ID parameters to each component mounted on the bus according to the number of bus nodes through the node allocation module; to send corresponding request messages to the slave nodes in the integrated component and the slave nodes in the multiple split components through the bus through the request message module; and to send response messages to the master node through the bus based on the corresponding request messages through the response message module. In this embodiment, the method of allocating node ID parameters to each component mounted on the bus according to the number of bus nodes can solve the problem that the bus communication protocol is not universal, improve communication efficiency and save component maintenance costs.

[0086] Optionally, the request message module is specifically used for: the master node sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in the multiple split components in turn through the bus in a polling manner.

[0087] Optionally, the request message module is also used for: if the current slave node is the first slave node, the master node sends a corresponding request message to the current slave node through the bus; wherein the request message includes the ID parameter of the current slave node; if the current slave node is not the first slave node, the master node sends a corresponding request message to the current slave node through the bus based on the response message received from the previous slave node.

[0088] The number of response messages sent by the integrated component and each of the split components is one.

[0089] Optionally, the response message module is specifically used for: if the current slave node is a slave node in the integrated component, then the response message sent by the current slave node to the master node carries the message information of all nodes in the integrated component; if the current slave node is one of multiple slave nodes in the split component, then the response message sent by the current slave node to the master node carries the message information of multiple slave nodes in the split component; if the current slave node is the only slave node in the split component, then the response message sent by the current slave node to the master node carries the message information of the current slave node in the split component.

[0090] The master node reads the response messages sent by the slave nodes in real time; and each slave node reads the request messages sent by the master node to the slave nodes in real time.

[0091] The bus communication device provided in the embodiment of the present application can execute the bus communication method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0092] Fig.10 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0093] like Fig.10 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the random access memory (RAM) 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the read-only memory (ROM) 12 and the random access memory (RAM) 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0094] A number of components in the electronic device 10 are connected to an input / output (I / O) interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, speakers, etc., a storage unit 18, such as a disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0095] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as method bus communication.

[0096] In some embodiments, the method bus communication may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via a read-only memory (ROM) 12 and / or a communication unit 19. When the computer program is loaded into a random access memory (RAM) 13 and executed by the processor 11, one or more steps of the method bus communication described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method bus communication in any other suitable manner (e.g., by means of firmware).

[0097] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0098] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0099] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0100] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0101] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0102] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0103] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the bus communication method provided in any embodiment of the present application.

[0104] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present application, and the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0105] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A bus communication method, characterized in that: include: Assigning a node ID parameter to each component mounted on the bus according to the number of bus nodes; wherein at least one integrated component and a plurality of split components are mounted on the bus; the integrated component includes a master node and at least one slave node; the split component includes at least one slave node; The master node in the integrated component sends a corresponding request message to the slave nodes in the integrated component and the slave nodes in the plurality of split components through the bus; The integrated component and each of the split components send a response message to the master node through the bus based on the corresponding request message.

2. The method according to claim 1, characterized in that The master node in the integrated component sends a corresponding request message to the slave nodes in the integrated component and the slave nodes in the plurality of split components through the bus, including: The master node sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in the plurality of split components in turn in a polling manner through the bus.

3. The method according to claim 2, characterized in that The master node sends corresponding request messages to the slave nodes in the integrated component and the slave nodes in the plurality of split components in turn in a polling manner through the bus, including: If the current slave node is the first slave node, the master node sends a corresponding request message to the current slave node through the bus; wherein the request message includes an ID parameter of the current slave node; If the current slave node is not the first slave node, the master node sends a corresponding request message to the current slave node through the bus based on the response message received from the last slave node.

4. The method according to claim 1, characterized in that in, The number of response messages sent by the integrated component and each of the split components is one.

5. The method according to claim 1 or 4, characterized in that: The integrated component and each of the split components send a response message to the master node through the bus based on the corresponding request message, including: If the current slave node is a slave node in the integrated component, the response message sent by the current slave node to the master node carries message information of all nodes in the integrated component; If the current slave node is one of the multiple slave nodes in the split component, the response message sent by the current slave node to the master node carries the message information of the multiple slave nodes in the split component; If the current slave node is the only slave node in the split component, the response message sent by the current slave node to the master node carries the message information of the current slave node in the split component.

6. The method according to claim 1, characterized in that in, The master node reads the response messages sent by the respective slave nodes in real time; and each slave node reads the request messages sent by the master node to the respective slave nodes in real time.

7. A bus communication device, characterized in that: include: A node allocation module, used to allocate node ID parameters to each component mounted on the bus according to the number of bus nodes; wherein at least one integrated component and a plurality of split components are mounted on the bus; the integrated component includes a master node and at least one slave node; the split component includes at least one slave node; A request message module, used for the master node in the integrated component to send corresponding request messages to the slave nodes in the integrated component and the slave nodes in the plurality of split components through the bus; A response message module is used for the integrated component and each of the split components to send a response message to the main node through the bus based on the corresponding request message.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the bus communication method as described in any one of claims 1 to 6.

9. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the bus communication method according to any one of claims 1 to 6 when executed by a computer processor.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the bus communication method according to any one of claims 1 to 6.