CN111510358A - Method, device and computer program product for configuring a slave device - Google Patents

Method, device and computer program product for configuring a slave device Download PDF

Info

Publication number
CN111510358A
CN111510358A CN201910093244.1A CN201910093244A CN111510358A CN 111510358 A CN111510358 A CN 111510358A CN 201910093244 A CN201910093244 A CN 201910093244A CN 111510358 A CN111510358 A CN 111510358A
Authority
CN
China
Prior art keywords
slave device
configuration information
address
slave
serial number
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
CN201910093244.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.)
Schneider Electric Industries SAS
Original Assignee
Schneider Electric Industries SAS
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 Schneider Electric Industries SAS filed Critical Schneider Electric Industries SAS
Priority to CN201910093244.1A priority Critical patent/CN111510358A/en
Publication of CN111510358A publication Critical patent/CN111510358A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks

Abstract

Embodiments of the present disclosure relate to a method, device and computer program product for configuring a slave device. The method comprises obtaining, at a master device, identity information associated with the slave device; generating configuration information specific to the slave device based on the identity information; and sending the configuration information to the slave device to configure the address of the slave device. In this way, the slave-specific private addresses can be configured in a simple manner, saving hardware overhead and system costs.

Description

Method, device and computer program product for configuring a slave device
Technical Field
Embodiments of the present disclosure relate generally to bus communications and, more particularly, relate to a method, apparatus, and computer program product for configuring a slave device.
Background
Modbus is a serial communication protocol that has become an industry standard for industrial field communication protocols and is now a common connection between industrial electronic devices.
The Modbus protocol is a master/slave architecture protocol. One node is the master node and the other nodes participating in communications using the Modbus protocol are slave nodes. Each slave device has a unique address. One ModBus command contains the Modbus address of the device intended to execute. All devices receive the command, but only the device at the specified location executes and responds to the command, except for address 0. Since the command specifying address 0 is a broadcast command in the Modbus protocol, all devices receiving the command will operate, but will not respond to the command.
Traditionally, the configuration of the address for the slave device has been accomplished using knobs or Human Machine Interface (HMI), which requires a significant amount of physical device hardware. As the number of slave devices increases, the required physical device hardware causes a significant increase in hardware cost overhead.
Disclosure of Invention
Embodiments of the present disclosure relate to a method, device and computer program product for configuring a slave device.
In a first aspect of embodiments of the present disclosure, a method for configuring a slave device is provided. The method comprises the following steps: obtaining, at a master device, identity information associated with the slave device; generating configuration information specific to the slave device based on the identity information; and sending the configuration information to the slave device to configure the address of the slave device.
In a second aspect of embodiments of the present disclosure, a method for configuring a slave device is provided. The method includes receiving configuration information from a master device specific to the slave device, the configuration information generated by the master device based on identity information associated with the slave device; determining whether the configuration information matches the slave device; and in response to the configuration information matching the slave device, configuring an address of the slave device based on the configuration information.
In a third aspect of the disclosed embodiments, a master device is provided. The master device includes at least one processor; and at least one memory including computer program instructions, the at least one memory and the computer program instructions configured to, with the at least one processor, cause the master device to obtain identity information associated with the slave device; generating configuration information specific to the slave device based on the identity information; and sending the configuration information to the slave device to configure the address of the slave device.
In a fourth aspect of embodiments of the present disclosure, a slave device is provided. The slave device includes at least one processor; and at least one memory including computer program instructions, the at least one memory and the computer program instructions configured to, with the at least one processor, cause the slave device to receive configuration information from a master device specific to the slave device, the configuration information generated by the master device based on identity information associated with the slave device; determining whether the configuration information matches the slave device; and in response to the configuration information matching the slave device, configuring an address of the slave device based on the configuration information.
In a fifth aspect of the disclosure, there is provided a computer program product tangibly stored on a non-transitory computer-readable medium and comprising machine executable instructions that, when executed, cause a machine to perform the steps of the method of the first aspect described above.
In a sixth aspect of the present disclosure, there is provided a computer program product tangibly stored on a non-transitory computer-readable medium and comprising machine executable instructions that, when executed, cause a machine to perform the steps of the method of the first aspect described above.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the disclosure, nor is it intended to be used to limit the scope of the disclosure.
Drawings
The above and other objects, features and advantages of the embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 illustrates a schematic diagram of an exemplary system 100 in which embodiments of the present disclosure may be implemented;
fig. 2 shows a schematic diagram of a process 200 of a communication method according to an embodiment of the disclosure.
Fig. 3 shows a flow diagram of a method 300 according to an embodiment of the present disclosure.
Fig. 4 shows a flow diagram of a method 400 according to an embodiment of the present disclosure.
Fig. 5 illustrates a block diagram of an example device 500 that may be used to implement embodiments of the present disclosure.
Detailed Description
Hereinafter, various exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that the drawings and description relate to exemplary embodiments only. It is noted that from the following description, alternative embodiments of the structures and methods disclosed herein are readily contemplated and may be employed without departing from the principles of the present disclosure as claimed.
It should be understood that these exemplary embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the present disclosure, and are not intended to limit the scope of the present disclosure in any way.
The terms "including," comprising, "and the like, as used herein, are to be construed as open-ended terms, i.e.," including/including but not limited to. The term "based on" is "based, at least in part, on". The term "some embodiments" means "at least some embodiments"; the term "another embodiment" means "at least one additional embodiment". Relevant definitions for other terms will be given in the following description.
Fig. 1 illustrates a schematic diagram of an exemplary system 100 in which embodiments of the present disclosure may be implemented.
As shown in FIG. 1, a master device 110 and a plurality of slave devices 120-1, 120-2, 120-3, and 120-4 are included in a system 100. The slave devices 120-1, 120-2, 120-3, and 120-4 are connected to the master device 110 through a bus, thereby enabling communication with the master device. Communication between the master device 110 and the plurality of slave devices 120-1, 120-2, 120-3, and 120-4 (hereinafter collectively referred to as slave devices 120) shown in FIG. 1 may employ, for example, a Modbus bus communication protocol. Each slave device 120 has a unique address.
In the present disclosure, the master device 110 may be regarded as a device acting as a master node in an industrial control system, such as the system 100, for example. The slave device 120 may for example be seen as a device acting as a slave node in an industrial control system, e.g. in the system 100. For example, the slave device 120 may be a smart meter, a sensor, a smart building, and the like.
It should be understood that the number of slave devices shown in fig. 1 is merely exemplary and is not intended to limit the scope of the present application. Any number of slave devices is possible, as long as the system 100 allows.
To enable communication between the master device 110 and the slave device 120 to enable the master device 110 to send control signals to the slave device 120 or to receive information, such as data collection information, from the slave device 120. The master device 110 needs to know the communication address specific to the slave device 120.
As described above, currently, under a system architecture employing the Modbus protocol, the master device 110 needs to install a large amount of physical hardware, such as a knob or a human-machine interface (HMI) to configure the communication address of the slave device 120, so as to realize communication between the master device 110 and the slave device 120. This approach requires a large amount of physical device hardware, resulting in a large hardware cost overhead.
In view of the above problems, embodiments of the present disclosure provide a method for configuring slave devices and corresponding master and slave devices, such that the master devices can configure slave-specific private communication addresses in a simple manner using the Modbus bus communication protocol without additional physical hardware. In this way, hardware overhead and system cost are saved.
The principles and implementations of the present disclosure will be described in detail below with reference to fig. 2, where fig. 2 illustrates a process 200 according to an example embodiment of the present disclosure. For discussion purposes, process 200 will be described with reference to fig. 1. Process 200 may involve a configuration method of slave device 120.
As shown in fig. 2, the master device 110 obtains 210 identity information associated with the slave device 120. In the system 100, the identity information of the slave devices 120 may be obtained, for example, from factory settings of the slave devices 120, each slave device 120 having unique identity information.
In some embodiments, the master device 110 may obtain the serial number of the slave device 120. In some embodiments, the master device 110 may also obtain, for example, an index to a register set associated with the serial number of the slave device in the slave device 120, the register set being used to configure the communication address.
Generally, there are several registers at each slave device 120 to store data that the slave device 120 needs to save. Taking a smart meter as an example, its register may store parameters related to voltage, current, etc., for example. Further, for each slave device 120, there are several registers for holding the serial number of the slave device 120, and a register for storing the communication address of the slave device 120.
For each slave device 120, there is a list, hereinafter referred to as a register table, for recording the type of register set that the slave device 120 has. The register table may also be obtained from factory settings of the slave device 120. An example of a list of register sets associated with the serial number of the slave device 120 is shown in the table below.
Table 1: register set list with slave device 120
Figure BDA0001963855850000051
As shown in table 1, registers 3005 to 3005+ n store serial numbers of slave devices, and register 3005+ n +1 is used to store a specific communication address specific to the slave device to be configured for the slave device 120 by the master device 110. In other words, the indexes of the register sets associated with the serial numbers of the slave devices in the slave device 120 are 3005 to 3005+ n.
It should be understood that master device 110 may also obtain other identity information, such as other aspects of the index of the register set, for example, if desired.
Once the master device 110 acquires the identity information of the slave device 120, configuration information specific to the slave device 120 is generated based on the identity information. To configure the address of the slave device 120, the master device 110 sends 220 the configuration information to the slave device 120.
In some embodiments, master device 110 may send configuration information to each slave device 120 via a broadcast address for communication with slave devices 120. The broadcast address under the Modbus protocol is "0". Master device 110 may send configuration information to each slave device 120, for example, via bus 130.
In some embodiments, master device 110 may send a private communication address specific to slave device 120. In some embodiments, master device 110 may, for example, send a start address and an end address of a register set associated with a sequence number in slave device 120.
In some embodiments, master device 110 may send the configuration information shown in the table below to slave device 120.
Table 2: configuration information
Figure BDA0001963855850000061
In some embodiments, as shown in table 2, in addition to the private communication address specific to the slave device 120 and the start and end addresses of the register set associated with the serial number in the slave device 120. The configuration information may further include, for example, an address configured in a factory setting of the slave device 120, a function code of the configuration information, data of each bit of a serial number of the slave device 120, and information of Cyclic Redundancy Check (CRC).
In the above, it has been mentioned that by broadcasting the address, the master device 110 may send the configuration information to each slave device 120, e.g. over the bus 130. Although slave device 120 may not reply to a message sent by the broadcast address, slave device 120 may be configured with the received configuration information once slave device 120 (e.g., slave device 120-1) finds that the configuration information is specific to slave device 120. Conversely, once slave device 120 (e.g., slave device 120-2) determines that the configuration information is not for configuring slave device 120, it discards the configuration information. This ensures that the slave device 120 receives configuration information that matches itself accurately and uses the configuration information to configure the communication address.
In some embodiments, the slave device 120 may receive a private communication address specific to the slave device, a serial number of the slave device 120, and a start address and an end address of a register set associated with the serial number in the slave device 120.
Upon receiving the configuration information from the slave device 120, the slave device 120 determines 230 whether the configuration information matches the slave device 120.
In some embodiments, the slave device 120 may retrieve a register set table associated with its own serial number. As already mentioned above, the register set table is stored at the slave device 120 and may indicate the serial number of the slave device. The slave device 120 may determine the validity of the serial number of the slave device in the configuration information and the start address and the end address of the register set associated with the serial number in the slave device based on the register set table. If the validity is successfully verified, slave device 120 may determine that the configuration information matches the slave device.
In some embodiments, the slave device 120 may, for example, compare a serial number stored in a register set table with the serial number of the slave device in the configuration information. If the two serial numbers are identical, the serial number of the slave device in the configuration information is considered to be valid, so that the configuration information can be considered to be matched with the slave device 120. Since the serial number that each slave device 120 has is unique.
If it is determined that the configuration information matches the slave device 120, the slave device 120 configures an address of the slave device 120 based on the configuration information.
In some embodiments, slave device 120 may obtain a private communication address specific to slave device 120 from the configuration information and configure the private communication address as the address of slave device 120.
In this way, the specific communication address specific to the slave device 120 can be accurately configured within the framework of the Modbus bus communication protocol in a simple manner without the use of additional hardware.
It has been mentioned above that the slave device 120 is able to receive the configuration information sent via the broadcast address and configure the slave device 120 if the configuration information matches. However, the slave device 120 does not reply with information from the broadcast address. That is, the master device 110 does not know whether the slave device 120 successfully configured the private communication address. Therefore, the master device 110 needs to further verify whether the previously transmitted configuration information of the slave device 120 is accepted by the slave device 120 based on the private address previously configured for the slave device 120.
The master device 110 may send 240 the test information to the slave device 120 via a private communication address specific to the slave device 120. If the slave device 120 receives the test information via the private communication address, a reply message is sent 250 to the master device 110. Once the master device 110 receives the reply information, it can be determined that the address of the slave device 120 is successfully configured.
In this manner, the master device can configure the slave-specific communication addresses in a simple manner using the Modbus bus communication protocol without requiring additional physical hardware, thereby saving hardware overhead and system cost.
Fig. 3 shows a flow diagram of a communication method 300 according to an embodiment of the present disclosure. In some embodiments, the method 300 may be implemented by the master device 110 in the system 100, for example, may be implemented by a processor or processing unit of the master device 110. In other embodiments, the method 300 may also be implemented by a computing device separate from the master device 110, or may be implemented by other units in the system 100. For ease of discussion, the method 300 will be discussed in conjunction with FIG. 1.
At 310, the master device 110 obtains identity information associated with the slave device 120.
In some embodiments, master device 110 may obtain the following: a serial number of the slave device; and an index of a register set for configuring a communication address in the slave device in association with the serial number.
At 320, based on the identity information, the master device 110 generates configuration information specific to the slave device 120.
At 330, the master device 110 sends configuration information to the slave device 120 to configure the address of the slave device 120.
In some embodiments, master device 110 may send configuration information to slave device 120 via a broadcast address used for communication between master device 110 and slave device 120.
In some embodiments, master device 110 may send the following: a slave device specific private communication address; a serial number of the slave device; and a start address and an end address of a register set associated with the sequence number in the slave device.
In some embodiments, master device 110 also sends test information to the slave device via a private communication address specific to slave device 120. If the master device 110 receives the reply information from the slave device 120, the master device 110 determines that the address of the slave device is successfully configured.
Fig. 4 shows a flow diagram of a communication method 400 according to an embodiment of the present disclosure. In some embodiments, the method 400 may be implemented by the slave device 120 in the system 100, for example, may be implemented by a processor or processing unit of the slave device 120. In other embodiments, method 400 may also be implemented by a computing device separate from slave device 120, or may be implemented by other units in system 100. For ease of discussion, the method 400 will be discussed in conjunction with FIG. 1.
At 410, the slave device 120 receives slave-specific configuration information from the master device. The configuration information is generated by the master device based on identity information associated with the slave device.
In some embodiments, slave device 120 may receive the following: a slave device specific private communication address; a serial number of the slave device; and a start address and an end address of a register set associated with the sequence number in the slave device.
In some embodiments, slave device 120 may receive configuration information from the master device via a broadcast address used for communication between master device 110 and slave device 120.
At 420, the slave device 120 determines whether the configuration information matches the slave device.
In some embodiments, the slave device 120 may retrieve a register set table associated with the serial number of the slave device. The register set table is stored at the slave device and indicates a serial number of the slave device. The slave device 120 may determine the validity of the serial number of the slave device in the configuration information and the start address and the end address of the register set associated with the serial number in the slave device based on the register set table. If the validity is successfully verified, slave device 120 may determine that the configuration information matches the slave device.
At 430, if the slave device 120 determines that the configuration information matches the slave device, the slave device 120 configures an address of the slave device based on the configuration information.
In some embodiments, the slave device 120 may obtain a slave-device-specific private communication address from the configuration information and configure the private communication address as the address of the slave device.
In some embodiments, slave device 120 may also receive test information from master device 110, which the master device sent using the private communication address. In addition, the slave device 120 may also send reply information to the master device.
Fig. 5 shows a schematic block diagram of a device 500 that may be used to implement embodiments of the present disclosure. As shown in fig. 5, device 500 includes a Central Processing Unit (CPU)501 that may perform various appropriate actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM)502 or loaded from a storage unit 504 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The CPU501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The various processes and processes described above, such as method 500, may be performed by processing unit 501. For example, in some embodiments, the method 500 may be implemented as a computer software program tangibly embodied in a machine program product, such as the storage unit 504. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by CPU501, one or more steps of method 500 described above may be performed.
The present disclosure may be methods, apparatus, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for carrying out various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
Computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including AN object oriented programming language such as Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" language or similar programming languages.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer program product in which the instructions are stored comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods, apparatus, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described various embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (24)

1. A method of configuring a slave device, comprising:
obtaining, at a master device, identity information associated with the slave device;
generating configuration information specific to the slave device based on the identity information; and
sending the configuration information to the slave device to configure an address of the slave device.
2. The method of claim 1, wherein obtaining the identity information comprises obtaining:
a serial number of the slave device; and
an index of a register set for configuring a communication address in the slave device associated with the serial number.
3. The method of claim 1, wherein sending the configuration information comprises:
configuration information is sent to the slave device via a broadcast address, the broadcast address being used for communication between the master device and the slave device.
4. The method of claim 1, wherein sending the configuration information comprises sending:
a private communication address specific to the slave device;
a serial number of the slave device; and
a start address and an end address of a register set associated with the sequence number in the slave device.
5. The method of claim 1, further comprising:
sending test information to the slave device via a private communication address specific to the slave device; and
in response to receiving reply information from the slave device, determining that the address of the slave device is successfully configured.
6. A method for configuring a slave device, comprising:
receiving configuration information from a master device specific to the slave device, the configuration information generated by the master device based on identity information associated with the slave device;
determining whether the configuration information matches the slave device; and
in response to the configuration information matching the slave device, configuring an address of the slave device based on the configuration information.
7. The method of claim 6, wherein receiving the configuration information comprises:
configuration information from a master device is received via a broadcast address used for communication between the master device and the slave device.
8. The method of claim 6, wherein receiving the configuration information comprises receiving:
a private communication address specific to the slave device;
a serial number of the slave device; and
a start address and an end address of a register set associated with the sequence number in the slave device.
9. The method of claim 6, wherein determining whether the configuration information matches the slave device comprises:
obtaining a register set table associated with a serial number of the slave device, the register set table stored at the slave device and indicative of the serial number of the slave device;
determining validity of the serial number of the slave device and a start address and an end address of a register set associated with the serial number in the slave device in the configuration information based on the register set table; and
in response to the validity being successfully verified, determining that the configuration information matches the slave device.
10. The method of claim 6, wherein configuring the address of the slave device comprises:
obtaining a private communication address specific to the slave device from the configuration information;
configuring the private communication address as the address of the slave device.
11. The method of claim 6, further comprising:
receiving test information from the master device, the test information being sent by the master device using the private communication address; and
and sending response information to the main equipment.
12. A master device, comprising:
at least one processor; and
at least one memory including computer program instructions, the at least one memory and the computer program instructions configured to, with the at least one processor, cause the master device to:
obtaining identity information associated with a slave device;
generating configuration information specific to the slave device based on the identity information; and
sending the configuration information to the slave device to configure an address of the slave device.
13. The apparatus of claim 12, wherein the master device is caused to obtain the identity information by:
the following are obtained:
a serial number of the slave device; and
an index of a register set for configuring a communication address in the slave device associated with the serial number.
14. The device of claim 12, wherein the master device is caused to send the configuration information by:
configuration information is sent to the slave device via a broadcast address, the broadcast address being used for communication between the master device and the slave device.
15. The device of claim 12, wherein the master device is caused to send the configuration information by:
the following are sent:
a private communication address specific to the slave device;
a serial number of the slave device; and
a start address and an end address of a register set associated with the sequence number in the slave device.
16. The apparatus of claim 12, wherein the at least one memory and the computer program instructions are further configured to, with the at least one processor, cause the master device to:
sending test information to the slave device via a private communication address specific to the slave device; and
in response to receiving reply information from the slave device, determining that the address of the slave device is successfully configured.
17. A slave device, comprising:
at least one processor; and
at least one memory including computer program instructions, the at least one memory and the computer program instructions configured to, with the at least one processor, cause the slave device to:
receiving configuration information from a master device specific to the slave device, the configuration information generated by the master device based on identity information associated with the slave device;
determining whether the configuration information matches the slave device; and
in response to the configuration information matching the slave device, configuring an address of the slave device based on the configuration information.
18. The apparatus of claim 17, wherein the slave device is caused to receive the configuration information by:
configuration information from a master device is received via a broadcast address used for communication between the master device and the slave device.
19. The apparatus of claim 17, wherein the slave device is caused to receive the configuration information by:
the following are received:
a private communication address specific to the slave device;
a serial number of the slave device; and
a start address and an end address of a register set associated with the sequence number in the slave device.
20. The device of claim 17, wherein the slave device is caused to determine whether the configuration information matches the slave device by:
obtaining a register set table associated with a serial number of the slave device, the register set table stored at the slave device and indicative of the serial number of the slave device;
determining validity of the serial number of the slave device and a start address and an end address of a register set associated with the serial number in the slave device in the configuration information based on the register set table; and
in response to the validity being successfully verified, determining that the configuration information matches the slave device.
21. The device of claim 17, wherein the slave device is caused to configure the address of the slave device by:
obtaining a private communication address specific to the slave device from the configuration information;
configuring the private communication address as the address of the slave device.
22. The apparatus of claim 17, wherein the at least one memory and the computer program instructions are further configured to, with the at least one processor, cause the slave device to:
receiving test information from the master device, the test information being sent by the master device using the private communication address; and
and sending response information to the main equipment.
23. A computer readable medium comprising machine executable instructions that when executed cause a machine to perform the method of any one of claims 1-5.
24. A computer readable medium comprising machine executable instructions which, when executed, cause a machine to perform the method of any one of claims 6 to 11.
CN201910093244.1A 2019-01-30 2019-01-30 Method, device and computer program product for configuring a slave device Pending CN111510358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910093244.1A CN111510358A (en) 2019-01-30 2019-01-30 Method, device and computer program product for configuring a slave device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910093244.1A CN111510358A (en) 2019-01-30 2019-01-30 Method, device and computer program product for configuring a slave device

Publications (1)

Publication Number Publication Date
CN111510358A true CN111510358A (en) 2020-08-07

Family

ID=71863840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910093244.1A Pending CN111510358A (en) 2019-01-30 2019-01-30 Method, device and computer program product for configuring a slave device

Country Status (1)

Country Link
CN (1) CN111510358A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531423A (en) * 2021-12-28 2022-05-24 上海安浦鸣志自动化设备有限公司 Node address allocation method, storage medium and bus network
CN114900429A (en) * 2022-07-12 2022-08-12 浙江正泰物联技术有限公司 Equipment communication parameter configuration method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173013A1 (en) * 2012-12-19 2014-06-19 Motech Industries, Inc. Method for setting addresses of slave devices in communication network
CN104410557A (en) * 2014-12-25 2015-03-11 深圳中科讯联科技有限公司 Dynamic networking method and communication method based on RS-485
CN104964399A (en) * 2015-07-21 2015-10-07 珠海格力电器股份有限公司 Address allocation method and device for air conditioning equipment
CN106060187A (en) * 2016-05-26 2016-10-26 杭州华三通信技术有限公司 Address allocation methods and devices
CN106789498A (en) * 2016-12-05 2017-05-31 广州视源电子科技股份有限公司 The network address assignment method of Modbus communication networks, from node device and communication system
CN108737590A (en) * 2018-05-15 2018-11-02 浙江正泰电器股份有限公司 A kind of method that address is distributed automatically, system, Modbus main websites, Modbus slave stations

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173013A1 (en) * 2012-12-19 2014-06-19 Motech Industries, Inc. Method for setting addresses of slave devices in communication network
CN104410557A (en) * 2014-12-25 2015-03-11 深圳中科讯联科技有限公司 Dynamic networking method and communication method based on RS-485
CN104964399A (en) * 2015-07-21 2015-10-07 珠海格力电器股份有限公司 Address allocation method and device for air conditioning equipment
CN106060187A (en) * 2016-05-26 2016-10-26 杭州华三通信技术有限公司 Address allocation methods and devices
CN106789498A (en) * 2016-12-05 2017-05-31 广州视源电子科技股份有限公司 The network address assignment method of Modbus communication networks, from node device and communication system
CN108737590A (en) * 2018-05-15 2018-11-02 浙江正泰电器股份有限公司 A kind of method that address is distributed automatically, system, Modbus main websites, Modbus slave stations

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531423A (en) * 2021-12-28 2022-05-24 上海安浦鸣志自动化设备有限公司 Node address allocation method, storage medium and bus network
CN114900429A (en) * 2022-07-12 2022-08-12 浙江正泰物联技术有限公司 Equipment communication parameter configuration method and system
CN114900429B (en) * 2022-07-12 2022-10-21 浙江正泰物联技术有限公司 Equipment communication parameter configuration method and system

Similar Documents

Publication Publication Date Title
EP3190766B1 (en) Method, device and system for invoking local service assembly by browser
JP6656612B2 (en) Network service configuration method and network management device
US20140282976A1 (en) System and method for secure application communication between networked processors
EP2866393A1 (en) Method and apparatus for determining virtual machine drifting
CN110392084B (en) Method, apparatus and computer program product for managing addresses in a distributed system
CN107707557B (en) Anonymous access method, device, network equipment and readable storage medium
CN104516838A (en) Management path determining method and device
CN110609656B (en) Storage management method, electronic device, and computer program product
CN111510358A (en) Method, device and computer program product for configuring a slave device
CN108920157B (en) Nginx software installation method and device, computer equipment and storage medium
EP2942711B1 (en) Dynamic generation of proxy connections
CN109460379B (en) Serial port selection method and switching device
CN111858156A (en) Mirror image management method and device and electronic equipment
CN113127921A (en) Method, electronic device and computer program product for data management
CN113556414B (en) Method, gateway device and storage medium for inter-network communication
CN113572560B (en) Method, electronic device, and storage medium for determining clock synchronization accuracy
CN115685971A (en) Vehicle diagnosis method and related device
CN110971716B (en) Address configuration method, device, system and computer readable storage medium
EP3751533B1 (en) Measurement cloud system for coupling measurement device settings across multiple instruments and/or measurement sites and corresponding handling method
CN113422724A (en) Method, device, communication system and storage medium for EPA configuration switching
US8832242B2 (en) Determining a network address for managed devices to use to communicate with manager server in response to a change in a currently used network address
CN111342981A (en) Arbitration method between devices in local area network environment, electronic device and local area network system
US9350698B2 (en) Computer program product and system for double IP address recovery
US11399006B2 (en) Address generation
JP2018164235A (en) Communication terminal and communication control method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200807