CN110209433A - A method of identification different model concentrator - Google Patents

A method of identification different model concentrator Download PDF

Info

Publication number
CN110209433A
CN110209433A CN201910301846.1A CN201910301846A CN110209433A CN 110209433 A CN110209433 A CN 110209433A CN 201910301846 A CN201910301846 A CN 201910301846A CN 110209433 A CN110209433 A CN 110209433A
Authority
CN
China
Prior art keywords
memory
concentrator
model
type
capacity
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.)
Granted
Application number
CN201910301846.1A
Other languages
Chinese (zh)
Other versions
CN110209433B (en
Inventor
邬科科
冯丹荣
王培慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Fengrui Intelligent Electrical Research Institute Co Ltd
Original Assignee
Hangzhou Fengrui Intelligent Electrical Research Institute 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 Hangzhou Fengrui Intelligent Electrical Research Institute Co Ltd filed Critical Hangzhou Fengrui Intelligent Electrical Research Institute Co Ltd
Priority to CN201910301846.1A priority Critical patent/CN110209433B/en
Publication of CN110209433A publication Critical patent/CN110209433A/en
Application granted granted Critical
Publication of CN110209433B publication Critical patent/CN110209433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The present invention relates to a kind of methods for identifying different model concentrator, it is characterised in that: the method includes S1 initializes current concentrator software;S2, the driving of load store device, recognition memory type;S3 determines memory capacity using memory capacity recognizer;S4 determines concentrator model.By being identified to concentrator model, concentrator software can be made general between different model concentrator, software development cost is saved, improve production efficiency.

Description

A method of identification different model concentrator
Technical field
The present invention relates to measuring instrument technical field more particularly to a kind of methods for identifying different model concentrator.
Background technique
Core equipment of the concentrator as metering automation system, needs to provide different function for different application scenarios Can, for example whether needing to measure, whether encrypting etc..This just needs to carry out differentiation configuration to the hardware resource of concentrator to come Meet the different functional requirement of concentrator, and then derive the concentrator product of different model, for example, have EERPOM or The concentrator of FRAM memory.
Existing concentrator in use, for different model concentrator need to provide the software of different editions into Row such as upgrades, safeguards operation, this will bring that development difficulty is big, production efficiency is low and safeguard not because product software is not general The problems such as facilitating.
Summary of the invention
In view of the above problems, the purpose of the present invention is to provide a kind of method for identifying different model concentrator, this method Different model concentrator can be identified so that concentrator software be able to carry out it is general, saved software development maintenance cost, Improve production efficiency.
To achieve the above object, the technical solution adopted by the present invention are as follows: a method of identification different model concentrator, It is characterized in that: the method includes,
S1 initializes current concentrator software;
S2, the driving of load store device, recognition memory type;
S3 determines memory capacity using memory capacity recognizer;
S4 determines concentrator model.
Further, load store device drives in the S2, recognition memory type, specifically,
If load first, which drive, successfully judges memory in current concentrator for first kind memory, if loading Second drives successfully, then judges the memory in current concentrator for Second Type memory, wherein the storage drive packet Include the first driving of driving first kind memory and the second driving of driving Second Type memory.
Further, memory capacity is determined using memory capacity recognizer in the step S3, specifically,
S31, data are sequentially written in memory, every one data of write-in are that spy is written in the preceding m byte of active cell Code is levied, this feature code value is equal to the serial number of presently written data, and one condition code of every write-in is since second unit Execute read back operation;
Whether S32, the condition code for judging first unit readback condition code corresponding with serial number n are equal, if equal, deposit The memory capacity x=K* (n-1) (bit) of reservoir, wherein K is the digit of a unit in memory, if it is not, then executing S33;
S33, data and character pair code are continued to write to, and executes read back operation, execute S32.
Further, the method also includes, after executing the step S4, also perform following operation,
S5, load software function module corresponding with concentrator model;
S6 terminates concentrator identification.
Further, the K value is 8kbit.
Further, the m value is 4.
Further, the first memory is FRAM.
Further, the second memory is EERPOM.
Further, model MB85RC64 or MB85RC128 that the FRAM is used;The model that the EERPOM is used For M24512R or M24256R.
Further, the concentrator first memory or second memory are connected by MCU in I2C mode and concentrator It connects.
Compared with the prior art, the advantages of the present invention are as follows: by whether successfully judging to collect to storage drive load Type of memory in middle device further judges that memory capacity to determine concentrator model, is then loaded according to ardware model number The corresponding function module of concentrator software, can make concentrator software be common to the concentrator of different model, and of the invention The used algorithm of hardware identification solution is simple and easy, and recognition speed is fast, can save software development cost, improve production efficiency, It is also convenient for maintenance simultaneously, reduces maintenance cost.
Detailed description of the invention
Fig. 1 is the module diagram that concentrator MCU of the present invention is connect with memory.
Fig. 2 is the method flow diagram of identification different model concentrator of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
The module diagram being connect as shown in Figure 1 for concentrator MCU of the invention with memory, as shown, the concentration Device MCU is connect by way of I2C with memory, and the memory pin that memory is used is data pin SDA, clock pins SCL, strobe pin CS, this connection type save circuit board space and chip pin.
The memory of concentrator generallys use FRAM or EERPOM in metering automation system at present, it is easy to expect, The concentrator of different model can use different types of memory, and every kind of memory has oneself corresponding capacity, in this way, then There are following combinations:
The concentrator of model A, uses FRAM in hardware design, the concentrator of model B, uses EEPROM in hardware design;
Or the concentrator of model C and model D, FRAM is all used in hardware design, model C concentrator uses capacity c's The concentrator of FRAM, model D use the FRAM of capacity d;Alternatively, the concentrator of model E and model F, all used in hardware design EEPROM, model E concentrator use the EEPROM of capacity e, and the concentrator of model F uses the EEPROM of capacity f.
In the present embodiment, the model of the FRAM uses MB85RC64 or MB85RC128, and the model of the EERPOM uses M24512R or M24256R, it is obvious that the model of concentrator is distinguished according to the type of memory and memory capacity, It identifies the concentrator of different model, then needs to be determined the type of memory and memory capacity of concentrator.
It is illustrated in figure 2 the method flow diagram of present invention identification different model concentrator, as shown, what this method was implemented Detailed process is as follows:
S1 initializes current concentrator software;
S2, the driving of load store device, recognition memory type;
S3 determines memory capacity using memory capacity recognizer;
S4 determines concentrator model;
S5, load software function module corresponding with concentrator model;
S6 terminates concentrator identification.
Load store device drives in above-mentioned S2, recognition memory type, specifically, sentencing if load first drives successfully The memory to break in current concentrator is that first kind memory judges in current concentrator if load second drives successfully Memory be Second Type memory, wherein the storage drive include drive first kind memory first driving With the second driving of driving Second Type memory, then passes through and judge whether storage drive load successfully may recognize that storage Device type.In the present embodiment, the first kind memory is FRAM, Second Type memory is EERPOM.
After identifying type of memory, for the model for determining concentrator, it is also necessary to further determine that the capacity of memory. Memory capacity algorithm implementation described in above-mentioned S3 is specific as follows:
S31, data are sequentially written in memory, every one data of write-in are that spy is written in the preceding m byte of active cell Code is levied, this feature code value is equal to the serial number of presently written data, and one condition code of every write-in is since second unit Execute read back operation;
Whether S32, the condition code for judging first unit readback condition code corresponding with serial number n are equal, if equal, deposit The memory capacity x=K* (n-1) (bit) of reservoir, wherein K is the digit of a unit in memory, if it is not, then executing S33;
S33, data and character pair code are continued to write to, and executes read back operation, execute S32.
By the read-write theory of EERPOM and FRAM it is found that can be covered in original storage again and again when data store Hold, in order to obtain the capacity of memory, it usually needs know the unit number of memory, the side indicated in the application using condition code Formula realizes the purpose, namely reads when occurring first unit in the corresponding condition code of n-th of storing data and memory for the first time When condition code out is equal, then it represents that the memory has n-1 unit.First of memory with 0 start, if memory with Different condition codes is written in 4 bytes that each unit starts for a unit in 8kbit size, then has the position 0kbit (note For position 1) write-in 0x55AA0001,0x55AA0002 is written the position 8kbit (being denoted as position 2), (is denoted as in the position 16kbit Position 3) write-in 0x55AA0003, in other words, 0kbit-7kbit is first unit, the unit write-in characteristic code 1,8kbit- 15kbit is second unit, the unit write-in characteristic code 2, it is clear that the serial number of data of size and write-in of condition code is equal, And so on, then the condition code of the corresponding write-in of nth data is 0x55AA0000+n.Since the 2nd position, every write-in one Condition code, execute read back operation, if read first unit 1 the corresponding condition code of condition code=nth data, have with Lower formula:
Memory capacity x=8 × (n-1) (kbit)
Memory capacity X is the memory capacity of memory.
Concentrator model can easily be determined using above-mentioned judgment method, and then load software corresponding with the concentrator type Functional module, namely after determining according to the above method type and memory capacity of memory, just can finally determine concentrator Model is then loaded the corresponding corresponding functional module of concentrator software according to the model of concentrator, is realized with this same set of soft Part is general between the concentrator of different model, to lower software development cost, improve production efficiency, while tieing up convenient for software Shield reduces maintenance cost.
Of course, it is possible to imagine, concentrator recognition methods of the present invention is applicable not only to FRAM and EERPOM type collection Middle device, the concentrator that can also be applied to other models identify.
Other than above-mentioned improvement, other similar improvement are also contained in improvement threshold of the invention, are not just existed herein It repeats.Although an embodiment of the present invention has been shown and described, it will be appreciated by those skilled in the art that: do not departing from the present invention Principle and objective in the case where can to these embodiments carry out it is a variety of variation, modification, replacement and deformation, the scope of the present invention It is defined by the claims and their equivalents.

Claims (10)

1. a kind of method for identifying different model concentrator, it is characterised in that: the method includes,
S1 initializes current concentrator software;
S2, the driving of load store device, recognition memory type;
S3 determines memory capacity using memory capacity recognizer;
S4 determines concentrator model.
2. method according to claim 1, it is characterised in that: load store device drives in the S2, recognition memory type, Specifically,
The method of recognition memory type includes, if load first, which drives, successfully judges that the memory in current concentrator is First kind memory, if load second drive successfully judge memory in current concentrator for Second Type memory, Wherein, the storage drive includes driving the first of first kind memory to drive and drive the second of Second Type memory Driving.
3. method according to claim 1, it is characterised in that: deposited in the step S3 using the determination of memory capacity recognizer Reservoir capacity, specifically,
S31, data are sequentially written in memory, every one data of write-in i.e. by the preceding m byte write feature code of active cell, This feature code value is equal to the serial number of presently written data, and every one condition code of write-in executes back since second unit Read operation;
Whether S32, the condition code for judging first unit readback condition code corresponding with serial number n are equal, if equal, memory Memory capacity x=K* (n-1) (bit), wherein K be memory in a unit digit, if it is not, then executing S33;
S33, data and character pair code are continued to write to, and executes read back operation, execute S32.
4. method according to claim 1, it is characterised in that: the method also includes also executing after executing the step S4 Following operation,
S5, load software function module corresponding with concentrator model;
S6 terminates concentrator identification.
5. method according to claim 3, it is characterised in that:
The K value is 8kbit.
6. method according to claim 3, it is characterised in that:
The m value is 4.
7. method according to claim 2, it is characterised in that:
The first memory is FRAM.
8. method according to claim 7, it is characterised in that:
The second memory is EERPOM.
9. method according to claim 8, it is characterised in that:
The model MB85RC64 or MB85RC128 that the FRAM is used;
The model M24512R or M24256R that the EERPOM is used.
10. method according to claim 2, it is characterised in that:
The concentrator first memory or second memory are connect by I2C mode with MCU in concentrator.
CN201910301846.1A 2019-04-15 2019-04-15 Method for identifying concentrators of different models Active CN110209433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910301846.1A CN110209433B (en) 2019-04-15 2019-04-15 Method for identifying concentrators of different models

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910301846.1A CN110209433B (en) 2019-04-15 2019-04-15 Method for identifying concentrators of different models

Publications (2)

Publication Number Publication Date
CN110209433A true CN110209433A (en) 2019-09-06
CN110209433B CN110209433B (en) 2022-07-01

Family

ID=67785334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910301846.1A Active CN110209433B (en) 2019-04-15 2019-04-15 Method for identifying concentrators of different models

Country Status (1)

Country Link
CN (1) CN110209433B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113571106A (en) * 2021-07-21 2021-10-29 四川虹美智能科技有限公司 Data reading method and device for electrified erasable programmable read-only memory

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512342A (en) * 2002-12-27 2004-07-14 技嘉科技股份有限公司 Upgrading control method for intelligent cured software
CN1920777A (en) * 2006-09-15 2007-02-28 中山大学 System software upgrading method for digital household appliances and updated system
CN1964526A (en) * 2005-11-09 2007-05-16 中兴通讯股份有限公司 A method for hardware drive program of intelligent loading mobile phone
US20080072322A1 (en) * 2006-09-01 2008-03-20 Kowsik Guruswamy Reconfigurable Message-Delivery Preconditions for Delivering Attacks to Analyze the Security of Networked Systems
CN102736861A (en) * 2011-04-08 2012-10-17 群联电子股份有限公司 Memory configuration method, memory controller and memory storage device
CN103631615A (en) * 2012-08-22 2014-03-12 通用电气航空系统有限公司 Method and system of implementing data load protocols
CN104160786A (en) * 2011-12-21 2014-11-19 埃尔多实验室控股有限公司 Lighting system and method of retrieving status information of a lighting system
CN104246711A (en) * 2012-04-20 2014-12-24 丰田自动车株式会社 Information processing device, information processing method, and storage medium storing program for executing information processing method
CN104793083A (en) * 2015-04-23 2015-07-22 广西电网有限责任公司电力科学研究院 Communication unit interchangeability testing system and interchanging method thereof
CN105162534A (en) * 2015-09-25 2015-12-16 国网天津市电力公司 System and method of concentrator for testing wireless public network communication
CN105354681A (en) * 2015-11-26 2016-02-24 新疆信息产业有限责任公司 Method for automatically studying, judging and correcting acquisition file of marketing acquisition interface data
US20160098728A1 (en) * 2014-10-04 2016-04-07 Piotr Nawrocki Communication Method And System With DTA Register Architecture
CN105786716A (en) * 2014-12-25 2016-07-20 研祥智能科技股份有限公司 Computer system of heterogeneous hybrid memory architecture, control method of computer system and memory detection system
CN106411991A (en) * 2016-05-26 2017-02-15 苏州工业园区驿力机车科技股份有限公司 Vehicle-mounted data real-time acquisition system
EP3182281A1 (en) * 2015-12-11 2017-06-21 Sagemcom Energy & Telecom Sas Method for transferring a new version of a software program to at least one electric meter via a communication network
CN107544818A (en) * 2016-06-28 2018-01-05 北京小米移动软件有限公司 The loading method and device of system software
CN108038425A (en) * 2017-11-28 2018-05-15 无锡十月中宸科技有限公司 One mode identifies directory system and its indexing means
CN108121763A (en) * 2017-11-25 2018-06-05 无锡十月中宸科技有限公司 One mode identifies directory system and its indexing means
CN108958813A (en) * 2018-06-13 2018-12-07 北京无线电测量研究所 file system construction method, device and storage medium
CN109410454A (en) * 2018-11-08 2019-03-01 珠海十亿网络科技有限公司 A kind of management control method and system of water meter

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512342A (en) * 2002-12-27 2004-07-14 技嘉科技股份有限公司 Upgrading control method for intelligent cured software
CN1964526A (en) * 2005-11-09 2007-05-16 中兴通讯股份有限公司 A method for hardware drive program of intelligent loading mobile phone
US20080072322A1 (en) * 2006-09-01 2008-03-20 Kowsik Guruswamy Reconfigurable Message-Delivery Preconditions for Delivering Attacks to Analyze the Security of Networked Systems
CN1920777A (en) * 2006-09-15 2007-02-28 中山大学 System software upgrading method for digital household appliances and updated system
CN102736861A (en) * 2011-04-08 2012-10-17 群联电子股份有限公司 Memory configuration method, memory controller and memory storage device
CN104160786A (en) * 2011-12-21 2014-11-19 埃尔多实验室控股有限公司 Lighting system and method of retrieving status information of a lighting system
CN104246711A (en) * 2012-04-20 2014-12-24 丰田自动车株式会社 Information processing device, information processing method, and storage medium storing program for executing information processing method
CN103631615A (en) * 2012-08-22 2014-03-12 通用电气航空系统有限公司 Method and system of implementing data load protocols
US20160098728A1 (en) * 2014-10-04 2016-04-07 Piotr Nawrocki Communication Method And System With DTA Register Architecture
CN105786716A (en) * 2014-12-25 2016-07-20 研祥智能科技股份有限公司 Computer system of heterogeneous hybrid memory architecture, control method of computer system and memory detection system
CN104793083A (en) * 2015-04-23 2015-07-22 广西电网有限责任公司电力科学研究院 Communication unit interchangeability testing system and interchanging method thereof
CN105162534A (en) * 2015-09-25 2015-12-16 国网天津市电力公司 System and method of concentrator for testing wireless public network communication
CN105354681A (en) * 2015-11-26 2016-02-24 新疆信息产业有限责任公司 Method for automatically studying, judging and correcting acquisition file of marketing acquisition interface data
EP3182281A1 (en) * 2015-12-11 2017-06-21 Sagemcom Energy & Telecom Sas Method for transferring a new version of a software program to at least one electric meter via a communication network
CN106411991A (en) * 2016-05-26 2017-02-15 苏州工业园区驿力机车科技股份有限公司 Vehicle-mounted data real-time acquisition system
CN107544818A (en) * 2016-06-28 2018-01-05 北京小米移动软件有限公司 The loading method and device of system software
CN108121763A (en) * 2017-11-25 2018-06-05 无锡十月中宸科技有限公司 One mode identifies directory system and its indexing means
CN108038425A (en) * 2017-11-28 2018-05-15 无锡十月中宸科技有限公司 One mode identifies directory system and its indexing means
CN108958813A (en) * 2018-06-13 2018-12-07 北京无线电测量研究所 file system construction method, device and storage medium
CN109410454A (en) * 2018-11-08 2019-03-01 珠海十亿网络科技有限公司 A kind of management control method and system of water meter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丘森辉 等: ""基于ARM9的远程抄表系统集中器的设计与实现"", 《计算机工程与设计》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113571106A (en) * 2021-07-21 2021-10-29 四川虹美智能科技有限公司 Data reading method and device for electrified erasable programmable read-only memory

Also Published As

Publication number Publication date
CN110209433B (en) 2022-07-01

Similar Documents

Publication Publication Date Title
CN100524538C (en) Testing apparatus and testing method
CN107845406A (en) A kind of method and apparatus for testing memory
CN111785315B (en) Method, system, storage medium and terminal for reducing erasing interference and erasing time
CN103177770A (en) Memory structure, repair system and method for testing the same
CN107797821A (en) Retry read method and the device using this method
CN107290650A (en) BIST logic circuit, low-power chip, the method for testing of memory and electronic equipment
CN110209433A (en) A method of identification different model concentrator
CN112542199A (en) Method, circuit, storage medium and terminal for detecting flash storage error
CN110095711B (en) Verification method based on test vector out-of-order and discarding behavior
CN105654993A (en) Function verification method and platform for DDR3 SDRAM (double data rate 3 synchronous dynamic random access memory) controller
CN109901664A (en) Method, apparatus, system, equipment and the readable storage medium storing program for executing of clock signal are provided
US20030051193A1 (en) Computer system with improved error detection
CN103984614B (en) A kind of monitoring method and supervising device, electronic equipment
CN101706746A (en) Device and method for carrying out online debugging on memory interface circuit
JP2011158966A (en) Apparatus, method and program for processing information
CN110532124A (en) Memory partition method and device
CN110187994A (en) A kind of failure separation method, equipment and fault isolation system
US6858447B2 (en) Method for testing semiconductor chips
CN111596199B (en) Test chip, integrated circuit test method and system and detection equipment
CN1100306C (en) IC card reader/writer and its control method
CN110287115A (en) Generation method, device and the server of test report
CN111785312B (en) Method, system, storage medium and terminal for improving multiple-erase programming Vt shift
CN112542208B (en) SD NAND testing method and device, storage medium and terminal
CN111309521B (en) FPGA reloading method, FPGA card type equipment and host
CN111785316B (en) Method, system, storage medium and terminal for overcoming erasure interference

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
GR01 Patent grant
GR01 Patent grant