WO2018040970A1 - Method and device for accelerating activation of payment terminal - Google Patents

Method and device for accelerating activation of payment terminal Download PDF

Info

Publication number
WO2018040970A1
WO2018040970A1 PCT/CN2017/098241 CN2017098241W WO2018040970A1 WO 2018040970 A1 WO2018040970 A1 WO 2018040970A1 CN 2017098241 W CN2017098241 W CN 2017098241W WO 2018040970 A1 WO2018040970 A1 WO 2018040970A1
Authority
WO
WIPO (PCT)
Prior art keywords
initialization
software modules
payment terminal
sets
software module
Prior art date
Application number
PCT/CN2017/098241
Other languages
French (fr)
Chinese (zh)
Inventor
吴旋
Original Assignee
福建联迪商用设备有限公司
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 福建联迪商用设备有限公司 filed Critical 福建联迪商用设备有限公司
Publication of WO2018040970A1 publication Critical patent/WO2018040970A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Definitions

  • the present invention relates to the field of payment device technologies, and in particular, to a method and device for improving a startup speed of a payment terminal.
  • the payment terminal of the operating system is used, and the initialization process is mostly performed after the initialization of each software module is completed in order. Even with a multi-core processor, the initialization process is done in a single task. The downtime is slow and the initialization process is long.
  • the technical problem to be solved by the present invention is: a method and a device for improving the startup speed of a payment terminal by increasing the utilization rate of the processor in the initialization phase, thereby shortening the system initialization time and increasing the speed of the downtime.
  • the technical solution adopted by the present invention is: Providing a method for improving the startup speed of a payment terminal, comprising the following steps:
  • Step S1 acquiring a software module that needs to be initialized in the payment terminal, and dividing the software module into multiple initialization sets;
  • the software modules in each of the initialization sets are arranged in an initialization order; the division of the software modules in the initialization set satisfies the condition that: two software modules that do not have an initialization order dependency are not placed in the same In an initialization set;
  • Step S2 according to the number of initialization sets described in step S1, sequentially create a corresponding number of initialization processes
  • Step S3 sequentially performing initialization of the software module in the corresponding initialization set according to the initialization process
  • the software modules are initialized according to the order in the initialization set;
  • the division of the software module in the initialization set satisfies the condition: a, the following software module depends on the initialization of the previous software module; b, an initialization The initialization of any software module in the collection does not depend on the software modules in other initialization sets; c. Two software modules that do not have a sequential relationship with each other must be located in different initialization sets.
  • Another technical solution of the present invention is to provide an apparatus for improving the startup speed of a payment terminal, including: [0014] a dividing module, configured to acquire a software module that needs to be initialized in a payment terminal, and divide the software module into multiple Initialization set;
  • the software modules in each of the initialization sets are arranged in order; the division of the software modules in the initialization set satisfies the following conditions: Do not put two software modules that are not related in the same initialization set, avoid one Any software module is waiting for another software module to initialize;
  • a creating module configured to sequentially create a corresponding number of initialization processes according to the number of initialization sets in the dividing module
  • the execution module is configured to sequentially perform initialization of the software modules in the corresponding initialization set according to the initialization process, and after the initialization process is performed, the payment terminal initialization is completed.
  • the division of the software module in the initialization set satisfies the following conditions: a, the following software module depends on the initialization of the previous software module; b. The initialization of any software module in the collection does not depend on the software modules in other initialization sets; c. Two software modules that do not have a sequential relationship with each other must be located in different initialization sets.
  • beneficial effects of the present invention are as follows: Different from the prior art payment terminal initialization process, most of the software modules are initialized and loaded before the program is initialized.
  • the method and device of the present invention modify the initialization program into multi-process initialization. Execution, making full use of the parallel processing capability of multi-core processors, shortening the system initialization time. For single-core processors, this approach also reduces system initialization to a certain extent. Because the processor utilization is improved by parallel operation, it is possible to avoid the 10-consumption type initialization blocking, which causes the other initialization operations to be extended and the downtime is extended. Provides production efficiency of the payment terminal.
  • FIG. 1 is a flowchart of a method for improving a startup speed of a payment terminal according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of an apparatus for improving a startup speed of a payment terminal according to an embodiment of the present invention
  • a device for increasing the startup speed of the payment terminal 11. dividing the module; 12. creating a module; 13. executing the module.
  • the most critical idea of the present invention is that the method and apparatus of the present invention shortens the payment terminal system initialization time by modifying the initialization procedure to the initialization of the multi-process.
  • the X kernel can automatically distribute multiple tasks to multiple processor cores and is transparent to both application and kernel drivers.
  • the initialization process is single-tasking, including initialization in the kernel, and for spatial initialization. This does not take advantage of multi-core processors during the startup phase. Even for a single-core processor, during the initialization of a single task, there is a problem because it waits for the hardware to complete the work (such as reading a file, detecting peripherals) and blocking on an initialization node, and the processor is idle, and it is also started. It has had a certain impact.
  • the system initialization process can be run in a multitasking manner to improve processing.
  • the utilization of the device allows more computing power to be used in the initialization process.
  • the initialization process in the Linux kernel is too complicated, involving many memory management and task management initialization, it is difficult to implement multitasking.
  • the present invention focuses on improving the parallel capability of user space initialization to improve the startup speed.
  • Step S1 acquiring a software module that needs to be initialized in the payment terminal, according to the initialization relationship of each software module, Dividing the software module into a plurality of initialization sets;
  • the software modules in each of the initialization sets are arranged in an initialization order; the division of the software modules in the initialization set satisfies the condition that: two software modules that do not have an initialization order dependency are not placed in the same initialization set. Avoiding an arbitrary software module in the payment terminal, waiting for another software module to initialize, wasting waiting time;
  • the division satisfies the condition specifically as: a, the following software module depends on the completion of the previous software module initialization; b
  • the initialization of any software module in an initialization set does not depend on the software modules in other initialization sets; c. Two software modules that do not have a sequential relationship with each other must be located in different initialization sets.
  • Step S2 According to the number of initialization sets in step S1, sequentially create a corresponding number of initialization processes.
  • Step S3 sequentially performing initialization of the software module in the corresponding initialization set according to the initialization process
  • the software modules are initialized according to the order in the initialization set;
  • the present invention further provides an apparatus 1 for improving a startup speed of a payment terminal, comprising:
  • the dividing module 11 is configured to acquire a software module that needs to be initialized in the payment terminal, and divide the software module into multiple initialization sets;
  • the software modules in each of the initialization sets are arranged in order; the division of the software modules in the initialization set satisfies the following conditions: Do not put two software modules that are not related in the same initialization set , to avoid an arbitrary software module waiting for another software module to initialize;
  • the division of the software module in the initialization set satisfies the condition: a, the following software module depends on the initialization of the previous software module; b, the initialization of any software module in an initialization set does not depend on other initialization sets. Software modules; c , two software modules that do not have a sequential relationship with each other, must be located in different initialization sets. The above setting avoids waiting for an arbitrary software module in the payment terminal to wait for another software module to initialize, which wastes waiting time.
  • the creating module 12 is configured to sequentially create a corresponding number of initialization processes according to the number of initialization sets in the dividing module.
  • the execution module 13 is configured to sequentially perform initialization of the software modules in the corresponding initialization set according to the initialization process, and after the initialization process is performed, the payment terminal initialization is completed.
  • the method and apparatus for improving the startup speed of a payment terminal provided by the present invention modify the initialization procedure into multi-process initialization execution, fully utilizing the parallel processing capability of the multi-core processor, and shortening the system initialization period. .
  • the method of the present invention also reduces system initialization to a certain extent. Because the processor utilization is improved by parallel operation, it is possible to avoid the 10 consumption type initialization blocking, which causes the other initialization operations to be extended and the downtime is extended. Improve the production efficiency of the payment terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

A method and device for accelerating activation of a payment terminal. The method comprises the following steps: step S1, acquiring software modules requiring initialization in a payment terminal, and dividing the software modules into multiple initialization sets; step S2, sequentially establishing, according to the number of the initialization sets in step S1, a corresponding number of initialization processes; and step S3, sequentially executing, according to the initialization processes, initialization operations of the software modules in the corresponding initialization sets, wherein the software modules are initialized in the order thereof in the initialization sets. The method and device of the present invention have advantageous effects in that: compared to most of prior art initialization procedures of a payment terminal in which loading of a program only begins after all software modules are initialized sequentially, the method and device modify the initialization procedure into multi-process initialization operation, such that the parallel processing capability of a multi-core processor is fully utilized to reduce time spent on system initialization.

Description

发明名称:一种提高支付终端启动速度的方法及装置  Invention name: Method and device for improving startup speed of payment terminal
技术领域  Technical field
[0001] 本发明涉及支付设备技术领域, 具体涉及一种提高支付终端启动速度的方法及 装置。  [0001] The present invention relates to the field of payment device technologies, and in particular, to a method and device for improving a startup speed of a payment terminal.
背景技术  Background technique
[0002] 随着国内电子支付市场和支付技术的发展, 支付终端的软件系统也日益复杂。  [0002] With the development of the domestic electronic payment market and payment technology, the software system of the payment terminal is also increasingly complicated.
目前的支付终端, 大都使用了基于 Linux甚至 Android的复杂操作系统, 并支持包 括 IC卡、 磁卡、 射频卡、 各种通讯方式等多种外设驱动, 并实现了 GUI、 设备服 务、 管理以及多应用等多种软件功能。  Most of the current payment terminals use a complex operating system based on Linux or even Android, and support a variety of peripheral drivers including IC cards, magnetic cards, RF cards, various communication methods, and implement GUI, device services, management, and more. A variety of software features such as applications.
[0003] 使用了 Linux或 Android系统后, 由于系统庞大, 加上有众多增加的支付相关软 件模块需要初始化, 启动速度很慢, 大约超过 20秒甚至接近一分钟。 这给客户 造成了很大不变, 也对生产吋测试效率造成很大影响。 [0003] After using Linux or Android, due to the huge size of the system, and the addition of many additional payment-related software modules that need to be initialized, the startup speed is very slow, about 20 seconds or even close to one minute. This has caused a lot of change for the customer and has a great impact on the productivity of the production test.
[0004] 目前使用了操作系统的支付终端, 初始化过程大都是按顺序完成各软件模块初 始化后才加载程序的。 就算使用了多核处理器, 其初始化过程也是单任务完成 的。 其幵机慢, 初始化过程长。 [0004] Currently, the payment terminal of the operating system is used, and the initialization process is mostly performed after the initialization of each software module is completed in order. Even with a multi-core processor, the initialization process is done in a single task. The downtime is slow and the initialization process is long.
技术问题  technical problem
[0005] 本发明所要解决的技术问题是: 提高处理器在初始化阶段利用率, 从而缩短了 系统初始化吋间, 提高幵机速度的一种提高支付终端启动速度的方法及装置。 问题的解决方案  [0005] The technical problem to be solved by the present invention is: a method and a device for improving the startup speed of a payment terminal by increasing the utilization rate of the processor in the initialization phase, thereby shortening the system initialization time and increasing the speed of the downtime. Problem solution
技术解决方案  Technical solution
[0006] 为了解决上述技术问题, 本发明采用的技术方案为: 提供一种提高支付终端启 动速度的方法, 包括如下步骤:  In order to solve the above technical problem, the technical solution adopted by the present invention is: Providing a method for improving the startup speed of a payment terminal, comprising the following steps:
[0007] 步骤 S1 : 获取支付终端中需要初始化的软件模块, 将所述软件模块划分到多个 初始化集合; [0007] Step S1: acquiring a software module that needs to be initialized in the payment terminal, and dividing the software module into multiple initialization sets;
[0008] 每个所述初始化集合中的软件模块按初始化顺序排列; 所述初始化集合中的软 件模块的划分满足条件为: 没有初始化顺序依赖关系的两个软件模块不放在同 一个初始化集合中; [0008] the software modules in each of the initialization sets are arranged in an initialization order; the division of the software modules in the initialization set satisfies the condition that: two software modules that do not have an initialization order dependency are not placed in the same In an initialization set;
[0009] 步骤 S2: 根据步骤 S1所述初始化集合的数量, 依次创建对应数量的初始化进程  [0009] Step S2: according to the number of initialization sets described in step S1, sequentially create a corresponding number of initialization processes
[0010] 步骤 S3: 根据所述初始化进程依次执行对应初始化集合中的软件模块的初始化[0010] Step S3: sequentially performing initialization of the software module in the corresponding initialization set according to the initialization process
, 软件模块根据在初始化集合中的顺序进行初始化; , the software modules are initialized according to the order in the initialization set;
[0011] 初始化进程都执行完成初始化后, 支付终端初始化完成。 [0011] After the initialization process is completed and the initialization is completed, the payment terminal initialization is completed.
[0012] 优选的, 上述的提高支付终端启动速度的方法中, 所述初始化集合中的软件模 块的划分满足条件具体为: a、 后面的软件模块依赖于前面软件模块初始化完成 ; b、 一个初始化集合中的任意软件模块初始化不依赖于其他初始化集合中的软 件模块; c、 互相没有先后顺序关系的两个软件模块, 一定位于不同的初始化集 合中。  [0012] Preferably, in the foregoing method for improving the startup speed of the payment terminal, the division of the software module in the initialization set satisfies the condition: a, the following software module depends on the initialization of the previous software module; b, an initialization The initialization of any software module in the collection does not depend on the software modules in other initialization sets; c. Two software modules that do not have a sequential relationship with each other must be located in different initialization sets.
[0013] 本发明的另一技术方案为提供一种提高支付终端启动速度的装置, 包括: [0014] 划分模块, 用于获取支付终端中需要初始化的软件模块, 将所述软件模块划分 到多个初始化集合;  [0013] Another technical solution of the present invention is to provide an apparatus for improving the startup speed of a payment terminal, including: [0014] a dividing module, configured to acquire a software module that needs to be initialized in a payment terminal, and divide the software module into multiple Initialization set;
[0015] 每个所述初始化集合中的软件模块按顺序排列; 所述初始化集合中的软件模块 的划分满足如下条件: 不将没有关系的两个软件模块放在同一个初始化集合中 , 避免一个任意软件模块无谓等待另一个软件模块初始化;  [0015] The software modules in each of the initialization sets are arranged in order; the division of the software modules in the initialization set satisfies the following conditions: Do not put two software modules that are not related in the same initialization set, avoid one Any software module is waiting for another software module to initialize;
[0016] 创建模块, 用于根据划分模块中的初始化集合的数量, 依次创建对应数量的初 始化进程;  [0016] a creating module, configured to sequentially create a corresponding number of initialization processes according to the number of initialization sets in the dividing module;
[0017] 执行模块, 用于根据所述初始化进程依次执行对应初始化集合中的软件模块的 初始化, 初始化进程都执行完成初始化后, 支付终端初始化完成。  [0017] The execution module is configured to sequentially perform initialization of the software modules in the corresponding initialization set according to the initialization process, and after the initialization process is performed, the payment terminal initialization is completed.
[0018] 优选的, 上述的提高支付终端启动速度的装置中, 所述初始化集合中的软件模 块的划分满足条件具体为: a、 后面的软件模块依赖于前面软件模块初始化完成 ; b、 一个初始化集合中的任意软件模块初始化不依赖于其他初始化集合中的软 件模块; c、 互相没有先后顺序关系的两个软件模块, 一定位于不同的初始化集 合中。  [0018] Preferably, in the foregoing apparatus for improving the startup speed of the payment terminal, the division of the software module in the initialization set satisfies the following conditions: a, the following software module depends on the initialization of the previous software module; b. The initialization of any software module in the collection does not depend on the software modules in other initialization sets; c. Two software modules that do not have a sequential relationship with each other must be located in different initialization sets.
发明的有益效果  Advantageous effects of the invention
有益效果 [0019] 本发明的有益效果在于: 区别于现有技术的支付终端初始化过程大都是按顺序 完成各软件模块初始化后才加载程序, 本发明的方法和装置通过将初始化程序 修改为多进程的初始化执行, 充分利用了多核处理器的并行处理能力, 缩短了 系统初始化吋间。 对于单核处理器, 这种方法也在一定程度上能缩短系统初始 化吋间。 因为通过并行操作, 提高了处理器利用率, 可以避免 10消耗型初始化 阻塞导致此吋无法进行其他初始化操作而延长幵机吋间。 提供了支付终端的生 产工作效率。 Beneficial effect [0019] The beneficial effects of the present invention are as follows: Different from the prior art payment terminal initialization process, most of the software modules are initialized and loaded before the program is initialized. The method and device of the present invention modify the initialization program into multi-process initialization. Execution, making full use of the parallel processing capability of multi-core processors, shortening the system initialization time. For single-core processors, this approach also reduces system initialization to a certain extent. Because the processor utilization is improved by parallel operation, it is possible to avoid the 10-consumption type initialization blocking, which causes the other initialization operations to be extended and the downtime is extended. Provides production efficiency of the payment terminal.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0020] 图 1为本发明具体实施方式的提高支付终端启动速度的方法流程图;  1 is a flowchart of a method for improving a startup speed of a payment terminal according to an embodiment of the present invention;
[0021] 图 2为本发明具体实施方式的提高支付终端启动速度的装置的结构框图; 2 is a structural block diagram of an apparatus for improving a startup speed of a payment terminal according to an embodiment of the present invention;
[0022] 标号说明: [0022] Description of the label:
[0023] 1、 提高支付终端启动速度的装置; 11、 划分模块; 12、 创建模块; 13、 执行 模块。  [0023] 1. A device for increasing the startup speed of the payment terminal; 11. dividing the module; 12. creating a module; 13. executing the module.
具体实施方式 detailed description
[0024] 本发明最关键的构思在于: 本发明的方法和装置通过将初始化程序修改为多进 程的初始化执行, 缩短了支付终端系统初始化吋间。  [0024] The most critical idea of the present invention is that the method and apparatus of the present invention shortens the payment terminal system initialization time by modifying the initialization procedure to the initialization of the multi-process.
[0025] 随着 ARM Cortex系列处理器的发展, 多核处理器的价格不断下跌, 支付终端也 幵始使用多核处理器。 目前, Cortex系列的多核处理器都是基于 SMP架构, Linu[0025] With the development of the ARM Cortex family of processors, the price of multi-core processors has been declining, and payment terminals have begun to use multi-core processors. Currently, the Cortex series of multi-core processors are based on the SMP architecture, Linu
X内核可以自动将多个任务分配到多个处理器核上运行, 且对应用程序和内核驱 动都是透明的。 The X kernel can automatically distribute multiple tasks to multiple processor cores and is transparent to both application and kernel drivers.
[0026] 而目前基于 Linux的系统, 包括安卓系统, 初始化过程都是单任务的, 包括内 核中的初始化, 以及用于空间初始化过程。 这样在启动阶段无法充分利用多核 处理器的优势。 即使对于单核处理器, 单任务的初始化过程中, 有吋因为等待 硬件完成工作 (比如读文件、 检测外设) 而阻塞在某个初始化节点上, 而此吋 处理器空闲, 也对启动吋间造成了一定影响。  [0026] While current Linux-based systems, including Android, the initialization process is single-tasking, including initialization in the kernel, and for spatial initialization. This does not take advantage of multi-core processors during the startup phase. Even for a single-core processor, during the initialization of a single task, there is a problem because it waits for the hardware to complete the work (such as reading a file, detecting peripherals) and blocking on an initialization node, and the processor is idle, and it is also started. It has had a certain impact.
[0027] 因此, 基于上述考虑, 可以让系统初始化过程以多任务方式运行, 以提高处理 器的利用率, 让更多运算能力用于初始化过程。 考虑到 Linux内核中的初始化过 程过于复杂, 涉及很多内存管理和任务管理初始化, 难以实现多任务, 本发明 着眼于提高用户空间初始化的并行能力来提高启动速度。 [0027] Therefore, based on the above considerations, the system initialization process can be run in a multitasking manner to improve processing. The utilization of the device allows more computing power to be used in the initialization process. Considering that the initialization process in the Linux kernel is too complicated, involving many memory management and task management initialization, it is difficult to implement multitasking. The present invention focuses on improving the parallel capability of user space initialization to improve the startup speed.
[0028] 请参照图 1, 本发明提供一种提高支付终端启动速度的方法, 包括如下步骤: [0029] 步骤 S1 : 获取支付终端中需要初始化的软件模块, 按照各软件模块的初始化先 后关系, 将所述软件模块划分到多个初始化集合; [0028] Referring to FIG. 1, the present invention provides a method for improving the startup speed of a payment terminal, including the following steps: [0029] Step S1: acquiring a software module that needs to be initialized in the payment terminal, according to the initialization relationship of each software module, Dividing the software module into a plurality of initialization sets;
[0030] 每个所述初始化集合中的软件模块按初始化顺序排列; 所述初始化集合中的软 件模块的划分满足条件为: 不将没有初始化顺序依赖关系的两个软件模块放在 同一个初始化集合中; 避免了支付终端中的一个任意软件模块无谓等待另一个 软件模块初始化, 浪费等待吋间; [0030] the software modules in each of the initialization sets are arranged in an initialization order; the division of the software modules in the initialization set satisfies the condition that: two software modules that do not have an initialization order dependency are not placed in the same initialization set. Avoiding an arbitrary software module in the payment terminal, waiting for another software module to initialize, wasting waiting time;
[0031] 划分满足条件具体为: a、 后面的软件模块依赖于前面软件模块初始化完成; b[0031] The division satisfies the condition specifically as: a, the following software module depends on the completion of the previous software module initialization; b
、 一个初始化集合中的任意软件模块初始化不依赖于其他初始化集合中的软件 模块; c、 互相没有先后顺序关系的两个软件模块, 一定位于不同的初始化集合 中。 The initialization of any software module in an initialization set does not depend on the software modules in other initialization sets; c. Two software modules that do not have a sequential relationship with each other must be located in different initialization sets.
[0032] 上述的设置, 避免了支付终端中的一个任意软件模块无谓等待另一个软件模块 初始化, 浪费等待吋间。  [0032] The above setting avoids waiting for an arbitrary software module in the payment terminal to wait for another software module to initialize, and wastes waiting for the time.
[0033] 步骤 S2: 根据步骤 S1所述初始化集合的数量, 依次创建对应数量的初始化进程 [0033] Step S2: According to the number of initialization sets in step S1, sequentially create a corresponding number of initialization processes.
[0034] 步骤 S3: 根据所述初始化进程依次执行对应初始化集合中的软件模块的初始化[0034] Step S3: sequentially performing initialization of the software module in the corresponding initialization set according to the initialization process
, 软件模块根据在初始化集合中的顺序进行初始化; , the software modules are initialized according to the order in the initialization set;
[0035] 等各初始化进程都执行完成初始化后, 支付终端初始化完成。 初始化程序再进 行后续工作 [0035] After each initialization process performs the initialization, the payment terminal initialization is completed. Initialize the program for further work
[0036]  [0036]
[0037] 请参照图 2, 本发明还提供一种提高支付终端启动速度的装置 1, 包括:  [0037] Referring to FIG. 2, the present invention further provides an apparatus 1 for improving a startup speed of a payment terminal, comprising:
[0038] 划分模块 11, 用于获取支付终端中需要初始化的软件模块, 将所述软件模块划 分到多个初始化集合; [0038] The dividing module 11 is configured to acquire a software module that needs to be initialized in the payment terminal, and divide the software module into multiple initialization sets;
[0039] 每个所述初始化集合中的软件模块按顺序排列; 所述初始化集合中的软件模块 的划分满足如下条件: 不将没有关系的两个软件模块放在同一个初始化集合中 , 避免一个任意软件模块无谓等待另一个软件模块初始化; [0039] the software modules in each of the initialization sets are arranged in order; the division of the software modules in the initialization set satisfies the following conditions: Do not put two software modules that are not related in the same initialization set , to avoid an arbitrary software module waiting for another software module to initialize;
[0040] 所述初始化集合中的软件模块的划分满足条件具体为: a、 后面的软件模块依 赖于前面软件模块初始化完成; b、 一个初始化集合中的任意软件模块初始化不 依赖于其他初始化集合中的软件模块; c、 互相没有先后顺序关系的两个软件模 块, 一定位于不同的初始化集合中。 上述的设置, 避免了支付终端中的一个任 意软件模块无谓等待另一个软件模块初始化, 浪费等待吋间。 [0040] The division of the software module in the initialization set satisfies the condition: a, the following software module depends on the initialization of the previous software module; b, the initialization of any software module in an initialization set does not depend on other initialization sets. Software modules; c , two software modules that do not have a sequential relationship with each other, must be located in different initialization sets. The above setting avoids waiting for an arbitrary software module in the payment terminal to wait for another software module to initialize, which wastes waiting time.
[0041] 创建模块 12, 用于根据划分模块中的初始化集合的数量, 依次创建对应数量的 初始化进程; [0041] The creating module 12 is configured to sequentially create a corresponding number of initialization processes according to the number of initialization sets in the dividing module.
[0042] 执行模块 13, 用于根据所述初始化进程依次执行对应初始化集合中的软件模块 的初始化, 初始化进程都执行完成初始化后, 支付终端初始化完成。  [0042] The execution module 13 is configured to sequentially perform initialization of the software modules in the corresponding initialization set according to the initialization process, and after the initialization process is performed, the payment terminal initialization is completed.
[0043] 综上所述, 本发明提供的提高支付终端启动速度的方法和装置通过将初始化程 序修改为多进程的初始化执行, 充分利用了多核处理器的并行处理能力, 缩短 了系统初始化吋间。  [0043] In summary, the method and apparatus for improving the startup speed of a payment terminal provided by the present invention modify the initialization procedure into multi-process initialization execution, fully utilizing the parallel processing capability of the multi-core processor, and shortening the system initialization period. .
[0044] 对于单核处理器, 本发明方法也在一定程度上能缩短系统初始化吋间。 因为通 过并行操作, 提高了处理器利用率, 可以避免 10消耗型初始化阻塞导致此吋无 法进行其他初始化操作而延长幵机吋间。 提高了支付终端的生产工作效率。  [0044] For a single core processor, the method of the present invention also reduces system initialization to a certain extent. Because the processor utilization is improved by parallel operation, it is possible to avoid the 10 consumption type initialization blocking, which causes the other initialization operations to be extended and the downtime is extended. Improve the production efficiency of the payment terminal.
[0045]  [0045]

Claims

权利要求书 Claim
[权利要求 1] 一种提高支付终端启动速度的方法, 其特征在于, 包括如下步骤: 步骤 S1 : 获取支付终端中需要初始化的软件模块, 将所述软件模块划 分到多个初始化集合;  [Claim 1] A method for improving a startup speed of a payment terminal, comprising the steps of: Step S1: acquiring a software module that needs to be initialized in a payment terminal, and dividing the software module into a plurality of initialization sets;
每个所述初始化集合中的软件模块按初始化顺序排列; 所述初始化集 合中的软件模块的划分满足条件为: 没有初始化顺序依赖关系的两个 软件模块不放在同一个初始化集合中;  The software modules in each of the initialization sets are arranged in an initialization order; the division of the software modules in the initialization set satisfies the condition that: two software modules that do not have an initialization order dependency are not placed in the same initialization set;
步骤 S2: 根据步骤 S1所述初始化集合的数量, 依次创建对应数量的 初始化进程;  Step S2: sequentially, according to step S1, initialize the number of sets, and sequentially create a corresponding number of initialization processes;
步骤 S3: 根据所述初始化进程依次执行对应初始化集合中的软件模块 的初始化, 软件模块根据在初始化集合中的顺序进行初始化; 初始化 进程都执行完成初始化后, 支付终端初始化完成。  Step S3: sequentially performing initialization of the software modules in the corresponding initialization set according to the initialization process, and the software modules are initialized according to the order in the initialization set; after the initialization process is completed and the initialization is completed, the payment terminal initialization is completed.
[权利要求 2] 根据权利要求 1所述的提高支付终端启动速度的方法, 其特征在于, 所述初始化集合中的软件模块的划分满足条件具体为: a、 后面的软 件模块依赖于前面软件模块初始化完成; b、 一个初始化集合中的任 意软件模块初始化不依赖于其他初始化集合中的软件模块; c、 互相 没有先后顺序关系的两个软件模块, 一定位于不同的初始化集合中。  [Claim 2] The method for improving the startup speed of the payment terminal according to claim 1, wherein the division of the software module in the initialization set satisfies the condition: a, the following software module depends on the previous software module Initialization is complete; b. Any software module initialization in an initialization set does not depend on software modules in other initialization sets; c. Two software modules that do not have a sequential relationship with each other must be located in different initialization sets.
[权利要求 3] —种提高支付终端启动速度的装置, 其特征在于, 包括:  [Claim 3] A device for improving the startup speed of a payment terminal, comprising:
划分模块, 用于获取支付终端中需要初始化的软件模块, 将所述软件 模块划分到多个初始化集合;  a dividing module, configured to acquire a software module that needs to be initialized in the payment terminal, and divide the software module into multiple initialization sets;
每个所述初始化集合中的软件模块按顺序排列; 所述初始化集合中的 软件模块的划分满足如下条件: 没有初始化顺序依赖关系的两个软件 模块不放在同一个初始化集合中;  The software modules in each of the initialization sets are arranged in order; the division of the software modules in the initialization set satisfies the following conditions: Two software modules that do not initialize the order dependencies are not placed in the same initialization set;
创建模块, 用于根据划分模块中的初始化集合的数量, 依次创建对应 数量的初始化进程;  a creating module, configured to sequentially create a corresponding number of initialization processes according to the number of initialization sets in the dividing module;
执行模块, 用于根据所述初始化进程依次执行对应初始化集合中的软 件模块的初始化, 初始化进程都执行完成初始化后, 支付终端初始化 完成。 [权利要求 4] 根据权利要求 3所述的提高支付终端启动速度的装置, 其特征在于, 所述初始化集合中的软件模块的划分满足条件具体为: a、 后面的软 件模块依赖于前面软件模块初始化完成; b、 一个初始化集合中的任 意软件模块初始化不依赖于其他初始化集合中的软件模块; c、 互相 没有先后顺序关系的两个软件模块, 一定位于不同的初始化集合中。 The execution module is configured to sequentially perform initialization of the software module in the corresponding initialization set according to the initialization process, and the initialization of the payment terminal is completed after the initialization process is completed and initialized. [Claim 4] The device for improving the startup speed of the payment terminal according to claim 3, wherein the division of the software module in the initialization set satisfies the condition: a, the following software module depends on the previous software module Initialization is complete; b. Any software module initialization in an initialization set does not depend on software modules in other initialization sets; c. Two software modules that do not have a sequential relationship with each other must be located in different initialization sets.
PCT/CN2017/098241 2016-08-31 2017-08-21 Method and device for accelerating activation of payment terminal WO2018040970A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610785234.0 2016-08-31
CN201610785234.0A CN106354535A (en) 2016-08-31 2016-08-31 Method and device for improving starting speed of payment terminal

Publications (1)

Publication Number Publication Date
WO2018040970A1 true WO2018040970A1 (en) 2018-03-08

Family

ID=57857557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098241 WO2018040970A1 (en) 2016-08-31 2017-08-21 Method and device for accelerating activation of payment terminal

Country Status (2)

Country Link
CN (1) CN106354535A (en)
WO (1) WO2018040970A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354535A (en) * 2016-08-31 2017-01-25 福建联迪商用设备有限公司 Method and device for improving starting speed of payment terminal
CN110874242A (en) * 2018-09-03 2020-03-10 珠海全志科技股份有限公司 Method, device and system for initializing parallel start
CN111857844A (en) * 2020-06-19 2020-10-30 浪潮(北京)电子信息产业有限公司 Initialization method of multi-core processor and related device
CN112860352A (en) * 2021-03-17 2021-05-28 惠州Tcl移动通信有限公司 Application loading method and device, storage medium and terminal
CN114647464B (en) * 2022-05-19 2022-09-06 恒生电子股份有限公司 Application parallel starting processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6710764B1 (en) * 2000-05-09 2004-03-23 Logitech Europe S.A. Method and system for processing force feedback effects generated at a host for playback at a physical interaction device
CN1818868A (en) * 2006-03-10 2006-08-16 浙江大学 Multi-task parallel starting optimization of built-in operation system
CN103473095A (en) * 2013-09-10 2013-12-25 江苏中科梦兰电子科技有限公司 Accelerating initializing method for central processing unit (CPU) second level cache
CN104731614A (en) * 2015-03-05 2015-06-24 广东欧珀移动通信有限公司 Method and device for accelerating data loading in starting process
CN106354535A (en) * 2016-08-31 2017-01-25 福建联迪商用设备有限公司 Method and device for improving starting speed of payment terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6710764B1 (en) * 2000-05-09 2004-03-23 Logitech Europe S.A. Method and system for processing force feedback effects generated at a host for playback at a physical interaction device
CN1818868A (en) * 2006-03-10 2006-08-16 浙江大学 Multi-task parallel starting optimization of built-in operation system
CN103473095A (en) * 2013-09-10 2013-12-25 江苏中科梦兰电子科技有限公司 Accelerating initializing method for central processing unit (CPU) second level cache
CN104731614A (en) * 2015-03-05 2015-06-24 广东欧珀移动通信有限公司 Method and device for accelerating data loading in starting process
CN106354535A (en) * 2016-08-31 2017-01-25 福建联迪商用设备有限公司 Method and device for improving starting speed of payment terminal

Also Published As

Publication number Publication date
CN106354535A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
WO2018040970A1 (en) Method and device for accelerating activation of payment terminal
US10157060B2 (en) Method, device and system for control signaling in a data path module of a data stream processing engine
KR101691126B1 (en) Fault tolerant batch processing
CN105814541B (en) The method of computer equipment and computer equipment internal storage starting
US10761822B1 (en) Synchronization of computation engines with non-blocking instructions
TW201738741A (en) Method and apparatus for creating virtual machine
US11175919B1 (en) Synchronization of concurrent computation engines
CN114564435A (en) Inter-core communication method, device and medium for heterogeneous multi-core chip
JP2021111313A (en) Information processing method and apparatus
CN110297771A (en) Distributed test method and device for the warehouse receipt page
EP3241116A1 (en) Memory access protection using processor transactional memory support
JP2020053013A (en) Request processing method and device
CN107918555A (en) The method and apparatus for handling data based on physical host
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
TW201804318A (en) Processors, methods, and systems to identify stores that cause remote transactional execution aborts
JPH11272474A (en) Plural execution devices which can interrupt during processing of operation using allocation of plural registers
TW201117094A (en) Basic input/output system capable of supporting multi-platforms and constructing method thereof
CN105677481B (en) A kind of data processing method, system and electronic equipment
US20120151145A1 (en) Data Driven Micro-Scheduling of the Individual Processing Elements of a Wide Vector SIMD Processing Unit
CN110289043B (en) Storage device testing method and device and electronic device
US20230214153A1 (en) Memory device forensics and preparation
US10922146B1 (en) Synchronization of concurrent computation engines
CN109840137B (en) Cross-core scheduling method and device
CN110018851A (en) Data processing method, relevant device and computer-readable medium
JP2009527816A5 (en)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17845272

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17845272

Country of ref document: EP

Kind code of ref document: A1