CN109428755A - A kind of PON hardware single board business form configuration method and system - Google Patents

A kind of PON hardware single board business form configuration method and system Download PDF

Info

Publication number
CN109428755A
CN109428755A CN201710771344.6A CN201710771344A CN109428755A CN 109428755 A CN109428755 A CN 109428755A CN 201710771344 A CN201710771344 A CN 201710771344A CN 109428755 A CN109428755 A CN 109428755A
Authority
CN
China
Prior art keywords
configuration
single board
hardware single
pon
configuration file
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.)
Withdrawn
Application number
CN201710771344.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.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201710771344.6A priority Critical patent/CN109428755A/en
Publication of CN109428755A publication Critical patent/CN109428755A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

A kind of PON hardware single board business form configuration method and system.Configuration parameter corresponding to the PON hardware single board business form is encapsulated as by configuration file using binary form, in the flash memory of burned veneer.The configuration file is called and parsed in the U-Boot stage, hardware VID is replaced with this, realizes the differentiation to the business form.System provided by the present invention, software version and configuration file are separated from each other.When updating configuration, without recompilating software version, multi version only needs the configuration file of a binary form.Thus, the present invention can simplify the workload for form of activating business, and rapidly and efficiently identify and load the different business forms, reduce software version maintenance difficulties.

Description

A kind of PON hardware single board business form configuration method and system
Technical field
The present invention relates to PON (Passive Optical Network: the passive optical-fiber network) communication technologys, more particularly to A kind of configuration method and system of the PON hardware single board business form.
Background technique
With the fast development of broadband access technology, passive optical network PON (Passive Optical Network), visitor Family terminal device CPE (Customer Premise Equipment) etc. has been more and more widely used.
In order to facilitate the maintenance of software version, the same software version is usually compatible with multiple PON hardware single board business forms. The business form includes manufacturer corresponding to PON hardware single board, Ethernet interface number, WIFI mono-/bis-frequency, voice realization side The information such as case, USB port.In existing business form configuration technology, needs the PON hardware single board after the power-up, read the list The hardware VID (Voltage Identification, voltage identification) of plate, then loaded by software version according to different hardware VID Different driving, service code, to match and realize the function of the different business forms.
The hardware VID of PON hardware single board generally by multidigit GPIO (General Purpose Input Output, it is general Input/output) external pullup or pulldown resistance realizes.Main controller (CPU) in PON hardware single board passes through identification GPIO interface electricity Flat various combination obtains VID value.When VID is designed as 8,0-255 can be distinguished, amounts to 256 business forms.
However, this need to occupy multiple GPIO interface hardware moneys using hardware VID progress business form knowledge method for distinguishing Source.Since GPIO interface hardware resource is limited, as hardware single board business form quantity continues to increase, carry out by means of which Business form identification will face the not enough problem of VID value.
Currently, in order to make full use of limited GPIO interface resource, GPIO interface used in hardware VID need to be multiplexed as far as possible Do other business functions.However, when being multiplexed other business functions, due to hardware VID need in the external pullup/pulldown resistance of GPIO, These resistance can then cause voltage, cause the problems such as indicator light accidentally shines, communication interface level is nonstandard, influence other function The multiplexing of energy.
Exist to solve the above problems, the configuration file of design textual form can be attempted and provide configuration parameter for software version Certain feasibility.It, need to be in the U-Boot (general starting of an open source but when carrying out business form configuration for PON hardware single board Dynamic loading procedure) operation phase gets configuration information.But the start-up course of PON hardware single board has no file system in this stage System, thus cannot achieve the configuration information that the business form is read from text configuration file.
So finding a kind of skill of identification and configuration for capableing of the alternative hardware VID progress PON hardware single board business form Art for form of activating business, while solving to have for the level errors occurred when PON hardware single board multiplexing GPIO interface Significance.
Summary of the invention
In order to solve the shortcomings of the prior art, the purpose of the present invention is to provide a kind of PON hardware single board business shapes State configuration method and system.
Firstly, to achieve the above object, proposing a kind of PON hardware single board business form configuration method, comprising the following steps:
The first step, encapsulates configuration parameter corresponding to the PON hardware single board business form in binary form, and formation is matched Set file;
Second step enters the configuration file programming in PON hardware single board;
Third step, the PON hardware single board start U-Boot after powering on, and read the configuration file and parse, according to solution Configuration parameter obtained is analysed to be initialized;
4th step starts corresponding service software according to the configuration parameter.
Further, in above-mentioned business form configuration method, in the first step, using GUI (graphic user interface, Graphical User Interface) host computer configuration software to the configuration parameter carry out binary form encapsulation.
Specifically, the configuration file includes verification magic number, configuration file description in above-mentioned business form configuration method Data corresponding to information, Configuration Type, length and each Configuration Type corresponding to each Configuration Type.
The Configuration Type includes GPIO interface class, WIFI class, Ethernet interface class, VOIP class.
Correspondingly, being integrated in GUI host computer configuration software in the first step in above-mentioned business form configuration method The configuration class in the configuration parameter of acquisition is parsed in Configuration Type, the Configuration Type in the configuration file and the third step Type is all made of identical data structure and storage order is identical.
It is hard the configuration file programming is entered PON in the second step meanwhile in above-mentioned business form configuration method Further include the steps that carrying out CRC check before part veneer;The CRC check method includes main controller in the PON hardware single board Included CRC check algorithm or the CRC check algorithm that the PON hardware single board is written by software-driven.
Correspondingly, in above-mentioned business form configuration method, the configuration file further includes and the CRC check method phase The check bit matched.
Secondly, to achieve the above object, it is also proposed that a kind of PON hardware single board business form configuration system, comprising: master control Device, and the power module, clock module, reseting module and a variety of peripheral modules that are connect with the main controller;
Flash cell programming in the main controller has and configuration file corresponding to the peripheral module;
The configuration file is packaged with configuration parameter in binary form, and the configuration parameter includes: verification magic number, configuration Data corresponding to file description information, Configuration Type, length and each Configuration Type corresponding to each Configuration Type.
Further, in the business form configuration system, the software of institute's programming in the configuration file and PON hardware single board Version is mutually indepedent.
Further, in the business form configuration system, described in the flash interface of configuration file described in programming and programming The flash interface of software version is identical.
Beneficial effect
The present invention replaces hardware VID in the form of configuration file, realizes the differentiation to the business form.Simultaneously for text The configuration file of this form, since there is no file system, is unable to complete asking for reading in hardware single board U-Boot startup stage Topic separates software version and configuration file: being first packaged in the form of binary to configuration file, then encapsulation is formed The configuration file programming into the flash memory (Flash) of main controller.In this way, software version can be straight when U-Boot starts It connects and calls the configuration file, obtain configuration information.
Due to system provided by the present invention, software version and configuration file are separated from each other.Moreover, because this method can The configuration parameter of the business form is packaged in the form of binary in will be more, and direct programming is into Flash, for CPU in U- The Bboot stage calls directly parsing.When this mode to update configuration, without recompilating software version, multi version is only needed The configuration file of one binary form.Thus, in more new configuration file, without recompilating software version, moreover, Multiple software versions can share a binary profile file.The present invention can simplify the workload for form of activating business, it can be achieved that The different business forms is rapidly and efficiently identified and loaded, software version maintenance difficulties are reduced.
Using method of the present invention, a set of software version may be implemented and be flexibly adapted to multiple business form.It solves The not enough problem of hardware VID value can save hardware GPIO interface, realize to his function for extension and multiplexing.
Since the business form can be solved with suitable problem without occupying GPIO interface in the present invention, there is no need to connect in GPIO The external pullup or pulldown resistance of mouth, therefore the level that will not be exported to GPIO interface affect.To which the present invention can also solve Certainly indicator light caused by hardware VID multiplexing misses luminous, the non-type problem of communication interface level.Saving hardware VID can reduce The human cost generated because needing to change hardware VID and Material Cost to take place frequently in R&D process.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, and with it is of the invention Embodiment together, is used to explain the present invention, and is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is to configure system block diagram according to the PON hardware single board business form of the embodiment of the present invention;
Fig. 2 is the PON hardware single board business form configuration method flow chart according to the embodiment of the present invention;
Fig. 3 is the configuration file structural schematic diagram according to the embodiment of the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is that the PON hardware single board business form according to the present invention configures system block diagram, and Fig. 2 is the industry that the system carries out Step flow chart when form of being engaged in configuration.
Block diagram shown in referring to Fig.1, PON hardware single board business form configuration system provided by the present invention includes master control Device, and the power module, clock module, reseting module and a variety of peripheral modules that are connect with the main controller.
Wherein, the flash cell programming in the main controller has and configuration file corresponding to the peripheral module;
The configuration file is packaged with configuration parameter in binary form, and the configuration parameter includes at least: verification magic number, Configuration file description information, several Configuration Types, each Configuration Type corresponding length of institute and each Configuration Type institute difference Corresponding data.
In the business form configuration system, the software version phase of the configuration file and institute's programming in PON hardware single board It is mutually independent.
In the business form configuration system, software version described in the flash interface of configuration file described in programming and programming Flash interface is identical.
Wherein, the structure of the configuration file can be found in Fig. 3.
In configuration file shown in Fig. 3, configuration file verifies magic number (magic number) and uses 16 bytes, respectively 0x11223344,0x55667788,0x99aabbcc,0xddeeff00.It can be verified according to verification magic number (magic number) Configuration file initial position correctness.
In the configuration file, the configuration file description information can be stored using the data structure of structural body. The structural body of configuration file description information includes: configuration file verification magic number, configured length, configuration version, the description of veneer producer Information and veneer description information.
By taking configuration file shown in Fig. 3 as an example, the Configuration Type can include: GPIO interface class, WIFI class, Ethernet interface Class, VOIP class.4 kinds of Configuration Types respectively correspond the GPIO interface module of system shown in Figure 3 peripheral hardware, WIFI mould in the present embodiment The peripheral modules such as block, Ethernet interface module, VOIP module.
By taking GPIO interface class as an example, in configuration file, data corresponding with GPIO interface module need to include: GPIO's Num number, the corresponding function of GPIO (which such as being lighted or as what key), input and output, initial value, pinmux are multiple With relationship.By the unified storage in the form of structural body of above-mentioned data.
For WIFI class, in configuration file, data corresponding with WIFI module need to include: the frequency of WIFI, PCIE Bus number will be stored in the form of structural body.
For Ethernet interface class, in configuration file, data corresponding with Ethernet interface module need to include: PHY ID, The address PHY, built-in or external, auto-negotiation, rate, mode (such as MII/GMI I/RGMI I/RMII), LAN mouthfuls of (such as LAN1/ LAN2……).It establishes a structural body and stores the data.
For VOIP class, in configuration file, data corresponding with VOIP module need to include: port, channel, piece choosing. It will be stored in the form of structural body.
The PON hardware single board business form configuration method that the present embodiment is proposed, comprising the following steps:
The first step, encapsulates configuration parameter corresponding to the PON hardware single board business form in binary form, and formation is matched Set file;
Second step enters the configuration file programming in PON hardware single board;
Third step, the PON hardware single board start U-Boot after powering on, and read the configuration file and parse, according to solution Configuration parameter obtained is analysed to be initialized;
4th step starts corresponding service software according to the configuration parameter.
Further, in above-mentioned business form configuration method, in the first step, using GUI host computer configuration software to institute It states configuration parameter and carries out binary form encapsulation.
Specifically, the configuration file includes verification magic number, configuration file description in above-mentioned business form configuration method Data corresponding to information, Configuration Type, length and each Configuration Type corresponding to each Configuration Type.
The Configuration Type includes GPIO interface class, WIFI class, Ethernet interface class, VOIP class.
In order to guarantee the compatibility of front and back version, configuration port type definition can not be changed at will, and external PC GUI matches Setting the Configuration Type integrated in tool need to be consistent with the Configuration Type that veneer parses, and otherwise will cause parsing mistake.PON parses journey Sequence needs in the same configuration, when being resolved to the type configuration, goes parsing to configure with the structure, uses for driving initialization.That is, In above-mentioned business form configuration method, the Configuration Type that integrates in GUI host computer configuration software in the first step described is matched The Configuration Type reciprocal correspondence for parsing acquisition in the Configuration Type in file and the third step is set, identical data are used Structure is all made of the form of structural body, and in three each structural body storage order it is identical.
It is hard the configuration file programming is entered PON in the second step meanwhile in above-mentioned business form configuration method Further include the steps that carrying out CRC check before part veneer;The CRC check method includes main controller in the PON hardware single board (CPU) included CRC check algorithm or other CRC check algorithms of the PON hardware single board are written by software-driven.One As, the CRC check algorithm of default selects the CRC check algorithm that main controller is included in PON hardware single board.
Correspondingly, in above-mentioned business form configuration method, the configuration file further includes and the CRC check method phase The check bit matched.
The advantages of technical solution of the present invention, is mainly reflected in: replacing hardware VID in the form of configuration file, for distinguishing The business form.Simultaneously for textual form configuration file in hardware single board U-Boot startup stage since there is no file system Software version and configuration file are separated, are sealed in the form of binary to configuration file by the problem of uniting, being unable to complete reading Dress, and by the direct programming of the configuration file into Flash.In this way, software version can be adjusted directly when U-Boot starts With the configuration file, configuration information is obtained.Design in this way, system provided by the present invention is in more new configuration file When, without software version is recompilated, multiple software versions can share a binary profile file.
Those of ordinary skill in the art will appreciate that: the foregoing is only a preferred embodiment of the present invention, and does not have to In the limitation present invention, although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art For, still can to foregoing embodiments record technical solution modify, or to part of technical characteristic into Row equivalent replacement.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should all include Within protection scope of the present invention.

Claims (10)

1. a kind of PON hardware single board business form configuration method, which is characterized in that step includes:
The first step encapsulates configuration parameter corresponding to the PON hardware single board business form in binary form, forms configuration text Part;
Second step enters the configuration file programming in PON hardware single board;
Third step, the PON hardware single board start U-Boot after powering on, and read the configuration file and parse, according to parsing institute The configuration parameter of acquisition is initialized;
4th step starts corresponding service software according to the configuration parameter.
2. PON hardware single board business form configuration method as described in claim 1, which is characterized in that in the first step, adopt Binary form encapsulation is carried out to the configuration parameter with GUI host computer configuration software.
3. PON hardware single board business form configuration method as claimed in claim 2, which is characterized in that in the first step, institute Stating configuration file includes verification magic number, configuration file description information, Configuration Type, length corresponding to each Configuration Type and each Data corresponding to Configuration Type.
4. PON hardware single board business form configuration method as claimed in claim 3, which is characterized in that the Configuration Type packet Include GPIO interface class, WIFI class, Ethernet interface class, VOIP class.
5. PON hardware single board business form configuration method as claimed in claim 4, which is characterized in that the GUI host computer is matched It sets and parses matching for acquisition in the Configuration Type integrated in software, the Configuration Type in the configuration file and the third step Set that the Configuration Type in parameter is all made of identical data structure and storage order is identical.
6. PON hardware single board business form configuration method as described in claim 1, which is characterized in that in the second step, Further include the steps that carrying out CRC check before the configuration file programming is entered PON hardware single board;The CRC check method packet It includes the included CRC check algorithm of main controller in the PON hardware single board or the PON hardware single board is written by software-driven CRC check algorithm.
7. PON hardware single board business form configuration method as claimed in claim 6, which is characterized in that the configuration file is also Including the check bit to match with the CRC check method.
8. a kind of PON hardware single board business form configures system, comprising: main controller, and the power supply being connect with the main controller Module, clock module, reseting module and a variety of peripheral modules;
It is characterized in that, the flash cell programming in the main controller has and configuration file corresponding to the peripheral module;
The configuration file is packaged with configuration parameter in binary form, and the configuration parameter includes: verification magic number, configuration file Data corresponding to description information, Configuration Type, length and each Configuration Type corresponding to each Configuration Type.
9. the PON hardware single board business form as claimed in claim 8 configures system, which is characterized in that the configuration file with The software version of institute's programming is mutually indepedent in PON hardware single board.
10. the PON hardware single board business form as claimed in claim 9 configures system, which is characterized in that configure text described in programming The flash interface of part is identical as the flash interface of software version described in programming.
CN201710771344.6A 2017-08-31 2017-08-31 A kind of PON hardware single board business form configuration method and system Withdrawn CN109428755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710771344.6A CN109428755A (en) 2017-08-31 2017-08-31 A kind of PON hardware single board business form configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710771344.6A CN109428755A (en) 2017-08-31 2017-08-31 A kind of PON hardware single board business form configuration method and system

Publications (1)

Publication Number Publication Date
CN109428755A true CN109428755A (en) 2019-03-05

Family

ID=65504688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710771344.6A Withdrawn CN109428755A (en) 2017-08-31 2017-08-31 A kind of PON hardware single board business form configuration method and system

Country Status (1)

Country Link
CN (1) CN109428755A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592220A (en) * 2017-09-07 2018-01-16 安徽皖通邮电股份有限公司 A kind of method of the self-defined backboard hardware resource of communication apparatus software

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102403034A (en) * 2010-09-07 2012-04-04 艾默生网络能源有限公司 Digital signal processor (DSP)-controlled single-board equipment and its remote update method and server
CN103428027A (en) * 2013-07-30 2013-12-04 广东东研网络科技股份有限公司 Device indication method with multiple-support function for optical line terminals
CN103823664A (en) * 2012-11-19 2014-05-28 中兴通讯股份有限公司 Design method for binary system unified Boot programs and kernel programs
CN104168139A (en) * 2014-08-13 2014-11-26 烽火通信科技股份有限公司 OLT equipment customization method based on PON system
CN104168125A (en) * 2013-05-16 2014-11-26 上海斐讯数据通信技术有限公司 Configuration method, system and configuration file execution method of multi-scheme optical line terminal
CN105068811A (en) * 2015-08-18 2015-11-18 深圳市德力控制电子有限公司 Screen auto-configuration method
US9218443B1 (en) * 2014-11-12 2015-12-22 Xilinx, Inc. Heterogeneous multiprocessor program compilation targeting programmable integrated circuits
CN105607923A (en) * 2015-12-10 2016-05-25 中国航空工业集团公司西安航空计算技术研究所 Cross-platform avionics system configuration data generation and recovery method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102403034A (en) * 2010-09-07 2012-04-04 艾默生网络能源有限公司 Digital signal processor (DSP)-controlled single-board equipment and its remote update method and server
CN103823664A (en) * 2012-11-19 2014-05-28 中兴通讯股份有限公司 Design method for binary system unified Boot programs and kernel programs
CN104168125A (en) * 2013-05-16 2014-11-26 上海斐讯数据通信技术有限公司 Configuration method, system and configuration file execution method of multi-scheme optical line terminal
CN103428027A (en) * 2013-07-30 2013-12-04 广东东研网络科技股份有限公司 Device indication method with multiple-support function for optical line terminals
CN104168139A (en) * 2014-08-13 2014-11-26 烽火通信科技股份有限公司 OLT equipment customization method based on PON system
US9218443B1 (en) * 2014-11-12 2015-12-22 Xilinx, Inc. Heterogeneous multiprocessor program compilation targeting programmable integrated circuits
CN105068811A (en) * 2015-08-18 2015-11-18 深圳市德力控制电子有限公司 Screen auto-configuration method
CN105607923A (en) * 2015-12-10 2016-05-25 中国航空工业集团公司西安航空计算技术研究所 Cross-platform avionics system configuration data generation and recovery method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592220A (en) * 2017-09-07 2018-01-16 安徽皖通邮电股份有限公司 A kind of method of the self-defined backboard hardware resource of communication apparatus software

Similar Documents

Publication Publication Date Title
CN102571414B (en) Systems and methods for reconfiguring a network adapter in sleep mode
US8726045B2 (en) Automated power topology discovery by detecting communication over power line and associating PDU port identifier to computing device
JP2018533120A (en) Bridging and virtualization of input / output signals in multi-node networks
CN104679532B (en) kernel module loading method and device
CN103034812B (en) A kind of credible chip compatibility method, equipment and the using method of this equipment
WO2019042323A1 (en) Multi-drive compatible control apparatus and realisation method
CN106557340A (en) A kind of collocation method and device
US20200201637A1 (en) Method and apparatus to re-configure mdio registers on an ethernet device
WO2017032112A1 (en) Method for communicating with board having no central processing unit and communication device
CN105337749B (en) A kind of method, optical module and the network equipment system of Configuration network equipment
CN106528123A (en) SoC (System on a Chip) startup method and device based on eFuse module
CN105389180B (en) A kind of USB port configurableization method based on Android platform
CN109428755A (en) A kind of PON hardware single board business form configuration method and system
CN104394101A (en) Dial switch-based multi-functional switch and quick configuration method thereof
CN105761682B (en) Electronic device and backlight control method of display
CN104808852A (en) Touch identification and digital display integrated circuit as well as peripheral circuit and accessing method thereof
WO2021120674A1 (en) Method and apparatus for multi-bus device fused access
US20020083226A1 (en) Configuring computer components
CN106502706A (en) A kind of credible embedded computer and its collocation method based on Loongson processor
CN105553744A (en) Production method of singlechip-based network equipment
US20190354381A1 (en) Illumination product reconfiguration
CN108153564B (en) Interface management method, device and system and computer readable storage medium
CN108829443A (en) A kind of design method, loading method and its application of terminal equipment configuration data
CN106506714B (en) Configuration method for USB-to-Ethernet network card and network equipment
CN115268566A (en) NCSI link communication system and method meeting routing requirements of different lengths

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190305

WW01 Invention patent application withdrawn after publication