Bus communication system and method

By using the communication chip to identify and connect the target slave device in the I2C bus communication system, the communication conflict problem caused by the same address of multiple slave devices is solved, the address configuration is simplified, the probability of communication failure and data error is reduced, and the system is improved Reliability and stability.

CN119066013APending Publication Date: 2024-12-03北京傲星科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411107215.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In an I2C bus communication system, since multiple slave devices may have the same default address, the probability of communication failure and data error increases, and the traditional address configuration process is complex and costly.

Method used

By introducing a communication chip into the bus communication system, it receives communication instructions sent by the master device, and identifies and connects the target slave device, circumvents address-based communication methods, simplifies address configuration, and reduces the probability of communication failure and data errors.

Benefits of technology

It reduces the probability of communication failure and data errors, simplifies the address configuration process, reduces the requirements of hardware components and circuit design, improves the reliability and stability of the bus communication system, and adapts to the needs changes in different application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066013A_ABST
    Figure CN119066013A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a bus communication system and method, and relates to the technical field of communication. The bus communication system comprises a master device, a slave device and a communication chip, the communication chip is used for receiving a communication instruction sent by the master device, and the communication instruction indicates a target slave device to establish communication connection with the master device in the plurality of slave devices; the communication chip is used for identifying a target slave device in the plurality of slave devices in response to the communication instruction; and the communication chip is used for connecting the contact of the master device with the contact of the target slave device so as to establish communication connection between the master device and the target slave device. Therefore, according to the bus communication system provided by the embodiment of the invention, the communication instruction sent by the master device is received through the communication chip, and the contact connection between the master device and the target slave device is directly controlled based on the communication instruction, so that a traditional address-based communication mode is avoided, the problem of communication conflict caused by the same slave device address is avoided, and the communication efficiency is improved. And the probability of communication failure and data error is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a bus communication system and method. Background Art

[0002] I 2 The Inter-Integrated Circuit (IC) bus is a serial communication bus used for short-distance communication. Its advantage is that it can realize I / O by only two lines (data line SDA and clock line SCLK). 2 C master device and I 2 C slave devices. This design allows I 2 C bus is particularly suitable for space-constrained application scenarios, such as embedded systems, mobile devices, and sensor networks.

[0003] In the related art, the bus communication system usually only allows each I 2 C slave devices have a unique address to ensure that the I 2 C master device can accurately identify and communicate with it. However, in practical applications, due to the complexity of bus communication system design and cost considerations, multiple I 2 C slave devices have the same default address, which greatly increases the probability of communication failure and data errors. Summary of the invention

[0004] Based on the above problems, the present application provides a bus communication system and method, which can reduce the probability of communication failure and data errors.

[0005] The embodiments of the present application disclose the following technical solutions:

[0006] In a first aspect, the present application discloses a bus communication system, the system comprising: a master device, a plurality of slave devices and a communication chip;

[0007] The communication chip is used to receive a communication instruction sent by the master device, wherein the communication instruction is used to indicate a target slave device among the plurality of slave devices to establish a communication connection with the master device;

[0008] The communication chip is further used to, in response to the communication instruction, identify the target slave device among the plurality of slave devices;

[0009] The communication chip is also used to connect the contact of the master device with the contact of the target slave device, so that the master device and the target slave device establish a communication connection.

[0010] Optionally, the system further comprises: a selectable switch;

[0011] The communication chip is specifically used to, in response to the communication instruction, identify the contact of the target slave device among the contacts of the plurality of slave devices;

[0012] The communication chip is specifically used to establish a communication connection between the master device and the target slave device by controlling the first end of the selectable switch to connect to the contact of the master device and the second end of the selectable switch to connect to the contact of the target slave device.

[0013] Optionally, the selectable switch is a multi-way analog switch, and the number of the multi-way analog switch is equal to the number of the plurality of slave devices.

[0014] Optionally, the communication instruction is used to indicate a connection order of multiple target slave devices among the multiple slave devices to establish communication connections with the master device;

[0015] The communication chip is specifically used to, in response to the communication instruction, identify a plurality of target slave devices among the plurality of slave devices and the connection sequence;

[0016] The communication chip is specifically used to connect the contacts of the master device with the contacts of the multiple target slave devices in sequence according to the connection sequence, so that the master device and the multiple target slave devices establish communication connections in sequence.

[0017] Optionally, the system further comprises: an alarm module;

[0018] The communication chip is also used to send an alarm indication to the alarm module when the time difference between the time of receiving the communication instruction and the current time is greater than a preset time threshold, and the contacts of the master device are not connected to the contacts of the target slave device, so that the alarm module triggers an alarm operation.

[0019] Optionally, the communication chip is also used to monitor the communication connection status between the master device and the target slave device after the master device and the target slave device establish a communication connection; if the communication connection status indicates a communication interruption or a connection interruption, re-execute the step of connecting the contacts of the master device with the contacts of the target slave device.

[0020] In a second aspect, the present application discloses a bus communication method, which is applied to a bus communication system, wherein the bus system includes a master device, a plurality of slave devices and a communication chip, and the method includes:

[0021] The communication chip receives a communication instruction sent by the master device, wherein the communication instruction is used to indicate a target slave device among the plurality of slave devices to establish a communication connection with the master device;

[0022] The communication chip identifies the target slave device among the plurality of slave devices in response to the communication instruction;

[0023] The communication chip connects the contact corresponding to the master device with the contact of the target slave device, so that the master device establishes a communication connection with the target slave device.

[0024] Optionally, the bus communication system further comprises: a selectable switch;

[0025] The identifying the target slave device among the plurality of slave devices comprises:

[0026] Identifying a contact of the target slave device among the contacts of the plurality of slave devices;

[0027] The step of connecting the contact corresponding to the master device with the contact of the target slave device comprises:

[0028] The first end of the selectable switch is controlled to connect to the contact of the master device, and the second end of the selectable switch is controlled to connect to the contact of the target slave device.

[0029] Optionally, the selectable switch is a multi-way analog switch, and the number of the multi-way analog switch is equal to the number of the plurality of slave devices.

[0030] Optionally, the communication instruction is used to indicate a connection order of multiple target slave devices among the multiple slave devices to establish communication connections with the master device;

[0031] The identifying the target slave device among the plurality of slave devices comprises:

[0032] Identifying a plurality of target slave devices among the plurality of slave devices and the connection order;

[0033] The step of connecting the contact corresponding to the master device with the contact of the target slave device comprises:

[0034] The contacts of the master device are sequentially connected to the contacts of the plurality of target slave devices according to the connection order.

[0035] Optionally, the bus communication system further includes: an alarm module;

[0036] The method further comprises:

[0037] When the time difference between the time when the communication instruction is received and the current time is greater than a preset time threshold, and the contacts of the master device are not connected to the contacts of the target slave device, the communication chip sends an alarm indication to the alarm module to trigger the alarm operation.

[0038] Optionally, the method further comprises:

[0039] The communication chip monitors the communication connection state between the master device and the target slave device after the master device and the target slave device establish a communication connection;

[0040] If the communication connection state indicates that the communication is interrupted or the connection is interrupted, the communication chip re-executes the step of connecting the contact of the master device with the contact of the target slave device.

[0041] Compared with the prior art, this application has the following beneficial effects:

[0042] The embodiment of the present application discloses a bus communication system and method, the bus communication system includes: a master device, several slave devices and a communication chip; the communication chip is used to receive a communication instruction sent by the master device, the communication instruction indicates a target slave device among several slave devices to be connected to the master device; in response to the communication instruction, the target slave device among several slave devices is identified; the contact of the master device is connected to the contact of the target slave device, so that the master device and the target slave device establish a communication connection. Thus, the bus communication system provided by the embodiment of the present application receives the communication instruction sent by the master device through the communication chip, and directly controls the contact connection between the master device and the target slave device based on the communication instruction, thereby avoiding the traditional address-based communication method, and the user does not need to assign a unique address to each slave device, which simplifies the address configuration process, avoids the communication conflict problem caused by the same slave device address, and reduces the probability of communication failure and data error. At the same time, this also reduces the requirements for hardware components or circuit design, which helps to reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0044] Figure 1 A schematic diagram of a bus communication system provided in an embodiment of the present application;

[0045] Figure 2 A schematic diagram of another bus communication system provided in an embodiment of the present application;

[0046] Figure 3 A flowchart of a bus communication method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] As described above, in I 2 In C bus application scenarios, there is often an I 2 C master device with multiple I 2 C slave device communication needs. 2 C slave devices have the same address, a conflict will occur, causing I 2 C master devices cannot independently access these I 2 C slave device. Therefore, each I 2 C slave devices have unique addresses, that is, it is necessary to ensure that these I 2 C slave device addresses do not conflict.

[0048] In one way, many I 2 C slave devices allow the address to be set directly by physical means (such as connecting or disconnecting specific pins). However, I 2 C slave devices can usually only set their addresses via a limited number of pins, limiting the I 2 C master device can connect to I 2 C slave devices. In addition, in order to set different addresses, each I 2 C requires separate wiring from the device and the addition of corresponding configuration devices, which greatly increases the complexity of circuit design and the physical space requirements.

[0049] In another way, many I 2 C slave devices allow flexible allocation of I 2 C slave device address. However, the process of allocating addresses through software requires additional programmable devices, which greatly increases the hardware cost of the bus communication system. In addition, since the way to allocate addresses is to write address configuration codes to allocate addresses, this also greatly increases the complexity of the software. Furthermore, after a power outage or other abnormal situation causes the software to be restarted or reset, the already written address configuration code may be lost and the address needs to be reallocated, which also greatly increases the complexity of the software and the probability of communication failure and data errors.

[0050] After research, the inventor proposed a bus communication system and method, the bus communication system includes: a master device, several slave devices and a communication chip; the communication chip is used to receive a communication instruction sent by the master device, the communication instruction indicates a target slave device among several slave devices to be connected to the master device; in response to the communication instruction, the target slave device among several slave devices is identified; the contact of the master device is connected to the contact of the target slave device, so that the master device and the target slave device establish a communication connection. Thus, the bus communication system provided by the embodiment of the present application receives the communication instruction sent by the master device through the communication chip, and directly controls the contact connection between the master device and the target slave device based on the communication instruction, thereby avoiding the traditional address-based communication mode, the user does not need to assign a unique address to each slave device, simplifies the address configuration process, avoids the communication conflict problem caused by the same slave device address, and reduces the probability of communication failure and data error. At the same time, this also reduces the requirements for hardware components or circuit design, which helps to reduce costs. In addition, the system architecture of the bus communication system provided by the embodiment of the present application supports flexible and dynamic addition or deletion of slave devices, and this flexibility enables the bus communication system to adapt to different application scenarios and demand changes.

[0051] Furthermore, since the communication chip can accurately identify and connect to the target slave device, the probability of communication failure and data error between the master device and the target slave device is greatly reduced, and the reliability and stability of the entire bus communication system are improved.

[0052] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0053] See also Figure 1 , which is a schematic diagram of a bus communication system provided by an embodiment of the present application. The bus communication system includes a master device, a plurality of slave devices ( Figure 1 Two slave devices are used as an example) and a communication chip.

[0054] The master device is the core controller in the bus communication system, responsible for initiating communication requests, sending data or instructions, etc. In the embodiment of the present application, the master device can send a communication instruction to the communication chip to indicate that a communication connection needs to be established with the target slave device.

[0055] The slave device is a responder in the bus communication system, and is used to perform corresponding operations or return data to the master device according to the communication instructions of the master device. In the embodiment of the present application, there are several slave devices, which may have different functions or uses, but can all be connected through I 2 C bus connects the master device and the communication chip.

[0056] The communication chip is responsible for receiving the communication instructions sent by the master device, and identifying and connecting to the target slave device according to the communication instructions.

[0057] Specifically, first, when the master device needs to communicate with a target slave device, it will use I 2 The C bus sends a communication instruction to the communication chip, which includes information about the target slave device (such as the identifier of the target slave device, the ID of the target slave device, etc.) so that the communication chip can identify the target slave device that needs to establish a communication connection with the master device.

[0058] After receiving the communication instruction, the communication chip will parse the information in the communication instruction to identify the target slave device among several slave devices. Once the target slave device is identified, the communication chip will connect the contacts of the master device with the contacts of the target slave device to establish a communication connection between the master device and the target slave device.

[0059] It is understandable that this connection may be a physical contact connection (such as implemented using hardware components such as relays and switches) or a logical connection (such as a virtual connection simulated by software). In either case, after the connection is established, data exchange and communication can begin between the master device and the target slave device.

[0060] In summary, the embodiment of the present application provides a bus communication system, which receives the communication instruction sent by the master device through the communication chip, and directly controls the contact connection between the master device and the target slave device based on the communication instruction, thereby avoiding the traditional address-based communication method. The user does not need to assign a unique address to each slave device, which simplifies the address configuration process, avoids the communication conflict problem caused by the same slave device address, and reduces the probability of communication failure and data error. At the same time, this also reduces the requirements for hardware components or circuit design, which helps to reduce costs.

[0061] See also Figure 2 , which is a schematic diagram of another bus communication system provided by an embodiment of the present application. The bus communication system includes a master device, a plurality of slave devices ( Figure 2 Eight slave devices are used as an example), selectable switches ( Figure 2 A multi-channel analog switch is used as an example) and a communication chip.

[0062] In one example, the selectable switch may be a multi-way analog switch. A multi-way analog switch is a switch that can control multiple channels simultaneously, each of which can be opened or closed independently to connect or disconnect the corresponding circuit. Its number of paths (i.e., the number of channels) may be equal to the number of slave devices, thereby allowing the master device to establish a direct communication connection with each slave device. Multi-way analog switches generally have the advantages of low on-resistance, high isolation, and fast switching speed, and are suitable for occasions requiring high-speed and high-precision communication.

[0063] In another example, the selectable switch can also be a number of relays. A relay is an electrical control device that controls the closing or opening of contacts through electromagnetic force, thereby realizing the on-off control of the circuit. In a bus communication system, multiple relays can be used to simulate the function of a selectable switch, and each relay corresponds to a slave device. Relays have the advantages of good electrical isolation performance, strong load capacity, and simple control, and are suitable for occasions requiring high voltage and high current control.

[0064] In another example, the selectable switch may also be a number of diodes, transistors, field effect transistors and other devices. These devices can simulate the behavior of the switch through appropriate configuration. For example, the transistor can simulate the closed or open state of the switch by operating in the saturation region or the cut-off region. Each device corresponds to a slave device. It should be noted that this application does not limit the specific selectable switch.

[0065] Specifically, first, the communication chip receives a communication instruction sent by the controller of the master device. This communication instruction is sent by the master device to establish a communication connection with a specific target slave device, and it contains the identity information or address information of the target slave device, indicating only one target slave device.

[0066] Secondly, the communication chip responds to the communication instruction and identifies the contact of the target slave device among the contacts of several slave devices through a certain mechanism, which may be internal logic judgment, table lookup matching, address decoding, etc.

[0067] Subsequently, once the contacts of the target slave device are identified, the communication chip will establish a communication connection between the master device and the slave device by controlling the selectable switch. In this process, the communication chip will send a control signal to the selectable switch so that its first end is connected to the contacts of the master device and its second end is connected to the contacts of the target slave device. In this way, a physical communication path is formed between the master device and the slave device.

[0068] It is understandable that this communication connection is bidirectional, which means that it supports the master device to send instructions or data to the slave device, and also supports the slave device to send status information or data to the master device. This bidirectional communication capability enables the master device to monitor the status of the slave device in real time and control it as needed; and the slave device can also respond to the master device's instructions in a timely manner and feedback its execution results or current status.

[0069] In some specific implementations, the communication instruction can not only indicate a single target slave device, but also indicate a list of multiple target slave devices to establish communication connections with the master device and their connection order, which enables the bus communication system to flexibly cope with complex scenarios that require sequential communication.

[0070] Specifically, the communication chip responds to the communication instruction and identifies multiple target slave devices and the connection order among the multiple slave devices. After identifying multiple target slave devices and their connection order, the communication chip controls the selectable switch to connect the contacts of the master device with the contacts of these target slave devices in sequence according to the specified order. This means that the master device will first establish a communication connection with the first target slave device, and then establish a connection with the second target slave device after completing the communication task, and so on, until communication connections have been established with all target slave devices.

[0071] It is understandable that this implementation is particularly suitable for scenarios where it is necessary to communicate with multiple slave devices in a specific order, such as an automated control system on a production line, where the master device needs to communicate with each production device (slave device) in the order of the process flow to control the operation of the production line; another example is a monitoring system in a medical device, where the master device needs to communicate with multiple sensors (slave devices) according to a priority or preset schedule to collect the patient's physiological data. This application does not limit the specific application scenario.

[0072] In some specific implementations, the bus communication system further includes: an alarm module. The main function of the alarm module is to trigger an alarm operation under certain conditions to remind the system administrator or operator to pay attention to possible problems or abnormal situations.

[0073] Specifically, when the time difference between the time when the communication instruction is received and the current time is greater than a preset time threshold (this time threshold can be set according to the needs of the bus communication system to reflect the requirements of the bus communication system for the communication instruction processing speed, such as 10ms), and the contacts of the master device are not connected to the contacts of the target slave device, an alarm indication is sent to the alarm module to cause the alarm module to trigger an alarm operation.

[0074] It should be noted that the alarm operation may be to emit a specific sound or light signal, or to display an error code, error description or warning information on a display screen connected to the bus communication system, etc. This application does not limit the specific alarm operation.

[0075] In some specific implementations, after establishing a communication connection between the master device and the target slave device, the communication chip continuously monitors the status of the connection. This usually involves detecting and analyzing the communication signal to determine whether there is a communication interruption or a connection interruption. Communication interruption may be caused by a variety of reasons, such as signal interference, device failure, etc., while connection interruption may be caused by a loose physical connection, etc. If the communication chip detects that the communication connection status indicates a communication interruption or a connection interruption, the step of connecting the contacts of the master device to the contacts of the target slave device is re-executed.

[0076] It should be noted that after attempting to reconnect, the communication chip will still monitor the status of the connection. If the communication connection is successfully restored, the bus communication system can continue to operate normally; if the connection still cannot be established, further measures may need to be taken, such as notifying the system administrator, sending an alarm indication to the alarm module so that the alarm module triggers an alarm operation, etc.

[0077] In summary, the bus communication system provided by the embodiment of the present application receives the communication instruction sent by the master device through the communication chip, and directly controls the contact connection between the master device and the target slave device based on the communication instruction, thereby avoiding the traditional address-based communication mode, and the user does not need to assign a unique address to each slave device, simplifying the address configuration process, avoiding the communication conflict problem caused by the same slave device address, and reducing the probability of communication failure and data error. At the same time, this also reduces the requirements for hardware components or circuit design, which helps to reduce costs. In addition, the system architecture of the bus communication system provided by the embodiment of the present application supports flexible dynamic addition or deletion of slave devices, and this flexibility enables the bus communication system to adapt to different application scenarios and demand changes. Further, because the communication chip can accurately identify and connect the target slave device, the probability of communication failure and data error between the master device and the target slave device is greatly reduced, and the reliability and stability of the entire bus communication system are improved.

[0078] See also Figure 3 , which is a flow chart of a bus communication method provided by an embodiment of the present application. The method is applied to a bus communication system, the bus system includes a master device, a plurality of slave devices and a communication chip, including:

[0079] S301: The communication chip receives a communication instruction sent by a master device, where the communication instruction is used to indicate a target slave device among a plurality of slave devices to establish a communication connection with the master device.

[0080] S302: The communication chip identifies a target slave device among a plurality of slave devices in response to the communication instruction.

[0081] S303: The communication chip connects the contact corresponding to the master device with the contact of the target slave device, so that the master device and the target slave device establish a communication connection.

[0082] In some specific implementations, the bus communication system further includes: a selectable switch;

[0083] Identifying a target slave device among a plurality of slave devices, comprising: identifying a contact point of the target slave device among contacts of the plurality of slave devices;

[0084] Connecting the contact corresponding to the master device with the contact of the target slave device includes: controlling the first end of the selectable switch to connect the contact of the master device, and the second end of the selectable switch to connect the contact of the target slave device.

[0085] In some specific implementations, the switch may be selected to be a multi-way analog switch, the number of which is equal to the number of slave devices.

[0086] In some specific implementations, the communication instruction is used to indicate the connection order of multiple target slave devices to be connected to the master device among the multiple slave devices;

[0087] Identifying a target slave device among the plurality of slave devices, including: identifying a plurality of target slave devices among the plurality of slave devices and a connection sequence;

[0088] Connecting the contact corresponding to the master device with the contact of the target slave device includes: connecting the contact of the master device with the contacts of multiple target slave devices in sequence according to the connection order.

[0089] In some specific implementations, the bus communication system further includes: an alarm module;

[0090] The method also includes: when the time difference between the time of receiving the communication instruction and the current time is greater than a preset time threshold, and the contacts of the master device are not connected to the contacts of the target slave device, the communication chip sends an alarm indication to the alarm module to cause the alarm module to trigger an alarm operation.

[0091] In some specific implementations, the method also includes: after the master device and the target slave device establish a communication connection, the communication chip monitors the communication connection status between the master device and the target slave device; if the communication connection status indicates a communication interruption or a connection interruption, the communication chip re-executes the step of connecting the contacts of the master device with the contacts of the target slave device.

[0092] In summary, the bus communication method provided in the embodiment of the present application receives the communication instruction sent by the master device through the communication chip, and directly controls the contact connection between the master device and the target slave device based on the communication instruction, thereby avoiding the traditional address-based communication method. The user does not need to assign a unique address to each slave device, which simplifies the address configuration process, avoids the communication conflict problem caused by the same slave device address, and reduces the probability of communication failure and data error. At the same time, this also reduces the requirements for hardware components or circuit design, which helps to reduce costs.

[0093] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.

[0094] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0095] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0096] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A bus communication system, characterized in that: The system comprises: a master device, a plurality of slave devices and a communication chip; The communication chip is used to receive a communication instruction sent by the master device, wherein the communication instruction is used to indicate a target slave device among the plurality of slave devices to establish a communication connection with the master device; The communication chip is further used to, in response to the communication instruction, identify the target slave device among the plurality of slave devices; The communication chip is also used to connect the contact of the master device with the contact of the target slave device, so that the master device and the target slave device establish a communication connection.

2. The system according to claim 1, characterized in that The system further comprises: a selectable switch; The communication chip is specifically used to, in response to the communication instruction, identify the contact of the target slave device among the contacts of the plurality of slave devices; The communication chip is specifically used to establish a communication connection between the master device and the target slave device by controlling the first end of the selectable switch to connect to the contact of the master device and the second end of the selectable switch to connect to the contact of the target slave device.

3. The system according to claim 2, characterized in that The selectable switch is a multi-way analog switch, and the number of the multi-way analog switch is equal to the number of the plurality of slave devices.

4. The system according to claim 1, characterized in that The communication instruction is used to indicate the connection order of multiple target slave devices among the multiple slave devices to establish communication connection with the master device; The communication chip is specifically used to, in response to the communication instruction, identify a plurality of target slave devices among the plurality of slave devices and the connection sequence; The communication chip is specifically used to connect the contacts of the master device with the contacts of the multiple target slave devices in sequence according to the connection sequence, so that the master device and the multiple target slave devices establish communication connections in sequence.

5. The system according to any one of claims 1 to 4, characterized in that: The system further comprises: an alarm module; The communication chip is also used to send an alarm indication to the alarm module when the time difference between the time of receiving the communication instruction and the current time is greater than a preset time threshold, and the contacts of the master device are not connected to the contacts of the target slave device, so that the alarm module triggers an alarm operation.

6. The system according to any one of claims 1 to 4, characterized in that: The communication chip is also used to monitor the communication connection status between the master device and the target slave device after the master device and the target slave device establish a communication connection; if the communication connection status indicates a communication interruption or a connection interruption, re-execute the step of connecting the contacts of the master device with the contacts of the target slave device.

7. A bus communication method, characterized in that: Applied to a bus communication system, the bus system includes a master device, a plurality of slave devices and a communication chip, and the method includes: The communication chip receives a communication instruction sent by the master device, wherein the communication instruction is used to indicate a target slave device among the plurality of slave devices to establish a communication connection with the master device; The communication chip identifies the target slave device among the plurality of slave devices in response to the communication instruction; The communication chip connects the contact corresponding to the master device with the contact of the target slave device, so that the master device establishes a communication connection with the target slave device.

8. The method according to claim 7, characterized in that The bus communication system further comprises: a selectable switch; The identifying the target slave device among the plurality of slave devices comprises: Identifying a contact of the target slave device among the contacts of the plurality of slave devices; The step of connecting the contact corresponding to the master device with the contact of the target slave device comprises: The first end of the selectable switch is controlled to connect to the contact of the master device, and the second end of the selectable switch is controlled to connect to the contact of the target slave device.

9. The method according to claim 8, characterized in that The selectable switch is a multi-way analog switch, and the number of the multi-way analog switch is equal to the number of the plurality of slave devices.

10. The method according to claim 7, characterized in that The communication instruction is used to indicate the connection order of multiple target slave devices among the multiple slave devices to establish communication connection with the master device; The identifying the target slave device among the plurality of slave devices comprises: Identifying a plurality of target slave devices among the plurality of slave devices and the connection order; The step of connecting the contact corresponding to the master device with the contact of the target slave device comprises: The contacts of the master device are sequentially connected to the contacts of the plurality of target slave devices according to the connection order.

Citation Information

Cited By

  • I2C address conflict processing method and device, equipment and storage medium

    CN121907819A