CN101930375A - Self-adaptive program data updating method of memory space in single user optical network unit - Google Patents

Self-adaptive program data updating method of memory space in single user optical network unit Download PDF

Info

Publication number
CN101930375A
CN101930375A CN2010102652143A CN201010265214A CN101930375A CN 101930375 A CN101930375 A CN 101930375A CN 2010102652143 A CN2010102652143 A CN 2010102652143A CN 201010265214 A CN201010265214 A CN 201010265214A CN 101930375 A CN101930375 A CN 101930375A
Authority
CN
China
Prior art keywords
optical network
network unit
single user
program data
memory
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
CN2010102652143A
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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN2010102652143A priority Critical patent/CN101930375A/en
Publication of CN101930375A publication Critical patent/CN101930375A/en
Pending legal-status Critical Current

Links

Landscapes

  • Optical Communication System (AREA)

Abstract

The invention discloses a self-adaptive program data updating method of a memory space in a single user optical network unit. The method solves the technical problem of updating program data under the condition that the size of the memory space in a single household unit is smaller than that of the program data needing updating. The self-adaptive program data updating method of the memory space in the single user optical network unit has the following steps of: arranging a special memory cell memorizing a comparison algorithm in the optical network unit, automatically segmenting an updating program according to the size of a free memory space, and transferring and memorizing in a flash according to a first in first out principle so as to update the program data. The updating method does not need manual intervention, realizes the self-adaptive program data updating of the memory space, and skillfully solves the problem of the small memory space and the large updating program by utilizing the first in first out algorithm.

Description

The adaptive program data updating method of memory headroom in the single user optical network unit
Technical field
The invention belongs to and realize the adaptive program data updating method of memory headroom in the single user optical network unit, specifically, be that a kind of service routine content in the ROMPaq data is excessive, and realize the adaptive upgrade method of memory headroom in the too small Single Subscriber Unit of the memory size of optical network unit.
Background technology
The optical fiber access technology of this point-to-multipoint of passive optical-fiber network PON, because low, life-span of its cost is long, distance and bandwidth advantages of higher, the one preferred technique scheme of become in recent years that Fiber to the home FTTH, FTTB FTTB etc.The household unit SFU that wherein lives alone is used among the domestic consumer more and more.On a lot of application scenarioss, need to require to live alone household unit SFU miniaturization, low cost.The product of this household unit SFU that lives alone uses very little internal memory of capacity and flash often, to save cost.According to the ROMPaq data method of routine, be with the whole procedure data transmission in internal memory.Just formally be burnt among the flash after the ROMPaq check (CRC) is correct.If when the free memory capacity of SFU was less than the routine data size at this moment, this upgrade method can't be carried out.
Summary of the invention
Technical matters to be solved by this invention is, how under the situation of household unit SFU memory headroom less than the routine data size of needs upgrading of living alone, realizes program data updating.
The present invention for realizing the technical scheme that goal of the invention adopts is: the adaptive program data updating method of memory headroom in the single user optical network unit, above method is based on the upgrade management program that is provided with among the MCU of optical network unit and is that intermediate store realizes by the flash storage unit, be provided with in single user optical network unit and store the private memory of revising data comparison algorithm model, upgrade method may further comprise the steps:
1) by the upgrade management program among the optical network management device startup single user optical network unit MCU;
2) by the size of the MCU of optical network unit record ROMPaq, mark code header, CRC first proof test value, and the remaining space size of internal memory, typing intermediate store;
3) call comparison algorithm model in the private memory size of the size of ROMPaq and internal memory remaining space compared, calculate by the MCU of optical network unit after, ROMPaq is divided into the n segment file, and the initial and end identification code is set respectively in the compressed encoding of above each segment file, n is a positive integer;
4) the n segment file of ROMPaq is deposited successively in the remaining space of internal memory, go into the flash storage unit from the remaining space unloading of internal memory successively according to the first-in first-out principle, after any segment file is gone into the flash storage unit from the remaining space unloading of internal memory, wipe this segment file in the remaining space of internal memory;
5) finish the unloading of whole file after, carry out CRC check, and relatively, if unanimity is carried out step 6) with CRC second proof test value that generates and CRC first proof test value; If inconsistent, return step 1);
6) restart terminal device, move new routine data.
Implement to realize in the single user optical network unit of the present invention the adaptive program data updating method of memory headroom, the mailbox memory that stores comparison algorithm is set in optical network unit, realization can be according to big young pathbreaker's ROMPaq automatic segmentation of internal memory free space, change over to according to the first-in first-out principle then and be stored in flash, finish the upgrading of routine data program.Such upgrade method need not manual intervention, has realized the adaptive program data updating of memory headroom, utilizes the first-in first-out algorithm to solve the difficult problem that memory headroom is little, ROMPaq is big dexterously.
Embodiment
The adaptive program data updating method of memory headroom in the single user optical network unit, above method is based on the upgrade management program that is provided with among the MCU of optical network unit and is that intermediate store realizes by the flash storage unit, be provided with in single user optical network unit and store the private memory of revising data comparison algorithm model, upgrade method may further comprise the steps:
1) by the upgrade management program among the optical network management device startup single user optical network unit MCU;
2) by the size of the MCU of optical network unit record ROMPaq, mark code header, CRC first proof test value, and the remaining space size of internal memory, typing intermediate store;
3) call comparison algorithm model in the private memory size of the size of ROMPaq and internal memory remaining space compared, calculate by the MCU of optical network unit after, ROMPaq is divided into the n segment file, and the initial and end identification code is set respectively in the compressed encoding of above each segment file, n is a positive integer;
4) the n segment file of ROMPaq is deposited successively in the remaining space of internal memory, go into the flash storage unit from the remaining space unloading of internal memory successively according to the first-in first-out principle, after any segment file is gone into the flash storage unit from the remaining space unloading of internal memory, wipe this segment file in the remaining space of internal memory;
5) finish the unloading of whole file after, carry out CRC check, and relatively, if unanimity is carried out step 6) with CRC second proof test value that generates and CRC first proof test value; If inconsistent, return step 1);
6) restart terminal device, move new routine data.
In the described step 3), the method that ROMPaq is divided into the n segment file is: by the ratio algorithm in the mailbox memory, with the size of the ROMPaq size divided by the internal memory remaining space, be divided into the n section by advancing a method principle.
Consider the problem of the program code modification of terminal device, all users are upgraded privately or upgrade, also be provided with the private cipher key of download and upgrade program in the upgrade management program in MCU, the terminal device of single user optical network unit at first detects the accuracy of private cipher key before upgrading.
The present invention in the specific implementation, utilize the comparison algorithm in the mailbox memory that internal memory remaining space and ROMPaq are carried out size relatively, big young pathbreaker's ROMPaq automatic segmentation according to the internal memory remaining space, specific algorithm is: the size of ROMPaq is divided into the n section divided by the size of internal memory remaining space by advancing a method principle.Each segment file does not need to take whole internal memory remaining space yet, can leave certain spare space in the internal memory remaining space, prevents in the future supplemental content, parameter or code and not enough.Each section ROMPaq that is divided into enters internal memory in order under the effect of pointer, according to the principle of first-in first-out, in unloading of each section ROMPaq and flash in the internal memory, finish program data updating then.The control of first-in first-out realizes like this:
1. an indexed variable m is set, and whether judgement symbol variable m is smaller or equal to the total hop count n of upgrade service program, if then at m section upgrade service program segment head banner string block_m is set; And skip to 2., if not, stop storage.
2. detecting m section upgrade service program segment head, whether banner string is set be block_m, if, skip to step 3., if not, stop storage;
3. the one section upgrade service procedure stores that will the section of having initial character string be block_m is wiped this section upgrade service program in the internal memory in flash, change indexed variable m is indexed variable m+1, skips to step 1..
The invention solves the problem that to implement the optical network unit program data updating because memory headroom is little, ROMPaq is big, adopted the adaptive program data updating method of memory headroom, and the algorithm of first-in first-out in addition, reduced memory usage, successfully realize the upgrading of routine data.

Claims (3)

1. the adaptive program data updating method of memory headroom in the single user optical network unit, above method is based on the upgrade management program that is provided with among the MCU of optical network unit and is that intermediate store realizes by the flash storage unit, it is characterized in that: be provided with in single user optical network unit and store the private memory of revising data comparison algorithm model, upgrade method may further comprise the steps:
1) by the upgrade management program among the optical network management device startup single user optical network unit MCU;
2) by the size of the MCU of optical network unit record ROMPaq, mark code header, CRC first proof test value, and the remaining space size of internal memory, typing intermediate store;
3) call comparison algorithm model in the private memory size of the size of ROMPaq and internal memory remaining space compared, calculate by the MCU of optical network unit after, ROMPaq is divided into the n segment file, and the initial and end identification code is set respectively in the compressed encoding of above each segment file, n is a positive integer;
4) the n segment file of ROMPaq is deposited successively in the remaining space of internal memory, go into the flash storage unit from the remaining space unloading of internal memory successively according to the first-in first-out principle, after any segment file is gone into the flash storage unit from the remaining space unloading of internal memory, wipe this segment file in the remaining space of internal memory;
5) finish the unloading of whole file after, carry out CRC check, and relatively, if unanimity is carried out step 6) with CRC second proof test value that generates and CRC first proof test value; If inconsistent, return step 1);
6) restart terminal device, move new routine data.
2. the adaptive program data updating method of memory headroom in the single user optical network unit according to claim 1, it is characterized in that: in the described step 3), the method that ROMPaq is divided into the n segment file is: by the comparison algorithm in the mailbox memory, with the size of the ROMPaq size divided by the internal memory remaining space, be divided into the n section by advancing a method principle.
3. the adaptive program data updating method of memory headroom in the single user optical network unit according to claim 1, it is characterized in that: also be provided with the private cipher key of download and upgrade program in the upgrade management program in MCU, the terminal device of single user optical network unit at first detects the accuracy of private cipher key before upgrading.
CN2010102652143A 2010-08-26 2010-08-26 Self-adaptive program data updating method of memory space in single user optical network unit Pending CN101930375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102652143A CN101930375A (en) 2010-08-26 2010-08-26 Self-adaptive program data updating method of memory space in single user optical network unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102652143A CN101930375A (en) 2010-08-26 2010-08-26 Self-adaptive program data updating method of memory space in single user optical network unit

Publications (1)

Publication Number Publication Date
CN101930375A true CN101930375A (en) 2010-12-29

Family

ID=43369570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102652143A Pending CN101930375A (en) 2010-08-26 2010-08-26 Self-adaptive program data updating method of memory space in single user optical network unit

Country Status (1)

Country Link
CN (1) CN101930375A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135922A (en) * 2011-03-18 2011-07-27 北京经纬恒润科技有限公司 Method and system for refreshing application program
CN105703945A (en) * 2016-01-08 2016-06-22 烽火通信科技股份有限公司 Optical network unit (ONU) upgrading method
CN105975308A (en) * 2016-05-04 2016-09-28 烽火通信科技股份有限公司 Remote upgrading system for low-memory overheads in home gateways and remote upgrading method
CN106789863A (en) * 2016-04-25 2017-05-31 新华三技术有限公司 A kind of matched rule upgrade method and device
CN107992323A (en) * 2017-12-27 2018-05-04 深圳市科陆电子科技股份有限公司 A kind of concentrator upgrade method and system
CN108733394A (en) * 2018-04-24 2018-11-02 烽火通信科技股份有限公司 A kind of optical network unit version upgrading method and system
CN109002312A (en) * 2018-09-10 2018-12-14 京信通信系统(中国)有限公司 Method for upgrading software, device and upgrade server and equipment
CN109565519A (en) * 2016-08-08 2019-04-02 奥迪股份公司 The method that file is transmitted between the control device of vehicle and the server unit of outside vehicle, control device and vehicle
CN111352730A (en) * 2020-02-11 2020-06-30 浙江大华技术股份有限公司 Caching method and device for application program upgrading, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050063242A1 (en) * 2001-07-16 2005-03-24 Yuqing Ren Embedded software update methods and systems for digital devices
CN1866228A (en) * 2006-06-20 2006-11-22 北京飞天诚信科技有限公司 Online updating method for USB device when communication protocol constrained
CN101135972A (en) * 2006-08-29 2008-03-05 中兴通讯股份有限公司 Method for upgrading terminal flash software
CN101515967A (en) * 2009-03-18 2009-08-26 中兴通讯股份有限公司 Over-the-air downloader of terminal firmware and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050063242A1 (en) * 2001-07-16 2005-03-24 Yuqing Ren Embedded software update methods and systems for digital devices
CN1866228A (en) * 2006-06-20 2006-11-22 北京飞天诚信科技有限公司 Online updating method for USB device when communication protocol constrained
CN101135972A (en) * 2006-08-29 2008-03-05 中兴通讯股份有限公司 Method for upgrading terminal flash software
CN101515967A (en) * 2009-03-18 2009-08-26 中兴通讯股份有限公司 Over-the-air downloader of terminal firmware and method thereof

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135922A (en) * 2011-03-18 2011-07-27 北京经纬恒润科技有限公司 Method and system for refreshing application program
CN105703945B (en) * 2016-01-08 2019-04-16 烽火通信科技股份有限公司 A kind of method of ONU upgrading
CN105703945A (en) * 2016-01-08 2016-06-22 烽火通信科技股份有限公司 Optical network unit (ONU) upgrading method
CN106789863A (en) * 2016-04-25 2017-05-31 新华三技术有限公司 A kind of matched rule upgrade method and device
CN106789863B (en) * 2016-04-25 2020-06-26 新华三技术有限公司 Matching rule upgrading method and device
CN105975308A (en) * 2016-05-04 2016-09-28 烽火通信科技股份有限公司 Remote upgrading system for low-memory overheads in home gateways and remote upgrading method
CN109565519B (en) * 2016-08-08 2020-04-03 奥迪股份公司 Method and vehicle for transmitting files
CN109565519A (en) * 2016-08-08 2019-04-02 奥迪股份公司 The method that file is transmitted between the control device of vehicle and the server unit of outside vehicle, control device and vehicle
US10958709B2 (en) 2016-08-08 2021-03-23 Audi Ag Method for transferring a file between a control device of a motor vehicle and a server device outside the vehicle, control device and motor vehicle
CN107992323A (en) * 2017-12-27 2018-05-04 深圳市科陆电子科技股份有限公司 A kind of concentrator upgrade method and system
CN108733394A (en) * 2018-04-24 2018-11-02 烽火通信科技股份有限公司 A kind of optical network unit version upgrading method and system
CN108733394B (en) * 2018-04-24 2021-11-16 烽火通信科技股份有限公司 Optical network unit version upgrading method and system
CN109002312A (en) * 2018-09-10 2018-12-14 京信通信系统(中国)有限公司 Method for upgrading software, device and upgrade server and equipment
CN111352730A (en) * 2020-02-11 2020-06-30 浙江大华技术股份有限公司 Caching method and device for application program upgrading, computer equipment and storage medium
CN111352730B (en) * 2020-02-11 2023-07-14 浙江大华技术股份有限公司 Caching method and device for application program upgrade, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101930375A (en) Self-adaptive program data updating method of memory space in single user optical network unit
CN100459499C (en) Method for transmitting upgrade software to optical network unit in Ethernet passive optical network
CN103997540B (en) The implementation method of network distribution type storage
CN103546467B (en) The method applying Modbus rtu protocol on TCP/IP network
CN102014282B (en) Distributed video transcoding scheduling method and system
CN103412822B (en) Operation Nonvolatile memory and the method and relevant apparatus of data manipulation
CN102098590A (en) Automatic upgrading method and system of firmware version of optical network unit
CN105159718B (en) Firmware upgrade method and device
CN102035669B (en) Function calling system and method
CN107450952B (en) Using management-control method, device, storage medium and electronic equipment
CN104038632A (en) Method and device for managing intelligent terminal
CN111988409B (en) Method and system for realizing cloud mobile phone mounted external storage starting
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN102426586A (en) FAT (file allocation table) file storage method in embedded system
CN106506246B (en) Optical network unit, the method for its dynamic expansion management function and GPON system
CN103617007A (en) Method and system for achieving multilevel intelligent storage
CN108874414A (en) Software upgrading method and device, readable storage medium and television equipment
CN103249027A (en) Method and equipment for terminal service processing
CN113053090B (en) Distributed data set reading system and method for intelligent electric meter
CN108650306A (en) A kind of game video caching method, device and computer storage media
CN105700922A (en) Method and device for automatically cleaning memory when charging is carried out and mobile terminal
CN106470114A (en) A kind of collocation method of OTA AKU and device
CN104506939A (en) Information reporting method and television terminal
CN107402626A (en) Using cycle synchronisation management method, device, storage medium and electronic equipment
CN109765986A (en) Power-saving control method, terminal device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518000, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Applicant after: Shenzhen Gongjin Electronics Co., Ltd.

Address before: 518000 Nanshan medical equipment Industrial Park, No. 1019 Nanhai Road, Shenzhen, Guangdong, Nanshan District B411-413

Applicant before: Shenzhen Gongjin Electronics Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN GONGJIN ELECTRONICS CO., LTD. TO: SHENZHEN GONGJIN ELECTRONIC CO., LTD.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101229