Master board, slave board, slave board expansion system and method

By establishing a voltage signal transmission mechanism between the motherboard and the slave board, the processing module can calculate the number of slave boards based on the voltage signal, solving the problem of high cost of expansion from the board in the prior art, and achieving the accuracy and cost of detection of the number of slave boards reduce.

CN119414928APending Publication Date: 2025-02-11SHANGHAI MAGICWHEEL IND TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411440168.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

When existing circuit board systems expand from the board, they need to be equipped with control chips and firmware on the slave board, resulting in complex circuit structure and increased cost.

Method used

By providing a processing module and a motherboard connector on the motherboard, and a first device and a slave board connector on the slave board, when the slave board is connected to the motherboard, the first device on the slave board is connected to the motherboard through the slave board connector. The appliance is electrically connected, and the processing module calculates the number of slave boards currently connected based on the voltage signal at the motherboard connector.

Benefits of technology

Without having to equip the slave board with the control chip, the processing module can accurately calculate the number of slave boards, reducing the cost of expansion of slave boards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119414928A_ABST
    Figure CN119414928A_ABST
Patent Text Reader

Abstract

The invention provides a main board, a slave board and a slave board expansion system and method, the main board comprises a processing module and a main board connector which are connected with each other, and the slave board comprises a first device and a slave board connector which are connected with each other; when the slave board is connected to the master board, the first device on the slave board is electrically connected with the master board connector through the slave board connector. According to the scheme, when the number of the first devices connected to the main board connector is different, the voltage at the main board connector is different, a control chip does not need to be arranged on the slave board, the processing module can calculate the number of the slave boards currently connected to the main board according to the voltage signal at the main board connector, and therefore it is guaranteed that the number of the slave boards is accurately detected; and the extension cost of the slave board is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of circuit boards, and in particular to a main board, a slave board, a slave board expansion system and a method. Background Art

[0002] Circuit boards are the basic structures used to fix and connect electronic components, and are widely used in communication equipment, computers, automotive electronics, medical equipment, etc. When building a distributed system or modular design, a main board and multiple slave boards are usually set up for functional collaboration.

[0003] At present, when the slave board of the circuit board system is expanded, the main board relies on the communication bus between the main board and the slave board to exchange commands to obtain the number of connected slave boards. However, in this solution, the slave boards connected to the main board need to be equipped with control chips and corresponding firmware, which makes the circuit structure of the circuit board system complicated and the cost increased. Therefore, the problem that needs to be solved is how to reduce the cost of slave board expansion. Summary of the invention

[0004] The present application provides a main board, a slave board, a slave board expansion system and a method for reducing the cost of slave board expansion.

[0005] On the one hand, the present application provides a main board, comprising: a processing module and a main board connector; wherein the main board connector is used to connect a slave board, the slave board comprising a first device and a slave board connector; wherein the main board connector is electrically connected to a slave board connector on a slave board connected to the main board, and when the number of first devices connected to the main board connector through the slave board connector on the slave board is different, the voltage at the main board connector is different; the processing module is connected to the main board connector, and is used to calculate the number of slave boards currently connected to the main board based on the voltage signal at the main board connector.

[0006] In a possible implementation, the motherboard connector includes a first pin and a second pin; wherein the first pin of the motherboard connector is connected to a motherboard power supply and a processing module; and the second pin of the motherboard connector is grounded.

[0007] In one possible implementation, the processing module includes: a processing unit and a detection unit; wherein the detection unit is connected to the mainboard connector and is used to detect the voltage signal at the mainboard connector; the processing unit is connected to the detection unit and is used to calculate the number of slave boards currently connected to the mainboard based on the voltage signal collected by the detection unit.

[0008] In a possible implementation, the detection unit includes: an analog-to-digital conversion unit and a sampling unit; wherein the sampling unit is connected to the mainboard connector and is used to collect the voltage signal at the mainboard connector; the input end of the analog-to-digital conversion unit is connected to the sampling unit, and the output end of the analog-to-digital conversion unit is connected to the processing unit, and the analog-to-digital conversion unit is used to convert the voltage signal collected by the sampling unit into a digital signal, and output the digital signal to the processing unit.

[0009] In a possible implementation, the sampling unit includes a first sampling resistor and a second sampling resistor; wherein one end of the first sampling resistor is connected to a power supply, and the other end of the first sampling resistor is connected to the second sampling resistor and a mainboard connector.

[0010] On the other hand, the present application provides a slave board, including a first device and a slave board connector; the slave board connector is used to connect to a main board, the main board includes a main board connector and a processing module; the first device is electrically connected to the slave board connector, so that when the slave board is connected to the main board, the first device is connected through the slave board connector and the main board connector; wherein, when the number of first devices connected to the main board connector through the slave board connector on the slave board is different, the voltage at the main board connector is different.

[0011] In one possible implementation, the slave board connector includes a first pin and a second pin; the first pin of the slave board connector is used to connect to the first pin of the main board connector or the first pin of the expansion connector of the previous slave board; the second pin of the slave board connector is used to connect to the second pin of the main board connector or the second pin of the expansion connector of the previous slave board.

[0012] In a possible implementation manner, one end of the first device is connected to a first pin of the slave board connector; and the other end of the first device is connected to a second pin of the slave board connector.

[0013] In a possible implementation, the expansion connector includes a first pin and a second pin; wherein, in the same slave board, the first pin of the slave board connector is connected to the first pin of the expansion connector, and the second pin of the slave board connector is connected to the second pin of the expansion connector.

[0014] In one possible implementation, the slave board also includes a first switch; wherein, in the same slave board, the first pin of the slave board connector is connected to the first pin of the expansion connector through a first device; the first pin of the expansion connector is connected to one end of the first switch, and the other end of the first switch is connected to the second pin of the expansion connector.

[0015] In a possible implementation manner, the first device is a resistor device.

[0016] In a possible implementation manner, device parameters of the first devices of different slave boards are the same.

[0017] In a possible implementation manner, device parameters of the first devices of different slave boards are different.

[0018] On the other hand, the present application provides a slave board expansion system, comprising: the above main board and at least one above slave board.

[0019] On the other hand, the present application provides a slave board expansion method, which is applied to the above main board or the main board of the above slave board expansion system, and the method includes: obtaining a voltage signal at the main board connector; and calculating the number of slave boards currently connected to the main board based on the voltage signal at the main board connector.

[0020] In one possible implementation, the number of slave boards currently connected to the mainboard is calculated based on the voltage signal at the mainboard connector, including: calculating the total resistance based on the voltage signal and the current signal at the mainboard connector; and taking the quotient of the resistance of the first device and the total resistance as the number of slave boards.

[0021] In one possible implementation, the number of slave boards currently connected to the mainboard is calculated based on the voltage signal at the mainboard connector, including: calculating the total resistance based on the voltage signal and the current signal at the mainboard connector; and taking the quotient of the total resistance and the resistance of the first device as the number of slave boards.

[0022] In one possible implementation, the number of slave boards currently connected to the mainboard is calculated based on the voltage signal at the mainboard connector, including: obtaining the number of slave boards based on a mapping relationship according to the voltage signal at the mainboard connector; the mapping relationship includes the voltage signal value corresponding to each number of slave boards.

[0023] In the main board, slave board, slave board expansion system and method provided by the present application, the main board includes a processing module and a main board connector connected to each other, and the slave board includes a first device and a slave board connector connected to each other; when the slave board is connected to the main board, the first device on the slave board is electrically connected to the main board connector through the slave board connector. In the scheme of the present application, the voltage at the main board connector is different when the number of first devices connected to the main board connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the main board according to the voltage signal at the main board connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0025] Figure 1 A schematic diagram of the structure of a mainboard is shown as an example;

[0026] Figure 2A schematic diagram of the structure of a mainboard is shown as an example;

[0027] Figure 3 A schematic diagram of the structure of a mainboard is shown as an example;

[0028] Figure 4 A schematic diagram of the structure of a mainboard is shown as an example;

[0029] Figure 5 A schematic diagram of the structure of a mainboard is shown as an example;

[0030] Figure 6 A schematic structural diagram of a slave board is shown in FIG.

[0031] Figure 7 A schematic structural diagram of a slave board is shown in FIG.

[0032] Figure 8 A schematic structural diagram of a slave board is shown in FIG.

[0033] Fig. 9 A schematic structural diagram of a slave board is shown in FIG.

[0034] Fig.10 A schematic structural diagram of a slave board is shown in FIG.

[0035] Fig.11 A schematic structural diagram of a slave board expansion system is shown in FIG.

[0036] Fig.12 A schematic diagram of a process of extending from a board is shown in FIG.

[0037] Fig.13 A schematic diagram of a process of extending from a board is shown in FIG.

[0038] Fig.14 A schematic flow chart of a method for extending from a board is shown as an example.

[0039] Explanation of the reference numerals: main board 10, processing module 11, main board connector 12, main board power supply 13, processing unit 14, detection unit 15, digital-to-analog converter 16, sampling unit 17, first sampling resistor 18, second sampling resistor 19; slave board 20, first device 21, slave board connector 22, expansion connector 23, first switch 24.

[0040] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0042] It should be noted that the brief description of the terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of the present application. Unless otherwise specified, these terms should be understood according to their common and usual meanings. The terms "including" and "having" in the specification and claims and the above-mentioned drawings in this application and any variation thereof are intended to cover but not exclude inclusion. For example, a product or device containing a series of components is not necessarily limited to those components clearly listed, but may include other components that are not clearly listed or inherent to these products or devices. The term "module" used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or a combination of hardware and / or software code that can perform functions related to the element.

[0043] Circuit boards are infrastructure for fixing and connecting electronic components, and are widely used in communication equipment, computers, automotive electronics, and medical equipment. Circuit boards enable various electronic components to work effectively and work together by providing electrical connections and mechanical support. In modern electronic systems, circuit boards are not just a simple connection platform, but also carry complex circuit design and signal processing functions. When building distributed systems or modular designs, a main board and multiple slave boards are usually set up for functional collaboration. The main board is usually responsible for core processing and control functions, while the slave board is responsible for specific sub-functions or extended functions. For example, in an automotive electronic system, the main board may be responsible for overall system control, while the slave board may be responsible for specific sensor data acquisition or actuator control.

[0044] At present, when the slave board of the circuit board system is expanded, the main board relies on the communication bus between the main board and the slave board to perform command interaction to obtain the number and status of the connected slave boards. This communication bus can be based on different standard bus protocols. This design makes the system highly flexible and scalable, and the number of slave boards can be increased or decreased as needed. However, in this solution, the slave boards connected to the main board need to be equipped with control chips and corresponding firmware to achieve communication and function execution with the main board. This not only increases the hardware cost, but also increases the complexity of developing and maintaining firmware. The cumulative cost of the control chip and firmware of each slave board may significantly increase the cost of the entire system, especially in application scenarios that require a large number of slave boards.

[0045] The technical content provided in this application is intended to solve the above-mentioned technical problems of the related art. In the main board, slave board, slave board expansion system and method provided in this application, the main board includes a processing module and a main board connector connected to each other, and the slave board includes a first device and a slave board connector connected to each other; when the slave board is connected to the main board, the first device on the slave board is electrically connected to the main board connector through the slave board connector. In the scheme of this application, the voltage at the main board connector is different when the number of first devices connected to the main board connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the main board according to the voltage signal at the main board connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion.

[0046] The technical solutions of the present application and the technical solutions of the present application are described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In the description of the present application, unless otherwise clearly specified and limited, each term should be understood in a broad sense in the art. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0047] Embodiment 1

[0048] Figure 1 A schematic diagram of the structure of a mainboard 10 is shown in FIG. Figure 1 As shown, the mainboard 10 includes: a processing module 11 and a mainboard connector 12; wherein,

[0049] A mainboard connector 12, used to connect a slave board 20, the slave board 20 comprising a first device 21 and a slave board connector 22; wherein the mainboard connector 12 is electrically connected to the slave board connector 22 on the slave board 20 connected to the mainboard 10, and when the number of first devices 21 connected to the mainboard connector 12 through the slave board connector 22 on the slave board 20 is different, the voltage at the mainboard connector 12 is different;

[0050] The processing module 11 is connected to the mainboard connector 12 and is used to calculate the number of slave boards 20 currently connected to the mainboard 10 according to the voltage signal at the mainboard connector 12 .

[0051] In practical applications, according to different needs, the type of the main board 10 can be various, such as a test main board, a communication main board or a storage main board, and the corresponding slave board 20 is matched to form a circuit board system. Exemplarily, the implementation of the relevant functions of the main board connector 12 or the slave board connector 22 can be based on the existing interface on the corresponding main board 10 or the corresponding slave board 20, or a new connection interface is added by welding. In this example, when the slave board 20 is connected to the main board 10, the slave board connector 22 is connected to the main board connector 12, and the first device 21 on the slave board 20 is connected to the main board connector 12 through the slave board connector 22 on the slave board 20 to establish an electrical circuit. Exemplarily, the first device 21 can be a resistor, a capacitor or other element that can affect the voltage, so that when different numbers of first devices 21 are connected to the main board connector 12, the voltage at the main board connector 12 is different. The processing module 11 calculates the number of slave boards 20 currently connected to the main board 10 according to the voltage signal at the main board connector 12. Specifically, the processing module 11 includes a voltage divider circuit, which may be a resistor voltage divider, a variable resistor voltage divider, or a voltage divider circuit connected to a load, etc., which is not limited here. In practical applications, the processing module 11 may be integrated on a component of the mainboard 10 with processing and analysis functions, wherein such a component may be a microcontroller, a dedicated integrated circuit, and a single-chip microcomputer, etc. Exemplarily, the processing module 11 may calculate in real time based on the voltage signal obtained at the mainboard connector 12 and the electrical parameters of the circuit loop where the mainboard connector 12 is located, wherein the electrical parameters in the circuit loop include but are not limited to: power supply voltage, current, resistance value, capacitance, etc. Optionally, the processing module 11 may also determine the number of slave boards 20 currently connected to the mainboard 10 based on the mapping relationship between the voltage signal and the number of slave boards 20 determined in advance through experiments according to the voltage signal obtained from the mainboard connector 12.

[0052] In the motherboard provided in this example, the motherboard includes a processing module and a motherboard connector that are connected to each other, and the slave board includes a first device and a slave board connector that are connected to each other; when the slave board is connected to the motherboard, the first device on the slave board is electrically connected to the motherboard connector through the slave board connector. In the scheme of the present application, the voltage at the motherboard connector is different when the number of first devices connected to the motherboard connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the motherboard according to the voltage signal at the motherboard connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion.

[0053] As another example, Figure 2 A schematic diagram of the structure of a mainboard 10 is shown in FIG. Figure 2 As shown, the mainboard connector 12 includes a first pin and a second pin; wherein,

[0054] The first pin of the mainboard connector 12 is connected to the mainboard power supply 13 and the processing module 11;

[0055] The second pin of the mainboard connector 12 is grounded.

[0056] In this example, when the main board 10 is connected to the slave board 20, the following circuit path is formed through the first pin and the second pin of the main board connector 12: the main board power supply 13, the first pin of the main board connector 12, the slave board connector 22, the first device 21 on the slave board 20, the slave board connector 22, and the second pin of the main board connector 12 are grounded. Among them, the first pin of the main board connector 12 is also connected to the processing module 11, and the processing module 11 can calculate the number of slave boards 20 currently connected to the main board 10 according to the voltage signal at the first pin of the main board connector 12. The solution of this example can establish a simple circuit path for transmitting power by setting the first pin and the second pin at the main board connector 12, thereby reducing the cost of the circuit architecture.

[0057] As another example, Figure 3 A schematic diagram of the structure of a mainboard 10 is shown in FIG. Figure 3 As shown, the processing module 11 includes: a processing unit 14 and a detection unit 15; wherein,

[0058] The detection unit 15 is connected to the mainboard connector 12 and is used to detect the voltage signal at the mainboard connector 12;

[0059] The processing unit 14 is connected to the detection unit 15 and is used to calculate the number of slave boards 20 currently connected to the main board 10 according to the voltage signal collected by the detection unit 15 .

[0060] In the solution of this example, the detection unit 15 detects the voltage signal at the mainboard connector 12 in real time by connecting with the mainboard connector 12. Exemplarily, the detection unit 15 can be a voltage sensor or an analog-to-digital converter. Further, the detection unit 15 outputs the detected voltage signal to the processing unit 14, and the processing unit 14 receives the voltage signal collected by the detection unit 15, and calculates the number of slave boards 20 currently connected to the mainboard 10 according to a preset algorithm. Exemplarily, the processing unit 14 can be a microprocessor or a memory, running a specific algorithm and logic to analyze the voltage signal and calculate the number of slave boards 20. Specifically, the processing unit 14 can determine the number of slave boards 20 currently connected based on the amplitude, frequency, waveform and other characteristics of the voltage signal. In the solution of this example, the detection module including the processing unit 14 and the detection unit 15 can monitor the connection status of the slave board 20 in real time, and at the same time, the difficulty of integrating the processing module 11 into the existing system can be reduced through modular design, thereby improving the scalability of the processing module 11.

[0061] As another example, Figure 4 A schematic diagram of the structure of a mainboard 10 is shown in FIG. Figure 4 As shown, the detection unit 15 includes: an analog-to-digital conversion unit 16 and a sampling unit 17; wherein,

[0062] The sampling unit 17 is connected to the mainboard connector 12 and is used to collect the voltage signal at the mainboard connector 12;

[0063] The input end of the analog-to-digital conversion unit 16 is connected to the sampling unit 17 , and the output end of the analog-to-digital conversion unit 16 is connected to the processing unit 14 . The analog-to-digital conversion unit 16 is used to convert the voltage signal collected by the sampling unit 17 into a digital signal and output the digital signal to the processing unit 14 .

[0064] In this example, the sampling unit 17 is connected to the mainboard connector 12 to collect the voltage signal at the mainboard connector 12 in real time. In practical applications, the sampling unit 17 may include a voltage sensor and a sampling resistor, etc. Further, the analog-to-digital conversion unit 16 is used to convert the analog voltage signal collected by the sampling unit 17 into a digital signal. In practical applications, analog-to-digital conversion chips with different precisions can be selected based on the requirements for the precision of the digital signal. In the solution of this example, the signal processing of the processing unit 14 can be reduced by the sampling unit 17 and the analog-to-digital conversion unit, and the digital signal output by the analog-to-digital conversion unit 16 can improve the accuracy of the processing unit 14 in calculating the number of slave boards 20.

[0065] As another example, Figure 5 A schematic diagram of the structure of a mainboard 10 is shown in FIG. Figure 5 As shown, the sampling unit 17 includes a first sampling resistor 18 and a second sampling resistor 19; wherein,

[0066] One end of the first sampling resistor 18 is connected to a power source, and the other end of the first sampling resistor 18 is connected to the second sampling resistor 19 and the mainboard connector 12 .

[0067] In this example, by connecting one end of the first sampling resistor 18 to the power supply and the other end of the first sampling resistor 18 to the second sampling resistor 19 and the mainboard connector 12, a voltage divider circuit of the first sampling resistor 18, the second sampling resistor 19 and the mainboard connector 12 can be formed. At the same time, the second sampling resistor 19 and the mainboard connector 12 are in parallel. When the slave board 20 is not connected to the mainboard 10, the second sampling resistor 19 forms a current loop, so that the sampling unit 17 can collect voltage signals; when the slave board 20 is connected to the mainboard 10, the number of first devices 21 connected to the mainboard 10 is different, and the voltage signals collected by the sampling unit 17 are different. In the solution of this example, the voltage divider circuit is formed by the first sampling resistor 18 and the second sampling resistor 19, so that when the number of first devices 21 connected to the mainboard connector 12 is different, the voltage at the mainboard connector 12 is different.

[0068] In the motherboard provided in this example, the motherboard includes a processing module and a motherboard connector that are connected to each other, and the slave board includes a first device and a slave board connector that are connected to each other; when the slave board is connected to the motherboard, the first device on the slave board is electrically connected to the motherboard connector through the slave board connector. In the scheme of the present application, the voltage at the motherboard connector is different when the number of first devices connected to the motherboard connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the motherboard according to the voltage signal at the motherboard connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion.

[0069] Embodiment 2

[0070] Figure 6 A schematic diagram of the structure of a slave board 20 is shown in FIG. Figure 6 As shown, the slave board 20 includes a first device 21 and a slave board connector 22;

[0071] A slave board connector 22, used to connect to the main board 10, the main board 10 includes a main board connector 12 and a processing module 11;

[0072] The first device 21 is electrically connected to the slave board connector 22 so that when the slave board 20 is connected to the main board 10, the first device 21 is connected through the slave board connector 22 and the main board connector 12; wherein, when the number of first devices 21 connected to the main board connector 12 through the slave board connector 22 on the slave board 20 is different, the voltage at the main board connector 12 is different.

[0073] In practical applications, according to different needs, the type of the main board 10 can be multiple, such as a test main board, a communication main board or a storage main board, and the corresponding slave board 20 is matched to form a circuit board system. Exemplarily, the implementation of the relevant functions of the main board connector 12 or the slave board connector 22 can be based on the existing interface on the corresponding main board or the corresponding slave board 20, or a new connection interface is added by welding. In this example, when the slave board 20 is connected to the main board, the slave board connector 22 is connected to the main board connector 12, and the first device 21 on the slave board 20 is connected to the main board connector 12 through the slave board connector 22 on the slave board 20 to establish an electrical circuit. Exemplarily, the first device 21 can be a resistor, a capacitor or other element that can affect the voltage, so that when different numbers of first devices 21 are connected to the main board connector 12, the voltage at the main board connector 12 is different. The processing module 11 calculates the number of slave boards 20 currently connected to the main board 10 according to the voltage signal at the main board connector 12. Specifically, the processing module 11 includes a voltage divider circuit, which can be a resistor voltage divider, a variable resistor voltage divider, or a voltage divider circuit connected to a load, etc., which is not limited here. In practical applications, the processing module 11 can be integrated on the components of the mainboard 10 with processing and analysis functions, wherein such components can be microcontrollers, application-specific integrated circuits, single-chip microcomputers, etc. Exemplarily, the processing module 11 can perform real-time calculations based on the voltage signal obtained at the mainboard connector 12 and the electrical parameters of the circuit loop where the mainboard connector 12 is located, wherein the electrical parameters in the circuit loop include but are not limited to: power supply voltage, current, resistance value, capacitance, etc. Optionally, the processing module 11 can also determine the number of slave boards 20 currently connected to the mainboard 10 based on the mapping relationship between the voltage signal and the number of slave boards 20 determined in advance through experiments according to the voltage signal obtained from the mainboard connector 12.

[0074] In the slave board provided in this example, the main board includes a processing module and a main board connector connected to each other, and the slave board includes a first device and a slave board connector connected to each other; when the slave board is connected to the main board, the first device on the slave board is electrically connected to the main board connector through the slave board connector. In the scheme of the present application, the voltage at the main board connector is different when the number of first devices connected to the main board connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the main board according to the voltage signal at the main board connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion.

[0075] As yet another example, the slave board 20 further includes an expansion connector 23 , which is connected to the slave board connector 22 of the slave board 20 and is used to connect to the slave board connectors 22 of other slave boards 20 .

[0076] In this example, the slave board connector 22 is used to make an electrical connection with the main board 10 or the upper-level slave board 20. In practical applications, the connector can be a standard edge connector, a pin connector, or other types of electrical connectors. Exemplarily, the extension connector 23 is electrically connected to the slave board connector 22 of the slave board 20; by connecting the slave board connectors 22 of other slave boards 20 through the extension connector 23, multiple slave boards 20 can be connected in series, thereby realizing a more complex circuit design and functional expansion. Exemplarily, the extension connector 23 can be connected to the main board connector 12 to connect the slave board connectors 22 of other slave boards 20 as an extension interface of the main board connector 12; or, the extension connector 23 is connected to the slave board connector 22 on the same slave board 20 to connect the slave board connectors 22 of other slave boards 20 as an extension interface of the same slave board connector 22. In the scheme of this example, users can flexibly increase or decrease the number and type of slave boards 20 according to actual needs, thereby improving the flexibility and scalability of the system, and simplifying the design and manufacturing process of the circuit board.

[0077] As another example, Figure 7 A schematic diagram of the structure of a slave board 20 is shown in FIG. Figure 7 As shown, the slave board connector 22 includes a first pin and a second pin;

[0078] The first pin of the slave board connector 22 is used to connect to the first pin of the main board connector 12 or the first pin of the expansion connector 23 of the previous slave board 20;

[0079] The second pin of the slave board connector 22 is used to connect to the second pin of the main board connector 12 or the second pin of the expansion connector 23 of the previous slave board 20 .

[0080] In this example, the first pin of the slave board connector 22 is used to connect to the first pin of the main board connector 12 or the first pin of the expansion connector 23 of the previous slave board 20. Exemplarily, the first pin of the slave board connector 22 can transmit a specific power signal or data signal to ensure that the slave board 20 can work normally. The second pin of the slave board connector 22 is used to connect to the second pin of the main board connector 12 or the second pin of the expansion connector 23 of the previous slave board 20. Optionally, the second pin of the slave board connector 22 can transmit another power signal or data signal to further ensure the function of the slave board 20. The scheme of this example can realize the cascade connection of multiple slave boards 20 by pin connection, and each slave board 20 can communicate and exchange power with the main board 10 or other slave boards 20 through its slave board connector 22 and expansion connector 23.

[0081] As another example, Figure 8 A schematic diagram of the structure of a slave board 20 is shown in FIG. Figure 8As shown, one end of the first device 21 is connected to the first pin of the slave board connector 22 ; the other end of the first device 21 is connected to the second pin of the slave board connector 22 .

[0082] The scheme of this example is used to connect multiple first devices 21 in parallel to the main board connector 12 when there are multiple first devices 21, by connecting one end of the first device 21 to the first pin of the slave board connector 22; the other end of the first device 21 is connected to the second pin of the slave board connector 22. Exemplarily, when multiple first devices 21 are connected to the main board 10, the connection of the slave board 20 can be achieved by connecting one slave board connector 22 to the main board connector 12 and the other slave board connectors 22 to the extension connector 23. Optionally, when multiple first devices 21 are connected to the main board 10, the connection of the slave board 20 can be achieved by connecting each slave board connector 22 to the main board connector 12 without using the extension connector 23. In practical applications, the connection implementation method of the slave board 20 can also be a combination of the above two. The connection method of the first device 21 in this example is to connect one end of the first device 21 to the first pin of the slave board connector 22 and the other end of the first device 21 to the second pin of the slave board connector 22, so that multiple first devices 21 can be connected in parallel.

[0083] As another example, Fig. 9 A schematic diagram of the structure of a slave board 20 is shown in FIG. Fig. 9 As shown, the expansion connector 23 includes a first pin and a second pin; wherein,

[0084] In the same slave board 20 , a first pin of the slave board connector 22 is connected to a first pin of the expansion connector 23 , and a second pin of the slave board connector 22 is connected to a second pin of the expansion connector 23 .

[0085] In the solution of this example, in the same slave board 20, the first pin of the slave board connector 22 is connected to the first pin of the expansion connector 23, and the second pin of the slave board connector 22 is connected to the second pin of the expansion connector 23; through this pin connection method, the expansion connector 23 can be connected to the main board connector 12 through the slave board connector 22 on the same slave board 20, thereby improving the flexibility of expansion of the slave board 20.

[0086] As another example, Fig.10 A schematic diagram of the structure of a slave board 20 is shown in FIG. Fig.10 As shown, the slave board 20 also includes a first switch 24; wherein,

[0087] In the same slave board 20 , a first pin of the slave board connector 22 is connected to a first pin of the expansion connector 23 through a first device 21 ;

[0088] The first pin of the expansion connector 23 is connected to one end of the first switch 24 , and the other end of the first switch 24 is connected to the second pin of the expansion connector 23 .

[0089] Taking the scheme of this example as an example, in the slave board A, the first device 21 connects the first pin of the slave board connector 22 and the first pin of the extension connector 23. When there are multiple slave boards, the first pin of the slave board connector 22 of the slave board B and the first pin of the extension connector 23 of the slave board A are connected, so that the series connection relationship of multiple first devices is realized. Specifically, the following connection relationship can be realized: the first pin of the main board connector 12, the first pin of the slave board connector 22 of the slave board A, the first device 21 of the slave board A, the first pin of the extension connector 23 of the slave board A, the first pin of the slave board connector 22 of the slave board B, the first device 21 of the slave board B, and the first pin of the extension connector 23 of the slave board B. Further, the first switch 24 between the first pin and the second pin of the extension connector 23 is used to build a complete current loop. For example, when the slave board 20 is not the last slave board 20, that is, there are other slave boards 20 connected to the extension connector 23 of the slave board 20, the first switch 24 is controlled to be closed, so that the current can be returned from the first pin of the extension connector 23 of the slave board 20, the closed first switch 24, the second pin of the extension connector 23, the second pin of the slave board connector 22, and finally to the second pin of the main board connector 12. In the solution of this example, the first pin of the slave board connector 22 is connected to the first pin of the extension connector 23 through the first device 21 in the same slave board 20, and a complete current loop can be constructed by controlling the closing and opening of the first switch 24.

[0090] As yet another example, the first device 21 is a resistor device.

[0091] In this example, a resistor with a variable resistance value can be selected as the first device 21 for convenient adjustment. In the solution of this example, through the resistor in the slave board 20, when different numbers of slave boards 20 or resistors are connected to the main board connector 12, the voltage at the main board connector 12 is different, thereby achieving the effect that the processing module 11 calculates the number of slave boards 20 according to the voltage signal.

[0092] As yet another example, device parameters of the first devices 21 of different slave boards 20 are the same.

[0093] In the solution of this example, the device parameters of the first devices 21 of different slave boards 20 are the same, which can improve the batch and automated production of the slave boards 20.

[0094] As yet another example, device parameters of the first devices 21 of different slave boards 20 are different.

[0095] In the solution of this example, the device parameters of the first devices 21 of different slave boards 20 are the same, and the slave boards 20 including the first devices 21 with corresponding device parameters can be produced according to customized requirements; on the other hand, the processing module 11 performs calculation and identification of the connected slave boards 20 using a specific algorithm, which can improve the recognition ability of the processing module 11 for the connected slave boards 20.

[0096] In the slave board provided in this example, the main board includes a processing module and a main board connector connected to each other, and the slave board includes a first device and a slave board connector connected to each other; when the slave board is connected to the main board, the first device on the slave board is electrically connected to the main board connector through the slave board connector. In the scheme of the present application, the voltage at the main board connector is different when the number of first devices connected to the main board connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the main board according to the voltage signal at the main board connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion.

[0097] Embodiment 3

[0098] Fig.11 A schematic diagram of the structure of a slave board expansion system is shown in FIG. Fig.11 As shown, the slave board expansion system includes a main board 10 and a slave board 20 .

[0099] In practical applications, according to different needs, the type of the main board 10 can be various, such as a test main board, a communication main board or a storage main board, and the corresponding slave board 20 is matched to form a circuit board system. Exemplarily, the implementation of the relevant functions of the main board connector 12 or the slave board connector 22 can be based on the existing interface on the corresponding main board 10 or the corresponding slave board 20, or a new connection interface is added by welding. In this example, when the slave board 20 is connected to the main board 10, the slave board connector 22 is connected to the main board connector 12, and the first device 21 on the slave board 20 is connected to the main board connector 12 through the slave board connector 22 on the slave board 20 to establish an electrical circuit. Exemplarily, the first device 21 can be a resistor, a capacitor or other element that can affect the voltage, so that when different numbers of first devices 21 are connected to the main board connector 12, the voltage at the main board connector 12 is different. The processing module 11 calculates the number of slave boards 20 currently connected to the main board 10 according to the voltage signal at the main board connector 12. Specifically, the processing module 11 includes a voltage divider circuit, which may be a resistor voltage divider, a variable resistor voltage divider, or a voltage divider circuit connected to a load, etc., which is not limited here. In practical applications, the processing module 11 may be integrated on a component of the mainboard 10 with processing and analysis functions, wherein such a component may be a microcontroller, a dedicated integrated circuit, and a single-chip microcomputer, etc. Exemplarily, the processing module 11 may calculate in real time based on the voltage signal obtained at the mainboard connector 12 and the electrical parameters of the circuit loop where the mainboard connector 12 is located, wherein the electrical parameters in the circuit loop include but are not limited to: power supply voltage, current, resistance value, capacitance, etc. Optionally, the processing module 11 may also determine the number of slave boards 20 currently connected to the mainboard 10 based on the mapping relationship between the voltage signal and the number of slave boards 20 determined in advance through experiments according to the voltage signal obtained from the mainboard connector 12.

[0100] In the slave board expansion system provided in this example, the main board includes a processing module and a main board connector that are connected to each other, and the slave board includes a first device and a slave board connector that are connected to each other; when the slave board is connected to the main board, the first device on the slave board is electrically connected to the main board connector through the slave board connector. In the scheme of the present application, the voltage at the main board connector is different when the number of first devices connected to the main board connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the main board according to the voltage signal at the main board connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion.

[0101] Embodiment 4

[0102] Fig.12 exemplarily shows a flow chart of a slave board expansion method, which can be used for the main board of any embodiment. Fig.12 As shown, the slave board expansion method includes:

[0103] Step 101, obtaining a voltage signal at a mainboard connector;

[0104] Step 102: Calculate the number of slave boards currently connected to the main board according to the voltage signal at the main board connector.

[0105] In practical applications, the execution subject of the method is a processing module, and there are many ways to implement it. For example, the processing module can be integrated on a component with processing and analysis functions of the mainboard, where such components can be microcontrollers, application-specific integrated circuits, and single-chip microcomputers. In the method of this example, different algorithms can be designed in the processing module; wherein different algorithms can be based on first devices with different properties, and the connection relationship between multiple first devices is established. Optionally, obtaining a voltage signal may specifically include: obtaining an initial voltage signal within a predetermined time, and obtaining a voltage signal after denoising the initial voltage signal. Among them, a denoising algorithm such as a Gaussian weighted moving average filter algorithm can be used to remove noise.

[0106] In the slave board expansion method provided in this example, the main board includes a processing module and a main board connector connected to each other, and the slave board includes a first device and a slave board connector connected to each other; when the slave board is connected to the main board, the first device on the slave board is electrically connected to the main board connector through the slave board connector. In the scheme of the present application, the voltage at the main board connector is different when the number of first devices connected to the main board connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the main board according to the voltage signal at the main board connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion.

[0107] As another example, Fig.13 A schematic diagram of a method for extending from a board is shown in FIG. Fig.13 As shown, step 102 includes:

[0108] Step 201, calculating the total resistance value according to the voltage signal and the current signal at the mainboard connector;

[0109] Step 202: taking the quotient of the resistance value of the first device and the total resistance value as the number of slave boards.

[0110] The slave board expansion method of this example is applicable to the case where the first device on the slave board connected to the main board is a resistor device, and the resistance values ​​of the resistor devices are the same, and multiple resistor devices are connected in parallel. In this example, the voltage signal at the main board connector can be obtained by the processing module, and the current signal can be obtained in the total circuit of the current loop where the first device is located; the total resistance value of multiple resistor devices is calculated by R 总 The calculation formula is:

[0111] R 总 =V / I

[0112] Among them, V is the voltage signal at the motherboard connector, and I is the current signal at the motherboard connector.

[0113] Optionally, if there are a first sampling resistor and a second sampling resistor, the corresponding calculation formula of V is:

[0114]

[0115] Wherein, Vcc is the power supply voltage, r1 is the resistance value of the first sampling resistor, and R1 is the resistance value of the second sampling resistor.

[0116] R can be calculated by the above formula 总 , and then the calculation formula of the number of plates N is:

[0117] N=R / R 总

[0118] Wherein, R is the resistance value of the first device, and N is the number of slave boards.

[0119] The solution of this example calculates the total resistance based on the voltage signal and current signal at the mainboard connector, and takes the quotient of the resistance of the first device and the total resistance as the number of slave boards. This can improve the accuracy of calculating the number of slave boards when the first device on the slave board connected to the mainboard is a resistor device, the resistance of the resistor devices are the same, and multiple resistor devices are connected in parallel.

[0120] As another example, Fig.14 A schematic diagram of a method for extending from a board is shown in FIG. Fig.14 As shown, step 102 includes:

[0121] Step 301, calculating the total resistance value according to the voltage signal and the current signal at the mainboard connector;

[0122] Step 302: taking the quotient of the total resistance value and the resistance value of the first device as the number of slave boards.

[0123] The slave board expansion method of this example is applicable to the case where the first device on the slave board connected to the main board is a resistor device, and the resistance values ​​of the resistor devices are the same, and multiple resistor devices are connected in series. In the example, the voltage signal at the main board connector can be obtained by the processing module, and the current signal can be obtained in the total circuit of the current loop where the first device is located; the total resistance value of multiple resistor devices is calculated as R 总 The calculation formula is:

[0124] R 总 =V / I

[0125] Among them, V is the voltage signal at the motherboard connector, and I is the current signal at the motherboard connector.

[0126] Optionally, if there are a first sampling resistor and a second sampling resistor, the corresponding calculation formula of V is:

[0127]

[0128] Wherein, Vcc is the power supply voltage, r1 is the resistance value of the first sampling resistor, and R1 is the resistance value of the second sampling resistor.

[0129] R can be calculated by the above formula 总 , and then the calculation formula of the number of plates N is:

[0130] N=R 总 / R

[0131] Wherein, R is the resistance value of the first device, and N is the number of slave boards.

[0132] The solution of this example calculates the total resistance based on the voltage signal and current signal at the mainboard connector, and takes the quotient of the resistance of the first device and the total resistance as the number of slave boards. This can improve the accuracy of calculating the number of slave boards when the first device on the slave board connected to the mainboard is a resistor device, the resistance of the resistor devices is the same, and multiple resistor devices are connected in series.

[0133] As yet another example, step 102 includes:

[0134] According to the voltage signal at the mainboard connector, based on the mapping relationship, the number of slave boards is obtained; the mapping relationship includes the voltage signal value corresponding to each number of slave boards.

[0135] The slave board expansion method of this example is applicable to the situation where the first device on the slave board connected to the main board is a resistor device, and the resistance values ​​of the resistor devices are different. Exemplarily, according to the number of connected slave boards, the resistance value of the resistor device, and the series-parallel relationship of the resistor device, experimental tests are performed under these three conditional dimensions to obtain the voltage signal and the number of slave boards at the main board connection corresponding to each of the three determined conditional dimensions, and to establish a mapping relationship. The slave board expansion method of this example can reduce the computing resource requirements of the processing module and improve the efficiency of determining the number of slave boards.

[0136] In the slave board expansion method provided in this example, the main board includes a processing module and a main board connector connected to each other, and the slave board includes a first device and a slave board connector connected to each other; when the slave board is connected to the main board, the first device on the slave board is electrically connected to the main board connector through the slave board connector. In the scheme of the present application, the voltage at the main board connector is different when the number of first devices connected to the main board connector is different, and there is no need to equip the slave board with a control chip. The processing module can calculate the number of slave boards currently connected to the main board according to the voltage signal at the main board connector, thereby ensuring accurate detection of the number of slave boards and reducing the cost of slave board expansion.

[0137] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0138] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A motherboard, characterized in that: include: Processing module and motherboard connector; wherein, The mainboard connector is used to connect a slave board, the slave board includes a first device and a slave board connector; wherein the mainboard connector is electrically connected to a slave board connector on a slave board connected to the mainboard, and when the number of first devices connected to the mainboard connector through the slave board connector on the slave board is different, the voltage at the mainboard connector is different; The processing module is connected to the mainboard connector and is used to calculate the number of slave boards currently connected to the mainboard according to the voltage signal at the mainboard connector.

2. The mainboard according to claim 1, characterized in that: The mainboard connector includes a first pin and a second pin; wherein, The first pin of the mainboard connector is connected to the mainboard power supply and the processing module; The second pin of the mainboard connector is grounded.

3. The mainboard according to claim 1 or 2, characterized in that: The processing module includes: a processing unit and a detection unit; wherein, The detection unit is connected to the mainboard connector and is used to detect a voltage signal at the mainboard connector; The processing unit is connected to the detection unit, and is used to calculate the number of slave boards currently connected to the main board according to the voltage signal collected by the detection unit.

4. The mainboard according to claim 3, characterized in that: The detection unit includes: an analog-to-digital conversion unit and a sampling unit; wherein, The sampling unit is connected to the mainboard connector and is used to collect the voltage signal at the mainboard connector; The input end of the analog-to-digital conversion unit is connected to the sampling unit, and the output end of the analog-to-digital conversion unit is connected to the processing unit. The analog-to-digital conversion unit is used to convert the voltage signal collected by the sampling unit into a digital signal and output the digital signal to the processing unit.

5. The mainboard according to claim 4, characterized in that: The sampling unit includes a first sampling resistor and a second sampling resistor; wherein, One end of the first sampling resistor is connected to a power supply, and the other end of the first sampling resistor is connected to the second sampling resistor and the mainboard connector.

6. A slave plate, characterized in that: including a first device and a slave board connector; The slave board connector is used to connect to the main board, and the main board includes a main board connector and a processing module; The first device is electrically connected to the slave board connector so that when the slave board is connected to the main board, the first device is connected through the slave board connector and the main board connector; wherein, when the number of first devices connected to the main board connector through the slave board connector on the slave board is different, the voltage at the main board connector is different.

7. The slave board according to claim 6, characterized in that: The slave board further includes an expansion connector, which is connected to the slave board connector of the slave board and is used to connect to the slave board connectors of other slave boards.

8. The slave board according to claim 7, characterized in that: The slave board connector includes a first pin and a second pin; The first pin of the slave board connector is used to connect to the first pin of the main board connector or the first pin of the expansion connector of the previous slave board; The second pin of the slave board connector is used to connect to the second pin of the main board connector or the second pin of the expansion connector of the previous slave board.

9. The slave board according to claim 8, characterized in that: One end of the first device is connected to the first pin of the slave board connector; The other end of the first device is connected to the second pin of the slave board connector.

10. The slave board according to claim 8, characterized in that: The expansion connector includes a first pin and a second pin; wherein, In the same slave board, a first pin of the slave board connector is connected to a first pin of the expansion connector, and a second pin of the slave board connector is connected to a second pin of the expansion connector.

11. The slave board according to claim 10, characterized in that: The slave board also includes a first switch; wherein, In the same slave board, the first pin of the slave board connector is connected to the first pin of the expansion connector through the first device; The first pin of the expansion connector is connected to one end of the first switch, and the other end of the first switch is connected to the second pin of the expansion connector.

12. The slave board according to claim 6, characterized in that: The first device is a resistor device.

13. The slave board according to any one of claims 6 to 12, characterized in that: The device parameters of the first devices of different slave boards are the same.

14. The slave board according to any one of claims 6 to 12, characterized in that: The device parameters of the first device of different slave boards are different.

15. A slave board expansion system, characterized in that: include: A main board as claimed in claims 1 to 5 and at least one slave board as claimed in any one of claims 6 to 14.

16. A method for extending from a board, characterized in that: Applied to the main board according to any one of claims 1 to 5 or the main board of the slave board expansion system according to claim 15, the method comprising: Get the voltage signal at the motherboard connector; The number of slave boards currently connected to the main board is calculated according to the voltage signal at the main board connector.

17. The method according to claim 16, characterized in that The step of calculating the number of slave boards currently connected to the mainboard according to the voltage signal at the mainboard connector comprises: Calculating a total resistance value according to a voltage signal and a current signal at the mainboard connector; The quotient of the resistance value of the first device and the total resistance value is taken as the number of slave boards.

18. The method according to claim 16, characterized in that The step of calculating the number of slave boards currently connected to the mainboard according to the voltage signal at the mainboard connector comprises: Calculating a total resistance value according to a voltage signal and a current signal at the mainboard connector; The quotient of the total resistance value and the resistance value of the first device is taken as the number of slave boards.

19. The method according to claim 16, characterized in that The step of calculating the number of slave boards currently connected to the mainboard according to the voltage signal at the mainboard connector comprises: According to the voltage signal at the mainboard connector, based on a mapping relationship, the number of slave boards is obtained; the mapping relationship includes voltage signal values ​​corresponding to each number of slave boards.