CN105812496A - Power module address automatic setting method and system - Google Patents

Power module address automatic setting method and system Download PDF

Info

Publication number
CN105812496A
CN105812496A CN201410843290.6A CN201410843290A CN105812496A CN 105812496 A CN105812496 A CN 105812496A CN 201410843290 A CN201410843290 A CN 201410843290A CN 105812496 A CN105812496 A CN 105812496A
Authority
CN
China
Prior art keywords
information frame
sequence number
number information
address
power module
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
CN201410843290.6A
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.)
Peng Electricity Yue Neng Enertech Co Ltd Of Shenzhen
SHENZHEN AUTO ELECTRIC POWER PLANT CO Ltd
Original Assignee
Peng Electricity Yue Neng Enertech Co Ltd Of Shenzhen
SHENZHEN AUTO ELECTRIC POWER PLANT 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 Peng Electricity Yue Neng Enertech Co Ltd Of Shenzhen, SHENZHEN AUTO ELECTRIC POWER PLANT CO Ltd filed Critical Peng Electricity Yue Neng Enertech Co Ltd Of Shenzhen
Priority to CN201410843290.6A priority Critical patent/CN105812496A/en
Publication of CN105812496A publication Critical patent/CN105812496A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a power module address automatic setting method and system. The power module address automatic setting method comprises steps of S1, connecting a plurality of power supply modules to a CAN bus, S3, uploading the self-sequence-numbers of the plurality of power supply modules to the CAN bus, receiving the sequence number information frame of all power supply modules by each power supply module, storing the sequence number information frames of all the other power supply modules by each power supply module, performing comparison on the self-sequence number information frame and the stored sequence number information frames of the other power supply modules by each power supply module, and obtaining the self-address according to the ranking comparison result. The power module address automatic setting method and system eliminate the dialer for determining the address of the power supply module and the related hardware circuit, eliminates the complexity of manually setting the address, realizes communication connection of the power supply module through the CAN bus so as to realize the automatic setting of the power supply module address, improves the reliability and provides convenience to system configuration and maintenance.

Description

The address automatic setting method of power module and system
Technical field
The present invention relates to Power Electronic Technique, particularly relate to address automatic setting method and the system of a kind of power module.
Background technology
Along with the raising that development and the various application of Power Electronic Technique require, for electric supply system, major part adopts modularity machine pattern to realize powerful output, need to arrange or identify the address of each power module when multi-power module machine, in order to the also machine of power module runs and status monitoring.The Address Recognition mode sampled at present is connected to controller mainly by dial-up device through hardware circuit and is identified, the triviality that can increase its debugging and safeguard manually is set when system module quantity is many, also can reduce system reliability of operation and improve power module cost.
Summary of the invention
The technical problem to be solved in the present invention is in that, it is provided that the address automatic setting method of the power module of a kind of improvement and system.
The technical solution adopted for the present invention to solve the technical problems is: provides the address automatic setting method of a kind of power module, comprises the steps:
S1: several power modules are connected to a CAN;
S2: its own sequence information frame is uploaded to described CAN by several described power modules;
S3: each described power module receives the sequence number information frame of all described power modules the sequence number information frame of other described power modules that storage is except self described CAN;
S4: the sequence number information frame of its own sequence information frame with other described power modules of storage is ranked up comparing by each described power module, draws Self address according to sequence comparative result.
Preferably, in described step S4, each described power module performs following steps respectively:
T1: arranging self preset address is 1;
T2: by the sequence number information frame of other all described power modules that himself stores, judge that whether the size of described sequence number information frame is more than described its own sequence information frame one by one, if it is not, then self preset address adds 1;If so, then self preset address is constant;
T3: after execution of step T2, self preset address obtained is Self address.
Preferably, in described step S3, each in the sequence number information frame of all described power module that each described electric power source pair of module receives performs following steps respectively:
Described all sequences information frame is judged sequence number information frame as waiting, and judge that each waiting judges that whether sequence number information frame is identical with its own sequence information frame, if, then think and wait to judge that sequence number information frame repeats with its own sequence information frame, do not store and wait to judge sequence number information frame, and carry out serial number repeat alarm;If it is not, then wait described in judging to judge whether sequence number information frame repeats with the sequence number information frame deposited, if so, then do not carry out data process;If it is not, then described waiting is judged that sequence number information frame stores.
Preferably, in described step S3, each described power module sets up an internal counter always according to the quantity sum of the sequence number information frame of other power modules received.
Preferably, in described step S3, the sequence number information frame of other power modules received compares with the sequence number information frame stored, if not repeating, then described enumerator adds 1.
Preferably, in described step T2, the sequence number information frame of power module described in the one of every pair of storage performs once to judge, in presently described power module, described enumerator subtracts 1, when described enumerator is kept to 0, terminates described step T2 and enters described step T3.
Preferably, in described step S3, the sequence number information frame of other described power modules is stored in the serial number memory block of therein or keeps at therein by each described power module.
Preferably, described its own sequence information frame and the sequence number information frame of each several described power module of described power module real-time reception are uploaded in the timing of several described power modules.
Preferably, described sequence number information frame includes eight bytes, and the first byte is company-information, and the second byte is product type, and the 3rd is the date of manufacture to nybble, and the 5th to the 6th byte is for producing numbering, and the 7th to the 8th byte is reserve bytes.
Also provide for the address automatic setting system of a kind of power module, realize address including a CAN and several power module being connected in described CAN, described CAN and several described power module by execution address automatic setting method and automatically set.
Enforcement the invention has the beneficial effects as follows: the address automatic setting method of power module of the present invention and system save dial-up device and the relevant hardware circuit that power module address judges, also save the triviality that address is manually set simultaneously, power module communication connection is realized by CAN, thus realizing automatically setting of power module address, improve reliability, facilitate system configuration and maintenance work.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the schematic flow sheet of the address automatic setting method of power module in some embodiments of the invention;
Fig. 2 be power module in some embodiments of the invention address automatic setting method in the annexation schematic diagram of CAN and power module;
Fig. 3 is the idiographic flow schematic diagram of step S2 in Fig. 1;
Fig. 4 is the idiographic flow schematic diagram of step S3 in Fig. 1;
Fig. 5 is the idiographic flow schematic diagram of step S4 in Fig. 1.
Detailed description of the invention
In order to the technical characteristic of the present invention, purpose and effect are more clearly understood from, now comparison accompanying drawing describes the specific embodiment of the present invention in detail.
Fig. 1 illustrates the address automatic setting method of power module in some embodiments of the invention, and the method can make the several power modules under multi-machine parallel connection intercom mutually by CAN, automatically sets thus realizing each electric power source pair of module Self address.Hereinafter step S1-S4 included in this method is illustrated.
In step S1, shown in Fig. 2, several power modules are connected to a CAN.Specifically, power module 1, power module 2 to power module N are connected in CAN by CAN communication EBI, under common communication protocol, it is achieved the communication data exchange between each power module.
In step S2, shown in Fig. 3, its own sequence information frame is uploaded to CAN by several power modules.Its own sequence information frame data are packed by each power module, and self unique its own sequence information frame (including module information and serial number) is uploaded in timing, and is uploaded in CAN by CAN protocol.When arriving power module timed sending time, its sequence number information frame uploads in bus;When not arriving power module timed sending time, enter waiting state, until timed sending time arrives next time.As selection, this timed sending time is time regulatable, can be modified setting according to the specific requirement of system.Preferably, the sequence number information frame of CAN agreement is as shown in the table:
BYTE Data name
1 Company-information
2 Product type
3-4 Date of manufacture
5-6 Produce numbering
7-8 Retain
Wherein, sequence number information frame herein includes eight bytes, and the first byte is company-information, and the second byte is product type, and the 3rd is the date of manufacture to nybble, and the 5th to the 6th byte is for producing numbering, and the 7th to the 8th byte is reserve bytes.Preferably, the sequence number information frame of its own sequence information frame with other described power modules of storage is ranked up, as power module, the foundation that compares by the numbering that produces of the 5th to the 6th byte.As selection, it is also possible to using overall for sequence number information frame as sort by, or other have distinctive partly as sort by.
In step S3, shown in Fig. 4, each power module receives the sequence number information frame of all power modules the sequence number information frame of other power modules that storage is except self CAN.Wherein, each power module can real-time reception from the message of CAN, and identify whether the sequence number information frame for other power modules, if it is by judging whether it is the sequence number information frame of legal serial number and overlap, preserve correct sequence number information frame, judge for Self address.Preferably, the sequence number information frame of other power modules is stored in the serial number memory block of therein by each power module.As selection, it is also possible to the sequence number information frame of other power modules is kept at therein.It is to be appreciated that serial number memory block can be located in the memory element in power module, its capacity can be adjusted according to system specific requirement, but at least should enough store the sequence number information frame of every other power module.As selection, the sequence number information frame of self is also intended to storage, and it is stored in when dispatching from the factory inside power module, is available for calling at any time.It is to be appreciated that the sequence number information frame of self and the sequence number information frame of other power modules be not in identical position storage.
In this step, the judgement step of each electric power source pair of module sequence number information frame is as follows:
In all sequences information frame received, all sequences information frame is judged sequence number information frame as waiting, chooses one every time and wait to judge that sequence number information frame judges.Then, judge that each waiting judges that whether sequence number information frame is identical with its own sequence information frame, if it is, illustrate that this waits to judge that sequence number information frame repeats with its own sequence information frame, sequence number information frame can be carried out and repeat alarm, know for operator and know and carry out corresponding operating.If it is not, then judge to wait to judge whether sequence number information frame repeats with the sequence number information frame deposited, if so, then illustrate that this waits to judge that sequence number information frame stored, it is not necessary to being repeated storing, therefore, this sequence number information frame does not process, and does not namely carry out data process;If it is not, then illustrate that this waits to judge sequence number information frame and non-self sequence number information frame, the sequence number information frame that also non-memory is crossed, then will wait to judge that sequence number information frame stores.
As selection, in certain embodiments, each power module also can set up an internal counter, and this internal counter is set up according to the quantity sum of the sequence number information frame of other power modules received.In the judgement step of above-mentioned each electric power source pair of module sequence number information frame, counter initial value is 0, the sequence number information frame of other power modules received compares with the sequence number information frame stored, if not repeating, then enumerator adds 1, until all storages wait judge that sequence number information frame has judged, then the counting of enumerator be other power modules sequence number information frame sum.
In step S4, shown in Fig. 5, its own sequence information frame is carried out size with the sequence number information frame of other power modules of storage and compares by each power module, draws Self address according to the size cases of its own sequence information frame.Specifically, each power module also performs following steps T1 to T3 respectively.
In step T1, arranging self preset address is 1, and namely the machine address initialization is 1.
In step T2, sequence number information frame to other all power modules of self storage, judge that whether the size of described sequence number information frame is more than its own sequence information frame one by one, if not, then illustrate that the size of sequence number information frame of power module is less than its own sequence information frame, before should coming self order, therefore self preset address adds 1;If so, then illustrating that the size of sequence number information frame of power module is more than its own sequence information frame, after should coming self order, self preset address is constant.Set up at each power module in the embodiment having internal counter, when power module often reads the sequence number information frame once stored, first judge that whether enumerator is more than 0, if not, then illustrate not store the sequence number information frame of any power module, namely only have self power module in CAN, then the setup algorithm of Self address terminates.Preferably, the sequence number information frame of a power module of power module every pair storage performs once to judge, current power module inside counting device subtracts 1;When enumerator is kept to 0, illustrate that T2 step is crossed in the equal executed of sequence number information frame of the every other power module of storage, then terminate T2 and enter T3.
In step T3, after the sequence number information frame execution of step T2 of each power module of storage, self preset address obtained is Self address.
Other embodiments of the present invention also include the address automatic setting system of a kind of power module, this system includes a CAN and several power module being connected in CAN, CAN and several power module realize address automatically set by performing above-mentioned method, repeat no more herein.
The above is only the preferred embodiment of the present invention, and protection scope of the present invention is not limited merely to above-described embodiment, and all technical schemes belonged under thinking of the present invention belong to protection scope of the present invention.It should be pointed out that, for those skilled in the art, several improvements and modifications without departing from the principles of the present invention, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the address automatic setting method of a power module, it is characterised in that comprise the steps:
S1: several power modules are connected to a CAN;
S2: its own sequence information frame is uploaded to described CAN by several described power modules;
S3: each described power module receives the sequence number information frame of all described power modules the sequence number information frame of other described power modules that storage is except self described CAN;
S4: the sequence number information frame of its own sequence information frame with other described power modules of storage is ranked up comparing by each described power module, draws Self address according to sequence comparative result.
2. address according to claim 1 automatic setting method, it is characterised in that in described step S4, each described power module performs following steps respectively:
T1: arranging self preset address is 1;
T2: by the sequence number information frame of other all described power modules that himself stores, judge that whether the size of described sequence number information frame is more than described its own sequence information frame one by one, if it is not, then self preset address adds 1;If so, then self preset address is constant;
T3: after execution of step T2, self preset address obtained is Self address.
3. address according to claim 2 automatic setting method, it is characterised in that in described step S3, each in the sequence number information frame of all described power module that each described electric power source pair of module receives performs following steps respectively:
Described all sequences information frame is judged sequence number information frame as waiting, and judge that each waiting judges that whether sequence number information frame is identical with its own sequence information frame, if, wait described in then thinking to judge that sequence number information frame repeats with its own sequence information frame, wait to judge sequence number information frame described in not storing, and carry out serial number and repeat alarm;If it is not, then wait described in judging to judge whether sequence number information frame repeats with the sequence number information frame deposited, if so, then do not carry out data process;If it is not, then described waiting is judged that sequence number information frame stores.
4. address according to claim 3 automatic setting method, it is characterised in that in described step S3, each described power module sets up an internal counter always according to the quantity sum of the sequence number information frame of other power modules received.
5. address according to claim 4 automatic setting method, it is characterised in that in described step S3, the sequence number information frame of other power modules received compares with the sequence number information frame stored, if not repeating, then described enumerator adds 1.
6. address according to claim 4 automatic setting method, it is characterized in that, in described step T2, the sequence number information frame of power module described in the one of every pair of storage performs once to judge, in presently described power module, described enumerator subtracts 1, when described enumerator is kept to 0, terminates described step T2 and enter described step T3.
7. the address automatic setting method according to any one of claim 1 to 6, it is characterized in that, in described step S3, the sequence number information frame of other described power modules is stored in the serial number memory block of therein or keeps at therein by each described power module.
8. the address automatic setting method according to any one of claim 1 to 6, it is characterised in that described its own sequence information frame and the sequence number information frame of each several described power module of described power module real-time reception are uploaded in the timing of several described power modules.
9. the address automatic setting method according to any one of claim 1 to 6, it is characterized in that, described sequence number information frame includes eight bytes, first byte is company-information, second byte is product type, 3rd is the date of manufacture to nybble, and the 5th to the 6th byte is for producing numbering, and the 7th to the 8th byte is reserve bytes.
10. the address automatic setting system of a power module, it is characterized in that, realize address including a CAN and several power module being connected in described CAN, described CAN and several described power module by the address automatic setting method performed described in any one of claim 1 to 9 to automatically set.
CN201410843290.6A 2014-12-30 2014-12-30 Power module address automatic setting method and system Pending CN105812496A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410843290.6A CN105812496A (en) 2014-12-30 2014-12-30 Power module address automatic setting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410843290.6A CN105812496A (en) 2014-12-30 2014-12-30 Power module address automatic setting method and system

Publications (1)

Publication Number Publication Date
CN105812496A true CN105812496A (en) 2016-07-27

Family

ID=56420996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410843290.6A Pending CN105812496A (en) 2014-12-30 2014-12-30 Power module address automatic setting method and system

Country Status (1)

Country Link
CN (1) CN105812496A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866072A (en) * 2020-12-15 2021-05-28 杭州协能科技股份有限公司 Control method for CAN bus ID distribution
CN113382094A (en) * 2021-05-20 2021-09-10 西安麦格米特电气有限公司 Module address determination method and device, power module and communication network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877727A (en) * 2010-06-21 2010-11-03 中兴通讯股份有限公司 Method for automatically setting CAN network node address and device thereof
CN103216913A (en) * 2013-04-23 2013-07-24 四川长虹电器股份有限公司 Air conditioner address setting method
CN103216914A (en) * 2013-04-23 2013-07-24 四川长虹电器股份有限公司 Air-conditioner address setting method
CN104201702A (en) * 2014-07-11 2014-12-10 北海市深蓝科技发展有限责任公司 Device for active power balance adjustment and reactive power compensation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877727A (en) * 2010-06-21 2010-11-03 中兴通讯股份有限公司 Method for automatically setting CAN network node address and device thereof
CN103216913A (en) * 2013-04-23 2013-07-24 四川长虹电器股份有限公司 Air conditioner address setting method
CN103216914A (en) * 2013-04-23 2013-07-24 四川长虹电器股份有限公司 Air-conditioner address setting method
CN104201702A (en) * 2014-07-11 2014-12-10 北海市深蓝科技发展有限责任公司 Device for active power balance adjustment and reactive power compensation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866072A (en) * 2020-12-15 2021-05-28 杭州协能科技股份有限公司 Control method for CAN bus ID distribution
CN113382094A (en) * 2021-05-20 2021-09-10 西安麦格米特电气有限公司 Module address determination method and device, power module and communication network
CN113382094B (en) * 2021-05-20 2023-09-12 西安麦格米特电气有限公司 Module address determining method and device, power module and communication network

Similar Documents

Publication Publication Date Title
CN104486182B (en) A kind of method of serial Modbus expanding communications
CN105516388B (en) A kind of Wireless Communication Equipment MAC Address test method and system
CN104683797A (en) Intelligent television production test method and system
CN103139012A (en) Ethernet port test method and network devices
CN101592934A (en) The communication means of programmable logic controller (PLC) and expansion module
CN112055096A (en) Method and device for automatically setting communication address of equipment
CN112669590B (en) Tandem plug-and-play intelligent sensing communication system and automatic addressing method thereof
CN105812496A (en) Power module address automatic setting method and system
CN105162671A (en) Welding table control system of arbitrary host and control method thereof
CN105141671A (en) Air conditioning unit system and control method of air conditioning unit
CN110362522B (en) Module identifier acquisition method, device and system
CN103414587A (en) Method and device for allocating slot positions of rack-mounted device
CN105305536A (en) Cell management system single-wire communication method and device
CN205754298U (en) A kind of intelligent communication extension element being applied to photovoltaic generating system
CN108626847B (en) Multi-connected air conditioning unit system
CN113055501A (en) Method and device for configuring IP address in series through network port
CN110837242A (en) Hot water supply equipment running state monitoring system based on Internet of things
CN104022515B (en) Reactive compensation cabinet and the control method of reactive compensation unit
CN110034974A (en) A kind of monitoring method and system based on wireless communication automatic addressing technology
CN106980561B (en) Power-on and power-off test system and method thereof
CN109831825A (en) Sub-gateway and network access method thereof, gateway cluster and communication method thereof
CN108566652A (en) Towards the WiFi performance improving systems and its improved method under industry disturbance environment
CN205121237U (en) Controller
CN203445909U (en) Intercom terminal parameter configuration system
CN103235536A (en) Alternating-direct current self-adaptation device and alternating-direct current self-adaptation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
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: 20160727