CN111756872A - Address setting method, temperature control system and computer readable storage medium - Google Patents

Address setting method, temperature control system and computer readable storage medium Download PDF

Info

Publication number
CN111756872A
CN111756872A CN202010563668.2A CN202010563668A CN111756872A CN 111756872 A CN111756872 A CN 111756872A CN 202010563668 A CN202010563668 A CN 202010563668A CN 111756872 A CN111756872 A CN 111756872A
Authority
CN
China
Prior art keywords
slave
master
communication interface
address
setting method
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
CN202010563668.2A
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.)
Zhejiang Xianda Environmental Protection Technology Co ltd
Original Assignee
Zhejiang Xianda Environmental Protection Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Xianda Environmental Protection Technology Co ltd filed Critical Zhejiang Xianda Environmental Protection Technology Co ltd
Priority to CN202010563668.2A priority Critical patent/CN111756872A/en
Publication of CN111756872A publication Critical patent/CN111756872A/en
Pending 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
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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

Abstract

The invention discloses an address setting method, a temperature control system and a computer readable storage medium, which relate to the technical field of temperature control, are used for a host computer in the temperature control system to set an address of a slave computer, and comprise the following steps: setting a first address and an increment parameter, activating the slave machine, and allocating an address to the activated slave machine. The invention realizes automatic setting and distribution of slave addresses.

Description

Address setting method, temperature control system and computer readable storage medium
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of temperature control, in particular to an address setting method, a temperature control system and a computer readable storage medium.
[ background of the invention ]
Nowadays, the control of temperature has been automated, being controlled by a master controlling slaves located at different physical locations and at different network addresses. However, in the prior art, the slave has the code disc, so that the network address of the slave is set by a technician dialing the code disc, and the setting of the network address of the slave in this way not only increases the workload of the technician, but also limits the expansibility of the slave by the code disc.
[ summary of the invention ]
In order to solve the foregoing problems, the present invention provides an address setting method, which implements automatic setting and allocation of slave addresses.
In order to achieve the purpose, the invention adopts the following technical scheme:
an address setting method is used for a host computer in a temperature control system to set addresses of slave computers, and comprises the following steps:
setting a first address and an incremental parameter;
activating a slave in the temperature control system;
searching the number of all activated slave machines on the line;
and traversing all the activated slave machines, and allocating addresses to the activated slave machines according to an increasing function.
Optionally, in the temperature control system, the master and the slave are connected through a CAN bus.
Optionally, the master has a can master communication interface, the slave has a can slave communication interface, and activating the slave is completed by the can master communication interface and the can slave communication interface.
Optionally, when the slave computer performs software upgrade, the host computer broadcasts the upgrade package to the slave computer needing to be upgraded through the can bus, and the slave computer needing to be upgraded finishes the upgrade after receiving the upgrade package.
Optionally, the master has a master I/O communication interface, the slave has a slave I/O communication interface, the master and the slave are connected via the master I/O communication interface and the slave I/O communication interface, and the slave are connected via their respective slave I/O communication interfaces.
Optionally, the master controls the power supply of the slave to be turned on or off through the communication between the master I/O communication interface and the slave I/O communication interface and the communication between the slave I/O communication interface and the slave I/O communication interface, so as to activate the slave by turning on or off the power supply of the slave.
Optionally, when the slave machine performs software upgrade, the host machine broadcasts the upgrade package to the slave machine to be upgraded through communication between the host machine I/O communication interface and the slave machine I/O communication interface and communication between the slave machine I/O communication interface and the slave machine I/O communication interface, and the slave machine to be upgraded completes the upgrade after receiving the upgrade package.
Optionally, in the temperature control system, the master includes an output configuration interface, the slave includes an input configuration interface, the master outputs the corresponding configuration of the slave at each address from the output configuration interface, and the slave at each address receives the corresponding configuration through the input configuration interface and completes the configuration.
The invention has the following beneficial effects:
according to the technical scheme provided by the application, the method and the device can realize the purpose of quickly searching the number of the slave devices in the temperature control system, and know the number of the slave devices in the activated state and the standby state;
according to the technical scheme, the network addresses of the slave machines are automatically set and distributed, manual dialing of the code disc is not needed, the workload of technicians is reduced, and the installation efficiency is improved;
according to the technical scheme provided by the application, when a certain slave machine fails, the address of the failed slave machine can be automatically positioned, and online upgrading is completed when the slave machine needs to be upgraded.
In addition, the invention also provides a temperature control system which comprises a host and a slave, wherein the slave is subjected to address setting by any one of the address setting methods. The beneficial effect of the temperature control system provided by the invention is similar to the beneficial effect reasoning process of the address setting method, and the description is omitted here.
Meanwhile, the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the method of any one of the above.
These features and advantages of the present invention will be disclosed in more detail in the following detailed description and the accompanying drawings. The best mode or means of the present invention will be described in detail with reference to the accompanying drawings, but the present invention is not limited thereto. In addition, the features, elements and components appearing in each of the following and in the drawings are plural and different symbols or numerals are labeled for convenience of representation, but all represent components of the same or similar construction or function.
[ description of the drawings ]
The invention will be further described with reference to the accompanying drawings in which:
fig. 1 is a flowchart of setting an address according to a first embodiment of the present invention.
[ detailed description ] embodiments
The technical solutions of the embodiments of the present invention are explained and illustrated below with reference to the drawings of the embodiments of the present invention, but the following embodiments are only preferred embodiments of the present invention, and not all embodiments. Based on the embodiments in the implementation, other embodiments obtained by those skilled in the art without any creative effort belong to the protection scope of the present invention.
Reference in the specification to "one embodiment" or "an example" means that a particular feature, structure or characteristic described in connection with the embodiment itself may be included in at least one embodiment of the patent disclosure. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.
The first embodiment is as follows:
as shown in fig. 1, in this embodiment, an address setting method is provided, where the host is used to set an address of a slave in a temperature control system, and in this embodiment, the host and the slave of the temperature control system are connected through a CAN bus, the host includes an output configuration interface, and the slave includes an input configuration interface.
The address setting method provided by the embodiment comprises the following steps:
setting a first address and incremental parameters, wherein the first address is flexibly set by a person skilled in the art in different application scenes, and is not limited herein, and the setting of the incremental parameters belongs to the prior art means in the field and is not described herein again;
activating the slave in the temperature control system. In this embodiment, the master has a can master communication interface, the slave has a can slave communication interface, and activating the slave is completed by the can master communication interface and the can slave communication interface.
Searching the number of all activated slave machines on the line;
and traversing all the activated slave machines, and allocating addresses to the activated slave machines according to an increasing function.
All activated slaves have thus far acquired an address. The can bus activates the slave, when the slave upgrades the software, the host broadcasts the upgrade packet to the slave needing to be upgraded through the can bus, and the slave needing to be upgraded finishes upgrading after receiving the upgrade packet. After obtaining the addresses, the master may output the corresponding configuration of the slaves of each address from the output configuration interface, and the slaves of each address receive the corresponding configuration through the input configuration interface and complete the configuration.
The technical scheme provided by the embodiment can realize the fast search of the number of slave devices in the temperature control system, and know the number of the slave devices in the activated state and the number of the slave devices in the standby state; the network addresses of all the slave machines are automatically set and distributed, manual dialing of a coding disc is not needed, the workload of technicians is reduced, and the installation efficiency is improved; and based on the control of the master machine to the slave machines, when a certain slave machine fails, the address of the failed slave machine can be automatically positioned, and online upgrade is completed when the slave machine needs to be upgraded.
Example two
The difference between this embodiment and this embodiment is that, in this embodiment, the master has a master I/O communication interface, the slave has a slave I/O communication interface, the master and the slave are connected through the master I/O communication interface and the slave I/O communication interface, and meanwhile, the slave and the slave are connected through their own slave I/O communication interfaces. In other words, after the master is connected with one slave, the slave can be further connected with other slaves, so that the temperature control system is expanded.
In this embodiment, the master controls the on or off of the slave power supply through the communication between the master I/O communication interface and the slave I/O communication interface and the communication between the slave I/O communication interface and the slave I/O communication interface, and activates the slave by turning on or off the slave power supply.
And when the slave machine carries out software upgrading, the host machine broadcasts the upgrading packet to the slave machine needing upgrading through the communication between the host machine I/O communication interface and the slave machine I/O communication interface and the communication between the slave machine I/O communication interface and the slave machine I/O communication interface, and the slave machine needing upgrading completes upgrading after receiving the upgrading packet.
EXAMPLE III
The present embodiment provides a temperature control system, which includes a master and a slave, and the address setting is performed on the slave by using the address setting method described in the first embodiment or the second embodiment.
Example four
The present embodiment provides a computer device comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the method of any of the embodiments as described above when executing the computer program. It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. Accordingly, the computer program can be stored in a non-volatile computer readable storage medium, and when executed, can implement the method according to any one of the above embodiments. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
While the present invention has been described with reference to the preferred embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Any modification which does not depart from the functional and structural principles of the present invention is intended to be included within the scope of the claims.

Claims (10)

1. An address setting method is characterized in that the address setting method is used for setting addresses of slaves in a temperature control system by a host, and comprises the following steps:
setting a first address and an incremental parameter;
activating a slave in the temperature control system;
searching the number of all activated slave machines on the line;
and traversing all the activated slave machines, and allocating addresses to the activated slave machines according to an increasing function.
2. The address setting method according to claim 1, wherein in the temperature control system, the master and the slave are connected through a CAN bus.
3. The address setting method as claimed in claim 2, wherein the master has a can master communication interface, the slave has a can slave communication interface, and the activating the slave is performed by the can master communication interface and the can slave communication interface.
4. The address setting method of claim 2, wherein when the slave device performs software upgrade, the host device broadcasts the upgrade packet to the slave device to be upgraded through the CAN bus, and the slave device to be upgraded completes the upgrade after receiving the upgrade packet.
5. The address setting method according to claim 1, wherein the master has a master I/O communication interface, the slave has a slave I/O communication interface, the master and the slave are connected via the master I/O communication interface and the slave I/O communication interface, and the slave are connected via respective slave I/O communication interfaces.
6. The address setting method of claim 4, wherein the master controls the power of the slave to be turned on or off through the communication between the master I/O communication interface and the slave I/O communication interface and the communication between the slave I/O communication interface and the slave I/O communication interface, and the activation of the slave is performed by turning on or off the power of the slave.
7. The address setting method of claim 4, wherein when the slave device performs software upgrade, the master device broadcasts the upgrade package to the slave device to be upgraded through communication between the master device I/O communication interface and the slave device I/O communication interface and communication between the slave device I/O communication interface and the slave device I/O communication interface, and the slave device to be upgraded completes the upgrade after receiving the upgrade package.
8. The address setting method according to one of claims 1 to 7, wherein in the temperature control system, the master includes an output configuration interface, the slave includes an input configuration interface, the master outputs the corresponding configuration of the slave for each address from the output configuration interface, and the slave for each address receives the corresponding configuration through the input configuration interface and completes the configuration.
9. A temperature control system comprising a master and a slave, wherein the slave is address-set by the address setting method of any one of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 8.
CN202010563668.2A 2020-06-18 2020-06-18 Address setting method, temperature control system and computer readable storage medium Pending CN111756872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010563668.2A CN111756872A (en) 2020-06-18 2020-06-18 Address setting method, temperature control system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010563668.2A CN111756872A (en) 2020-06-18 2020-06-18 Address setting method, temperature control system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111756872A true CN111756872A (en) 2020-10-09

Family

ID=72675468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010563668.2A Pending CN111756872A (en) 2020-06-18 2020-06-18 Address setting method, temperature control system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111756872A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990072248A (en) * 1998-02-02 1999-09-27 포만 제프리 엘 Intra-unit column address increment system for memory
CN101446438A (en) * 2008-08-29 2009-06-03 广东志高空调有限公司 Method for assigning address to indoor unit of central air-conditioning system, device and system thereof
CN101635637A (en) * 2008-07-21 2010-01-27 江森自控楼宇设备科技(无锡)有限公司 Method and system for distributing intelligent addresses based on serial bus
CN101852472A (en) * 2009-04-01 2010-10-06 欧威尔空调(中国)有限公司 Automatic addressing method for air conditioning system and air conditioning controller
CN103279371A (en) * 2013-05-22 2013-09-04 杭州电子科技大学 Distributed control system multi-slave-computer program online synchronization upgrading method
CN110401732A (en) * 2019-07-29 2019-11-01 江西科然科技有限公司 Battery management system slave addresses distribution method, system, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990072248A (en) * 1998-02-02 1999-09-27 포만 제프리 엘 Intra-unit column address increment system for memory
CN101635637A (en) * 2008-07-21 2010-01-27 江森自控楼宇设备科技(无锡)有限公司 Method and system for distributing intelligent addresses based on serial bus
CN101446438A (en) * 2008-08-29 2009-06-03 广东志高空调有限公司 Method for assigning address to indoor unit of central air-conditioning system, device and system thereof
CN101852472A (en) * 2009-04-01 2010-10-06 欧威尔空调(中国)有限公司 Automatic addressing method for air conditioning system and air conditioning controller
CN103279371A (en) * 2013-05-22 2013-09-04 杭州电子科技大学 Distributed control system multi-slave-computer program online synchronization upgrading method
CN110401732A (en) * 2019-07-29 2019-11-01 江西科然科技有限公司 Battery management system slave addresses distribution method, system, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107273170B (en) A kind of SoPC programs remote update system and method
CN106708573B (en) System and method for Hadoop cluster automatic installation
CN111600972B (en) Configuration method of double-stack address, server and readable storage medium
US20030106052A1 (en) System and method for high availability firmware load
CN112865992B (en) Method and device for switching master nodes in distributed master-slave system and computer equipment
CN113407208A (en) Edge device function online configuration method based on remote deployment
CN101453374A (en) On-line updating method and system for network appliance
US9389604B2 (en) Method and system for the dynamic allocation of program functions in distributed control systems
CN111756872A (en) Address setting method, temperature control system and computer readable storage medium
CN104793998A (en) Terminal system resource management method and device
CN110908706B (en) Multi-version software management method
CN104423997A (en) Remote base station version installing method and remote base station version installing device
CN107203392B (en) Multi-protocol implementation method of small system terminal product
CN105354068A (en) Network-based robot system software batch installing and upgrading method
CN111881063B (en) Multi-platform adaptive Internet of things module based on Flash cutting and control method thereof
CN112764793B (en) Method for incrementally updating parameters of function block
CN112148377B (en) Method and device for preventing SSD from abnormal power failure in EFI Shell environment
CN111158312B (en) Method for operating a production machine or machine tool and production machine or machine tool
CN113434245A (en) Edge cluster deployment method, system, equipment and storage medium
US10768597B2 (en) Method and controller for flexible process control
CN111414176B (en) Program burning method, device, electronic equipment and storage medium
CN117544598B (en) I2C bus address automatic allocation method
CN109977067B (en) Shared variable allocation method and device based on heterogeneous multi-core controller
CN112003936B (en) Method, device and system for upgrading equipment in cluster system
CN1996884A (en) Expansion method and communication device of communication 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201009