CN117278355A - Master-slave communication system, control method of master-slave communication system, and computer device - Google Patents

Master-slave communication system, control method of master-slave communication system, and computer device Download PDF

Info

Publication number
CN117278355A
CN117278355A CN202311525680.4A CN202311525680A CN117278355A CN 117278355 A CN117278355 A CN 117278355A CN 202311525680 A CN202311525680 A CN 202311525680A CN 117278355 A CN117278355 A CN 117278355A
Authority
CN
China
Prior art keywords
slave
communication
master
resistor
communication line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311525680.4A
Other languages
Chinese (zh)
Other versions
CN117278355B (en
Inventor
赵建东
罗正
江亦宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Shixin Technology Co ltd
Original Assignee
Hangzhou Shixin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shixin Technology Co ltd filed Critical Hangzhou Shixin Technology Co ltd
Priority to CN202311525680.4A priority Critical patent/CN117278355B/en
Publication of CN117278355A publication Critical patent/CN117278355A/en
Application granted granted Critical
Publication of CN117278355B publication Critical patent/CN117278355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/24Testing correct operation
    • H04L1/245Testing correct operation by using the properties of transmission codes
    • H04L1/246Testing correct operation by using the properties of transmission codes two-level transmission codes, e.g. binary
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40182Flexible bus arrangements involving redundancy by using a plurality of communication lines

Abstract

The invention relates to the technical field of communication, and discloses a master-slave communication system, a control method of the master-slave communication system and computer equipment, wherein the master-slave communication system comprises a master equipment and a slave equipment set, the slave equipment set comprises a plurality of slave equipment, the master equipment is connected with at least one slave equipment through a plurality of communication lines, and the master-slave communication system also comprises an adjusting resistor, an information reading module and a control module; the adjusting resistor is arranged on the communication line and used for adjusting the potential state on the communication line; the information reading module is arranged in the master device and is used for reading the potential state on the communication line and obtaining the identification information of the slave devices connected with the communication lines according to the potential state on the communication line; the control module is arranged in the master device and used for determining attribute information of the slave devices connected with the communication lines according to the identification information. Therefore, the attribute information of the slave devices connected with the communication lines can be determined only through the potential states on the communication lines, and the method is simpler and faster.

Description

Master-slave communication system, control method of master-slave communication system, and computer device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a master-slave communication system, a control method of the master-slave communication system, and a computer device.
Background
The existing LED display system comprises a control end and an LED display screen, wherein the LED display screen generally comprises a plurality of groups of cascaded LED modules; the control end is usually provided with a plurality of groups of communication ports, and can provide a plurality of signals to respectively control the corresponding cascade LED modules.
In order to ensure that the LED display screen displays correctly, the control end must send display data according to the physical connection sequence of the LED pixels in the LED display screen in a signal mode that can be received by the cascade LED module, so the control end needs to make clear: the display area of each cascade LED module, the physical connection sequence of the LED pixels in each cascade LED module, the signal receiving mode of the cascade LED module and the like.
Because the specifications of the LED display screens in the market are numerous, the adopted cascaded LED modules are also various in specification, and under the condition that a special control end cannot be customized for the LED display screens, the cascaded LED modules with different specifications are mostly supported by adopting a universal control end. Therefore, usually, before using, the control end needs to be configured in a module manner, and in order to enable the controlled LED display screen to display correctly, the display screen control end needs to acquire display data of a display area corresponding to each path of control signal; the display data of each path of signals given by the display screen control end are serial, so that the display screen control end also needs to know the physical connection sequence of the LED pixels in the display area; and then the display screen control end sends out display data according to the physical connection sequence of the LED pixels and in a signal mode which can be received by the module. Therefore, the control end needs to know accurately in the configuration process: (1) the display area of the LED display screen is controlled by each path of signals sent by the control end of the display screen, (2) the physical connection sequence of the LED pixels in the display area, and (3) the mode of receiving signals by the module used by the LED display screen. The configuration process of the existing LED display system comprises the following steps: the configuration is carried out through a configuration system arranged at the control end, specifically, after a user selects or fills in the information of part of the LED display screens at the interface of the configuration system, the configuration system commands the control end to send specific signals to the LED display screens according to certain steps, and the user judges according to the display change of the LED display screens and carries out correct selection at the interface of the configuration system. The configuration system makes a judgment according to feedback information of the user and transmits the acquired information to the control end.
However, in the configuration process, a large part of workload is occupied for specification identification of the cascade LED modules in the LED display screen, if each LED display screen needs to perform such complicated configuration work before normal use, once a user judges that the configuration is incorrect or the selection is wrong, the problems of failure, incapability of normally starting the LED display screen and the like are caused, so that the configuration mode is very limited in practical application.
Disclosure of Invention
In view of this, the invention provides a master-slave communication system to solve the problem that the specification recognition of the cascade LED modules in the LED display screen occupies a great amount of work.
In a first aspect, an embodiment of the present invention provides a master-slave communication system, including a master device and a slave device set, where the slave device set includes a plurality of slave devices, and the master device is connected with at least one slave device through a plurality of communication lines, and the master-slave communication system further includes an adjusting resistor, an information reading module and a control module; the adjusting resistor is arranged on the communication line and used for adjusting the potential state on the communication line; the information reading module is arranged in the master device and is used for reading the potential state on the communication lines and obtaining the identification information of the slave devices connected with the communication lines according to the potential state on the communication lines; and the control module is arranged in the master device and is used for determining attribute information of the slave devices connected with the communication lines according to the identification information.
According to the master-slave communication system provided by the embodiment of the invention, the communication line is provided with the regulating resistor for regulating the potential state of the communication line, so that the identification information of the slave device can be obtained by reading the potential state of the communication line, and the attribute information of the slave device connected with a plurality of communication lines can be determined according to the identification information of the slave device, namely the configuration of the slave device in the master-slave communication system is completed. Compared with the configuration system arranged on the master device (namely the control end) in the related art, the embodiment of the invention can determine the attribute information of the slave devices connected with the communication lines only through the potential states on the communication lines, and is simpler and quicker.
In an alternative embodiment, the control module is configured to: acquiring a corresponding relation between a preset slave device identifier and a slave device attribute; and searching in the corresponding relation between the slave device identification and the slave device attribute by utilizing the identification information to obtain the attribute information of the slave device connected with the plurality of communication lines.
Therefore, the attribute information of the slave equipment connected with the communication lines can be conveniently and quickly obtained.
In an alternative embodiment, the information reading module is further configured to determine, before reading the potential state on the communication line, whether the first communication port of the master device is in the non-signal output state, and perform the step of reading the potential state on the communication line when the first communication port is in the non-signal output state.
The master-slave communication system which carries out two-way communication on the first communication port of the master device and one-way communication on the second communication port of the slave device can ensure that the master device can successfully read the level signal and is not interfered by other conditions,
in an alternative embodiment, the information reading module is further configured to determine, before reading the potential state on the communication line, whether the first communication port of the master device and the second communication port of the slave device are both in the non-signal output state, and perform the step of reading the potential state on the communication line when the first communication port and the second communication port are both in the non-signal output state.
Therefore, the master-slave communication system which carries out two-way communication on the first communication port of the master device and the second communication port of the slave device can ensure that the master device can successfully read the level signal and is not interfered by other conditions.
In an alternative embodiment, the adjusting resistor comprises at least one of a first resistor and a second resistor, one end of the first resistor is connected with a power supply, and the other end of the first resistor is connected with a communication line; one end of the second resistor is connected with the communication line, and the other end of the second resistor is grounded.
Thus, a setting mode of an adjusting resistor capable of adjusting the potential state on a communication line is provided.
In an alternative embodiment, the setting principle of the adjusting resistor is as follows: the target level state is satisfied without affecting the normal communication of the master device with the slave device.
The addition of the regulating resistor to the communication line can thus not affect the normal communication between the master device and the slave device.
In an alternative embodiment, the target level state is determined according to a preset correspondence between the slave device identifier and the slave device attribute.
In an alternative embodiment, the first communication port of the master device employs a two-stage inverter architecture: when the first resistor is far smaller than the second resistor or the adjusting resistor only comprises the first resistor, the resistance value of the first resistor needs to be far larger than the on-resistance of the transistor; when the first resistor is much larger than the second resistor or the adjusting resistor only includes the second resistor, the resistance value of the second resistor needs to be much larger than the on-resistance of the transistor.
Therefore, a master-slave communication system with a two-stage inverter structure is adopted for the first communication port of the master device, and the addition of the adjusting resistance on the communication line does not influence the normal communication between the master device and the slave device.
In an alternative embodiment, the second resistors have the same resistance.
Because the resistance values of the second resistors are the same, in the manufacturing process of the master-slave communication system, the corresponding resistance value of the power supply end resistor or whether the power supply end resistor is externally connected is determined according to the corresponding level state requirement, so that the operation complexity is greatly reduced.
In an alternative embodiment, the second resistor is provided in a second communication port of the slave device.
That is, the resistance value of the grounding terminal resistor is fixed and is built in the internal structure of the slave device, and only the power terminal resistor is reserved at the communication line part, so that the part which needs to be connected in the manufacturing process of the master-slave communication system is halved, and all circuits are uniformly connected with the power supply, therefore, only the size of the resistance value is considered, or only whether the power terminal is connected is considered, and the operation complexity is greatly reduced.
In an alternative embodiment, the attribute information includes at least one of: the type of the slave device, configuration information of the slave device, and operation information of the slave device.
Thereby, various information can be configured by the identification information of the slave device.
In an alternative embodiment, the master-slave communication system is an LED display system.
In a second aspect, the embodiment of the invention also provides a control method of a master-slave communication system, the master-slave communication system comprises a master device, a slave device set and an adjusting resistor, the slave device set comprises a plurality of slave devices, and the master device is connected with at least one slave device through a plurality of communication lines; the adjusting resistor is arranged on the communication line and used for adjusting the potential state on the communication line; the control method of the master-slave communication system comprises the following steps: reading the potential state on the communication line; obtaining identification information of slave devices connected with the communication lines according to potential states on the communication lines; attribute information of a slave device connected to the plurality of communication lines is determined based on the identification information.
According to the control method of the master-slave communication system, provided by the embodiment of the invention, the identification information of the slave device is obtained by reading the potential state on the communication line, and the attribute information of the slave device connected with a plurality of communication lines can be determined according to the identification information of the slave device, so that the configuration of the slave device in the master-slave communication system is completed. Compared with the configuration system arranged on the master device (namely the control end) in the related art, the embodiment of the invention can determine the attribute information of the slave devices connected with the communication lines only through the potential states on the communication lines, and is simpler and quicker.
In an alternative embodiment, determining attribute information of a slave device connected to the plurality of communication lines according to the identification information includes: acquiring a corresponding relation between a preset slave device identifier and a slave device attribute; and searching in the corresponding relation between the slave device identification and the slave device attribute by utilizing the identification information to obtain the attribute information of the slave device connected with the plurality of communication lines.
Therefore, the attribute information of the slave equipment connected with the communication lines can be conveniently and quickly obtained.
In an alternative embodiment, before reading the potential state on the communication line, the method further comprises the steps of: judging whether the first communication port of the main device is in a non-signal output state or not, and executing the step of reading the potential state on the communication line when the first communication port is in the non-signal output state.
The master-slave communication system which carries out two-way communication on the first communication port of the master device and one-way communication on the second communication port of the slave device can ensure that the master device can successfully read the level signal and is not interfered by other conditions,
in an alternative embodiment, before reading the potential state on the communication line, the method further comprises the steps of: judging whether the first communication port of the master device and the second communication port of the slave device are in a non-signal output state, and executing the step of reading the potential state on the communication line when the first communication port and the second communication port are in the non-signal output state.
Therefore, the master-slave communication system which carries out two-way communication on the first communication port of the master device and the second communication port of the slave device can ensure that the master device can successfully read the level signal and is not interfered by other conditions.
In a third aspect, an embodiment of the present invention further provides a control apparatus for a master-slave communication system, where the master-slave communication system includes a master device, a slave device set, and an adjusting resistor, the slave device set includes a plurality of slave devices, and the master device is connected with at least one slave device through a plurality of communication lines; the adjusting resistor is arranged on the communication line and used for adjusting the potential state on the communication line; the control device of the master-slave communication system comprises an acquisition module, an identification information determining module and an attribute information determining module: the acquisition module is used for reading the potential state on the communication line; the identification information determining module is used for obtaining identification information of slave equipment connected with the communication lines according to potential states on the communication lines; the attribute information determining module is used for determining attribute information of the slave devices connected with the communication lines according to the identification information.
In a fourth aspect, the present invention provides a computer device, including a memory and a processor, where the memory and the processor are communicatively connected to each other, and the memory stores computer instructions, and the processor executes the computer instructions, thereby executing the control method of the master-slave communication system according to the second aspect or any embodiment thereof.
In a fifth aspect, the present invention provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the control method of the master-slave communication system of the first aspect or any one of the embodiments corresponding thereto.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a master-slave communication system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an LED display system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a control-side communication port circuit configuration according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a circuit configuration of a communication port of a control end after adding a regulating resistor according to an embodiment of the present invention;
FIG. 5 is a simplified circuit schematic in a high state according to an embodiment of the present invention;
FIG. 6 is a simplified circuit schematic diagram in a low state according to an embodiment of the present invention;
FIG. 7 is another schematic structural diagram of a master-slave communication system according to an embodiment of the present invention;
FIG. 8 is another schematic structural view of an LED display system according to an embodiment of the present invention;
FIG. 9 is a flow chart of a master-slave communication system control method according to an embodiment of the present invention;
fig. 10 is a block diagram of a master-slave communication system control apparatus according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
According to an embodiment of the present invention, there is provided a master-slave communication system. As shown in fig. 1, the master-slave communication system includes a master device, a slave device set, a regulating resistor (i.e., R1 and R2 in fig. 1), an information reading module (not shown in fig. 1), and a control module (not shown in fig. 1), where the slave device set includes a plurality of slave devices, and the master device is connected to at least one slave device through a plurality of communication lines; the adjusting resistor is arranged on the communication line and used for adjusting the potential state on the communication line; the information reading module is arranged in the main equipment and is used for reading the potential state on the communication line and obtaining the identification information of the slave equipment according to the potential state on the communication line; and the control module is arranged in the master device and is used for determining the attribute information of the slave devices connected with the plurality of communication lines according to the identification information of the slave devices.
It should be noted that, in the embodiment of the present invention, the setting of the adjusting resistor may be that all the communication lines are provided with the adjusting resistor, and the identification information of the slave device is represented by the potential state on all the communication lines; it is also possible to provide the adjusting resistor only on part of the communication lines, so that the identification information of the slave device is characterized by the potential states on these communication lines. Specifically, the number of communication lines on which the adjustment resistance is provided depends on the number of bits of the identification information of the slave device. For the purpose of making the scheme clearer, the embodiments of the present invention are all illustrated in the form of representing the slave device identification information through the potential states of all the communication lines, and of course, the embodiments of the present invention may also include other communication lines that are not provided with an adjusting resistor and are not used for representing the slave device identification information, and the embodiments of the present invention are not limited in this respect.
Specifically, the identification information may be binary coded. For example, when the potential state on the communication line is high level, the one communication line is marked as "1"; when the potential state on the communication line is low, the communication line is marked as "0", and so on, a string of binary codes, for example 1001, can be obtained from the potential states on the 4 communication lines. Of course, the number of communication lines may not be limited to 4.
For example, a plurality of slave devices in a set of slave devices may be connected in a cascade; the modules in each slave device can also be connected in a cascading manner.
The following describes the master-slave communication system in detail using an LED display system as an example. The LED display system comprises a control end (corresponding to the master equipment) and an LED display screen (corresponding to the slave equipment set), wherein the LED display screen is composed of at least one group of cascaded LED modules (corresponding to the slave equipment), each cascaded LED module comprises at least one LED module, and a plurality of LED modules are connected in a cascading mode; the control end is provided with a plurality of communication ports and is in communication connection with each cascade LED module through a plurality of communication lines, so that signal transmission between each cascade LED module is realized. Each LED module comprises at least one group of cascaded drive ICs, each drive IC comprises a plurality of communication interfaces, and each drive IC is in communication connection with the control end through a plurality of communication lines and is used for controlling the corresponding display area to display according to display data and control signals sent by the control end.
In the LED display system shown in fig. 2, four communication lines are connected between the control terminal and one cascade LED module. Note that the number of communication lines is not limited to four in fig. 2. In order to show the internal structure of one cascade LED module in detail, fig. 2 does not show the LED display screen and the cascade structure of each LED module, but only shows the connection method of each driving IC in one cascade LED module.
According to the master-slave communication system provided by the embodiment of the invention, the regulating resistor for regulating the potential state on the communication line is arranged on each communication line, so that the identification information of the slave device can be obtained by reading the potential state on each communication line, and the attribute information of the slave device connected with a plurality of communication lines can be determined according to the identification information of the slave device, namely the configuration of the slave device in the master-slave communication system is completed. Compared with the configuration system arranged on the master device (namely the control end) in the related art, the embodiment of the invention can determine the attribute information of the slave devices connected with the communication lines only through the potential state on each communication line, and is simpler and faster.
As a specific embodiment, the control module is configured to: acquiring a corresponding relation between a preset slave device identifier and a slave device attribute; and searching in the corresponding relation between the slave device identification and the slave device attribute by utilizing the identification information to obtain the attribute information of the slave device connected with the plurality of communication lines.
That is, the attribute information of a plurality of different slave devices is summarized, and corresponding binary codes are set for the different slave devices, so that the corresponding relation between the slave device identification and the slave device attribute is obtained. It is understood that the attribute information of a plurality of slave devices and the binary code of the slave device corresponding to the attribute information of each slave device are included in the correspondence relationship between the slave device identification and the slave device attribute.
After the correspondence between the slave device identifier and the slave device attribute is obtained, in the manufacturing process of the master-slave communication device, the identifier information of the slave device in the master-slave communication device, namely the binary code of the slave device, can be obtained according to the attribute of the slave device actually used and the correspondence between the slave device identifier and the slave device attribute, and the adjustment resistance on each communication line is set according to the binary code of the slave device so as to represent the binary code of the slave device through the potential states on a plurality of communication lines. In the configuration process of the master-slave communication equipment, the master-slave communication equipment presents corresponding potential states on each communication line after circuit connection, the potential states can be read back by each first communication port of the master equipment in a non-output state, and corresponding binary codes are obtained after conversion by the information reading module, so that the attribute information of the corresponding slave equipment can be matched in the corresponding relation between the slave equipment identifiers and the slave equipment attributes of the master equipment, which are stored in advance.
Specifically, the attribute information includes at least one of: the type of the slave device, configuration information of the slave device, and operation information of the slave device.
For the LED display system, firstly, summarizing attribute information of the cascade LED modules, and setting corresponding binary codes for different cascade LED modules to obtain a corresponding relation between the binary codes of the cascade LED modules and the attributes of the cascade LED modules.
The attribute information of the cascade LED module comprises: the type of the cascade LED module, configuration information of the cascade LED module and working information of the cascade LED module. The cascade LED modules comprise: the physical connection sequence of pixels in the LED module, the signal receiving mode of the LED module and the like; the configuration information of the cascade LED module comprises: the connection sequence of the cascaded LED modules and the like; the working information of the cascade LED module comprises: current configuration parameters of the driving end of the LED module, and the like.
That is, the information corresponding to the binary code in the actual operation is not limited to the type of the cascaded LED module and the configuration information of the cascaded LED module, but may be other information required by the control end in the working process thereof, for example, the current configuration parameters of the driving end of the LED module; correspondingly, the information can be stored in the corresponding position of the control end in advance after summarized and encoded.
As a specific embodiment, the information reading module is further configured to determine, before reading the potential state on each communication line, whether the first communication port of the master device is in the non-signal output state, and perform the step of reading the potential state on each communication line when the first communication port is in the non-signal output state.
This is because, in general, a first communication port of a master device in a master-slave communication system performs bidirectional communication, and a second communication port of a slave device performs unidirectional communication. Specifically, the first communication port of the master device can be in a signal output state when the master-slave communication system normally communicates, send signals to all levels of slave devices, and enter a signal reading state when module configuration or other information configuration is performed, so that level signals on all communication lines can be read back. The second communication port of the slave device can only be in a signal input state and receives various signals sent by the master device. In order to ensure that the master device can successfully read the level signal without being disturbed by other conditions, it is necessary to put the first communication port of the master device in a non-signal output state.
In a special case, the first communication port of the master device and the second communication port of the slave device in the master-slave communication system are both in bidirectional communication. Specifically, the first communication port of the master device can be in a signal output state when the master-slave communication system normally communicates, send signals to all levels of slave devices, and enter a signal reading state when module configuration or other information configuration is performed, so that level signals on all communication lines can be read back. The second communication port of the slave device can be in a signal input state, receives various signals sent by the master device, and can output signals.
In order to ensure that the master device can successfully read the level signal without being disturbed by other conditions, it is required that both the first communication port of the master device and the second communication port of the slave device are in a non-signal output state. That is, the information reading module is further configured to determine, before reading the potential state on each communication line, whether the first communication port of the master device and the second communication port of the slave device are both in the non-signal output state, and perform the step of reading the potential state on each communication line when the first communication port and the second communication port are both in the non-signal output state.
Specifically, the number of ports of the first communication port may be plural, for example, when the master device and the slave device are connected through four communication lines, the number of ports of the first communication port may be 4. Similarly, the number of the second communication ports may be plural.
As a specific embodiment, the adjusting resistor comprises at least one of a first resistor and a second resistor, one end of the first resistor is connected with a power supply, and the other end of the first resistor is connected with a communication line; one end of the second resistor is connected with the communication line, and the other end of the second resistor is grounded.
As shown in fig. 1, for a plurality of communication lines between a master device and a slave device, two resistors are respectively connected to each communication line in an external manner, wherein the other end of one resistor is connected with a power supply, and the other end of the other resistor is grounded. With this structure, a resistor is formed from the power supply VDD And resistance->Finally, grounding the current path; under the condition that each communication port of the master device and the slave device is in a non-output state, the potential condition on the communication line and two resistors in the current path are enabled to be +>、/>The potential at the inter-space position is the same.
For the LED display system of fig. 2, four communication lines exist between the control end and the driving IC, and two resistors are respectively connected to each communication line in an external connection manner, wherein one end of each resistor is connected with a power supply, and the other end of each resistor is grounded; two lines are led out from each communication line, one connecting resistor is connected with power supply, and the other connecting resistor is grounded, so that the power supply VDD is formedAnd resistance->Finally, grounding the current path; and further, under the condition that no other signal is transmitted on the communication line, the communication line is enabled to bePotential state and two resistors in the current path>、/>The potential states of the inter-position are the same.
In this case, the resistance is assumedResistance and resistance->The resistance values of (2) differ by several orders of magnitude:
when the resistor isResistance value of (2) is greater than resistance +.>Resistance of the current path>The voltage division is far greater than the resistancePartial voltage is applied, and the communication line is in a low level state at the moment;
when the resistor is The resistance value of (2) is smaller than the resistance +.>Resistance of the current path>The partial voltage is far smaller than the resistanceAnd voltage division is performed, and the communication line is in a high level state.
It can be seen from this that by adjustingResistorAnd resistance->The magnitude relation between the resistances can be changed by two resistances +.>、/>The potential state on the communication line can be read back through the information reading module at the control end and converted into corresponding binary codes after being integrated. By way of example, the read high-level signal is converted into "1" and the read low-level signal is converted into "0", so that the potential information read back by a plurality of communication ports is integrated, and a binary code with the same number of bits as the number of the communication ports of the control end can be obtained.
That is, by controlling the power-supply-side resistance hooked on the communication lineAnd ground resistance +.>The corresponding potential state can be formed on each communication line, and then the corresponding binary code can be obtained after the corresponding potential state is read back through the communication port of the control end and integrated and converted through the information reading module.
As a specific implementation manner, the setting principle of the adjusting resistor is as follows: the method comprises the steps of meeting a target level state and not affecting normal communication between the master device and the slave device, wherein the target level state is determined according to a preset corresponding relation between the slave device identification and the slave device attribute.
That is, for the LED display system, the selection of the adjustment resistor needs to ensure the selection of the resistance value of each resistor in addition to the selection according to the target level state of each communication line, so that the normal communication between the control end and the cascade LED module or each driving IC in the cascade LED module is not affected, i.e. the signal size generated by the newly added line cannot affect the signal transmission on the original communication line.
The selection of the resistance value will be described below by taking a two-stage inverter structure as an example of the control terminal communication port.
Fig. 3 is a schematic circuit diagram of a control end communication port according to an embodiment of the present invention, as shown in fig. 3, in a normal communication process, the control end communication port is in a signal output state, that is, after a level signal is sent from a P point to a Q point through a two-stage inverter, the level signal is transmitted to a driver IC through a communication line, so as to realize the present communication. Wherein, when the P point level signal is high level,cut off and (2)>On, at this time M is low level, and then +.>Conduction and/or->Cut-off, Q point is high level at this moment, the same as P point level signal; when the P-point level signal is low level, < >>Conduction and/or->Cut-off, M point is high level at this time, and then +.>Cut off and (2)>The Q point is turned on at this time to be low level, which is the same as the P point level signal. From this, it can be seen that in the present example structure, when the level signal at the P point reaches the Q point via the two-stage inverter, the level state is not changed, and the level signal is transmitted to the driving IC via the communication line.
FIG. 4 is a schematic circuit diagram of a control end communication port with an added adjusting resistor according to an embodiment of the present invention, as shown in FIG. 4, the resistors are respectively connected to the communication lines from the Q point of the control end communication port to the driving ICResistance->Wherein resistance->The other end is connected with a power supply, and the resistor->The other end is grounded; in order to ensure that the signal generated by the newly added line does not influence the signal transmission of the original communication line, a resistor with a proper resistance value is required to be selected for connection.
First, it is necessary to add the resistor in the line by settingResistance->And controlling the level state on the communication line in the non-signal output state according to the magnitude of the inter-resistance. If the control communication line is in high level state, two resistance values are set>Resistance +.>The communication line is not connected with the resistor +.>Only by means of resistors->The high-level state of the communication line can be realized by connecting the power supply; simplified circuit in this stateThe structure is shown in fig. 5; if the communication line is to be controlled to be in a low level state, two resistance values are set>Resistance +.>The communication line is not connected with the resistor +.>Only by means of resistors- >The low level state of the communication line can be realized by grounding; the simplified circuit configuration in this state is shown in fig. 6.
Secondly, the first step of the method comprises the steps of,、/>the selection of the resistance value of (c) cannot affect the signal transmission in the output state. Exemplary, when the P point outputs a high level, the corresponding M point is in a low state, at this time +.>Conduction, its on-resistance->Very small (I)>In the off state, internal resistance between drain and source thereof +.>The Q point should output a high level state at this time; at this time if in the newly added circuit(or just connect the power supply terminal resistor +.>) The high-level state brought by the newly added circuit does not influence the high-level state on the original communication line; if add circuit->(or just connect ground resistance +.>) In order to prevent the low-level state of the newly added circuit from affecting the high-level state of the original communication line, it is necessary to ensure that the high-level state is defined by VDD and/or +>、/>The Q-point potential in this path of GND is not pulled down, so that the resistance is ensured +.>
When the P point outputs a low level, the corresponding M point is in a high level stateCut-off, internal resistance between source and drain>Very big->In the on state, its on-resistance +.>The Q point should output a low level state at this time; in this case, if there is a new circuit +. >(or just connect the power supply terminal resistor +.>) In order to prevent the high-level state of the newly added circuit from affecting the low-level state of the original communication line, it is necessary to ensure that the high-level state is defined by VDD and +.>、/>The Q-point potential in this path of GND is not pulled up, so that the resistance is ensured +.>The method comprises the steps of carrying out a first treatment on the surface of the If add circuit->(or just connect ground resistance +.>) The low level state brought by the method does not affect the low level signal on the original communication line.
To sum up, when the circuit is newly addedOr only by +.>When the power supply is connected, the resistor +.>The resistance value is selected to meetOn-resistance->The method comprises the steps of carrying out a first treatment on the surface of the When adding circuit->Or only by +.>When grounded, resistance ∈>The resistance value is selected to meetOn-resistance->
That is, when the first resistance is much smaller than the second resistance or the first resistance is included in the adjustment resistance, the resistance value of the first resistance needs to be much larger than the on-resistance of the transistor; when the first resistor is far greater than the second resistor or the second resistor is included in the adjusting resistor, the resistance value of the second resistor needs to be far greater than the on-resistance of the transistor.
As a specific embodiment, the second resistors have the same resistance value.
This is because, in the master-slave communication system described above, in a normal case, two resistors with different resistances need to be connected to each communication line, and the resistors are connected to a power source or a ground respectively, and this method requires a large number of components to be connected, which greatly increases the operation difficulty. Even if in the simplified scheme, each communication line is only connected with one resistor, the selection of the resistance value and the selection of the power or ground connection have certain operation difficulties, so that further improvement is made on the basis of the scheme.
Specifically, on the basis of the above scheme, the resistance of the grounding terminal resistor can be fixed, namely, a specific resistor with the resistance meeting the normal communication requirement and easily meeting the resistance relation between the two resistors is selected and uniformly used as the grounding terminal resistor to be set, so that the original effect of the scheme can be realized by only determining the corresponding resistance of the power terminal resistor or whether the power terminal resistor is externally connected according to the corresponding level state requirement.
Specifically, as shown in fig. 7, a resistor with a specific resistance value is connected to each communication port of the slave device in each slave device, and the other end of the resistor is grounded. Correspondingly, a signal reading module is arranged in the main equipment and used for reading each channel And the electric potential information read back by the information port is integrated and then converted into corresponding binary codes. Meanwhile, aiming at the communication line part between the master device and the slave device, each communication line is externally connected with a resistor, the other end of the resistor is connected with a power supply, and the resistance value of the resistor is set according to actual requirements; for example, in the non-signal output state, if the communication line target state is a high level state, then the setting is madeThe target state is a low level state, then set +.>
In particular, the resistor is used for controlling the low-level state of the communication lineThe excessively large resistance corresponds to an open state, so that the power supply terminal resistor is not connected in this state>The method comprises the steps of carrying out a first treatment on the surface of the Thus, for the communication line portion between the master device and each slave device, only the communication line whose target state is the high-level state can be passed through the resistor +.>Connect the power supply and make it meet +.>It is sufficient to dispense with consideration of the communication line whose target state is the low-level state.
That is, the resistance value of the ground terminal resistor in the foregoing solution is fixed and is built in the internal structure of the slave device, and only the power terminal resistor is reserved at the communication line portion, so that the portion required to be connected in the connection operation of the communication system is halved, and all lines are uniformly connected with the power supply, so that only the size of the resistance value is considered, or only whether the power terminal is connected is considered, and the operation complexity is greatly reduced.
For each resistor integrated in the slave device, resistors with the same resistance value can be selected for integration, and meanwhile, the resistance value cannot influence signal transmission of a communication port of the slave device; therefore, the same effect as the scheme can be achieved only by setting the resistance value of the resistor externally connected with the communication line part between the master device and the slave device.
As shown in fig. 8, in the LED display system, a resistor having a specific resistance value is connected to each communication port of each driving ICAnd the other end of the resistor is grounded; correspondingly, an information reading module is arranged in the control end and used for reading the potential information read back by each communication port and converting the potential information into corresponding multi-bit binary codes after integration. Meanwhile, for the communication line part between the control end and each driving IC, a resistor is externally connected to each communication line>And the other end of the resistor is connected with a power supply, the resistor is +.>Setting the resistance according to actual requirements; for example, in the non-signal output state, when the communication line target state is a high level state, the +.>The target state is a low level state, then set +.>
In particular, the resistor is used for controlling the low-level state of the communication line The excessively large resistance corresponds to an open state, so that the power supply terminal resistor is not connected in this state>The method comprises the steps of carrying out a first treatment on the surface of the Thus, the target state can be set to be a high level only for the communication line portion between the control terminal and each driving ICThe communication line in the state is connected with the resistor->Connect the power supply and make it meet +.>It is sufficient that the communication line whose target state is the low-level state is not required to be considered.
That is, the resistance values of the ground terminal resistors are unified and are built in the internal structure of the driving IC, and only the power terminal resistor is reserved at the communication line part of the LED module, so that the part which needs to be connected on the surface of the LED module is halved, and meanwhile, all circuits are uniformly connected with the power terminal, so that only the resistance value is considered or whether the power terminal is connected is considered, and the operation complexity is greatly reduced.
For each resistor integrated in the driving IC, resistors with the same resistance value can be selected for integration, and meanwhile, the resistance value cannot influence signal transmission of a communication port of the driving IC; for example, when the control-side communication port adopts a two-stage inverter structure as shown in FIG. 3, the control-side communication port is formed by、/>On-resistance +.>Very small (I)>Can be realized by selecting proper sizeCan avoid on-resistance +. >The problem of large partial pressure; therefore, the same effect as the scheme can be achieved by setting the resistance value of the resistor externally connected with the communication line part of the LED module.
According to an embodiment of the present invention, there is provided a control method embodiment of a master-slave communication system, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
In this embodiment, a control method of a master-slave communication system is provided, which can be used for a computer device. The master-slave communication system comprises a master device, a slave device set and an adjusting resistor, wherein the slave device set comprises a plurality of slave devices, and the master device is connected with at least one slave device through a plurality of communication lines; the adjusting resistor is arranged on the communication line and used for adjusting the potential state on the communication line.
Fig. 9 is a flowchart of a master-slave communication system control method according to an embodiment of the present invention, as shown in fig. 9, the flowchart including the steps of:
step S901: the potential state on the communication line is read.
Specifically, the potential state on the communication line may be read through the first communication port on the master device. For example, when the master device and the slave device are connected through four communication lines, the number of ports of the first communication ports may be 4, that is, the first communication ports are provided corresponding to the communication lines. The potential states on the corresponding communication lines can be read through the first communication ports, respectively.
Step S902: identification information of slave devices connected to the plurality of communication lines is obtained based on the potential states on the communication lines.
Specifically, the identification information may be binary coded. For example, when the potential state on the communication line is high level, the one communication line is marked as "1"; when the potential state on the communication line is low, the communication line is marked as "0", and so on, a string of binary codes, for example 1001, can be obtained from the potential states on the 4 communication lines. Of course, the number of communication lines may not be limited to 4.
Step S903: attribute information of a slave device connected to the plurality of communication lines is determined based on the identification information.
Specifically, the attribute information includes at least one of: the type of the slave device, configuration information of the slave device, and operation information of the slave device.
In some alternative embodiments, determining attribute information of a slave device connected to the plurality of communication lines according to the identification information includes: acquiring a corresponding relation between a preset slave device identifier and a slave device attribute; and searching in the corresponding relation between the slave device identification and the slave device attribute by utilizing the identification information to obtain the attribute information of the slave device connected with the plurality of communication lines.
That is, the attribute information of a plurality of different slave devices is summarized, and corresponding binary codes are set for the different slave devices, so that the corresponding relation between the slave device identification and the slave device attribute is obtained. It is understood that the attribute information of a plurality of slave devices and the binary code of the slave device corresponding to the attribute information of each slave device are included in the correspondence relationship between the slave device identification and the slave device attribute.
After the correspondence between the slave device identifier and the slave device attribute is obtained, in the manufacturing process of the master-slave communication device, the identifier information of the slave device in the master-slave communication device, namely the binary code of the slave device, can be obtained according to the attribute of the slave device actually used and the correspondence between the slave device identifier and the slave device attribute, and the adjusting resistance on at least part of the communication lines is set according to the binary code of the slave device so as to represent the binary code of the slave device through the potential states on a plurality of communication lines. In the configuration process of the master-slave communication equipment, the master-slave communication equipment presents corresponding potential states on each communication line after circuit connection, the potential states can be read back by each first communication port of the master equipment in a non-output state, and corresponding binary codes are obtained after conversion by the information reading module, so that the attribute information of the corresponding slave equipment can be matched in the corresponding relation between the slave equipment identifiers and the slave equipment attributes of the master equipment, which are stored in advance.
In some alternative embodiments, before reading the potential state on the communication line, further comprising: judging whether the first communication port of the main device is in a non-signal output state or not, and executing the step of reading the potential state on the communication line when the first communication port is in the non-signal output state.
This is because, in general, a first communication port of a master device in a master-slave communication system performs bidirectional communication, and a second communication port of a slave device performs unidirectional communication. Specifically, the first communication port of the master device can be in a signal output state when the master-slave communication system normally communicates, send signals to all levels of slave devices, and enter a signal reading state when module configuration or other information configuration is performed, so that level signals on all communication lines can be read back. The second communication port of the slave device can only be in a signal input state and receives various signals sent by the master device. In order to ensure that the master device can successfully read the level signal without being disturbed by other conditions, it is necessary to put the first communication port of the master device in a non-signal output state.
In a special case, the first communication port of the master device and the second communication port of the slave device in the master-slave communication system are both in bidirectional communication. Specifically, the first communication port of the master device can be in a signal output state when the master-slave communication system normally communicates, send signals to all levels of slave devices, and enter a signal reading state when module configuration or other information configuration is performed, so that level signals on all communication lines can be read back. The second communication port of the slave device can be in a signal input state, receives various signals sent by the master device, and can output signals.
In order to ensure that the master device can successfully read the level signal without being disturbed by other conditions, it is required that both the first communication port of the master device and the second communication port of the slave device are in a non-signal output state. That is, the information reading module is further configured to determine, before reading the potential state on the communication line, whether the first communication port of the master device and the second communication port of the slave device are both in the non-signal output state, and execute the step of reading the potential state on the communication line when the first communication port and the second communication port are both in the non-signal output state.
According to the control method of the master-slave communication system, the identification information of the slave device is obtained by reading the potential state on the communication line, and the attribute information of the slave device connected with the plurality of communication lines can be determined according to the identification information of the slave device, so that the configuration of the slave device in the master-slave communication system is completed. Compared with the configuration system arranged on the master device (namely the control end) in the related art, the embodiment of the invention can determine the attribute information of the slave devices connected with the communication lines only through the potential states on the communication lines, and is simpler and quicker.
The embodiment also provides a control device of a master-slave communication system, which is used for implementing the above embodiment and the preferred implementation manner, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a control device of a master-slave communication system, as shown in fig. 10, including:
an acquisition module 1001 for reading a potential state on a communication line;
an identification information determining module 1002, configured to obtain identification information of a slave device connected to a plurality of communication lines according to a potential state on the communication lines;
an attribute information determining module 1003 is configured to determine attribute information of a slave device connected to the plurality of communication lines according to the identification information.
In some alternative embodiments, the attribute information determination module 1003 is configured to: acquiring a corresponding relation between a preset slave device identifier and a slave device attribute; and searching in the corresponding relation between the slave device identification and the slave device attribute by utilizing the identification information to obtain the attribute information of the slave device connected with the plurality of communication lines.
In some alternative embodiments, the control device of the master-slave communication system further comprises a preprocessing module. Before the potential state on the communication line is read, the preprocessing module is used for judging whether the first communication port of the main equipment is in a non-signal output state or not, and sending out an instruction for reading the potential state on the communication line when the first communication port is in the non-signal output state. Or before the potential state on the communication line is read, the preprocessing module is used for judging whether the first communication port of the master device and the second communication port of the slave device are both in a non-signal output state, and sending out an instruction for reading the potential state on the communication line when the first communication port and the second communication port are both in the non-signal output state.
The control means of the master-slave communication system in this embodiment are presented in the form of functional units, here referred to as ASIC circuits, processors and memories executing one or more software or firmware programs, and/or other devices providing the above described functionality.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the invention also provides a computer device, which is provided with the control device of the master-slave communication system shown in the figure 10.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 11, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 11.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform a method for implementing the embodiments described above.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created from the use of the computer device of the presentation of a sort of applet landing page, and the like. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (17)

1. A master-slave communication system comprising a master device and a set of slave devices, wherein the set of slave devices comprises a plurality of slave devices, and the master device is connected with at least one slave device through a plurality of communication lines, and the master-slave communication system is characterized by further comprising:
an adjusting resistor arranged on the communication line for adjusting the potential state on the communication line;
the information reading module is arranged in the master device and is used for reading the potential state on the communication line and obtaining the identification information of the slave devices connected with the communication lines according to the potential state on the communication line;
and the control module is arranged in the master device and is used for determining attribute information of the slave devices connected with the communication lines according to the identification information.
2. The master-slave communication system of claim 1, wherein the control module is configured to:
acquiring a corresponding relation between a preset slave device identifier and a slave device attribute;
And searching in the corresponding relation between the slave equipment identifier and the slave equipment attribute by utilizing the identifier information to obtain attribute information of the slave equipment connected with a plurality of communication lines.
3. A master-slave communication system according to claim 1, characterized in that:
the information reading module is further configured to determine, before reading the potential state on the communication line, whether a first communication port of the master device is in a non-signal output state, and execute a step of reading the potential state on the communication line when the first communication port is in the non-signal output state;
or,
the information reading module is further configured to determine, before reading the potential state on the communication line, whether the first communication port of the master device and the second communication port of the slave device are both in the non-signal output state, and execute the step of reading the potential state on the communication line when the first communication port and the second communication port are both in the non-signal output state.
4. A master-slave communication system according to any one of claims 1 to 3, wherein:
the adjusting resistor comprises at least one of a first resistor and a second resistor, one end of the first resistor is connected with the power supply, and the other end of the first resistor is connected with the communication line; one end of the second resistor is connected with the communication line, and the other end of the second resistor is grounded.
5. The master-slave communication system of claim 4, wherein: the setting principle of the adjusting resistor is as follows: the target level state is satisfied and normal communication of the master device with the slave device is not affected.
6. The master-slave communication system according to claim 5, wherein the target level state is determined according to a correspondence between a preset slave device identification and a slave device attribute.
7. The master-slave communication system of claim 5, wherein the first communication port of the master device employs a two-stage inverter architecture:
when the first resistor is far smaller than the second resistor or the adjusting resistor only comprises the first resistor, the resistance value of the first resistor needs to be far larger than the on-resistance of the transistor;
when the first resistor is far greater than the second resistor or the second resistor is included in the adjusting resistor, the resistance value of the second resistor needs to be far greater than the on-resistance of the transistor.
8. A master-slave communication system according to claim 5 or 6, wherein the second resistors have the same resistance.
9. The master-slave communication system of claim 8, wherein the second resistor is disposed in a communication port of the slave device.
10. A master-slave communication system according to any one of claims 1 to 3, wherein the attribute information comprises at least one of: the type of the slave device, the configuration information of the slave device and the working information of the slave device.
11. A master-slave communication system according to any one of claims 1-3, wherein the master-slave communication system is an LED display system.
12. A control method of a master-slave communication system, characterized in that the master-slave communication system comprises a master device, a slave device set and a regulating resistor, wherein the slave device set comprises a plurality of slave devices, and the master device is connected with at least one slave device through a plurality of communication lines; the adjusting resistor is arranged on the communication line and used for adjusting the potential state on the communication line; the control method of the master-slave communication system comprises the following steps:
reading the potential state on the communication line;
obtaining identification information of the slave devices connected with the communication lines according to potential states on the communication lines;
and determining attribute information of the slave devices connected with the communication lines according to the identification information.
13. The method of claim 12, wherein the determining attribute information of the slave device connected to a plurality of the communication lines according to the identification information comprises:
Acquiring a corresponding relation between a preset slave device identifier and a slave device attribute;
and searching in the corresponding relation between the slave equipment identifier and the slave equipment attribute by utilizing the identifier information to obtain attribute information of the slave equipment connected with a plurality of communication lines.
14. The method of claim 12, further comprising, prior to reading the potential state on the communication line:
judging whether a first communication port of the main device is in a non-signal output state or not, and executing a step of reading a potential state on the communication line when the first communication port is in the non-signal output state;
or,
before reading the potential state on the communication line, further comprising:
judging whether a first communication port of the master device and a second communication port of the slave device are both in the non-signal output state, and executing the step of reading the potential state on the communication line when the first communication port and the second communication port are both in the non-signal output state.
15. A control device of a master-slave communication system, which is characterized in that the master-slave communication system comprises a master device, a slave device set and a regulating resistor, wherein the slave device set comprises a plurality of slave devices, and the master device is connected with at least one slave device through a plurality of communication lines; the adjusting resistor is arranged on the communication line and used for adjusting the potential state on the communication line; the control device of the master-slave communication system includes:
The acquisition module is used for reading the potential state on the communication line;
the identification information determining module is used for obtaining the identification information of the slave equipment connected with the communication lines according to the potential states on the communication lines;
and the attribute information determining module is used for determining attribute information of the slave equipment connected with the communication lines according to the identification information.
16. A computer device, comprising:
a memory and a processor communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of controlling a master-slave communication system of any one of claims 12 to 14.
17. A computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the control method of the master-slave communication system of any one of claims 12 to 14.
CN202311525680.4A 2023-11-16 2023-11-16 Master-slave communication system, control method of master-slave communication system, and computer device Active CN117278355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311525680.4A CN117278355B (en) 2023-11-16 2023-11-16 Master-slave communication system, control method of master-slave communication system, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311525680.4A CN117278355B (en) 2023-11-16 2023-11-16 Master-slave communication system, control method of master-slave communication system, and computer device

Publications (2)

Publication Number Publication Date
CN117278355A true CN117278355A (en) 2023-12-22
CN117278355B CN117278355B (en) 2024-03-08

Family

ID=89204747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311525680.4A Active CN117278355B (en) 2023-11-16 2023-11-16 Master-slave communication system, control method of master-slave communication system, and computer device

Country Status (1)

Country Link
CN (1) CN117278355B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5764935A (en) * 1990-01-05 1998-06-09 Sun Microsystems, Inc. High speed active bus
CN202488619U (en) * 2012-03-16 2012-10-10 青岛海信宽带多媒体技术有限公司 Hardware configuration identification circuit and set top box
US9703338B1 (en) * 2012-04-17 2017-07-11 Marvell International Ltd Power over ethernet by 802.1X user authenticate protocol
CN210142153U (en) * 2019-06-05 2020-03-13 上海移远通信技术股份有限公司 Aging test system of wireless module
CN111144733A (en) * 2019-12-23 2020-05-12 宁波三星医疗电气股份有限公司 Platform identification method and device, metering automation terminal and readable storage medium
CN113220338A (en) * 2021-04-19 2021-08-06 深圳市沃特沃德信息有限公司 Terminal configuration method and device, computer equipment and storage medium
CN113778933A (en) * 2021-09-16 2021-12-10 西安闻泰信息技术有限公司 Hardware identification method and device, electronic equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5764935A (en) * 1990-01-05 1998-06-09 Sun Microsystems, Inc. High speed active bus
CN202488619U (en) * 2012-03-16 2012-10-10 青岛海信宽带多媒体技术有限公司 Hardware configuration identification circuit and set top box
US9703338B1 (en) * 2012-04-17 2017-07-11 Marvell International Ltd Power over ethernet by 802.1X user authenticate protocol
CN210142153U (en) * 2019-06-05 2020-03-13 上海移远通信技术股份有限公司 Aging test system of wireless module
CN111144733A (en) * 2019-12-23 2020-05-12 宁波三星医疗电气股份有限公司 Platform identification method and device, metering automation terminal and readable storage medium
CN113220338A (en) * 2021-04-19 2021-08-06 深圳市沃特沃德信息有限公司 Terminal configuration method and device, computer equipment and storage medium
CN113778933A (en) * 2021-09-16 2021-12-10 西安闻泰信息技术有限公司 Hardware identification method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PU AI等: "Design of human-robot interactive interface based on identity recognition", IEEE, 9 February 2017 (2017-02-09) *
马锐军;袁飞;赵先美;: "基于ARM协调控制的多路信号采集系统", 武汉职业技术学院学报, no. 03, 15 June 2017 (2017-06-15) *

Also Published As

Publication number Publication date
CN117278355B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
US6249825B1 (en) Universal serial bus interface system and method
CN103914324B (en) A kind of method and its system of automatic programming embedded device firmware
CN114003538B (en) Identification method of intelligent network card and intelligent network card
DE102010010198A1 (en) System and method for testing a module
DE60317599T2 (en) Multibit digital input with a single connector pin
CN117278355B (en) Master-slave communication system, control method of master-slave communication system, and computer device
CN109683593B (en) Method and equipment for testing basic functions of pulse type servo driver
CN100498753C (en) Method for accessing on-site programmable gate array internal memory through I2C interface
TWI220738B (en) Method for effectively re-downloading data to a field programmable gate array
US20180143928A1 (en) Switch system and operation method thereof
CN111351669B (en) Fault diagnosis method and device, storage medium and vehicle
US6892256B1 (en) Automated system for storing revision information from slave programmable devices in a master programmable device
CN112912885A (en) Interface connection for printed circuit board schematic
DE102021101458B4 (en) Master and slave processors to configure subsystems
CN110704198A (en) Data operation method, device, storage medium and processor
CN115391260A (en) PCIe bandwidth configuration device, method, server and readable storage medium
CN104483849A (en) Multiple-master-control-module connection structure and identification method and splicing wall
CN112598830A (en) Intelligent terminal of gate
CN106647542A (en) DDS-based multipath sequential control device
CN102545953A (en) UART (Universal Asynchronous Receiver/Transmitter) function extension circuit and control method thereof
DE112016000164T5 (en) PROCESSING DATA STORAGE INSTRUCTIONS FOR HOME SERVICES
US10740253B2 (en) Technologies for remote device emulation
CN106843434B (en) A kind of circuit using serial communication control cpu reset
CN114637538B (en) Substrate management control system, electronic device and substrate management control method
CN111860560A (en) Model parameter adjusting method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant