CN107203392A - A kind of many stipulations implementation methods of mini system end product - Google Patents
A kind of many stipulations implementation methods of mini system end product Download PDFInfo
- Publication number
- CN107203392A CN107203392A CN201710211564.3A CN201710211564A CN107203392A CN 107203392 A CN107203392 A CN 107203392A CN 201710211564 A CN201710211564 A CN 201710211564A CN 107203392 A CN107203392 A CN 107203392A
- Authority
- CN
- China
- Prior art keywords
- terminal
- main website
- stipulations
- upgrading
- program
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44573—Execute-in-place [XIP]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to a kind of many stipulations implementation methods of mini system end product, i.e., the application program of different stipulations is stored in a fixed order the flash reservation regions of terminal, then terminal is carried out according to following two situations:(1), when main website occur and issuing stipulations change order to terminal, if the difference that the protocol type issued and terminal are currently run, then corresponding stand-by program copies to the upgrading exchange area of terminal in terminal flash Application Backup area;(2), when main website occur and issuing application program updating order to terminal, terminal receives upgrade file and is simultaneously put into upgrading exchange area start program upgrading;Main website can realize that many stipulations of terminal switch by way of stipulations change order is issued to terminal, main website can also enter line program upgrading by issuing program upgrade command to terminal and realize that many stipulations of terminal switch, it is to avoid the situation that the hardware platform of acquisition terminal is upgraded.
Description
Technical field
The present invention relates to power information acquisition system technical field, more particularly, to a kind of many rule of mini system end product
About implementation method.
Background technology
On China's net new standard power user power consumption information acquisition system, in state's net issue 376-2009 series in 2009
Acquisition system company standard, in the serial acquisition system company standards of state net issue 1376-2013 in 2013, in state's net hair in 2016
Cloth DL/T 698-45 agreements, and (specification has increased to group norms to Fujian issue Fujian supplement specification, and the later stage has more
Many net provincial companies are used), and then part net is saved proposes, it is desirable to which user terminal, which is realized, supports many stipulations, thus can basis
Field demand carries out stipulations switching.With the popularization of new stipulations, the end product for supporting many stipulations agreements will be following development
Trend.In the prior art, the method typically taken is to realize the parsing to many stipulations simultaneously in the application program of terminal, this
It is that sample is done the disadvantage is that, in same set of code, need to be with a variety of stipulations systems be safeguarded simultaneously, if one of which stipulations need to repair
Change, the code of change may influence whether the operation of other stipulations, and version management is inconvenient, and easily malfunctions, meanwhile, issue
Application volume also than larger, remote upgrade is inconvenient, and for common terminal platform, such as STM32F207,
STM32F407, its system resource includes ROM:768K (1M), RAM:128K, Flash:128M, because its termination function is complicated,
Limited system resources, cause many stipulations can not be realized in same application.
The content of the invention
The technical problems to be solved by the invention are to provide one kind and disclosure satisfy that many stipulations switchings, and need not gather end
The many stipulations implementation methods for the mini system end product that the hardware platform at end is upgraded.
The technical solution adopted in the present invention is that a kind of many stipulations implementation methods of mini system end product, its feature exists
In, first terminal is configured, i.e., the application program of different protocol types be stored in a fixed order terminal flash protect
Region is stayed, and management is numbered using lexicographic mode, then terminal is carried out according to following two situations:
(1), when occur main website to terminal issue stipulations change order situation when, step is:
First, stipulations change order is issued from main website to terminal, terminal is judged as what main website was issued after receiving change order
Whether protocol type is identical with the protocol type that terminal is currently run, if it is different, the stipulations that so terminal is issued according to main website
Type preserves internal number to determine the internal number of corresponding application program in its flash, then sends one
Current messaging parameter backup is stored in parameter backup area by confirmation response to main website, now terminal, further according to the application of determination
Program internal number exchanges the upgrading that corresponding stand-by program in terminal flash Application Backup area copies to terminal
Area;
2nd, upgrading exchange area receives copied next stand-by program, after receiving, and terminal carries out reset and restarted, and root
According to needing to carry out the arrangement or initialization of parameter region and data field, then read and arrange parameter backup area messaging parameter,
Main website is then separately logs, the switching of terminal stipulations is completed;
(2), when main website occur and issuing application program updating order to terminal, step is:
First, main website can issue application program updating order to terminal, and terminal receives upgrade command and carries out the standard upgraded
Standby, at the same time, upgrade file is sent to terminal by main website, and terminal receives upgrade file and is put into upgrading exchange area, received
Current messaging parameter automated back-up is stored in parameter backup area by Bi Hou, terminal, is then carried out reset and is restarted, starts terminal journey
Sequence is upgraded;
2nd, the application program corresponding to the upgrade file that terminal is received normally starts, and terminal is run according to upgrade file
Protocol type finds the corresponding stand-by program position in terminal program backup area, and then terminal will upgrade in exchange area
Upgrade file enter line program with the backup application under the position in Application Backup area and compare, if both differ
Cause, then the promoted file-backed for exchange area of upgrading will be covered original stand-by program to this position by terminal;If hair
Existing backup area is sky, then just directly by the promoted file-backed for exchange area of upgrading to program backup area;
3rd, after terminal is upgraded, it first carries out the arrangement or initialization of parameter region and data field as needed, so
Read the messaging parameter of simultaneously arrange parameter backup area again afterwards, sign in main website, complete the upgrading of application program.
The beneficial effects of the invention are as follows:Store the application program of different protocol types respectively using the flash of terminal, it is main
Standing can realize that many stipulations of terminal switch by way of stipulations change order is issued to terminal so that end product can ring
Answer main website to switch the order of stipulations and automatically switch under the stipulations that main website is specified to run, while also ensuring that messaging parameter will not
Lose, main website can be normally logged in after terminal switching stipulations, main website can also be carried out by issuing program upgrade command to terminal
Program upgrades to realize many stipulations switchings of terminal, so reduces the volume of single application program, different rule are met again
It can about upgrade with Stand-alone distribution and individually, prevent different stipulations and realized that adulterating mutually occurs in code, the phenomenon interacted,
Present invention, avoiding the situation that the hardware platform of acquisition terminal is upgraded, feelings of the end product in limited system resources are realized
The technique effect of a variety of stipulations switchings is supported under condition.
As preferential, when main website occur and issuing application program updating order to terminal, in step one, if under main website
The upgrade file of hair is interrupted, and terminal supports breakpoint transmission by the updated contents that have been received by are retained, if main website change rises
Level file, terminal will abandon the upgrade file contents having been received by, and upgrade file is received again, can so ensure upgrade file
It is sent to normally and efficiently terminal.
As preferential, when main website occur and issuing application program updating order to terminal, in step one, upgrade file connects
Harvest after finishing, if the upgrade file received does not carry protocol type information, file verification code, or program calculates upgrading text
The check code of part and the check code that upgrade file is carried are inconsistent, then terminal is abandoned by the error message of response main website, and actively
Upgrade file, without upgrading, this is done to ensure to receive correct upgrade file, improves the effect of terminal staging stipulations
Rate.
As preferential, when there is main website and issuing application program updating order to terminal, in step one and step 2,
If there is the situation that the application program updating of terminal is abnormal, then terminal is still continuing with original application program and held
OK, the content of any new upgrading is not loaded with, so doing can avoid system crash occur in the case of stipulations upgrading exception
Phenomenon.
Brief description of the drawings
Flow charts of the Fig. 1 for the present invention when carrying out the switching of terminal stipulations;
Flow charts of the Fig. 2 for the present invention when carrying out end application upgrading.
Embodiment
Referring to the drawings and combine embodiment and further describe invention, to make those skilled in the art's reference
Specification word can be implemented according to this, and the scope of the present invention is not limited to the embodiment.
The present invention relates to a kind of many stipulations implementation methods of mini system end product, the implementation method is:First by terminal
It is configured, i.e., the application program of different stipulations is stored in a fixed order the flash reservation regions of terminal, and uses word
Management is numbered in canonical form mode, and specific Flash spaces are allocated as follows:
Numbering | Allocated length (K) | Explanation |
0 | 1024 | Program backup 1 (1376-2013) |
1 | 1024 | Program backup 2 (Fujian supplement) |
2 | 1024 | Program backup 3 (DL/T698.45-2016) |
3 | 1024 | Program backup 4 (standby, 376-2009 wouldn't be realized) |
… | … | … |
According to customer demand, when terminal is produced, in the stage of programming character library, technique needs this clear and definite information, i.e.,
By the synchronous programming of the application program of different stipulations to terminal flash program backup area.
Then terminal is carried out according to following two situations:
(1), when occur main website to terminal issue stipulations change order situation when, step is:
First, stipulations change order is issued from main website to terminal, terminal is judged as what main website was issued after receiving change order
Whether protocol type is identical with the protocol type that terminal is currently run, if it is different, the stipulations that so terminal is issued according to main website
Type preserves internal number to determine the internal number of corresponding application program in its flash, then sends one
Current messaging parameter backup is stored in parameter backup area by confirmation response to main website, now terminal, further according to the application of determination
Program internal number exchanges the upgrading that corresponding stand-by program in terminal flash Application Backup area copies to terminal
Area;
2nd, upgrading exchange area receives copied next stand-by program, after receiving, and terminal carries out reset and restarted, and root
According to needing to carry out the arrangement or initialization of parameter region and data field, then read and arrange parameter backup area messaging parameter,
Main website is then separately logs, the switching of terminal stipulations is completed;
(2), when main website occur and issuing application program updating order to terminal, step is:
First, main website can issue application program updating order to terminal, and terminal receives upgrade command and carries out the standard upgraded
Standby, at the same time, upgrade file is sent to terminal by main website, and terminal receives upgrade file and is put into upgrading exchange area, received
Current messaging parameter automated back-up is stored in parameter backup area by Bi Hou, terminal, is then carried out reset and is restarted, starts terminal journey
Sequence is upgraded;
2nd, the application program corresponding to the upgrade file that terminal is received normally starts, and terminal is run according to upgrade file
Protocol type finds corresponding stand-by program position in terminal program backup area, and then terminal will upgrade in exchange area
Upgrade file enters line program with the backup application under the position in Application Backup area and compared, if both are inconsistent,
So the promoted file-backed for exchange area of upgrading will be covered original stand-by program to this position by terminal;If it find that standby
Part area is sky, then just directly by the promoted file-backed of upgrading exchange area to program backup area;
3rd, after terminal is upgraded, it first carries out the arrangement or initialization of parameter region and data field as needed, so
Read the messaging parameter of simultaneously arrange parameter backup area again afterwards, sign in main website, complete the upgrading of application program.
As preferential, when main website occur and issuing application program updating order to terminal, in step one, if under main website
The upgrade file of hair is interrupted, and terminal supports breakpoint transmission by the updated contents that have been received by are retained, if main website change rises
Level file, terminal will abandon the upgrade file contents having been received by, and upgrade file is received again.
As preferential, when main website occur and issuing application program updating order to terminal, in step one, upgrade file connects
Harvest after finishing, if the upgrade file received does not carry protocol type information, file verification code, or program calculates upgrading text
The check code of part and the check code that upgrade file is carried are inconsistent, then terminal is abandoned by the error message of response main website, and actively
Upgrade file, without upgrading.
As preferential, when there is main website and issuing application program updating order to terminal, in step one and step 2,
If there is the situation that the application program updating of terminal is abnormal, then terminal is still continuing with original application program and held
OK, it is not loaded with the content of any new upgrading.
Claims (4)
1. a kind of many stipulations implementation methods of mini system end product, it is characterised in that:First terminal is configured, i.e., different
The application program of stipulations is stored in the flash reservation regions of terminal in a fixed order, and is numbered using lexicographic mode
Management, then terminal is according to the progress of following two situations:
(1), when occur main website to terminal issue stipulations change order situation when, step is:
First, stipulations change order is issued from main website to terminal, terminal is judged as the stipulations that main website is issued after receiving change order
Whether type is identical with the protocol type that terminal is currently run, if it is different, the protocol type that so terminal is issued according to main website
To determine the internal number of corresponding application program in its flash, and internal number is preserved, then send a confirmation
Current messaging parameter backup is stored in parameter backup area by response to main website, now terminal, further according to the application program of determination
Internal number copies to corresponding stand-by program in terminal flash Application Backup area the upgrading exchange area of terminal;
2nd, upgrading exchange area receives copied next stand-by program, after receiving, and terminal carries out reset and restarted, and according to need
The arrangement or initialization of parameter region and data field are carried out, then reads the messaging parameter of simultaneously arrange parameter backup area, then
Sign in main website, complete the switching of terminal stipulations;
(2), when main website occur and issuing application program updating order to terminal, step is:
First, main website can issue application program updating order to terminal, and terminal receives upgrade command and carries out the preparation upgraded, with
This simultaneously, upgrade file is sent to terminal by main website, and terminal receives upgrade file and is simultaneously put into upgrading exchange area, after receiving,
Current messaging parameter automated back-up is stored in parameter backup area by terminal, is then carried out reset and is restarted, starts terminal program liter
Level;
2nd, the application program corresponding to the upgrade file that terminal is received normally starts, the stipulations that terminal is run according to upgrade file
Type finds corresponding stand-by program position in terminal program backup area, and then terminal is by the upgrading in exchange area of upgrading
File enters line program with the backup application under the position in Application Backup area and compared, if both are inconsistent, then
The promoted file-backed for exchange area of upgrading will be covered original stand-by program to this position by terminal;If it find that backup area
For sky, then just directly by the promoted file-backed for exchange area of upgrading to program backup area;
3rd, after terminal is upgraded, it first carries out the arrangement or initialization of parameter region and data field, Ran Houzai as needed
The messaging parameter of simultaneously arrange parameter backup area is read, main website is signed in, the upgrading of application program is completed.
2. a kind of many stipulations implementation methods of mini system end product according to claim 1, it is characterised in that:Work as appearance
Main website to terminal issue application program updating order when, in step one, if the upgrade file that main website is issued is interrupted, eventually
The updated contents for having been received by reservation are held to support breakpoint transmission, if main website changes upgrade file, terminal will be abandoned and received
The upgrade file contents arrived, receive upgrade file again.
3. a kind of many stipulations implementation methods of mini system end product according to claim 1 or claim 2, its feature
It is:When there is main website and issuing application program updating order to terminal, in step one, after upgrade file is received, if
The upgrade file received does not carry protocol type information, file verification code, or program calculates the check code of upgrade file
The check code carried with upgrade file is inconsistent, then the error message of response main website is actively abandoned upgrade file by terminal, no
Upgraded.
4. a kind of many stipulations implementation methods of mini system end product according to claim 3, it is characterised in that:Work as appearance
Main website to terminal issue application program updating order when, in step one and step 2, if there is the application program of terminal
The situation for exception of upgrading, then terminal is still continuing with original application program and performed, and is not loaded with any new upgrading
Content, so doing can avoid the phenomenon of system crash occur in the case of stipulations upgrading exception.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710211564.3A CN107203392B (en) | 2017-04-01 | 2017-04-01 | Multi-protocol implementation method of small system terminal product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710211564.3A CN107203392B (en) | 2017-04-01 | 2017-04-01 | Multi-protocol implementation method of small system terminal product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107203392A true CN107203392A (en) | 2017-09-26 |
CN107203392B CN107203392B (en) | 2020-07-14 |
Family
ID=59905689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710211564.3A Active CN107203392B (en) | 2017-04-01 | 2017-04-01 | Multi-protocol implementation method of small system terminal product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107203392B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656598A (en) * | 2018-12-24 | 2019-04-19 | 天津凯发电气股份有限公司 | A kind of application program online upgrading method based on MQX real time operating system |
CN113848829A (en) * | 2021-09-09 | 2021-12-28 | 许昌许继软件技术有限公司 | Main station and substation integrated operation and maintenance method and system for factory and mine power grid regulation and control system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020055990A1 (en) * | 1999-11-08 | 2002-05-09 | Vaman Dhadesugoor R. | Method and apparatus for providing end-to-end quality of service in multiple transport protocol environments using permanent or switched virtual circuit connection management |
US20070299940A1 (en) * | 2006-06-23 | 2007-12-27 | Microsoft Corporation | Public network distribution of software updates |
US20080107039A1 (en) * | 2006-11-02 | 2008-05-08 | Marios Hadjieleftheriou | Method and Apparatus for Estimating Dominance Norms of a Plurality of Signals |
CN102227122A (en) * | 2011-06-22 | 2011-10-26 | 北京四方继保自动化股份有限公司 | Platform-independent protocol modularized system |
CN102314369A (en) * | 2011-10-09 | 2012-01-11 | 杭州先锋电子技术股份有限公司 | Self-upgrade method for equipment in remote online monitoring system |
US20130223302A1 (en) * | 2012-02-23 | 2013-08-29 | Chien-Chih Kuo | Multi-protocol switching control system suitable for controlling different electronic devices of different protocols |
CN104113541A (en) * | 2014-07-16 | 2014-10-22 | 云南电力试验研究院(集团)有限公司电力研究院 | Power communication protocol conversion integrated device system |
CN105227402A (en) * | 2015-09-29 | 2016-01-06 | 国网福建省电力有限公司 | The integrated method of testing of a kind of intelligent substation many stipulations communication |
CN105472021A (en) * | 2015-12-24 | 2016-04-06 | 安徽立卓智能电网科技有限公司 | Configurable flexible collection method |
-
2017
- 2017-04-01 CN CN201710211564.3A patent/CN107203392B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020055990A1 (en) * | 1999-11-08 | 2002-05-09 | Vaman Dhadesugoor R. | Method and apparatus for providing end-to-end quality of service in multiple transport protocol environments using permanent or switched virtual circuit connection management |
US20060195581A1 (en) * | 1999-11-08 | 2006-08-31 | Boyle Phosphorus Llc | Method and apparatus for providing end-to-end quality of service in multiple transport protocol environments using permanent or switched virtual circuit connection management |
US20070299940A1 (en) * | 2006-06-23 | 2007-12-27 | Microsoft Corporation | Public network distribution of software updates |
US20080107039A1 (en) * | 2006-11-02 | 2008-05-08 | Marios Hadjieleftheriou | Method and Apparatus for Estimating Dominance Norms of a Plurality of Signals |
CN102227122A (en) * | 2011-06-22 | 2011-10-26 | 北京四方继保自动化股份有限公司 | Platform-independent protocol modularized system |
CN102314369A (en) * | 2011-10-09 | 2012-01-11 | 杭州先锋电子技术股份有限公司 | Self-upgrade method for equipment in remote online monitoring system |
US20130223302A1 (en) * | 2012-02-23 | 2013-08-29 | Chien-Chih Kuo | Multi-protocol switching control system suitable for controlling different electronic devices of different protocols |
CN104113541A (en) * | 2014-07-16 | 2014-10-22 | 云南电力试验研究院(集团)有限公司电力研究院 | Power communication protocol conversion integrated device system |
CN105227402A (en) * | 2015-09-29 | 2016-01-06 | 国网福建省电力有限公司 | The integrated method of testing of a kind of intelligent substation many stipulations communication |
CN105472021A (en) * | 2015-12-24 | 2016-04-06 | 安徽立卓智能电网科技有限公司 | Configurable flexible collection method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656598A (en) * | 2018-12-24 | 2019-04-19 | 天津凯发电气股份有限公司 | A kind of application program online upgrading method based on MQX real time operating system |
CN113848829A (en) * | 2021-09-09 | 2021-12-28 | 许昌许继软件技术有限公司 | Main station and substation integrated operation and maintenance method and system for factory and mine power grid regulation and control system |
Also Published As
Publication number | Publication date |
---|---|
CN107203392B (en) | 2020-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101699402B (en) | Multi-mode startup embedded system | |
CN101697128A (en) | Version upgrading method and device | |
CN110209405A (en) | The automatic updating method and device of distributed system | |
CN110138688A (en) | Dynamic adjusts method, apparatus, equipment and the readable storage medium storing program for executing of business interface | |
CN102595184A (en) | Intelligent television automation test method and system | |
CN107562494A (en) | A kind of method for updating memory SPD firmware | |
CN108445788B (en) | Hotel scene control method and related device | |
CN106708573A (en) | System and method used for automatic installation of Hadoop cluster | |
CN107203392A (en) | A kind of many stipulations implementation methods of mini system end product | |
CN101694617B (en) | Multi-language support implementing method based on resource identifier | |
CN109657317B (en) | CPLD pin allocation method, system and equipment | |
CN112463195B (en) | Method, system, terminal and storage medium for cluster grouping online upgrade | |
CN103079108A (en) | Set top box and starting method thereof | |
CN107621943A (en) | A kind of FPGA dynamic batch programming system and method | |
CN104410511A (en) | Server management method and system | |
CN106789236B (en) | A method of the FOTA remote online upgrading of fusion WiFiP2P | |
CN104317660A (en) | Bank parameter managing system | |
CN112003730A (en) | Method, system, terminal and storage medium for rapid cluster deployment | |
CN101841430A (en) | Method and device for correcting command line | |
CN115604113B (en) | FAN network equipment rapid upgrading method, system, equipment and medium | |
CN112486664A (en) | Node capacity expansion method, system, terminal and storage medium | |
CN116450165A (en) | Method, system, terminal and storage medium for quickly building environment and deploying program | |
CN110703988B (en) | Storage pool creating method, system, terminal and storage medium for distributed storage | |
CN103188117B (en) | Information interaction server simulation testing device and method | |
CN102811154B (en) | Resource acquisition method and network server system |
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 |