Analog signal board card, application method of analog signal board card and storage medium
Through the resistor network of the analog signal board and the analog switch chip, the signal interference and detection accuracy problems in the body controller are solved, and the efficient and accurate signal detection is achieved.
Patent Information
- Application Number
- CN202510279621.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-07-04
AI Technical Summary
The number of control chip pins of the body controller does not match the calculation ability, resulting in reduced signal interference and detection accuracy.
The analog signal board is adopted, which includes a CAN chip, MCU main control chip, an analog switch chip and a resistor network. The analog switch chip switch is controlled through CAN packets to realize the connection of the resistor network, reduce signal interference and improve detection accuracy.
Through the coordination of the resistor network and the analog switching chip, signal interference is reduced, detection accuracy is improved, and the number of pins and calculation capabilities of the control chip are balanced.
Smart Images

Figure CN120255391A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic information technology, and in particular to an analog signal board, an application method of the analog signal board, and a storage medium. Background Art
[0002] The body controller needs to interact with more and more external signals, and these signals are generally simple input detection circuits. If each signal path uses such a circuit, it has high requirements for the number of pins of the control chip used by the controller. Generally speaking, the more pins a control chip has, the more powerful its computing power will be. However, the computing power required by this simple input detection circuit is extremely low, and the computing power and the number of pins cannot be correctly matched.
[0003] In order to balance the number of pins of the control chip and the computing power, the controller generally reduces the number of pins of the separate input detection circuit used. One pin needs to detect multiple external signals at the same time, which will cause signal interference and a decrease in detection accuracy. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide an analog signal board, an application method of the analog signal board, and a storage medium, so as to reduce the degree of signal interference and improve detection accuracy.
[0005] On the one hand, an embodiment of the present invention provides an analog signal board, including: a CAN chip, an MCU main control chip, a plurality of analog switch chips, a plurality of resistors, a first channel, a second channel, and a power supply module; The CAN chip is connected to the MCU main control chip, the MCU main control chip is connected to a plurality of analog switch chips, the plurality of analog switch chips are connected to a plurality of resistors, some of the plurality of resistors are connected to the first channel, and another part of the plurality of resistors is connected to the second channel.
[0006] Optionally, each of the analog switch chips is connected to a set number of resistors.
[0007] Optionally, the resistance value of the first channel is different from the resistance value of the second channel, the resistance value of the first channel is within a first set range, and the resistance value of the second channel is within a second set range.
[0008] Optionally, the first set range includes: xΩ - 512xΩ, and the second set range includes: 256xΩ - 131072xΩ, where x is a set value.
[0009] Optionally, the MCU main control chip is configured to receive a CAN message sent by a host computer and control the plurality of analog switch chips according to the CAN message; Each of the analog switch chips is used to open / close the path of the resistor and output through the first channel, the second channel, or both the first channel and the second channel.
[0010] Optionally, each of the analog switch chips has the same structure; The analog switch chip includes 10 pins. Among them, pin 1 is the power supply pin, pin 2 is connected to one end of the resistor and is the normally open end, pin 3 is connected to the other end of the resistor, and pin 4 is the control pin. When receiving the high-level control signal from the MCU main control chip, it connects pin 3 to pin 2, and pin 5 is the normally closed end; pin 6 is the power ground pin, and the usage of pins 7, 8, 9, and 10 is the same as that of pin 4, pin 3, pin 2, and pin 1 respectively; For one of the analog switch chips among multiple analog switch chips, pin 2 is connected to the external channel interface, the negative terminal of the diode connected to pin 7 is connected to another external channel of the external channel interface, and the negative terminals of the diodes after pin 2 and pin 7 of each of the remaining analog switch chips are connected.
[0011] On the other hand, an embodiment of the present invention provides an application method for an analog signal board, which is applied to the above analog signal board and includes: Receiving a CAN message sent by the host computer; Judging whether the message ID of the CAN message is a setting identifier; If it is judged that the message ID of the CAN message is a setting identifier, enter the setting mode; Based on the setting mode, open the corresponding switches of the first channel, the second channel, or both the first channel and the second channel according to the CAN message.
[0012] Optionally, the setting identifier includes a first identifier, a second identifier, and a third identifier, the setting mode includes a first channel mode, a second channel mode, and a two-channel mode, and the method includes: Judging whether the message ID of the CAN message is the first identifier; If it is judged that the message ID of the CAN message is the first identifier, enter the first channel mode; Based on the first channel mode, open the corresponding switch of the first channel according to the CAN message; If it is judged that the message ID of the CAN message is not the first identifier, judge whether the message ID of the CAN message is the second identifier; If it is judged that the message ID of the CAN message is the second identifier, enter the second channel mode; Based on the second channel mode, open the corresponding switch of the second channel according to the CAN message; If it is determined that the message ID of the CAN message is not the second identifier, determine whether the message ID of the CAN message is the third identifier; If it is determined that the message ID of the CAN message is the third identifier, enter the two-channel mode; Based on the two-channel mode, turn on the corresponding switches of the first channel and the second channel according to the CAN message; If it is determined that the message ID of the CAN message is not the third identifier, return to execute the step of receiving the CAN message sent by the host computer.
[0013] Optionally, the turning on the corresponding switches of the first channel, the second channel, or the first channel and the second channel according to the CAN message based on the set mode includes: Based on the dichotomy method, judge the input resistance value, and control the pins 3 and / or 8 of each analog switch chip according to the resistance value.
[0014] On the other hand, an embodiment of the present invention provides a storage medium, which includes a stored program. When the program runs, it controls the device where the storage medium is located to execute the application method of the above analog signal board.
[0015] In the technical solution provided by the embodiment of the present invention, the analog signal board includes: a CAN chip, an MCU main control chip, a plurality of analog switch chips, a plurality of resistors, a first channel, a second channel, and a power supply module; the CAN chip is connected to the MCU main control chip, the MCU main control chip is connected to a plurality of analog switch chips, the plurality of analog switch chips are connected to a plurality of resistors, some of the plurality of resistors are connected to the first channel, and another part of the plurality of resistors is connected to the second channel. In the technical solution provided by the embodiment of the present invention, resistance simulation can be realized through a resistor network, the connection of the resistor network can be realized through an analog switch chip, and the signal interference degree can be reduced and the detection accuracy can be improved. Description of the Drawings
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0017] Figure 1 It is a system schematic diagram of an analog signal board provided by an embodiment of the present invention; Figure 2 It is another system schematic diagram of an analog signal board provided by an embodiment of the present invention; Figure 3Schematic diagram of an MCU main control chip provided by an embodiment of the present invention; Figure 4 Schematic diagram of a plurality of analog switch chips provided by an embodiment of the present invention; Figure 5 Flowchart of an application method of an analog signal board provided by an embodiment of the present invention; Figure 6 Flowchart of another application method of an analog signal board provided by an embodiment of the present invention; Figure 7 Flowchart for opening the corresponding switches of the first channel, the second channel, or the first and second channels according to the CAN message based on the set mode. Detailed implementation manners
[0018] For a better understanding of the technical solutions of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0019] It should be clear that the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts belong to the scope of protection of the present invention.
[0020] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "the", and "said" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0021] It should be understood that the term " / and / " used herein is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.
[0022] An analog signal board provided by an embodiment of the present invention, Figure 1 System schematic diagram of an analog signal board provided by an embodiment of the present invention. As Figure 1 shown, the host computer 1 is connected to the analog signal board 2, and the analog signal board 2 can be connected to the body control module (abbreviated as BCM) to test the body control module.
[0023] The analog signal board 2 includes: a Controller Area Network (CAN) chip 21, a Microcontroller Unit (MCU) main control chip 22, multiple analog switch chips 23, multiple resistors 24, a first channel 251, a second channel 252, and a power supply module 26.
[0024] The host computer 1 is connected to the CAN chip 21, the CAN chip 21 is connected to the MCU main control chip 22, the MCU main control chip 22 is connected to multiple analog switch chips 23, the multiple analog switch chips 23 are connected to multiple resistors 24, some of the multiple resistors are connected to the first channel 251, some of the other multiple resistors are connected to the second channel 252. The first channel 251 includes a first input interface SW_IN1 and a first output interface SW_OUT1, and the second channel 252 includes a second input interface SW_IN2 and a second output interface SW_OUT2.
[0025] In the technical solution provided by the embodiment of the present invention, the analog signal board includes: a CAN chip, an MCU main control chip, multiple analog switch chips, multiple resistors, a first channel, a second channel, and a power supply module; the CAN chip is connected to the MCU main control chip, the MCU main control chip is connected to multiple analog switch chips, the multiple analog switch chips are connected to multiple resistors, some of the multiple resistors are connected to the first channel, and some of the other multiple resistors are connected to the second channel. In the technical solution provided by the embodiment of the present invention, resistor simulation can be realized through a resistor network, the connection of the resistor network can be realized through an analog switch chip, and the signal interference degree can be reduced and the detection accuracy can be improved.
[0026] Another analog signal board provided by an embodiment of the present invention Figure 2 is a system schematic diagram of another analog signal board provided by an embodiment of the present invention. As Figure 2 shown, the host computer 1 is connected to the analog signal board 2, and the analog signal board 2 can be connected to a body controller to test the body controller.
[0027] The analog signal board 2 includes: a CAN chip 21, an MCU main control chip 22, multiple analog switch chips (a first analog switch chip 231, a second analog switch chip 232... an Nth analog switch chip 23N), multiple resistors (a first resistor 241, a second resistor 242, a third resistor 243, a fourth resistor 244... an (N - 1)th resistor 24N - 1, an Nth resistor 24N), a first channel 251, a second channel 252, and a power supply module 26.
[0028] The host computer 1 is connected to the CAN chip 21, the CAN chip 21 is connected to the MCU main control chip 22, and the MCU main control chip 22 is respectively connected to the first analog switch chip 231, the second analog switch chip 232... the Nth analog switch chip 23N. The first analog switch chip 231 is connected to the first resistor 241 and the second resistor 242, the second analog switch chip 232 is connected to the third resistor 243 and the fourth resistor 244, and the Nth analog switch chip 23N is connected to the (N - 1)th resistor 24N - 1 and the Nth resistor 24N. Some of the multiple resistors (such as the first resistor 241, the second resistor 242, the third resistor 243, the fourth resistor 244, etc.) are connected to the first channel 251, and another part of the multiple resistors (such as the (N - 1)th resistor 24N - 1, the Nth resistor 24N, etc.) are connected to the second channel 252. The first channel 251 includes a first input interface SW_IN1 and a first output interface SW_OUT1, and the second channel 252 includes a second input interface SW_IN2 and a second output interface SW_OUT2.
[0029] In the embodiment of the present invention, the analog signal board 2 can be controlled through CAN communication, that is, various resistance values can be simulated through a resistance network. The MCU main control chip 22 turns on the switch of the analog switch chip by receiving a CAN message, thereby controlling the resistance value connected to the network.
[0030] In the embodiment of the present invention, each analog switch chip can be connected to a set number of resistors. For example, the set number can be 2.
[0031] In the embodiment of the present invention, the resistance value control of two channels (the first channel 251 and the second channel 252) is set on the analog signal board 2. The resistance value of the first channel 251 is different from that of the second channel 252. The resistance value of the first channel 251 has xΩ as the minimum unit, and the resistance value of the first channel 251 is within the first set range. The resistance value of the second channel 252 has 256xΩ as the minimum unit, and the resistance value of the second channel 252 is within the second set range. For example, the first set range includes: xΩ - 512xΩ, and the second set range includes: 256xΩ - 131072xΩ, where x can be set according to the actual situation and is a set value. For example, if x is 10, the resistor may be burned out if the resistance value is too small. The analog signal board 2 can control the resistance values of the two channels separately, or connect the two channels together for resistance value control.
[0032] In the embodiment of the present invention, the host computer 1 communicates with the analog signal board 2 through the CAN bus. The MCU main control chip 22 is used to receive the CAN message sent by the host computer 1 and control multiple analog switch chips according to the CAN message; each analog switch chip is used to open / close the path of the resistor to form different resistance values and output through the first channel 251, the second channel 252, or both the first channel 251 and the second channel 252.
[0033] In the embodiment of the present invention, Figure 3 is a schematic diagram of an MCU main control chip provided by an embodiment of the present invention. As Figure 3 shown, the MCU main control chip has a total of 48 pins. The MCU main control chip is mainly used to process the received CAN message and drive the corresponding pins according to the processed CAN message to turn on the corresponding analog switch.
[0034] In the embodiment of the present invention, Figure 4 is a schematic diagram of multiple analog switch chips provided by an embodiment of the present invention. The analog signal board 2 can use 16 analog switch chips. Each analog switch chip has the same structure. Since the circuits as analog resistors have exactly the same structure except for the resistance values at the positions of R48 and R49, the two shown in the figure are used as substitutes. 8 out of the 16 analog switches form a group, and there are two groups, which form the above two ranges of resistance values. As Figure 4 shown, the analog switch combination is responsible for the small-resistance channel and is used through the external connection line of JP6.
[0035] Taking one analog switch chip as an example, the analog switch chip includes 10 pins. Among them, pin 1 is the power supply pin, pin 2 is connected to one end of the resistor and is the normally open end, pin 3 is connected to the other end of the resistor and can be regarded as a switch, pin 4 is the control pin. When receiving the high-level control signal from the MCU main control chip, it connects the switch at pin 3 to the normally open end at pin 2 inside the chip. Pin 5 is the normally closed end, and an external diode is connected to prevent the circuit from short-circuiting; pin 6 is the power ground pin, and the usage of pins 7, 8, 9, and 10 is the same as that of pins 4, 3, 2, and 1. For one of the multiple analog switch chips (8 analog switch chips in the small-resistance channel), the pin 2 of an analog switch chip (the analog switch chip at the head) is connected to the external channel interface JP6, and the negative end of the diode connected to pin 7 is connected to another external channel of the external channel interface JP6. The pin 2 of each remaining analog switch chip is connected to the negative end of the diode after pin 7.
[0036] In the technical solution provided by the embodiment of the present invention, the analog signal board includes: a CAN chip, an MCU main control chip, a plurality of analog switch chips, a plurality of resistors, a first channel, a second channel, and a power supply module; the CAN chip is connected to the MCU main control chip, the MCU main control chip is connected to the plurality of analog switch chips, the plurality of analog switch chips are connected to the plurality of resistors, some of the plurality of resistors are connected to the first channel, and another part of the plurality of resistors are connected to the second channel. In the technical solution provided by the embodiment of the present invention, resistor simulation can be realized through a resistor network, and the connection of the resistor network can be realized through an analog switch chip, which can reduce the degree of signal interference and improve the detection accuracy.
[0037] Based on the above analog signal board, an embodiment of the present invention provides an application method of the analog signal board. Figure 5 As shown in the flowchart of an application method of an analog signal board provided by an embodiment of the present invention, Figure 5 the method includes: Step 102, receive the CAN message sent by the host computer.
[0038] In the embodiment of the present invention, each step is executed by the analog signal board.
[0039] Step 104, determine whether the message ID of the CAN message is a set identifier.
[0040] In the embodiment of the present invention, the set identifier includes a first identifier, a second identifier, and a third identifier. The first identifier, the second identifier, and the third identifier can be set according to the actual situation. For example, the first identifier is A, the second identifier is B, and the third identifier is C.
[0041] Step 106, if it is determined that the message ID of the CAN message is a set identifier, enter the setting mode.
[0042] In the embodiment of the present invention, the setting mode includes a first channel mode, a second channel mode, and a two-channel mode. For example, if the message ID is A, enter the first channel mode; if the message ID is B, enter the second channel mode; if the message ID is C, enter the two-channel mode.
[0043] Step 108, based on the set mode, open the corresponding switches of the first channel, the second channel, or the first channel and the second channel according to the CAN message.
[0044] In the embodiment of the present invention, the first channel mode opens the corresponding switch of the first channel, the second channel mode opens the corresponding switch of the second channel, and the two-channel mode opens the corresponding switches of the first channel and the second channel.
[0045] Specifically, the input resistance value can be judged based on the dichotomy method, and the 3rd pin and / or the 8th pin of each analog switch chip can be controlled according to the resistance value.
[0046] In the technical solution provided by the embodiment of the present invention, the analog signal board includes: a CAN chip, an MCU main control chip, a plurality of analog switch chips, a plurality of resistors, a first channel, a second channel, and a power supply module; the CAN chip is connected to the MCU main control chip, the MCU main control chip is connected to a plurality of analog switch chips, the plurality of analog switch chips are connected to a plurality of resistors, some of the plurality of resistors are connected to the first channel, and another part of the plurality of resistors is connected to the second channel. In the technical solution provided by the embodiment of the present invention, resistor simulation can be realized through a resistor network, the connection of the resistor network can be realized through an analog switch chip, and the signal interference degree can be reduced and the detection accuracy can be improved.
[0047] An embodiment of the present invention provides another application method of an analog signal board. Figure 6 As shown in Figure 6 the flowchart of another application method of an analog signal board provided by an embodiment of the present invention, the method includes: Step 202, receive the CAN message sent by the host computer.
[0048] In the embodiment of the present invention, each step is executed by the analog signal board.
[0049] Step 204, determine whether the message ID of the CAN message is the first identifier. If so, execute step 206; if not, execute step 208.
[0050] In the embodiment of the present invention, the first identifier can be set according to the actual situation. For example, the first identifier is A.
[0051] Step 206, enter the first channel mode, and based on the first channel mode, open the corresponding switch of the first channel according to the CAN message, and the process ends.
[0052] In this step, the corresponding switch of the first channel can be opened according to the last four bits of data of the CAN message. For example, F in hexadecimal is 1111 in binary, and all 4 switches are opened. Another example is that A in hexadecimal is 1010 in binary, switches 1 and 3 are opened, and switches 2 and 4 are closed.
[0053] Step 208, determine whether the message ID of the CAN message is the second identifier. If so, execute step 210; if not, execute step 212.
[0054] In the embodiment of the present invention, the second identifier can be set according to the actual situation. For example, the second identifier is B.
[0055] Step 210, enter the second channel mode, and based on the second channel mode, open the corresponding switch of the second channel according to the CAN message, and the process ends.
[0056] In this step, according to the last six digits of the CAN message, the corresponding switches of the second channel can be turned on. The way to turn on the switches of the second channel is similar to that in step 206, which will not be elaborated here.
[0057] Execute step 212, and determine whether the message ID of the CAN message is the third identifier. If it is, execute step 214; if not, execute step 202.
[0058] In the embodiment of the present invention, the third identifier can be set according to the actual situation. For example, the third identifier is C.
[0059] Step 214: Enter the two-channel mode, and based on the two-channel mode, turn on the corresponding switches of the first channel and the second channel according to the CAN message.
[0060] In this step, according to the last six digits of the CAN message, the corresponding switches of the first channel and the second channel can be turned on. The way to turn on the switches of the first channel and the second channel is similar to that in step 206, which will not be elaborated here.
[0061] After power-on, the analog signal board waits to receive CAN messages. When no message is received, no control pins are enabled; after receiving a message, the message ID is judged, and according to different message IDs, it enters different modes. In different modes, the sub-process judgment logics are similar, and the sub-process judgment flowchart is as Figure 7 shown in Figure 7 It is a flowchart for turning on the corresponding switches of the first channel, the second channel, or the first channel and the second channel according to the CAN message based on the set mode. Taking the number of analog switch chips as 8 as an example, the method includes: Step 302: Determine whether the resistance value is greater than 2.56k. If it is, execute step 304; if not, execute step 310.
[0062] Step 304: Enable the 3rd and 8th pins of the other chips except the 8th analog switch chip, and the resistance value - 2.56k.
[0063] Step 306: Determine whether the resistance value is greater than 1.28k. If it is, execute step 308; if not, execute step 316.
[0064] Step 308: Pull down the 3rd and 8th pins of the 7th analog switch chip, and the resistance value - 1.28k.
[0065] Step 310: Determine whether the resistance value is greater than 1.28k. If it is, execute step 312; if not, execute step 314.
[0066] Step 312: Enable the pin 3 of the 8th analog switch chip, as well as the pins 3 and 8 of the other chips except the 8th analog switch chip, with the resistance value being -1.28k, and then execute Step 316.
[0067] Step 314: Enable the pins 3 and 8 of the 8th analog switch chip.
[0068] Step 316: Determine whether the resistance value is greater than 0.64k. If so, execute Step 318; if not, execute Step 320.
[0069] Step 318: Pull down the pin 8 of the 7th analog switch chip, with the resistance value being -0.64k.
[0070] Step 320: Enable the pins 3 and 8 of the 7th analog switch chip.
[0071] And so on, based on the dichotomy method, judge the input resistance value, and control the pins 3 and / or 8 of each analog switch chip according to the resistance value until Step 372 is executed.
[0072] Step 372: Determine whether the resistance value is greater than 20. If so, execute Step 374; if not, execute Step 376.
[0073] Step 374: Pull down the pins 3 and 8 of the 2nd analog switch chip, and the process ends.
[0074] Step 376: Determine whether the resistance value is greater than 10. If so, execute Step 378; if not, execute Step 380.
[0075] Step 378: Pull down the pin 8 of the 1st analog switch chip, and the process ends.
[0076] Step 380: Enable the pin 3 of the 1st analog switch chip.
[0077] In the technical solution provided by the embodiment of the present invention, the analog signal board includes: a CAN chip, an MCU main control chip, multiple analog switch chips, multiple resistors, a first channel, a second channel, and a power supply module; the CAN chip is connected to the MCU main control chip, the MCU main control chip is connected to multiple analog switch chips, multiple analog switch chips are connected to multiple resistors, some of the multiple resistors are connected to the first channel, and another part of the multiple resistors is connected to the second channel. In the technical solution provided by the embodiment of the present invention, it is possible to realize resistance simulation through a resistor network, and realize the connection of the resistor network through an analog switch chip, which can reduce the degree of signal interference and improve the detection accuracy.
[0078] In an embodiment of the present invention, taking the sub-process of entering the first channel as an example, after entering the sub-process, the input resistance value is judged according to the dichotomy method. If the resistance value of the input resistor is less than 10 ohms, a 10-ohm resistor will still be retained in the network finally to prevent the channel from short-circuiting.
[0079] An embodiment of the present invention provides a storage medium. The storage medium includes a stored program. Among them, when the program runs, it controls the device where the storage medium is located to execute the steps of the above-mentioned embodiment of the application method of the analog signal board. For specific descriptions, reference can be made to the embodiment of the application method of the analog signal board above.
[0080] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the scope of protection of the present invention.
Claims
1. An analog signal board, characterized in that, Comprising: A CAN chip, an MCU main control chip, a plurality of analog switch chips, a plurality of resistors, a first channel, a second channel and a power supply module; The CAN chip is connected to the MCU main control chip, the MCU main control chip is connected to a plurality of analog switch chips, the plurality of analog switch chips are connected to a plurality of resistors, some of the plurality of resistors are connected to the first channel, and another part of the plurality of resistors are connected to the second channel.
2. The analog signal board according to claim 1, wherein Each of the analog switch chips is connected to a set number of resistors.
3. The analog signal board according to claim 1, characterized in that The resistance value of the first channel is different from that of the second channel. The resistance value of the first channel is within a first set range, and the resistance value of the second channel is within a second set range.
4. The analog signal board according to claim 3, wherein The first set range includes: xΩ - 512xΩ, and the second set range includes: 256xΩ - 131072xΩ, where x is a set value.
5. The analog signal board according to claim 1, wherein The MCU main control chip is used to receive the CAN message sent by the host computer and control the plurality of analog switch chips according to the CAN message; Each of the analog switch chips is used to open / close the path of the resistor and output through the first channel, the second channel or the first channel and the second channel.
6. The analog signal board according to claim 1, wherein The structures of each of the analog switch chips are the same; The analog switch chip includes 10 pins. Among them, pin 1 is the power supply pin, pin 2 is connected to one end of the resistor and is the normally open end, pin 3 is connected to the other end of the resistor, pin 4 is the control pin. When receiving the high-level control signal from the MCU main control chip, pin 3 is connected to pin 2, and pin 5 is the normally closed end; pin 6 is the power ground pin, and the uses of pins 7, 8, 9 and 10 are the same as those of pins 4, 3, 2 and 1; Among the plurality of analog switch chips, the pin 2 of one of the analog switch chips is connected to the external channel interface, the negative end of the diode connected to pin 7 is connected to another external channel of the external channel interface, and the pin 2 of each of the remaining analog switch chips is connected to the negative end of the diode after pin 7.
7. A method for applying an analog signal board, applied to the analog signal board according to claim 1, characterized in that, Comprising: Receiving the CAN message sent by the host computer; Judging whether the message ID of the CAN message is the set identifier; If it is judged that the message ID of the CAN message is the set identifier, entering the setting mode; Based on the setting mode, opening the corresponding switch of the first channel, the second channel or the first channel and the second channel according to the CAN message.
8. The method according to claim 7, wherein The set identifier includes a first identifier, a second identifier and a third identifier, and the setting mode includes a first channel mode, a second channel mode and a two-channel mode. The method includes: Judging whether the message ID of the CAN message is the first identifier; If it is judged that the message ID of the CAN message is the first identifier, entering the first channel mode; Based on the first channel mode, opening the corresponding switch of the first channel according to the CAN message; If it is judged that the message ID of the CAN message is not the first identifier, judging whether the message ID of the CAN message is the second identifier; If it is judged that the message ID of the CAN message is the second identifier, entering the second channel mode; Based on the second channel mode, opening the corresponding switch of the second channel according to the CAN message; If it is determined that the message ID of the CAN message is not the second identifier, determine whether the message ID of the CAN message is the third identifier; If it is determined that the message ID of the CAN message is the third identifier, enter the two-channel mode; Based on the two-channel mode, turn on the corresponding switches of the first channel and the second channel according to the CAN message; If it is determined that the message ID of the CAN message is not the third identifier, return to execute the step of receiving the CAN message sent by the host computer.
9. The method according to claim 7, wherein The turning on the corresponding switches of the first channel, the second channel, or the first channel and the second channel according to the CAN message based on the set mode includes: Judging the input resistance value based on the dichotomy method, and controlling the pins 3 and / or 8 of each analog switch chip according to the resistance value.
10. A storage medium, characterized in that, The storage medium includes a stored program, wherein when the program runs, it controls the device where the storage medium is located to execute the application method of the analog signal board card according to any one of claims 7 to 9.