CN110995889A - Address allocation system and method - Google Patents

Address allocation system and method Download PDF

Info

Publication number
CN110995889A
CN110995889A CN201911390521.1A CN201911390521A CN110995889A CN 110995889 A CN110995889 A CN 110995889A CN 201911390521 A CN201911390521 A CN 201911390521A CN 110995889 A CN110995889 A CN 110995889A
Authority
CN
China
Prior art keywords
slave device
address information
address
master device
ith
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.)
Withdrawn
Application number
CN201911390521.1A
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911390521.1A priority Critical patent/CN110995889A/en
Publication of CN110995889A publication Critical patent/CN110995889A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • 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
    • 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
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present disclosure provides an address allocation system and method. The address allocation system comprises a master device and N slave devices, wherein the master device and the N slave devices are connected in series, each slave device comprises an input port and an output port, the input port of the 1 st slave device is electrically connected with the master device, the output port of each slave device is connected with the input port of the next adjacent slave device, and the output port of the Nth slave device is suspended; each slave device sets its own input port and output port to off state in the case of not receiving address information from the master device, stores the address information locally in the case of receiving the address information from the master device for the first time, and sets its own input port and output port to on state. The method and the device can determine the logistics connection position of the device while realizing automatic allocation of the device address, and meanwhile, the device deployment cannot be limited by space.

Description

Address allocation system and method
Technical Field
The present disclosure relates to the field of control, and in particular, to an address assignment system and method.
Background
Currently, in industrial equipment applications, there are three main scenarios for automatic allocation of equipment addresses:
1. the method is applied to the masterless communication, for example, the Controller Area Network (CAN) communication is adopted, a Media Access Control (MAC) address chip is integrated in the device as a unique mark, a central processing unit acquires and sequences MAC address information for the device, and finally the central processing unit allocates an address for the device;
2. the device is applied to master-slave communication, such as RS485, an input signal port is integrated in the device, when the input signal port detects a signal, the address configuration of a master module is responded, and the input signal is output by the master module or is output by a configured superior slave module, so that the address allocation is realized;
3. through structure and hardware design, address information is preset on the wiring board, and when a module is inserted into the wiring board, the module acquires an equipment address through the wiring board.
Disclosure of Invention
The inventors have noted that there are corresponding drawbacks in terms of automatic assignment of device addresses, whether for master-slave or for masterless communication. For example, in the above-described automatic assignment scheme for setting addresses 1, since the physical connection location of the device cannot be known, it is necessary to manually confirm which device the address of each device corresponds to. In the above-described 2 nd automatic address allocation scheme, although the physical connection location of the devices can be known definitely, the devices cannot be spaced too far apart due to the need for signal output, which limits the locations where the devices are arranged. In the above 3 rd automatic address allocation scheme, since a line bank needs to be used, the arrangement position of the devices and the number of the devices to be used are limited.
Therefore, the address allocation scheme is provided, the logistics connection position of the equipment can be determined while the automatic allocation of the equipment address is realized, and meanwhile, the problem of space limitation is avoided in equipment deployment.
According to a first aspect of embodiments of the present disclosure, there is provided an address allocation system, comprising a master device and N slave devices, the master device and the N slave devices being connected in series, wherein: each slave device comprises an input port and an output port, wherein the input port of the 1 st slave device is electrically connected with the master device, the output port of each slave device is connected with the input port of the next adjacent slave device, and the output port of the Nth slave device is suspended; each slave device sets its own input port and output port to be in an off state when not receiving address information from the master device, stores the address information locally when receiving the address information from the master device for the first time, and sets its own input port and output port to be in an on state.
In some embodiments, each slave device further includes a communication module and a switch module, wherein in each slave device, the switch module is electrically connected to the communication module, the input port, and the output port, respectively, and the switch module, in a case where address information from the master device is first received through the input port, transmits the received address information to the communication module, and sets the input port and the output port to a conductive state.
In some embodiments, the communication module in each slave device feeds back configuration confirmation information to the master device through the input port upon receiving address information from the master device.
In some embodiments, after sending address information to the ith slave device, the master device determines whether configuration confirmation information fed back by the ith slave device is received within a predetermined time, and if the configuration confirmation information fed back by the ith slave device is received within the predetermined time and the ith slave device is not the nth device, continues to send address information to the (i + 1) th slave device, where i is greater than or equal to 1 and is less than or equal to N.
In some embodiments, the master device receives the configuration confirmation information fed back by the ith slave device within a predetermined time, and stops sending address information if the ith slave device is the nth device, so as to enable the N slave devices to enter the operating mode.
In some embodiments, after sending address information to the ith slave device, if configuration confirmation information fed back by the ith slave device cannot be received within a predetermined time, the master device repeatedly executes an operation of sending address information to the ith slave device, and if configuration confirmation information fed back by the ith slave device cannot be received within a predetermined time after the operation is repeatedly executed for a predetermined number of times, performs fault alarm processing.
In some embodiments, after sending address information to the ith slave device, if the configuration confirmation information fed back by the ith slave device cannot be received within a predetermined time after the master device sends address information to the ith slave device, the master device repeatedly executes the operation of sending address information to the ith slave device, and if the configuration confirmation information fed back by the ith slave device cannot be received within the predetermined time after the operation is repeatedly executed for a predetermined time, the master device stops sending address information, so that the slave device which successfully receives address information enters an operating mode.
In some embodiments, the master device and the N slave devices communicate using a CAN bus or an RS485 bus.
According to a second aspect of the embodiments of the present disclosure, there is provided an address allocation method for an address allocation system as described in any one of the above embodiments, wherein: the master device sequentially sends address information to each slave device connected in series; each slave device stores the address information locally and sets its own input port and output port to an on state when receiving the address information from the master device for the first time, wherein the slave device sets its own input port and output port to an off state when not receiving the address information from the master device.
In some embodiments, the setting of the input port and the output port of each slave device to the on state in the case where the slave device first receives the address information from the master device includes: and the switch module in each slave device sends the received address information to the communication module and sets the input port and the output port to be in a conducting state under the condition that the address information from the master device is received through the input port for the first time.
In some embodiments, the communication module in each slave device feeds back configuration confirmation information to the master device through the input port upon receiving address information from the master device.
In some embodiments, after sending address information to the ith slave device, the master device determines whether configuration confirmation information fed back by the ith slave device is received within a predetermined time; if the configuration confirmation information fed back by the ith slave device is received within the preset time and the ith slave device is not the Nth device, the master device continues to send address information to the (i + 1) th slave device, wherein i is more than or equal to 1 and less than or equal to N.
In some embodiments, the master device receives the configuration confirmation information fed back by the ith slave device within a predetermined time, and stops sending address information if the ith slave device is the nth device, so as to enable the N slave devices to enter the operating mode.
In some embodiments, after sending address information to the ith slave device, if the configuration confirmation information fed back by the ith slave device is not received within a predetermined time, the master device repeatedly executes the operation of sending address information to the ith slave device; and if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time after the operation is repeatedly executed for the preset time, performing fault alarm processing.
In some embodiments, after sending address information to the ith slave device, if the configuration confirmation information fed back by the ith slave device is not received within a predetermined time, the master device repeatedly executes the operation of sending address information to the ith slave device; and if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time after the operation is repeatedly executed for the preset time, stopping sending the address information so as to enable the slave device which successfully receives the address information to enter the working mode.
In some embodiments, the master device and the N slave devices communicate using a CAN bus or an RS485 bus.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic diagram of an address assignment system according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an address assignment system according to another embodiment of the present disclosure;
fig. 3 is a flowchart illustrating an address assignment method according to an embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a schematic structural diagram of an address allocation system according to an embodiment of the present disclosure. As shown in fig. 1, the address allocation system includes a master device 1 and N slave devices 21-2N, N being a natural number. The master device 1 and the N slave devices 21-2N are connected in series.
In some embodiments, master 1 and N slaves communicate using a CAN bus or an RS485 bus.
As shown in fig. 1, the master device 1 includes an output port 11. Each slave device includes an input port and an output port. The input port 211 of the 1 st slave device 21 is electrically connected to the output port 11 of the master device, and the output port 212 of the 1 st slave device 21 is electrically connected to the input port 221 of the 2 nd slave device 22. Output port 222 of the 2 nd slave device 22 is electrically connected to the input port of the 3 rd slave device, and so on. The input port 2N1 of the nth slave device 2N is electrically connected to the output port of the N-1 th slave device, and the output port 2N2 of the nth slave device 2N is floating.
Each slave device sets its own input port and output port to off state when not receiving address information from the master device, stores the address information locally when receiving the address information from the master device for the first time, and sets its own input port and output port to on state.
In the address allocation system provided in the above embodiment of the present disclosure, the slave device sets its own input port and output port to the disconnected state without receiving address information from the master device. When the slave device receives the address information from the master device for the first time, the slave device sets its input port and output port to the on state. So that after the slave device receives the address information from the master device again, the slave device does not process the address information because the slave device already obtains the address information sent by the master device. At the same time, since the input port and the output port are already on, the address information can be transmitted to the next cluster device connected in series. Since the slave device at the next level can obtain the address information only after the slave device at the previous level obtains the address information, the master device can determine the physical location between the slave devices. Further, since the installation position of each slave device is determined by the communication line, the installation position of each slave device can be flexibly adjusted as necessary. For example, RS485 and CAN communications CAN reach distances of several hundred meters to 1 kilometer.
Fig. 2 is a schematic structural diagram of an address allocation system according to another embodiment of the present disclosure. Fig. 2 differs from fig. 1 in that in the embodiment shown in fig. 2 each slave device comprises, in addition to an input port and an output port, a communication module and a switch module. In each slave device, the switch module is electrically connected with the communication module, the input port and the output port respectively. In the case where the switch module does not receive address information from the host device through the input port, the input port and the output port are in an off state. If the switch module receives the address information from the main device for the first time through the input port, the switch module sends the received address information to the communication module, and sets the input port and the output port to be in a conducting state. If the switch module receives the address information from the master device again, the address information is not processed, and the input port and the output port are in a conducting state, so that the address information can be transmitted to the next slave device.
For example, as shown in fig. 2, the master device 1 transmits the first address information to the slave device 21 through the output port 11. The switch module 213 in the slave device 21 receives the address information for the first time, and sends the first address information to the communication module 214 for configuration. The switch module 213 furthermore controls the input port 211 and the output port 212 to be conductive. Next, the master device 1 transmits second address information to the slave device 22 through the output port 11. After the second address information reaches the switch module 213 of the slave device 21, the communication module 214 configures the address information, and therefore the switch module 213 does not process the second address information. Meanwhile, the second address information is transmitted to the switch module 223 of the slave 22 due to the input port 211 and the output port 212. Based on the same processing as the slave device 21, the switch module 223 will send the second address information to the communication module 224 for configuration, and will input the port 221 and output the port 222. By analogy, the master device 1 finally sends the nth address information to the switch module 2N3 in the slave device N, and the switch module 2N3 sends the nth address information to the communication module 2N4 for configuration. Since the slave N is the last slave, the switch module 2N3 still keeps the input port 2N21 and the output port 2N2 in the open state.
In some embodiments, as shown in fig. 2, in each slave device, the communication module feeds back configuration confirmation information to the master device through the input port in the case of receiving address information from the master device. For example, the communication module 224 in the slave device 22 sends configuration confirmation information to the master device 1 through the input port 221 after receiving the address information. The configuration confirmation information reaches the master device 1 through the input port 221 of the slave device 22, the output port 212 of the slave device 21, the input port 211, and the output port 11 of the master device 1. After receiving the configuration confirmation information sent by the communication module 224, the master device 1 continues to send address information to the next slave device.
In some embodiments, after sending the address information to the ith slave device, the master device 1 determines whether the configuration acknowledgement information fed back by the ith slave device is received within a predetermined time, and if the configuration acknowledgement information fed back by the ith slave device is received within the predetermined time and the ith slave device is not the nth device, continues to send the address information to the (i + 1) th slave device, where i is greater than or equal to 1 and is less than or equal to N.
In addition, if the master device 1 receives the configuration confirmation information fed back by the ith slave device within the predetermined time and the ith slave device is the nth device, the transmission of the address information is stopped so as to enable the N slave devices to enter the working mode. That is, if all the N slave devices complete the address configuration, the configuration process is ended, so that the slave devices enter the operating mode.
In some embodiments, after sending the address information to the ith slave device, if the configuration confirmation information fed back by the ith slave device is not received within the predetermined time, the master device 1 repeatedly executes the operation of sending the address information to the ith slave device, and if the configuration confirmation information fed back by the ith slave device is still not received within the predetermined time after repeatedly executing the operation for the predetermined times, performs the fault alarm processing.
For example, the master device 1 sends the address information to the 7 th slave device after receiving the configuration confirmation information sent by the 6 th slave device, but receives the configuration confirmation information fed back by the 7 th slave device within a predetermined time. The configuration confirmation information fed back by the 7 th slave device cannot be effectively received even if the configuration confirmation information is repeatedly sent for 3 times. In this case, the configuration process is stopped, and a failure alarm process is performed, so that the worker performs failure detection on the 7 th slave device.
In other embodiments, after sending the address information to the ith slave device, if the configuration acknowledgement information fed back by the ith slave device is not received within the predetermined time after the master device 1 repeatedly executes the operation of sending the address information to the ith slave device, and if the configuration acknowledgement information fed back by the ith slave device is still not received within the predetermined time after the operation is repeatedly executed for the predetermined times, the master device 1 stops sending the address information, so that the slave device which successfully receives the address information enters the operating mode.
For example, the master device 1 sends the address information to the 7 th slave device after receiving the configuration confirmation information sent by the 6 th slave device, but receives the configuration confirmation information fed back by the 7 th slave device within a predetermined time. The configuration confirmation information fed back by the 7 th slave device cannot be effectively received even if the configuration confirmation information is repeatedly sent for 3 times. In this case, the configuration process is stopped, so that the first 6 slave devices enter the working mode, thereby improving the working efficiency of the system.
Fig. 3 is a flowchart illustrating an address assignment method according to an embodiment of the disclosure. The address allocation method is used for the address allocation system as described in any one of the embodiments of fig. 1 or fig. 2.
In step 301, the master device sends address information to each serially connected slave device in turn.
In step 302, each slave device stores the address information locally and sets its input port and output port to an on state in case of receiving the address information from the master device for the first time, wherein the slave device sets its input port and output port to an off state in case of not receiving the address information from the master device.
In some embodiments, the master device and the serially connected slave devices communicate using a CAN bus or an RS485 bus.
In some embodiments, each slave device, in case of first receiving address information from the master device, setting its input port and output port to the on state comprises: the switch module in each slave device, in the case of first receiving address information from the master device through the input port, transmits the received address information to the communication module, and sets the input port and the output port to a conductive state.
In some embodiments, the communication module in each slave device feeds back configuration confirmation information to the master device through the input port upon receiving the address information from the master device.
In some embodiments, after sending the address information to the ith slave device, the master device determines whether configuration confirmation information fed back by the ith slave device is received within a predetermined time. If the configuration confirmation information fed back by the ith slave device is received within the preset time, and the ith slave device is not the Nth device, the master device continues to send address information to the (i + 1) th slave device, wherein i is more than or equal to 1 and less than or equal to N.
In some embodiments, the master device receives the configuration confirmation information fed back by the ith slave device within a predetermined time, and stops sending the address information if the ith slave device is the nth device, so as to enable the N slave devices to enter the operating mode.
In some embodiments, after sending the address information to the ith slave device, if the configuration confirmation information fed back by the ith slave device is not received within the predetermined time, the master device repeatedly executes the operation of sending the address information to the ith slave device. And if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time after the operation is repeatedly executed for the preset time, performing fault alarm processing.
In some embodiments, after sending the address information to the ith slave device, if the configuration confirmation information fed back by the ith slave device is not received within the predetermined time, the master device repeatedly executes the operation of sending the address information to the ith slave device. And if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time after the operation is repeatedly executed for the preset time, stopping sending the address information so as to enable the slave device which successfully receives the address information to enter the working mode.
By implementing the present disclosure, the data stream is cut off by using the communication port inside the device, so that only one slave device can respond to the address configuration information, and the physical position between the slave devices can be determined because the communication signal input of the slave device at the next level is determined by the slave device at the previous level. In addition, because the mode of intercepting communication is adopted, the installation position of each device is determined by a communication line, such as RS485 and CAN communication, the interval between hundreds of meters and 1 kilometer CAN be reached, and the positions of the master device and the slave device CAN be flexibly set.
The description of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (16)

1. An address assignment system comprising a master device and N slave devices, the master device and the N slave devices being connected in series, wherein:
each slave device comprises an input port and an output port, wherein the input port of the 1 st slave device is electrically connected with the master device, the output port of each slave device is connected with the input port of the next adjacent slave device, and the output port of the Nth slave device is suspended;
each slave device sets its own input port and output port to off state when not receiving address information from the master device, stores the address information locally when first receiving the address information from the master device, and sets its own input port and output port to on state.
2. The address assignment system of claim 1,
each slave device further comprises a communication module and a switch module, wherein in each slave device, the switch module is electrically connected with the communication module, the input port and the output port respectively, and the switch module sends the received address information to the communication module and sets the input port and the output port to be in a conducting state when the switch module receives the address information from the master device for the first time through the input port.
3. The address allocation system of claim 2,
and the communication module in each slave device feeds back configuration confirmation information to the master device through the input port under the condition of receiving the address information from the master device.
4. The address allocation system of claim 3,
after sending address information to the ith slave device, the master device judges whether configuration confirmation information fed back by the ith slave device is received within a preset time, if the configuration confirmation information fed back by the ith slave device is received within the preset time and the ith slave device is not the Nth device, the master device continues to send the address information to the (i + 1) th slave device, and i is more than or equal to 1 and less than or equal to N.
5. The address allocation system of claim 4,
and the master device receives the configuration confirmation information fed back by the ith slave device within the preset time, and stops sending the address information under the condition that the ith slave device is the Nth device, so that the N slave devices enter the working mode.
6. The address allocation system of claim 4,
after sending address information to the ith slave device, if configuration confirmation information fed back by the ith slave device cannot be received within preset time after the master device sends the address information to the ith slave device, the master device repeatedly executes the operation of sending the address information to the ith slave device, and if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time after the operation is repeatedly executed for preset times, fault alarm processing is carried out.
7. The address allocation system of claim 4,
after sending address information to the ith slave device, if configuration confirmation information fed back by the ith slave device cannot be received within preset time after the master device sends the address information to the ith slave device, the operation of sending the address information to the ith slave device is repeatedly executed, and if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time after the operation is repeatedly executed for preset times, the sending of the address information is stopped, so that the slave device which successfully receives the address information enters an operating mode.
8. The address allocation system according to any one of claims 1-7,
and the master device and the N slave devices realize communication by utilizing a CAN bus or an RS485 bus.
9. An address allocation method for an address allocation system according to any one of claims 1 to 8, wherein:
the master device sequentially sends address information to each slave device connected in series;
each slave device stores the address information locally and sets its own input port and output port to an on state when receiving the address information from the master device for the first time, wherein the slave device sets its own input port and output port to an off state when not receiving the address information from the master device.
10. The address assignment method according to claim 9, wherein each slave device stores address information locally in a case where it receives the address information from the master device for the first time, and setting its own input port and output port to the on state includes:
and the switch module in each slave device sends the received address information to the communication module and sets the input port and the output port to be in a conducting state under the condition that the address information from the master device is received through the input port for the first time.
11. The address assignment method of claim 10, further comprising:
and the communication module in each slave device feeds back configuration confirmation information to the master device through the input port under the condition of receiving the address information from the master device.
12. The address assignment method of claim 11, further comprising:
after sending address information to the ith slave device, the master device judges whether configuration confirmation information fed back by the ith slave device is received within preset time;
if the configuration confirmation information fed back by the ith slave device is received within the preset time and the ith slave device is not the Nth device, the master device continues to send address information to the (i + 1) th slave device, wherein i is more than or equal to 1 and less than or equal to N.
13. The address assignment method of claim 12, further comprising:
and the master device receives the configuration confirmation information fed back by the ith slave device within the preset time, and stops sending the address information under the condition that the ith slave device is the Nth device, so that the N slave devices enter the working mode.
14. The address assignment method of claim 12, further comprising:
after the master device sends the address information to the ith slave device, if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time, the master device repeatedly executes the operation of sending the address information to the ith slave device;
and if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time after the operation is repeatedly executed for the preset time, performing fault alarm processing.
15. The address assignment method of claim 12, further comprising:
after the master device sends the address information to the ith slave device, if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time, the master device repeatedly executes the operation of sending the address information to the ith slave device;
and if the configuration confirmation information fed back by the ith slave device cannot be received within the preset time after the operation is repeatedly executed for the preset time, stopping sending the address information so as to enable the slave device which successfully receives the address information to enter the working mode.
16. The address allocation method according to any one of claims 9 to 15,
and the master device and the N slave devices realize communication by utilizing a CAN bus or an RS485 bus.
CN201911390521.1A 2019-12-30 2019-12-30 Address allocation system and method Withdrawn CN110995889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911390521.1A CN110995889A (en) 2019-12-30 2019-12-30 Address allocation system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911390521.1A CN110995889A (en) 2019-12-30 2019-12-30 Address allocation system and method

Publications (1)

Publication Number Publication Date
CN110995889A true CN110995889A (en) 2020-04-10

Family

ID=70078641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911390521.1A Withdrawn CN110995889A (en) 2019-12-30 2019-12-30 Address allocation system and method

Country Status (1)

Country Link
CN (1) CN110995889A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426214A (en) * 2022-09-15 2022-12-02 上海捷勃特机器人有限公司 Number distribution system and method for slave device, slave device and readable medium
CN116541335A (en) * 2023-07-05 2023-08-04 安擎计算机信息股份有限公司 Method for distributing serial addresses and electronic equipment
CN116599935A (en) * 2023-05-12 2023-08-15 广州菲利斯太阳能科技有限公司 Method for realizing automatic address allocation of multiple devices

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102007028926B3 (en) * 2007-06-22 2008-10-16 Siemens Ag Slave device for use in a series connection and bus arrangement with series connection in a sub-bus system
CN101630298A (en) * 2009-07-28 2010-01-20 中兴通讯股份有限公司 Serial bus slave address setting system
CN109218155A (en) * 2018-09-13 2019-01-15 深圳益邦物联科技有限公司 Address automatic distribution system and method based on Modbus rtu protocol
CN109359073A (en) * 2018-09-18 2019-02-19 深圳吉迪思电子科技有限公司 A kind of communication between devices method and apparatus topological structure based on spi bus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102007028926B3 (en) * 2007-06-22 2008-10-16 Siemens Ag Slave device for use in a series connection and bus arrangement with series connection in a sub-bus system
CN101630298A (en) * 2009-07-28 2010-01-20 中兴通讯股份有限公司 Serial bus slave address setting system
CN109218155A (en) * 2018-09-13 2019-01-15 深圳益邦物联科技有限公司 Address automatic distribution system and method based on Modbus rtu protocol
CN109359073A (en) * 2018-09-18 2019-02-19 深圳吉迪思电子科技有限公司 A kind of communication between devices method and apparatus topological structure based on spi bus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426214A (en) * 2022-09-15 2022-12-02 上海捷勃特机器人有限公司 Number distribution system and method for slave device, slave device and readable medium
CN115426214B (en) * 2022-09-15 2023-07-04 上海捷勃特机器人有限公司 Number distribution system, method for slave device, slave device and readable medium
CN116599935A (en) * 2023-05-12 2023-08-15 广州菲利斯太阳能科技有限公司 Method for realizing automatic address allocation of multiple devices
CN116541335A (en) * 2023-07-05 2023-08-04 安擎计算机信息股份有限公司 Method for distributing serial addresses and electronic equipment
CN116541335B (en) * 2023-07-05 2023-09-19 安擎计算机信息股份有限公司 Method for distributing serial addresses and electronic equipment

Similar Documents

Publication Publication Date Title
CN110995889A (en) Address allocation system and method
US4628437A (en) Telecontrol system
CN105677608B (en) A kind of how main RS485 bus arbitration method and system
CN100477670C (en) Automatic distributing and setting up address method based on master-slave communication mode
KR20010022555A (en) Method and system for automatic address allocation and telecommunication stations which can be inserted into the bus system or within the framework of said method
CN104079677A (en) Automatic allocation method of RS485 communication port address
CN107205063A (en) A kind of device conflict solution of Intelligent housing bus
US11341077B2 (en) Method for the assignment of addresses by a master unit to a number of slave units
CN103186440B (en) Detect subcard method, apparatus and system in place
KR20140059149A (en) Communication system
CN210518417U (en) Address allocation system
CN114500472B (en) Method for automatically distributing RS485 communication address
US20090240859A1 (en) Automatic address setting system
JP2005277978A (en) Method and device for automatically setting identification number
CN112165422B (en) Automatic address matching method for one-master multi-slave temperature control system
CN102347878A (en) Multi-point communication system, method and equipment
CN102611600A (en) Method and device for locating short circuit position of CAN (Controller Area Network) network
CN110663226B (en) Data bus user device
CN107071076B (en) Equipment address configuration method, device and system in communication system
US8566630B2 (en) Apparatus, methods and computer program products supporting automatic network identification for power supplies
CN102739489A (en) Method for quickly querying equipment state of synchronous bus
CN104283739A (en) Detection method and device based on distributed ISSU
CN101159641A (en) CAN bus network and CAN bus extension method
CN108337143B (en) Communication structure, communication system, and communication method
CN110710165B (en) Method for determining data bus user equipment of local bus and local bus master control device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200410