CN118264556A - Communication system and address configuration method thereof - Google Patents

Communication system and address configuration method thereof Download PDF

Info

Publication number
CN118264556A
CN118264556A CN202410410672.3A CN202410410672A CN118264556A CN 118264556 A CN118264556 A CN 118264556A CN 202410410672 A CN202410410672 A CN 202410410672A CN 118264556 A CN118264556 A CN 118264556A
Authority
CN
China
Prior art keywords
address
configuration
slave
address configuration
instruction
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.)
Pending
Application number
CN202410410672.3A
Other languages
Chinese (zh)
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
Filing date
Publication date
Application filed by Hangzhou Shixin Technology Co ltd filed Critical Hangzhou Shixin Technology Co ltd
Publication of CN118264556A publication Critical patent/CN118264556A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a communication system and an address configuration method thereof, wherein a master device is sequentially connected in series with n slave devices needing address configuration, the master device sequentially transmits configuration instructions, each configuration instruction carries different communication addresses, after each slave device receives the configuration instruction, whether the slave device completes address configuration or not is judged, if not, the communication address carried by the currently received configuration instruction is configured as the communication address of the slave device, if yes, the configuration instruction is forwarded to the next slave device, and until the last slave device completes address configuration. The invention reduces the port occupation of the main equipment, does not waste the hardware port resource of the main equipment, reduces the equipment cost overhead, and can improve the configuration speed while ensuring the address configuration accuracy.

Description

Communication system and address configuration method thereof
Technical Field
The present invention relates to the field of communications, and in particular, to a communication system and an address configuration method thereof.
Background
In a master-slave wired communication system, communication data transmission authority of the whole communication network is controlled by a master device, a slave device passively receives and executes a command sent by the master device, and data is returned according to the requirement of the master device. The master device may send data to all the slaves at the same time, or may communicate with a designated slave device. When a master device needs to communicate with a specified slave device, it is generally necessary to learn the communication address of the slave device in advance, and to implement a function of transmitting data or instructions to the specified slave device by matching the communication address.
The existing master-slave wired communication systems address slave devices in a hardware mode, for example, some master-slave wired communication systems adopt an SPI protocol to realize communication between the master device and the slave device, the SPI communication usually realizes a communication process through 4 signal wires (MISO, MOSI, SCLK, CS) (the master device is connected with each slave device through the 4 signal wires), and MISO is the data input of the master device and the data output of the slave device; MOSI is the data output of the main equipment and the data input of the auxiliary equipment; SCLK is serial clock signal, and is generated by master device and sent to slave device; the CS is used to transmit chip select signals, which are sent by the master device to control and designate communication between the slave devices. In the communication mode, the corresponding operation of the master device on the slave device corresponding to the chip selection signal is valid only when the chip selection signal is at a preset level, and the addressing problem of the slave device is further realized through the chip selection signal line.
In the method, as each slave device and the master device need to establish an addressing channel through the CS signal lines, when the number of the slave devices is large, each CS signal line occupies a large number of ports of the master device, thereby not only wasting hardware port resources of the devices, but also increasing the cost of the devices.
Disclosure of Invention
The invention aims to provide a communication system and an address configuration method thereof, which are used for solving the problems of high cost, resource waste and the like of the existing communication system.
In order to achieve the above object, the present invention provides an address configuration method of a communication system, where the communication system includes a master device and n slave devices that need to be address configured and are sequentially connected in series, n is greater than or equal to 2, and the address configuration method includes:
Step S100: starting from i=1, i being a positive integer, step S101 is performed;
Step S101: the master device sends an ith configuration instruction, and the j=1 th slave device executes step S102;
step S102: the j-th slave device receives the i-th configuration instruction, j is an integer, the j-th slave device judges whether the address configuration is completed, if the j-th slave device judges that the address configuration is not completed, the communication address carried by the i-th configuration instruction is configured as the communication address of the j-th slave device, step 103 is executed, if the j-th slave device judges that the address configuration is completed, the i-th configuration instruction is forwarded to the j+1-th slave device, j=j+1, and step S102 is returned;
Step S103: when i < n, i=i+1, and returns to step S101, i=n, the address configuration is ended.
Optionally, a secure time is provided between two adjacent configuration instructions sent by the master device.
Optionally, the secure time is an interval time between sending two adjacent configuration instructions by the master device, and the interval time is reserved for configuring the communication address for the slave device.
Optionally, the communication system is an LED display screen driving system.
Optionally, the nth slave device is the last slave device in all slave devices sequentially connected in series with the master device, or the subsequent stage of the nth slave device further cascades at least one slave device.
Optionally, the n slave devices are slave devices which are connected with the master device in series and need address configuration.
Optionally, m slave devices are connected in series in sequence between the n slave devices and the master device, where m is a positive integer, and all the m slave devices complete address configuration.
Optionally, before executing step S100, the configuration method further includes:
the master device sends a first state instruction; and
After all the slave devices receive the first state instruction, all the slave devices are set to be in an address configuration state, and the first state instruction is forwarded from the first slave device to the next slave device until the last slave device completes the address configuration state setting.
Optionally, after the address configuration of the slave device that needs to perform address configuration is finished, the configuration method further includes:
The master device sends a second state instruction; and
After all the slave devices receive the second state instruction, all the slave devices exit the address configuration state, and the second state instruction is forwarded from the first slave device to the next slave device until the last slave device exits the address configuration state.
Optionally, each slave device decodes the communication address carried by the received configuration instruction belonging to the slave device to obtain a corresponding communication address.
Optionally, the communication address and the sending order carried by each configuration instruction are preset by the master device; or the communication address carried by each configuration instruction is randomly generated by the master device before being sent.
Optionally, the master device stores the communication address of each slave device and the sending order thereof into an address register of the master device.
Optionally, after each slave device completes address configuration, the configured communication address is stored in its own address register.
The invention also provides a communication system, which comprises a master device and n slave devices which are connected in series in sequence and need to be subjected to address configuration, wherein n is more than or equal to 2, and the address configuration is performed between the master device and the slave devices according to the address configuration method.
The invention also provides an address configuration method of the communication system, the communication system comprises a master device and n slave devices which are connected in series in sequence and need to carry out address configuration, n is more than or equal to 2, the address configuration method comprises the following steps:
step 201: the master device sends an ith configuration instruction of an ith slave device, wherein i is a positive integer, and 1< i < n;
Step 202: the 1 st to i-1 st slave devices receive the i-th configuration instruction, the 1 st to i-1 st slave devices judge that address configuration is completed, the i-th configuration instruction is sequentially transmitted from the 1 st slave device to the i-th slave device, after the i-th slave device receives the i-th address configuration, the i-th slave device judges that address configuration is not completed, and a communication address carried by the i-th configuration instruction is configured as a communication address of the i-th device.
The invention also provides a communication system, which comprises a master device and n slave devices which are connected in series in sequence and need to be subjected to address configuration, wherein n is more than or equal to 2, and the address configuration is performed between the master device and the slave devices according to the address configuration method.
In the communication system and the address configuration method thereof provided by the invention, a master device is sequentially connected in series with n slave devices needing address configuration, the master device sequentially transmits configuration instructions, each configuration instruction carries different communication addresses, after each slave device receives the configuration instruction, whether the slave device completes address configuration or not is judged, if not, the communication address carried by the currently received configuration instruction is configured as the communication address of the slave device, if yes, the configuration instruction is forwarded to the next slave device, and until the last slave device completes address configuration. On one hand, the invention does not need to connect an independent signal line for addressing equipment between the master equipment and each slave equipment, reduces the port occupation of the master equipment, does not waste the hardware port resource of the master equipment, and reduces the equipment cost. On the other hand, the address configuration is carried out on the slave devices one by one in a mode that the master device sends the configuration instruction, so that the address configuration of the slave devices is ensured not to be missed, the slave devices do not need to identify the content of the configuration instruction in the configuration process, and the configuration time is saved; in addition, as the configuration instruction sent at a time only configures one slave device, the sent configuration instruction is simpler, if the previous slave device has address configuration, the configuration instruction is only directly forwarded, the configuration instruction is not needed to be analyzed, and configuration instruction bits are not needed to be complemented, so that the configuration time is further saved; in addition, the invention can realize the address configuration of one slave device independently, but does not affect other slave devices, thereby facilitating the maintenance of the slave devices. In summary, the invention can improve the configuration speed while ensuring the accuracy of address configuration, and is also convenient for the maintenance of the slave equipment.
Drawings
Fig. 1 is a connection block diagram of a communication system according to a first embodiment of the present invention;
Fig. 2 is a flowchart of an address configuration method of the communication system according to a first embodiment of the present invention;
FIG. 3 is a timing chart of input and output signals of the master device and the slave device according to an embodiment of the invention
Fig. 4 is a block diagram of the master device according to the first embodiment of the present invention;
FIG. 5 is a block diagram of the slave device according to the first embodiment of the present invention;
fig. 6 is a flowchart of an address configuration method of the communication system according to the second embodiment of the present invention.
Detailed Description
Specific embodiments of the present invention will be described in more detail below with reference to the drawings. The advantages and features of the present invention will become more apparent from the following description. It should be noted that the drawings are in a very simplified form and are all to a non-precise scale, merely for convenience and clarity in aiding in the description of embodiments of the invention.
Example 1
The embodiment provides an address configuration method of a communication system. Fig. 1 is a connection block diagram of a communication system provided in this embodiment, as shown in fig. 1, where the communication system may be a master-slave wired communication system, and the communication system includes a master device and n slave devices (n is greater than or equal to 2) that need to perform address configuration, where n slave devices are sequentially connected in series, so that a serial signal path is formed in the communication system, and the master device communicates with the slave devices through the serial signal path.
When the communication system is in communication, the slave equipment needs to be pre-configured with a unique communication address (also called ID address), the configured communication address is stored in an address register of the slave equipment, when the communication is in communication, the master equipment sends out a signal to the slave equipment, the slave equipment matches an address field in the received signal with the communication address of the slave equipment according to a communication protocol, if the matching is successful, the slave equipment analyzes the communication signal and executes corresponding actions; if the match is unsuccessful, the slave will not parse the signal, but forward the signal to the next slave. In this manner, the master device can communicate with the designated slave device.
Fig. 2 is a flowchart of an address configuration method of the communication system according to the present embodiment. As shown in fig. 2, the address configuration method of the communication system includes:
Step S100: starting from i=1, i being a positive integer, step S101 is performed;
Step S101: the master device sends an ith configuration instruction, and the j=1 th slave device executes step S102;
step S102: the j-th slave device receives the i-th configuration instruction, j is an integer, the j-th slave device judges whether the address configuration is completed, if the j-th slave device judges that the address configuration is not completed, the communication address carried by the i-th configuration instruction is configured as the communication address of the j-th slave device, step 103 is executed, if the j-th slave device judges that the address configuration is completed, the i-th configuration instruction is forwarded to the j+1-th slave device, j=j+1, and step S102 is returned;
Step S103: when i < n, i=i+1, and returns to step S101, i=n, the address configuration is ended.
Specifically, before address configuration, the master device sends a first state instruction to the slave devices connected in series, where the first state instruction is used to indicate that the slave devices should currently enter an address configuration state. And after the first state instruction is sent out by the master device, the first state instruction is sent to the slave devices one by one through a serial signal path, each slave device sets the slave device to be in an address configuration state after receiving the first state instruction, and the first state instruction is forwarded to the next slave device until the last slave device completes address configuration state setting.
Fig. 3 is a timing chart of input and output signals of the master device and the slave devices provided in this embodiment, as shown in fig. 3, after the first status instruction is sent by the master device, the first status instruction reaches the first slave device first, the first slave device sets itself to an address configuration state after receiving the first status instruction, and forwards the first status instruction to the second slave device, after the second slave device receives the first status instruction, sets itself to an address configuration state, and forwards the first status instruction to the third slave device, …, until the last slave device (nth slave device) completes the address configuration state setting, and all the slave devices in cascade enter the address configuration state.
It should be understood that the first status instruction may be a field customized for the communication system, specifically indicating an address configuration status, where the field needs to be distinguished from other fields, and a specific value of the field may be defined by a device manufacturer.
After all the slave devices enter an address configuration state, step S100 is performed, starting from i=1, i being a positive integer, and then step S101 is performed.
Step S101 is executed, where the master device sends an ith configuration instruction, and the j=1 th slave device starts to execute step S102.
Step S102 is executed, where j is an integer, the j-th slave device receives the i-th configuration instruction, and determines whether the address configuration is completed, if j-th slave device determines that the address configuration is not completed, the communication address carried by the i-th configuration instruction is configured as the communication address of the j-th slave device, step S103 is executed, if j-th slave device determines that the address configuration is completed, the i-th configuration instruction is forwarded to the j+1-th slave device, j=j+1, and step S102 is returned;
Step S103 is executed, and when i < n, i=i+1, and returns to step S101, i=n, the address configuration is ended.
With continued reference to fig. 3, specifically, the master device sequentially sends the configuration instructions, where the master device sends a first configuration instruction, and the first configuration instruction reaches the first slave device first; after receiving a first configuration instruction, the first slave device judges whether the slave device completes address configuration; since the first slave device does not perform address configuration yet, the first slave device decodes the first configuration instruction to obtain a communication address ID1 carried by the first configuration instruction, and configures the communication address ID1 as its own communication address. Then, the master device sends out a second configuration instruction, and the second configuration instruction firstly reaches the first slave device; after the first slave device receives the second configuration instruction, judging whether the slave device completes address configuration or not; since the first one of the slaves has completed the address configuration, the first one of the slaves forwards the second one of the configuration instructions directly to the second one of the slaves. After receiving a second configuration instruction, the second slave device judges whether the slave device completes address configuration; since the second slave device does not perform address configuration yet, the second slave device decodes the second configuration instruction to obtain a communication address ID2 carried by the second configuration instruction, and configures the communication address ID2 as its own communication address. And after receiving the third configuration instruction, the first slave device and the second slave device judge whether the first slave device and the second slave device complete address configuration, so that the first slave device and the second slave device forward the third configuration instruction to the later-stage device, and the third slave device decodes the third configuration instruction to obtain a communication address ID3 carried by the third configuration instruction and configures the communication address ID3 as a communication address of the first slave device and the second slave device. And repeating the process until all the n slave devices complete address configuration, and ending the communication system address configuration process.
In summary, after each slave device receives the configuration instruction, it determines whether to complete address configuration, if not, configures the communication address carried by the currently received configuration instruction as the communication address of itself, if yes, forwards the configuration instruction to the next slave device until the last slave device completes address configuration. On one hand, the invention does not need to connect an independent signal line for addressing equipment between the master equipment and each slave equipment, reduces the port occupation of the master equipment, does not waste the hardware port resource of the master equipment, and reduces the equipment cost. On the other hand, the method and the device for configuring the addresses of the slave devices one by one through the mode that the master device sends the configuration instruction can ensure that the address configuration of the slave devices is not missed, the slave devices do not need to identify the content of the configuration instruction in the configuration process, the configuration time is saved, and the configuration instruction sent by one slave device is simpler because the configuration instruction sent by one slave device is configured only, if the address configuration of the previous slave device is already carried out, the configuration instruction is only forwarded directly, the configuration instruction is not needed to be analyzed, the configuration instruction is not needed to be complemented, and the configuration time is further saved. In summary, the invention can improve the configuration speed while ensuring the accuracy of address configuration.
In this embodiment, a secure time is provided between two adjacent configuration instructions sent by the master device, where the secure time is an interval time between two adjacent configuration instructions sent by the master device, and the interval time reserves time for configuring a communication address for the slave device.
Further, the master device sequentially sends configuration instructions, and each configuration instruction carries a different communication address. The communication address and the sending order carried by each configuration instruction may be preset by the master device, and the communication address carried by each configuration instruction may also be randomly generated by the master device before sending.
Further, the master device sends configuration instructions successively, and at least one configuration instruction may also carry the same communication address.
It should be noted that, the master device may store the communication address and the sending order carried by each configuration instruction into its own address register, so that the slave device is addressed by the subsequent communication address and the sending order thereof. After each slave device completes the address configuration, the configured communication address may also be stored in its own address register for subsequent communication.
After the master device transmits a predetermined number (the predetermined number may be equal to the number n of the slave devices required for address configuration) of the configuration instructions, each of the slave devices completes address configuration. At this time, the master device may send a second state instruction to the slave devices connected in series, where the second state instruction is used to instruct the slave devices to exit the address configuration state. And after the second state instruction is sent out by the master device, the second state instruction is sent to the slave devices one by one through a serial signal path, each slave device exits the address configuration state after receiving the second state instruction, and the second state instruction is forwarded to the next slave device until the last slave device exits the address configuration state.
With continued reference to fig. 3, after the second state instruction is sent by the master device, the second state instruction first reaches a first slave device, the first slave device exits the address configuration state after receiving the second state instruction, and forwards the second state instruction to a second slave device, the second slave device exits the address configuration state after receiving the second state instruction, and forwards the second state instruction to a third slave device, …, until the last slave device exits the address configuration state, and all the slave devices in the cascade exit the address configuration state.
It should be understood that the second status instruction may be a field customized by the communication system, specifically indicating the communication status, where the field needs to be distinguished from other fields, and a specific value of the second status instruction may be defined by the equipment manufacturer.
Further, the nth slave device may be the last slave device of all slave devices sequentially connected in series with the master device, where the total number of slave devices of the communication system is n; of course, the next stage of the nth slave device may cascade at least one slave device, and the total number of slave devices of the communication system is greater than n. In this embodiment, the address configuration method may complete address configuration of all the slave devices of the communication system at one time, and may complete address configuration of a part of the slave devices of the communication system first, and then configure the remaining part of the slave devices.
Further, in this embodiment, the n slave devices are slave devices that need to be address configured and are sequentially connected in series with the master device, where a first slave device in the communication system that is connected in series with the master device is a first slave device in the n slave devices; of course, in some embodiments, m slave devices may be sequentially connected in series between the n slave devices and the master device, where each of the m slave devices has completed address configuration, and m is a positive integer, where a first slave device of the n slave devices is not a first slave device connected in series with the master device. In this embodiment, the address configuration method may exit the address configuration state after a part of slave devices in the previous stage are configured, and then all the slave devices reenter the address configuration state, so as to perform address configuration on part or all of the slave devices in the subsequent stage that need to perform address configuration in series in sequence; the address configuration method can also carry out address configuration again on any section of damaged slave equipment in the slave equipment which are sequentially connected in series, thereby being convenient for maintenance.
Based on this, as shown in fig. 1, this embodiment further provides a communication system, where the communication system includes a master device and n slave devices that need to be address configured and are sequentially connected in series, where n is greater than or equal to 2, and address configuration can be performed between the master device and the slave devices according to the address configuration method described above. Specifically, the master device is configured to send configuration instructions successively, where each configuration instruction carries a different communication address; and after each slave device receives the configuration instruction, judging whether the slave device completes address configuration, if not, configuring the communication address carried by the currently received configuration instruction as the communication address of the slave device, and if so, forwarding the configuration instruction to the next slave device until the last slave device completes address configuration.
Further, the master device is configured to send configuration instructions successively, where at least one of the configuration instructions may also carry the same communication address.
In this embodiment, the communication system is an LED display driving system, but not limited to this.
Fig. 4 is a block diagram of the structure of the master device according to the present embodiment. As shown in fig. 3, the master device includes a control unit, and a first communication unit and a first storage unit connected to the control unit. The first communication unit is used for realizing a communication process between the main device and the external device, such as sending signals to the external device or receiving signals sent by the external device. The first storage unit is used for realizing the information storage function inside the main equipment, such as storing preset communication addresses and sending sequences or storing communication addresses randomly generated and issued by the main equipment. The control unit is used for realizing functions such as information processing in the master device, system control instruction generation and the like, such as generating the first state instruction, the second state instruction or generating the corresponding configuration instruction according to a preset communication address and a preset transmission sequence in the first storage unit, so as to realize control of the slave device.
Fig. 5 is a block diagram of the configuration of the slave device according to the present embodiment. As shown in fig. 5, the slave device includes a processing unit, and a second communication unit and a second storage unit connected to the processing unit. The second communication unit is configured to implement a communication procedure between the slave device and the external device, such as sending a signal to the external device or receiving a signal sent by the external device. The second storage unit is used for realizing the information storage function inside the slave device, such as storing the communication address configured in the address configuration process, and the like. The processing unit is used for realizing the functions of information processing, communication control and the like in the slave equipment, such as judging whether address configuration is finished, judging whether a communication address is stored in the second storage unit or controlling to realize actions such as equipment state setting, instruction forwarding and the like according to instruction information received by the second communication unit.
Example two
Fig. 6 is a flowchart of an address configuration method of the communication system according to the present embodiment. As shown in FIG. 6, this embodiment also provides an address configuration method of a communication system, where the communication system may be, for example, the communication system shown in FIG. 1, and includes a master device and n slave devices that are sequentially connected in series and need to perform address configuration, where n is greater than or equal to 2. The address configuration method comprises the following steps:
step 201: the master device sends an ith configuration instruction of an ith slave device, wherein i is a positive integer, and 1< i < n;
Step 202: the 1 st to i-1 st slave devices receive the i-th configuration instruction, the 1 st to i-1 st slave devices judge that address configuration is completed, the i-th configuration instruction is sequentially transmitted from the 1 st slave device to the i-th slave device, after the i-th slave device receives the i-th address configuration, the i-th slave device judges that address configuration is not completed, and a communication address carried by the i-th configuration instruction is configured as a communication address of the i-th device.
For example, when the master device desires to perform address configuration on a third slave device alone, step S201 is performed, where the master device sends a third configuration instruction of the third slave device.
Step 202 is executed, where the first slave device receives a third configuration instruction, determines that address configuration has been completed, and transmits the third configuration instruction to the second slave device. And the second slave device receives a third configuration instruction, judges that the address configuration is completed, and transmits the third configuration instruction to the third slave device. And the third slave equipment receives a third configuration instruction, judges that the address configuration is not completed, and configures the communication address carried by the third configuration instruction as the communication address of the slave equipment.
The embodiment can realize the address configuration of one slave device independently, but does not affect other slave devices, thereby facilitating the maintenance of the slave devices.
Based on this, the embodiment also provides a communication system, where the communication system includes a master device and n slave devices that are sequentially connected in series and need to perform address configuration, where n is greater than or equal to 2, and address configuration can be performed between the master device and the slave devices according to the address configuration method described above.
In summary, in the communication system and the address configuration method thereof provided in the embodiments of the present invention, a master device is sequentially connected in series with n slave devices that need to perform address configuration, the master device sequentially sends configuration instructions, each configuration instruction carries a different communication address, after each slave device receives the configuration instruction, it determines whether to complete address configuration itself, if not, configures the communication address carried by the currently received configuration instruction as its own communication address, if yes, forwards the configuration instruction to the next slave device until the last slave device completes address configuration. On one hand, the invention does not need to connect an independent signal line for addressing equipment between the master equipment and each slave equipment, reduces the port occupation of the master equipment, does not waste the hardware port resource of the master equipment, and reduces the equipment cost. On the other hand, the address configuration is carried out on the slave devices one by one in a mode that the master device sends the configuration instruction, so that the address configuration of the slave devices is ensured not to be missed, the slave devices do not need to identify the content of the configuration instruction in the configuration process, and the configuration time is saved; in addition, as the configuration instruction sent at a time only configures one slave device, the sent configuration instruction is simpler, if the previous slave device has address configuration, the configuration instruction is only directly forwarded, the configuration instruction is not needed to be analyzed, and configuration instruction bits are not needed to be complemented, so that the configuration time is further saved; in addition, the invention can realize the address configuration of one slave device independently, but does not affect other slave devices, thereby facilitating the maintenance of the slave devices. In summary, the invention can improve the configuration speed while ensuring the accuracy of address configuration, and is also convenient for the maintenance of the slave equipment.
It should be noted that, in the present description, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the system disclosed in the embodiment, the description is relatively simple because of corresponding to the method disclosed in the embodiment, and the relevant points refer to the description of the method section.
It should be further noted that although the present invention has been disclosed in the preferred embodiments, the above embodiments are not intended to limit the present invention. Many possible variations and modifications of the disclosed technology can be made by anyone skilled in the art without departing from the scope of the technology, or the technology can be modified to be equivalent. Therefore, any simple modification, equivalent variation and modification of the above embodiments according to the technical substance of the present invention still fall within the scope of the technical solution of the present invention.
It should be further understood that the terms "first," "second," "third," and the like in this specification are used merely for distinguishing between various components, elements, steps, etc. in the specification and not for indicating a logical or sequential relationship between the various components, elements, steps, etc., unless otherwise indicated.
It should also be understood that the terminology described herein is for the purpose of describing particular embodiments only, and is not intended to limit the scope of the present invention. It must be noted that, as used herein and in the appended claims, the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. For example, reference to "a step" or "an apparatus" means a reference to one or more steps or apparatuses, and may include sub-steps as well as sub-apparatuses. All conjunctions used should be understood in the broadest sense. And, the word "or" should be understood as having the definition of a logical "or" rather than a logical "exclusive or" unless the context clearly indicates the contrary. Furthermore, implementation of the methods and/or apparatus in embodiments of the invention may include performing selected tasks manually, automatically, or in combination.

Claims (16)

1. The address configuration method of the communication system is characterized in that the communication system comprises a master device and n slave devices which are connected in series in sequence and need to be subjected to address configuration, wherein n is more than or equal to 2, and the address configuration method comprises the following steps:
Step S100: starting from i=1, i being a positive integer, step S101 is performed;
Step S101: the master device sends an ith configuration instruction, and the j=1 th slave device executes step S102;
step S102: the j-th slave device receives the i-th configuration instruction, j is an integer, the j-th slave device judges whether the address configuration is completed, if the j-th slave device judges that the address configuration is not completed, the communication address carried by the i-th configuration instruction is configured as the communication address of the j-th slave device, step 103 is executed, if the j-th slave device judges that the address configuration is completed, the i-th configuration instruction is forwarded to the j+1-th slave device, j=j+1, and step S102 is returned;
Step S103: when i < n, i=i+1, and returns to step S101, i=n, the address configuration is ended.
2. The address configuration method of communication system according to claim 1, wherein there is a secure time between two adjacent ones of the configuration instructions transmitted by the master device.
3. The address configuration method of a communication system according to claim 2, wherein the secure time is an interval time between transmission of adjacent configuration instructions by the master device, the interval time configuring the communication address reservation time for the slave device.
4. The address configuration method of a communication system according to claim 1, wherein the communication system is an LED display screen driving system.
5. The address configuration method of a communication system according to claim 1, wherein the nth slave device is a last one of all the slaves connected in series in order with the master device, or a subsequent stage of the nth slave device further concatenates at least one of the slaves.
6. The address configuration method of a communication system according to claim 1, wherein the n slave devices are slave devices which are connected in series with the master device in order and need address configuration.
7. The address configuration method of a communication system according to claim 1, wherein m slave devices are further connected in series in sequence between the n slave devices and the master device, each of the m slave devices having completed address configuration, and m is a positive integer.
8. The address configuration method of a communication system according to any one of claims 1 to 7, wherein before performing step S100, the configuration method further comprises:
the master device sends a first state instruction; and
After all the slave devices receive the first state instruction, all the slave devices are set to be in an address configuration state, and the first state instruction is forwarded from the first slave device to the next slave device until the last slave device completes the address configuration state setting.
9. The address configuration method of a communication system according to any one of claims 1 to 7, wherein after the address configuration of the slave device requiring address configuration is ended, the configuration method further comprises:
The master device sends a second state instruction; and
After all the slave devices receive the second state instruction, all the slave devices exit the address configuration state, and the second state instruction is forwarded from the first slave device to the next slave device until the last slave device exits the address configuration state.
10. An address configuration method for a communication system according to any one of claims 1 to 7, wherein each of said slave devices decodes a communication address carried by said configuration instruction received as it belongs to itself to obtain a corresponding communication address.
11. The address configuration method of a communication system according to any one of claims 1 to 7, wherein a communication address and a transmission order carried by each of the configuration instructions are preset by the master device; or the communication address carried by each configuration instruction is randomly generated by the master device before being sent.
12. The address configuration method of a communication system according to claim 11, wherein the master device stores the communication address of each of the slave devices and the transmission order thereof into an address register of the master device.
13. The address configuration method of a communication system according to claim 11, wherein each of said slave devices stores the configured communication address in its own address register after completing the address configuration.
14. A communication system comprising a master device and n slave devices which are connected in series in sequence and need to be configured with addresses, wherein n is greater than or equal to 2, and the address configuration is performed between the master device and the slave devices according to the address configuration method as claimed in any one of claims 1 to 13.
15. The address configuration method of the communication system is characterized in that the communication system comprises a master device and n slave devices which are connected in series in sequence and need to be subjected to address configuration, wherein n is more than or equal to 2, and the address configuration method comprises the following steps:
step 201: the master device sends an ith configuration instruction of an ith slave device, wherein i is a positive integer, and 1< i < n;
Step 202: the 1 st to i-1 st slave devices receive the i-th configuration instruction, the 1 st to i-1 st slave devices judge that address configuration is completed, the i-th configuration instruction is sequentially transmitted from the 1 st slave device to the i-th slave device, after the i-th slave device receives the i-th address configuration, the i-th slave device judges that address configuration is not completed, and a communication address carried by the i-th configuration instruction is configured as a communication address of the i-th device.
16. A communication system, comprising a master device and n slave devices which are connected in series and need to be configured with addresses, wherein n is greater than or equal to 2, and the address configuration is performed between the master device and the slave devices according to the address configuration method as claimed in claim 15.
CN202410410672.3A 2024-04-07 Communication system and address configuration method thereof Pending CN118264556A (en)

Publications (1)

Publication Number Publication Date
CN118264556A true CN118264556A (en) 2024-06-28

Family

ID=

Similar Documents

Publication Publication Date Title
EP0101609B1 (en) Data communication method
US11784848B2 (en) Method of assigning an operative address
EP0436932A2 (en) A loop data link system and a station number setting method
CN118264556A (en) Communication system and address configuration method thereof
CN214480671U (en) One-to-many communication circuit based on SPI communication
JP2006304011A (en) Interface circuit
JPH01135150A (en) Node address setting system for network
JP3192890B2 (en) Parallel test equipment
JP2550076B2 (en) Multiple system controller
EP0569512A4 (en) Packet transmission system and method utilizing both a data bus and dedicated control lines
CN218383686U (en) Time sequence control system and equipment control system
CN113973024A (en) DMX equipment networking and configuration system
US7529268B1 (en) Multi-point electronic control system protocol
WO2021214966A1 (en) Communication device, communication system, communication method, and program
US20220188254A1 (en) Methods for identifying target slave address for serial communication interface
KR100220518B1 (en) The data structure od car lan system and clock adjusting system using that
JPS6390929A (en) Multiplex transmission equipment
CN113946369A (en) Automatic adding method, device, system, equipment and storage medium of equipment
JPH10290269A (en) Interface conversion circuit
JPH0936887A (en) Stackable hub system
CN116561025A (en) Extensible system and control method
CN115857476A (en) Calibration test method and system for vehicle controller
KR19990009281A (en) Data communication method for car LAN system
JPH10233792A (en) Polling system/method
JP2005067879A (en) Elevator transmission control device

Legal Events

Date Code Title Description
PB01 Publication