CN112433699A - Script engine for SE personalization - Google Patents

Script engine for SE personalization Download PDF

Info

Publication number
CN112433699A
CN112433699A CN202011226515.5A CN202011226515A CN112433699A CN 112433699 A CN112433699 A CN 112433699A CN 202011226515 A CN202011226515 A CN 202011226515A CN 112433699 A CN112433699 A CN 112433699A
Authority
CN
China
Prior art keywords
script
template
personalization
unit
execution unit
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
CN202011226515.5A
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.)
Beijing CEC Huada Electronic Design Co Ltd
Original Assignee
Beijing CEC Huada Electronic Design 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 Beijing CEC Huada Electronic Design Co Ltd filed Critical Beijing CEC Huada Electronic Design Co Ltd
Priority to CN202011226515.5A priority Critical patent/CN112433699A/en
Publication of CN112433699A publication Critical patent/CN112433699A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors

Abstract

The invention discloses a script engine for SE personalization, which is designed for solving the problems of SE personalization data acquisition and personalization process diversification, overcomes the defects of the original SE personalization realization method, standardizes the personalization process and improves the personalization efficiency. The personalized script engine is composed of a script execution unit, a script routing unit, a script template library, a template execution unit and a script execution unit, supports concurrent processing, is strong in expandability, high in flexibility and easy to maintain, can quickly meet various personalized processes and data acquisition requirements, can be quickly integrated into various production systems, shortens the development period, saves the development cost and improves the production efficiency of a production line.

Description

Script engine for SE personalization
Technical Field
The invention relates to the field of software design methods, in particular to a script engine for SE personalization.
Background
With the development of the internet of things, the security of the IoT device itself becomes more and more important, and the SE (security chip) provides a secure application environment for the device side, so that the market prospect is unlimited. Sensitive data are stored in the SE chip, the data are usually personalized writing-in completed before leaving a factory, traditional personalized software and a process are usually customized and developed along with the requirements of application services, the development complexity is high, the period is long, the reusability is low, the maintainability is worse and worse along with the development of time, and the SE production efficiency is greatly influenced.
Disclosure of Invention
The invention provides a script engine for SE personalization, which can quickly meet various personalized personalization processes and data acquisition requirements, overcomes the defects of the original SE personalization realization method, standardizes the personalization processes and has important significance for improving the SE production efficiency.
The invention mainly aims to solve the problems of the existing SE personalization method and provide a script engine for SE personalization.
The SE personalized script engine consists of a script request unit, a script routing unit, a script template library, a template execution unit and a script execution unit. Wherein: the user or the external system transmits request information to the script request unit to the script routing unit, the script routing unit retrieves the corresponding script template through the script template library, the template execution unit is informed to load the script template, the template execution unit carries out rendering on the script template and generates an executable command script to be transmitted to the script execution unit, and the script execution unit executes the command write-in SE.
The script engine for SE personalization comprises a script request unit, a script routing unit and a script sending unit, wherein the script request unit can receive request information input by a user or an external system and sends the request information to the script routing unit through a Restful interface.
The script routing unit of the script engine for SE personalization is responsible for receiving a processing data request, searching a corresponding script template from a script template library in a mode of inquiring an internal product routing table, and informing a template execution engine to load the script template.
The template execution unit of the script engine for SE personalization is responsible for loading the matched script template, then executing the script and loading service data from the butted service system, rendering the script template through the service data, generating an executable command script and sending the executable command script to the script execution unit.
The script execution unit of the script engine for SE personalization receives the command script after rendering is completed, executes the command script one by one and writes personalization data into the SE.
The script template of the script engine for SE personalization is written in groovy language mixed with Freemarker template to realize personalized data rendering function.
The beneficial effects of the invention lie in providing a script engine for SE personalization, solving the disadvantages and shortcomings of the existing SE personalization software and method, making great improvements on the structure and method, producing good-use and practical effects, improving the production test efficiency and increasing the productivity.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented in accordance with the content of the description, and in order to make the above objects, features, and advantages of the present invention more clearly understood, the following specific embodiments will be described in detail with reference to the accompanying drawings.
Drawings
FIG. 1SE personalizes a script engine schematic.
Detailed Description
The technical scheme of the implementation of the invention is clearly and completely described below with reference to the accompanying drawings.
The SE personalized script engine consists of a script request unit, a script routing unit, a script template library, a template execution unit and a script execution unit. The script request unit and the script execution unit can be collectively called as a front end, the script routing unit, the script template library and the template execution unit can be collectively called as a back end, and the front end and the back end support two deployment modes, namely a centralized deployment mode and a distributed deployment mode. The user can deploy the front end and the back end on the same device, or separately deploy the front end and the back end on different devices, and the front end and the back end communicate with each other by adopting a Restful interface.
The script routing unit supports multiple paths of concurrent requests for processing the front-end data, a script template and related product information are stored in a script template library, the script template is written by a groovy language mixed with a Freemarker template, processing logic of personalized data required by the SE is realized by the scripts, the template execution unit is responsible for loading the matched script template, then executing the script and loading service data from a butted service system, rendering the script template through the service data and by means of the Freemarker template engine, generating an executable command script and issuing the executable command script to the script execution unit.
The script execution unit is mainly responsible for receiving and executing a command script containing the production data and writing the personalization into an SE chip, supports various hardware communication interfaces such as UART, I2C, SPI, USB and the like, and meanwhile, has the function of extracting the SE chip data and sending the SE chip data to the script request unit.
The operation mechanism and flow of the SE personalization script engine will be described in detail below with reference to FIG. 1, and the details of the respective contents will be described.
Before production, a user needs to upload a packaged production data script template to a script template library at the rear end of a script engine, complete the configuration of relevant production parameters and then start the whole front end. The method comprises the steps that production request information is input and production is started after initialization of a front end is finished, a script request unit of a script engine acquires the request information after production is started, then a script execution unit is triggered to read relevant feature data from an SE chip, transcoding and forwarding are carried out to the script request unit, the script request unit carries out JSON format coding on the data and assembles the data into an HTTP protocol message to be sent to a corresponding Restful processing interface of a back end, a script routing unit decodes the data after receiving the request data sent by the front end, then chip feature data are extracted and production data matching is carried out according to the chip feature data, the template execution unit is informed to execute Freemarker template scripts contained in a step template after production data matching query is finished, rendered results are coded and then sent to a script execution unit of the front end, and the script execution unit decodes and executes the script after receiving the processing results sent back by the back end, and writing the related data into the SE chip, and ending the whole process.
The SE personalized script engine supports concurrent processing, has strong expandability and high flexibility, can quickly meet various personalized processes and data acquisition requirements, can be quickly integrated into various production systems, shortens the development period, saves the development cost, and has important significance for improving the SE production efficiency.
The present method is described in detail by the embodiments and examples, but these are not to be construed as limiting the present invention. Many variations and modifications may be made by one of ordinary skill in the art without departing from the principles of the present invention, which should also be considered as within the scope of the present invention.

Claims (6)

1. A script engine for SE personalization, characterized in that the script execution engine is composed of five parts, namely a script request unit, a script routing unit, a script template library, a template execution unit and a script execution unit, wherein: the user or the external system inputs request information to the script request unit to the script routing unit, the script routing unit searches the corresponding script template through the script template library, the template execution unit is informed to load the script template, the template execution unit carries out rendering on the script template and generates an executable command script to be sent to the script execution unit, and the script execution unit executes the command write-in SE.
2. A script engine for SE personalization as claimed in claim 1, wherein said script request unit is capable of receiving request information input by a user or an external system and sending the request information to the script routing unit through a Restful interface.
3. The script engine for SE personalization as claimed in claim 1, wherein said script routing unit is responsible for receiving requests for tooling data, retrieving corresponding script templates from a script template library by querying an internal product routing table, and notifying a template execution engine to load script templates.
4. The script engine as claimed in claim 1, wherein said template execution unit is responsible for loading the matched script template, then executing the script and loading the service data from the docked service system, rendering the script template through the service data, generating an executable command script and sending it to the script execution unit.
5. The script engine for SE personalization of claim 1, wherein said script execution unit receives a rendered command script for execution on a case-by-case basis to write personalization data to the SE.
6. A script engine for SE personalization as claimed in claim 1, wherein the script templates are written in groovy language mixed with freemaker templates to implement the personalization data rendering function.
CN202011226515.5A 2020-11-05 2020-11-05 Script engine for SE personalization Pending CN112433699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011226515.5A CN112433699A (en) 2020-11-05 2020-11-05 Script engine for SE personalization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011226515.5A CN112433699A (en) 2020-11-05 2020-11-05 Script engine for SE personalization

Publications (1)

Publication Number Publication Date
CN112433699A true CN112433699A (en) 2021-03-02

Family

ID=74694714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011226515.5A Pending CN112433699A (en) 2020-11-05 2020-11-05 Script engine for SE personalization

Country Status (1)

Country Link
CN (1) CN112433699A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025027A (en) * 2021-11-02 2022-02-08 浙江三维万易联科技有限公司 Data transmission script running method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014061A (en) * 2007-01-26 2007-08-08 华为技术有限公司 Method and apparatus for generating testing script and testing method and apparatus and system
CN102402430A (en) * 2010-09-14 2012-04-04 无锡中星微电子有限公司 Method and system for generating random test case by using script
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
CN108647049A (en) * 2018-03-18 2018-10-12 平安科技(深圳)有限公司 Configurableization system, method, equipment and the storage medium of rule-based engine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014061A (en) * 2007-01-26 2007-08-08 华为技术有限公司 Method and apparatus for generating testing script and testing method and apparatus and system
CN102402430A (en) * 2010-09-14 2012-04-04 无锡中星微电子有限公司 Method and system for generating random test case by using script
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
CN108647049A (en) * 2018-03-18 2018-10-12 平安科技(深圳)有限公司 Configurableization system, method, equipment and the storage medium of rule-based engine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025027A (en) * 2021-11-02 2022-02-08 浙江三维万易联科技有限公司 Data transmission script running method and device, storage medium and electronic device
CN114025027B (en) * 2021-11-02 2023-10-03 三维通信股份有限公司 Method and device for running data transmission script, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN109040152B (en) Service request and providing method and device based on service arrangement and electronic equipment
WO2018072626A1 (en) Method and apparatus for invoking component, and method and apparatus for processing component data
CN106354492B (en) Automatic code generation method and system for quickly adjusting transaction flow docking
WO2017028514A1 (en) Method and device for storing and reading data
CN111045655A (en) Page rendering method and device, rendering server and storage medium
CN112014726B (en) DSP chip testing device and method
US20150255089A1 (en) Method for user communication with information dialogue system
WO2009100156A1 (en) Automatic connections between application components
CN101196926A (en) Database access platform and access method thereof
KR101212778B1 (en) Cloud computing based smart office system and server for managing the same and method for managing the same
CN110990482A (en) Data synchronization method and device between asynchronous databases
CN106407172B (en) A kind of report form generation method based on XML
CN109669739A (en) A kind of interface rendering method, device, terminal device and storage medium
CN112433699A (en) Script engine for SE personalization
CN111324390A (en) Device and method for realizing APP content configuration and real-time update
CN116263657A (en) Processing unit, software module, method and program code
WO2022089102A1 (en) Control method and apparatus, and electronic device
CN114047970A (en) Configuration method and system of AUTOSAR (automotive open system architecture) architecture software
CN113572800B (en) Method, system, server and storage medium for acquiring download information of application
CN104572638B (en) Data read-write method and device
CN111367561B (en) Remote development method and device for software program
CN109937404A (en) Real Data Exchangs between program module
WO2023138001A1 (en) Novel interface skin changing system and method thereof
CN116466915A (en) MVP architecture-based iOS development framework construction method and device
WO2011035659A1 (en) Method and apparatus for secondary development of function mobile phone

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

Application publication date: 20210302

WD01 Invention patent application deemed withdrawn after publication