Communication system for multiple electronic devices
By introducing a communication switching unit and an address electrical signal generation unit into a multi-electronic device communication system, and using a series voltage dividing resistor unit and a charging capacitor to generate address signals of different voltages or pulses, the hardware accuracy caused by address identification allocation in the prior art is solved. High and high cost issues are achieved, achieving more efficient address identification and system efficiency.
Patent Information
- Application Number
- CN202410937380.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-12
AI Technical Summary
In existing multi-electronic device communication systems, the address identification allocation scheme of electronic devices results in high hardware precision, increases system costs, and cannot effectively reduce address differences, affecting system efficiency.
By introducing a communication switching unit and an address electrical signal generating unit into the system, the electronic equipment is divided into multiple groups. The electronic equipment in each group determines the address in the group according to the accessed address electrical signal, using the series voltage dividing resistor unit and The charging capacitor generates address signals with different voltages or pulses, reducing hardware accuracy requirements and reducing system costs.
It allows greater address electrical signal differences under the same address range, reduces hardware accuracy requirements, reduces system costs, and improves address recognition efficiency and system efficiency.
Smart Images

Figure CN118467436B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a communication system of multiple electronic devices. Background Art
[0002] In industrial sites, when multiple electronic devices are involved, the communication between electronic devices and the communication between electronic devices and the host computer both require corresponding address identifiers to distinguish them, so as to ensure the effectiveness of the communication.
[0003] Each electronic device needs to complete the relevant functions of its setting location, including control, collection, feedback, etc. That is to say, the address identifier of the electronic device corresponds to its setting location, so that its setting location can be determined based on its address identifier later, which facilitates the implementation of relevant control.
[0004] In summary, the address identification of electronic devices cannot adopt fixed address identification, but needs to be assigned corresponding address identification according to the setting location of each electronic device after the system is built. Some existing address identification allocation schemes have high accuracy for the related hardware used, resulting in high cost of the entire system. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a communication system for multiple electronic devices.
[0006] In one embodiment, the present invention provides a communication system for multiple electronic devices, the communication system for multiple electronic devices comprising:
[0007] A host computer, a communication switching unit, a plurality of address electrical signal generating units, and a plurality of electronic equipment groups, each electronic equipment group including a plurality of electronic equipment;
[0008] The host computer is used to be electrically connected to each electronic device group through a communication switching unit, the communication switching unit is used to connect the communication line between each electronic device in one of the electronic device groups and the host computer, the address electrical signal generating unit is used to be electrically connected to the electronic device group, and the address electrical signal generating unit and the electronic device group correspond one to one;
[0009] For each address electrical signal generating unit and the corresponding electrically connected electronic device group, the address electrical signal generating unit is used to generate a plurality of address electrical signals whose number is the same as the number of electronic devices in the electronic device group but whose signal parameter values are different, and each electronic device in the electronic device group is used to determine its group address in the electronic device group according to the received address electrical signal.
[0010] In one embodiment, for each electronic device, the electronic device is specifically used to query a preset address mapping table according to the received address electrical signal, and determine the mapping address corresponding to the received address electrical signal in the preset address mapping table as the group address of the electronic device in the corresponding electronic device group.
[0011] In one embodiment, the address electrical signal generating unit includes an address voltage generating unit;
[0012] The address voltage generating unit is used to generate a plurality of address voltages with different voltage values, and the address electrical signal includes the address voltages.
[0013] In one embodiment, the address voltage generating unit includes a series voltage dividing resistor unit;
[0014] The series voltage-dividing resistor unit includes an input terminal for inputting a total voltage and a plurality of output terminals for outputting corresponding address voltages respectively.
[0015] In one embodiment, the series voltage-dividing resistor unit includes a plurality of resistor modules with the same resistance value connected in series in sequence;
[0016] The first end of the first resistor module connected in series is connected to the total voltage and is used to output the first address voltage. The second end of the second resistor module is electrically connected to the second end of the first resistor module and is used to output the second address voltage. Similarly, the first end of the last resistor module is electrically connected to the second end of the second-to-last resistor module and is used to output the last address voltage. The second end of the last resistor module is used for grounding.
[0017] In one embodiment, for each electronic device, the electronic device is specifically used to calculate the group address of the electronic device based on the total voltage connected to the series voltage-dividing resistor unit corresponding to the electronic device group to which the electronic device is located, the number of resistor modules in the series voltage-dividing resistor unit, and the address voltage connected to the electronic device.
[0018] In one embodiment, the address electrical signal generating unit includes a plurality of switch tubes, a plurality of charging resistors and a plurality of charging capacitors, and the switch tubes, the charging resistors and the charging capacitors correspond to each other one by one;
[0019] The input end of each switch tube is respectively used to access the working voltage, the output end of each switch tube is electrically connected to the first end of the corresponding charging capacitor through the corresponding charging resistor, and the second end of each charging capacitor is grounded;
[0020] The driving end of each switch tube is used to connect to the driving signal output by the corresponding electronic device, the first end of each charging capacitor is used to output the corresponding voltage change signal, the address electrical signal includes the voltage change signal, and the first ends of multiple charging capacitors in the same address electrical signal generating unit respectively output voltage change signals with different change conditions;
[0021] For each electronic device, the electronic device is used to receive the corresponding voltage change signal after sending a driving signal to the corresponding switch tube, and determine its group address in the corresponding electronic device group according to the received voltage change signal.
[0022] In one embodiment, the address electrical signal generating unit includes an address pulse generating unit;
[0023] The address pulse generating unit is used to generate a plurality of address pulses with different numbers of pulses, and the address electrical signal includes the address pulses.
[0024] In one embodiment, an electronic device includes a processing unit and a connector;
[0025] The communication end of the connector is electrically connected to the communication end of the processing unit, and the address end of the connector is electrically connected to the address end of the processing unit;
[0026] The connector is used to be electrically connected to the communication switching unit and the address electrical signal generating unit respectively, so as to access the corresponding address electrical signal and establish a communication line between the processing unit and the host computer.
[0027] In one embodiment, the electronic device further includes a first resistor, a second resistor, a first capacitor, and a bidirectional TVS tube;
[0028] The first end of the first resistor is electrically connected to the address end of the connector, the second end of the first resistor is electrically connected to the first end of the second resistor, the first end of the first capacitor, the first anode of the bidirectional TVS tube and the address end of the processing unit, and the second end of the second resistor, the second end of the first capacitor and the second anode of the bidirectional TVS tube are grounded respectively.
[0029] In one embodiment, the electronic device further includes a delay circuit, the delay circuit including a third resistor and a second capacitor;
[0030] The first end of the third resistor is connected to the working voltage, the second end of the third resistor is electrically connected to the first end of the second capacitor and the reset end of the processing unit respectively, and the second end of the second capacitor is grounded.
[0031] In one embodiment, the communication switching unit includes a plurality of switch groups;
[0032] The first end of each switch group is electrically connected to the communication end of the host computer, and the second end of the switch group is used to electrically connect to the communication end of the electronic device in the electronic device group. The switch groups correspond to the electronic device groups one by one, and the control end of each switch group is electrically connected to the output end of the host computer.
[0033] In one embodiment, the switch group includes semiconductor switches or electromagnetic switches.
[0034] Through the above-mentioned communication system of multiple electronic devices, the electronic devices are divided into multiple electronic device groups, and the multiple electronic device groups are electrically connected to the upper computer through the communication switching unit, so there is no need to consider the address difference between the groups; in addition, a corresponding address electrical signal generating unit is set for each electronic device group, so that each electronic device in each electronic device group can determine the corresponding intra-group address based on the address electrical signal generated by the corresponding address electrical signal generating unit. Since there are only intra-group addresses, the intra-group addresses only reflect the differences between the electronic devices in the group, and an electronic device group contains relatively few electronic devices. Therefore, under the same address range, the difference between the address electrical signals corresponding to the intra-group addresses in an electronic device group can be made larger, and the allowed error is larger, thereby reducing the accuracy requirements of the relevant hardware, and ultimately reducing the cost of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 A schematic diagram of the structure of a communication system for multiple electronic devices in one embodiment of the present invention;
[0037] Figure 2 A schematic diagram of the specific structure of an electronic device group in one embodiment of the present invention;
[0038] Figure 3 It is a schematic diagram of a specific structure in which an address electric signal generating unit includes a resistance module in one embodiment of the present invention;
[0039] Figure 4 A schematic diagram of a specific structure in which an address electrical signal generating unit includes a charging capacitor in one embodiment of the present invention;
[0040] Figure 5 A schematic diagram of a specific structure of an electronic device in one embodiment of the present invention;
[0041] Figure 6 A schematic diagram of a specific structure of an electronic device having filtering and clamping functions in one embodiment of the present invention;
[0042] Figure 7 A schematic diagram of the specific structure of an electronic device with a delayed reset function in one embodiment of the present invention;
[0043] Figure 8 A schematic diagram of a structure in which a communication system of multiple electronic devices uses an RS485 bus for communication in one embodiment of the present invention;
[0044] Fig. 9 The figure is a schematic diagram of the specific structure of a communication switching unit in one embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0046] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In the present application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in the present application is not necessarily interpreted as being more preferred or more advantageous than other embodiments. In order to enable any person skilled in the art to implement and use the present invention, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art will recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present invention obscure. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in this application.
[0047] like Figure 1 As shown, in one embodiment, the present invention provides a communication system for multiple electronic devices, the communication system for multiple electronic devices includes a host computer, a communication switching unit, multiple address electrical signal generating units, and multiple electronic device groups, each electronic device group includes multiple electronic devices.
[0048] The electronic device may be a circuit breaker in a power supply system or a power distribution system.
[0049] The host computer is used to be electrically connected to each electronic device group through a communication switching unit, and the communication switching unit is used to connect the communication line between each electronic device in one of the electronic device groups and the host computer. The address electrical signal generating unit is used to be electrically connected to the electronic device group, and the address electrical signal generating unit and the electronic device group correspond one to one.
[0050] Among them, the communication switching unit realizes one-to-many communication of the host computer, but it should be noted that at the same time, the host computer only establishes a communication line with the electronic equipment in one electronic equipment group. In addition, the host computer can determine the target electronic equipment group with which the communication line is currently established through the current switching state of the communication switching unit. The switching state of the communication switching unit can be controlled by the host computer, so that the host computer directly determines the switching state of the communication switching unit. The switching state of the communication switching unit may also not be controlled by the host computer. In this case, in order for the host computer to determine the target electronic equipment group with which the communication line is currently established, the communication switching unit needs to feedback the current switching state to the host computer; for example, if the switching state of the communication switching unit is "channel one connected", the communication switching unit feedbacks the state signal representing "channel one connected" to the host computer, and for another example, if the switching state of the communication switching unit is "channel two connected", the communication switching unit feedbacks the state signal representing "channel two connected" to the host computer, so that the host computer can identify the state signal fed back by the communication switching unit, and then determine the target electronic equipment group with which the communication line is currently established.
[0051] like Figure 2 As shown, for each address electrical signal generating unit and the corresponding electrically connected electronic device group, the address electrical signal generating unit is used to generate a plurality of address electrical signals whose number is the same as the number of electronic devices in the electronic device group but whose signal parameter values are different, and each electronic device in the electronic device group is used to determine its group address in the electronic device group according to the received address electrical signal.
[0052] The address electrical signal may include an address current, that is, the address difference of each electronic device in the electronic device group is distinguished in the form of a current difference.
[0053] The address electrical signal generating unit has multiple output terminals, each of which is used to output a corresponding address electrical signal, and the setting position of the output terminal is fixed. In other words, the address electrical signal connected to the electronic device corresponds one-to-one to the output terminal of the address electrical signal generating unit to which it is electrically connected, that is, the setting position of the electronic device when it is connected to the system determines the internal address of the electronic device that can be determined, so that the subsequent host computer can determine the setting position of the electronic device when it is connected to the system according to the internal address of the electronic device.
[0054] Through the above-mentioned communication system of multiple electronic devices, the electronic devices are divided into multiple electronic device groups, and the multiple electronic device groups are electrically connected to the upper computer through the communication switching unit, so there is no need to consider the address difference between the groups; in addition, a corresponding address electrical signal generating unit is set for each electronic device group, so that each electronic device in each electronic device group can determine the corresponding intra-group address based on the address electrical signal generated by the corresponding address electrical signal generating unit. Since there are only intra-group addresses, the intra-group addresses only reflect the differences between the electronic devices in the group, and an electronic device group contains relatively few electronic devices. Therefore, under the same address range, the difference between the address electrical signals corresponding to the intra-group addresses in an electronic device group can be made larger, and the allowed error is larger, thereby reducing the accuracy requirements of the relevant hardware, and ultimately reducing the cost of the entire system.
[0055] In one embodiment, for each electronic device, the electronic device is specifically used to query a preset address mapping table according to the received address electrical signal, and determine the mapping address corresponding to the received address electrical signal in the preset address mapping table as the group address of the electronic device in the corresponding electronic device group.
[0056] Among them, since the present application constructs the corresponding communication system by means of grouping and intra-group addresses, it is only necessary to consider the differences between the intra-group addresses. Under the same address range, the difference between the address electrical signals corresponding to the intra-group addresses in an electronic device group can be made larger, and the allowed error is larger, so that when determining the corresponding intra-group address according to the address electrical signal, it can be directly obtained by mapping. This method does not require complex calculations, has low computing resource usage, low operating burden on the processing unit in the electronic device, has low parameter requirements for the processing unit, and has a high efficiency in obtaining the intra-group address.
[0057] In one embodiment, the address electrical signal generating unit includes an address voltage generating unit.
[0058] The address voltage generating unit is used to generate a plurality of address voltages with different voltage values, and the address electrical signal includes the address voltages.
[0059] Among them, the above embodiment has mentioned that the address electrical signal can include the address current, so that the address difference is reflected in the form of current difference, but the generation and collection of current is more complicated than that of voltage, and the related devices involved are more numerous. Therefore, in this embodiment, in order to improve the processing efficiency and further reduce the cost, the voltage method is adopted to reflect the address difference in the form of voltage difference.
[0060] In one embodiment, the address voltage generating unit includes a series voltage dividing resistor unit.
[0061] The series voltage-dividing resistor unit includes an input terminal for inputting a total voltage and a plurality of output terminals for outputting corresponding address voltages respectively.
[0062] Among them, in the scenario where address voltages with different voltage values need to be obtained, using voltage division with series resistors is a relatively simple method. Only a certain number of resistors are needed, and the related circuits involved are also very simple.
[0063] The total voltage connected to the input end of the series voltage-dividing resistor unit can be understood as the voltage to be divided, and the multiple resistors in the series voltage-dividing resistor unit divide the total voltage according to corresponding resistance ratios, thereby outputting corresponding address voltages.
[0064] In one embodiment, the series voltage-dividing resistor unit includes a plurality of resistor modules with the same resistance value that are sequentially connected in series.
[0065] Among them, Figure 3 As shown, there are n resistance modules in total, the first resistance module includes a resistor R1, the second resistance module includes a resistor R2, the n-1th resistance module includes a resistor Rn-1, and the nth resistance module includes a resistor Rn. The resistance values of the resistors R1, R2, ..., Rn-1, and Rn are the same.
[0066] In such Figure 3 In the figure, the first end of the resistor R1 is connected to the total voltage Ue and is used to output the first address voltage Ux1, the second end of the resistor R2 is electrically connected to the second end of the resistor R1 and is used to output the second address voltage Ux2, and so on, the first end of the resistor Rn-1 is electrically connected to the second end of the resistor Rn-2 and is used to output the n-1th address voltage Uxn-1, the first end of the resistor Rn is electrically connected to the second end of the resistor Rn-1 and is used to output the nth address voltage Uxn, and the second end of the resistor Rn is used for grounding.
[0067] Among them, Figure 3 In the embodiment, the total voltage Ue can be obtained by the battery. In other embodiments, the total voltage Ue can also be obtained by converting the mains.
[0068] Among them, when an electronic device group includes ten electronic devices, the address voltage generating unit needs to generate ten address voltages with different voltage values, that is, the address voltage generating unit includes resistors R1, R2, R3, R4, R5, R6, R7, R8, R9 and R10 which are connected in series in sequence and have the same resistance value. Taking the total voltage Ue as 50V as an example, the voltages obtained by the resistors R1, R2, R3, R4, R5, R6, R7, R8, R9 and R10 are 5V respectively. The first end of the resistor R1, the first end of the resistor R2, the first end of the resistor R3, the first end of the resistor R4, the first end of the resistor R5, the first end of the resistor R6, the first end of the resistor R7, the first end of the resistor R8, the first end of the resistor R9 and the first end of the resistor R10 respectively output an address voltage of 50V, an address voltage of 45V, an address voltage of 40V, an address voltage of 35V, an address voltage of 30V, an address voltage of 25V, an address voltage of 20V, an address voltage of 15V, an address voltage of 10V and an address voltage of 5V. Since the difference between the address voltages is 5V, the maximum allowable error between the address voltages can reach 2.5V. In this embodiment, the preset address mapping table can be as shown in Table 1.
[0069]
[0070] Among them, as shown in Table 1, when the address voltage collected by the electronic device is 25V, it can be determined that the corresponding intra-group address is 5. Generally, due to various errors, there is a certain deviation between the address voltage collected by the electronic device and the corresponding intra-group address reference voltage. For example, when the address voltage collected by the electronic device is 23.5V, according to the error range in Table 1, it can still be determined that the corresponding intra-group address is 5. For another example, when the address voltage collected by the electronic device is 41.5V, according to the error range in Table 1, it can be determined that the corresponding address is 8.
[0071] It should be noted that the error range set for the reference voltage of each group address in Table 1 is the value under extreme conditions, and it is unlikely that the extreme value will occur under normal circumstances. For example, when the address voltage collected by the electronic device is 12.5V, according to the error range in Table 1, it can be determined that the corresponding group address is 2 or 3, which will lead to confusion and the address cannot be recognized. However, it should be noted again that it is unlikely to occur under normal circumstances.
[0072] In order to ensure the reliability of address recognition, for the error limit value in Table 1, when the address voltage collected by the electronic device is the error limit value, the electronic device can communicate with other electronic devices in the group. If one of the addresses in the group corresponding to the error limit value is already occupied, the electronic device uses another address in the group. For example, if the address voltages collected by two electronic devices in the group are 9.5V and 12.5V respectively, the electronic device that collects the address voltage of 9.5V can undoubtedly determine the address in the group as 2, while the electronic device that collects the address voltage of 12.5V needs to choose one of the addresses 2 and 3 in the group. In this case, the two electronic devices can communicate, so that the electronic device that collects the address voltage of 12.5V corrects its address in the group to 3.
[0073] In the above embodiment, it has been mentioned that the host computer is electrically connected to the electronic devices in each electronic device group through the communication switching unit. In general, multiple electronic devices in an electronic device group are connected to the same communication line, and then electrically connected to the host computer through the communication switching unit. Figure 2 Therefore, when an electronic device is connected to the system, electronic devices in the same electronic device group can communicate and interact directly with each other.
[0074] In one embodiment, for each electronic device, the electronic device is specifically used to calculate the group address of the electronic device based on the total voltage connected to the series voltage-dividing resistor unit corresponding to the electronic device group to which the electronic device is located, the number of resistor modules in the series voltage-dividing resistor unit, and the address voltage connected to the electronic device.
[0075] Among them, the above embodiment has mentioned that for the series voltage-dividing structure with the same resistance value, the connected address voltage can be directly looked up in a table to obtain the corresponding intra-group address. In this embodiment, it can also be directly obtained by calculation. As an example, the total voltage Ue is 10V, the address voltage Ux is 2, and the number of resistance modules n is 5. If the intra-group address is positively correlated with the address voltage, the intra-group address = (2 / 10) x5 = 1. If the intra-group address is negatively correlated with the address voltage, the intra-group address = ((10-2) / 10) x5 = 4.
[0076] In one embodiment, the address electrical signal generating unit includes a plurality of switch tubes, a plurality of charging resistors and a plurality of charging capacitors, and the switch tubes, the charging resistors and the charging capacitors correspond to each other one by one;
[0077] The input end of each switch tube is respectively used to access the working voltage, the output end of each switch tube is electrically connected to the first end of the corresponding charging capacitor through the corresponding charging resistor, and the second end of each charging capacitor is grounded;
[0078] The driving end of each switch tube is used to connect to the driving signal output by the corresponding electronic device, the first end of each charging capacitor is used to output the corresponding voltage change signal, the address electrical signal includes the voltage change signal, and the first ends of multiple charging capacitors in the same address electrical signal generating unit respectively output voltage change signals with different change conditions;
[0079] For each electronic device, the electronic device is used to receive the corresponding voltage change signal after sending a driving signal to the corresponding switch tube, and determine its group address in the corresponding electronic device group according to the received voltage change signal.
[0080] The switch tube may be a triode.
[0081] like Figure 4 As shown, the address electrical signal generating unit includes a transistor Qp, a charging resistor Rg and a charging capacitor Cp. The switch tube Qp, the charging resistor Rg and the charging capacitor Cp are only a group. The address electrical signal generating unit also includes multiple groups of the same structure, and the number is the same as the number of electronic devices in the electronic device group.
[0082] Among them, when the electronic device sends a driving signal P_CTRL to turn on the transistor Qp, the connected working voltage VCC charges the charging capacitor Cp through the charging resistor Rg, so that the voltage on the charging capacitor Cp continues to increase. In this process, since the first end of the charging capacitor Cp is electrically connected to the electronic device, it also outputs a corresponding voltage change signal index_Check to the electronic device. The voltage change on the charging capacitor Cp is determined by its charging speed, and when the capacitance of the charging capacitor Cp is constant, its charging speed is determined by the connected working voltage VCC and the resistance value of the charging resistor Rg. Therefore, for different group structures in the address electrical signal generating unit, the address electrical signal generating unit can output multiple voltage change signals index_Check with different change conditions by differentiating the working voltage VCC and the charging resistor Rg.
[0083] When the electronic device receives the voltage change signal index_Check, it can determine the charging time of the charging capacitor Cp according to its change time, and then determine its group address in the corresponding electronic device group according to the charging time. In addition, the electronic device can also determine its group address in the corresponding electronic device group according to its change speed.
[0084] In one embodiment, the address electrical signal generating unit includes an address pulse generating unit;
[0085] The address pulse generating unit is used to generate a plurality of address pulses with different numbers of pulses, and the address electrical signal includes the address pulses.
[0086] The address pulse generating unit may send multiple address pulses with different numbers of pulses at a certain time interval. For example, the address pulse generating unit may send multiple address pulses at intervals of 500ms. The first address pulse includes a pulse with a pulse width of 10ms, the second address pulse includes two pulses with a pulse width of 10ms, and so on. The nth address pulse includes n pulses with a pulse width of 10ms. After receiving the address pulse, the electronic device may look up the table according to the number of pulses included in the address pulse to obtain the corresponding intra-group address.
[0087] like Figure 5 As shown, in one embodiment, the electronic device includes a processing unit U15 and a connector JP2.
[0088] Among them, the communication end of connector JP2 (i.e. pin 7 and pin 8 of connector JP2) is electrically connected to the communication ends 485A and 485B of the processing unit U15, and the address end of connector JP2 (i.e. pin 4 of connector JP2) is electrically connected to the address end ADC of the processing unit U15.
[0089] The connector JP2 is used to be electrically connected to the communication switching unit and the address electrical signal generating unit respectively, so as to access the corresponding address electrical signal and establish a communication line between the processing unit and the host computer.
[0090] Among them, connector JP2 is used to cooperate with the corresponding slot or jack, and the communication switching unit and the address electrical signal generating unit are electrically connected to the slot or jack respectively. When connector JP2 is connected to the corresponding slot or jack, the communication switching unit and the address electrical signal generating unit establish electrical connection with the processing unit U15 respectively.
[0091] Among them, connector JP2 has the function of power supply in addition to the functions of establishing communication and address recognition. Figure 5 In the embodiment, the power supply end of the connector JP2 (i.e., pin 1 and pin 2 of the connector JP2) is electrically connected to the power supply ends VDD and VSS of the processing unit U15. Similarly, the power supply unit in the system is also electrically connected to the slot or jack. When the connector JP2 is connected to the corresponding slot or jack, the power supply unit is electrically connected to the processing unit U15.
[0092] The processing unit U15 includes an MCU (single-chip microcomputer).
[0093] like Figure 6 As shown, in one embodiment, the electronic device further includes a first resistor R63, a second resistor R62, a first capacitor C49, and a bidirectional TVS tube D6.
[0094] Among them, the first end of the first resistor R63 is electrically connected to the address end of the connector JP2 (that is, pin 4 of the connector JP2) through the resistor R77, the second end of the first resistor R63 is electrically connected to the first end of the second resistor R62, the first end of the first capacitor C49, the first anode of the bidirectional TVS tube D6 and the address end ADC of the processing unit, and the second end of the second resistor R62, the second end of the first capacitor C49 and the second anode of the bidirectional TVS tube D6 are grounded respectively.
[0095] Among them, the resistor R77, the first resistor R63 and the second resistor R62 form a voltage-dividing network, thereby reducing the voltage Ux connected to the pin 4 of the connector JP2 so that its voltage amplitude meets the voltage requirement of the processing unit U15, and then inputting the reduced voltage to the address end ADC of the processing unit U15 for address recognition by the processing unit U15. The processing unit U15 obtains the address voltage Ux connected to the pin 4 of the actual connector JP2 according to the voltage collected by its address end ADC and the voltage-dividing ratio of the voltage-dividing network formed by the resistor R77, the first resistor R63 and the second resistor R62, and finally determines the address within the group based on the obtained address voltage Ux.
[0096] The first capacitor C49 is used for filtering, thereby filtering out relevant noise signals to ensure the acquisition accuracy of the address voltage, and further ensure the recognition accuracy of the address within the group.
[0097] The bidirectional TVS tube D6 is used to clamp the voltage input to the address terminal ADC of the processing unit U15 to prevent the voltage amplitude from being too high and causing the processing unit to burn out.
[0098] like Figure 7 As shown, in one embodiment, the electronic device further includes a delay circuit, and the delay circuit includes a third resistor R61 and a second capacitor C48.
[0099] The first end of the third resistor R61 and the power supply terminal VDD of the processing unit U15 are connected to the working voltage together, the second end of the third resistor R61 is electrically connected to the first end of the second capacitor C48 and the reset terminal RST of the processing unit U15 respectively, and the second end of the second capacitor C48 is grounded.
[0100] When the voltage connected to the reset terminal RST of the processing unit U15 is lower than the working voltage of the processing unit U15, the processing unit U15 is in a reset state. By setting a corresponding delay circuit at the reset terminal RST of the processing unit U15, the processing unit U15 can be in a reset state for a period of time during the power-on process, rather than working immediately after power-on or reset, thereby preventing the processing unit U15 from issuing erroneous instructions or performing erroneous operations, and improving electromagnetic compatibility performance.
[0101] Among them, the connected working voltage charges the second capacitor C48 through the third resistor R61. When the voltage on the second capacitor C48 is lower than the working voltage of the processing unit U15, the processing unit U15 is in a reset state. When the voltage on the second capacitor C48 reaches the working voltage of the processing unit U15, the processing unit U15 is in a working state. The time required for the second capacitor C48 to start charging and for the voltage thereon to reach the working voltage of the processing unit U15 can be understood as the delay time.
[0102] like Figure 8 As shown, in one embodiment, the system uses RS485 bus for communication.
[0103] Among them, the host computer and the communication switching unit are electrically connected through bus 485A and bus 485B, the communication switching unit and the first electronic device group are electrically connected through bus 485A1 and bus 485B1, the communication switching unit and the second electronic device group are electrically connected through bus 485A2 and bus 485B2, the communication switching unit and the n-1th electronic device group are electrically connected through bus 485An-1 and bus 485Bn-1, and the communication switching unit and the nth electronic device group are electrically connected through bus 485An and bus 485Bn.
[0104] like Fig. 9 As shown, in one embodiment, the communication switching unit includes multiple switch groups, the first switch group includes switch S1 and switch Sn+1, the second switch group includes switch S2 and switch Sn+2, the third switch group includes switch S3 and switch Sn+3, ..., the nth switch group includes switch Sn and switch S2n.
[0105] Among them, the first end of switch S1, the first end of switch S2, the first end of switch S3, ..., the first end of switch Sn are respectively electrically connected to the bus 485A of the host computer, the second end of switch S1 is electrically connected to the bus 485A1 of the first electronic device group, the second end of switch S2 is electrically connected to the bus 485A2 of the second electronic device group, the second end of switch S3 is electrically connected to the bus 485A3 of the third electronic device group, ..., the second end of switch Sn is electrically connected to the bus 485An of the nth electronic device group.
[0106] Among them, the first end of switch Sn+1, the first end of switch Sn+2, the first end of switch Sn+3, ..., the first end of switch S2n are respectively electrically connected to the bus 485B of the host computer, the second end of switch Sn+1 is electrically connected to the bus 485B1 of the first electronic device group, the second end of switch Sn+2 is electrically connected to the bus 485B2 of the second electronic device group, the second end of switch Sn+3 is electrically connected to the bus 485B3 of the third electronic device group, ..., the second end of switch S2n is electrically connected to the bus 485Bn of the nth electronic device group.
[0107] Among them, the control end of switch S1 and the control end of switch Sn+1, the control end of switch S2 and the control end of switch Sn+2, the control end of switch S3 and the control end of switch Sn+3, ..., the control end of switch Sn and the control end of switch S2n are electrically connected to the output end of the host computer respectively.
[0108] It should be noted that the connection relationship between each electronic device group and each switch in the communication switching unit can only be reflected after the electronic devices in each electronic device group are connected to the system.
[0109] In this embodiment, the communication switching unit is arranged in the frame, and is independent of the host computer. In other embodiments, the communication switching unit may also be integrated in the host computer.
[0110] exist Fig. 9 When the host computer closes switch S1 and switch Sn+1, and the other switches are in an open state, communication can be performed with the electronic devices in the first electronic device group. When the host computer closes switch S2 and switch Sn+2, and the other switches are in an open state, communication can be performed with the electronic devices in the second electronic device group.
[0111] In one embodiment, the switch group includes semiconductor switches or electromagnetic switches.
[0112] Among them, the electromagnetic switch includes a normally open relay, a normally closed relay or a magnetic latching relay, and the semiconductor switch includes a triode, a MOS tube or an IGBT tube.
[0113] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0114] The above is a detailed introduction to a communication system for multiple electronic devices provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0115] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
Claims
1. A communication system for multiple electronic devices, It is characterized in that The communication system of multiple electronic devices comprises: A host computer, a communication switching unit, a plurality of address electrical signal generating units, and a plurality of electronic equipment groups, each of which includes a plurality of electronic equipment; The host computer is used to be electrically connected to each of the electronic equipment groups through the communication switching unit, the communication switching unit is used to connect the communication line between each electronic equipment in one of the electronic equipment groups and the host computer, the address electrical signal generating unit is used to be electrically connected to the electronic equipment group, and the address electrical signal generating unit and the electronic equipment group have a one-to-one correspondence; For each of the address electrical signal generating units and the corresponding electronic device group electrically connected, the address electrical signal generating unit is used to generate a plurality of address electrical signals whose number is the same as the number of electronic devices in the electronic device group but whose signal parameter values are different, and each electronic device in the electronic device group is used to determine its group address in the electronic device group according to the received address electrical signal; The electronic device comprises a processing unit and a connector; The communication end of the connector is electrically connected to the communication end of the processing unit, and the address end of the connector is electrically connected to the address end of the processing unit; The connector is used to be electrically connected to the communication switching unit and the address electrical signal generating unit respectively, so as to access the corresponding address electrical signal and establish a communication line between the processing unit and the host computer.
2. The communication system for multiple electronic devices according to claim 1, It is characterized in that For each electronic device, the electronic device is specifically used to query a preset address mapping table according to the received address electrical signal, and determine the mapping address corresponding to the received address electrical signal in the preset address mapping table as the group address of the electronic device in the corresponding electronic device group.
3. The communication system for multiple electronic devices according to claim 1 or 2, It is characterized in that The address electrical signal generating unit includes an address voltage generating unit; The address voltage generating unit is used to generate a plurality of address voltages with different voltage values, and the address electrical signal includes the address voltages.
4. The communication system for multiple electronic devices according to claim 3, It is characterized in that The address voltage generating unit includes a series voltage dividing resistor unit; The series voltage-dividing resistor unit includes an input terminal for inputting a total voltage and a plurality of output terminals for outputting corresponding address voltages respectively.
5. The communication system for multiple electronic devices according to claim 4, It is characterized in that The series voltage-dividing resistor unit includes a plurality of resistor modules with the same resistance value connected in series in sequence; The first end of the first resistor module connected in series is connected to the total voltage and is used to output the first address voltage, the second end of the second resistor module is electrically connected to the second end of the first resistor module and is used to output the second address voltage, and so on, the first end of the last resistor module is electrically connected to the second end of the second to last resistor module and is used to output the last address voltage, and the second end of the last resistor module is used for grounding.
6. The communication system for multiple electronic devices according to claim 5, It is characterized in that For each electronic device, the electronic device is specifically used to calculate the group address of the electronic device based on the total voltage connected to the series voltage-dividing resistor unit corresponding to the electronic device group to which the electronic device belongs, the number of resistor modules in the series voltage-dividing resistor unit, and the address voltage connected to the electronic device.
7. The communication system for multiple electronic devices according to claim 1 or 2, It is characterized in that The address electrical signal generating unit comprises a plurality of switch tubes, a plurality of charging resistors and a plurality of charging capacitors, wherein the switch tubes, the charging resistors and the charging capacitors correspond to each other one by one; The input end of each of the switch tubes is respectively used to access the working voltage, the output end of each of the switch tubes is electrically connected to the first end of the corresponding charging capacitor through the corresponding charging resistor, and the second end of each charging capacitor is grounded; The driving end of each of the switch tubes is used to connect to the driving signal output by the corresponding electronic device, the first end of each of the charging capacitors is used to output the corresponding voltage change signal, the address electrical signal includes the voltage change signal, and the first ends of multiple charging capacitors in the same address electrical signal generating unit respectively output voltage change signals with different change conditions; For each electronic device, the electronic device is used to receive the corresponding voltage change signal after sending a driving signal to the corresponding switch tube, and determine its group address in the corresponding electronic device group according to the received voltage change signal.
8. The communication system for multiple electronic devices according to claim 1 or 2, It is characterized in that The address electrical signal generating unit includes an address pulse generating unit; The address pulse generating unit is used to generate a plurality of address pulses with different numbers of pulses, and the address electrical signal includes the address pulses.
9. The communication system for multiple electronic devices according to claim 1 or 2, It is characterized in that The communication switching unit includes a plurality of switch groups; The first end of each of the switch groups is electrically connected to the communication end of the host computer, and the second end of the switch group is used to be electrically connected to the communication end of the electronic device in the electronic device group. The switch groups correspond to the electronic device groups one by one, and the control end of each of the switch groups is electrically connected to the output end of the host computer.
Citation Information
Patent Citations
Time-sharing data transmission system and transmission method
CN111245693A
Communication address configuration method, electronic equipment and storage medium
CN115567488A
