WO2015003483A1 - Pos terminal and network configuration method and system thereof - Google Patents

Pos terminal and network configuration method and system thereof Download PDF

Info

Publication number
WO2015003483A1
WO2015003483A1 PCT/CN2014/071175 CN2014071175W WO2015003483A1 WO 2015003483 A1 WO2015003483 A1 WO 2015003483A1 CN 2014071175 W CN2014071175 W CN 2014071175W WO 2015003483 A1 WO2015003483 A1 WO 2015003483A1
Authority
WO
WIPO (PCT)
Prior art keywords
negotiation
pos terminal
configuration file
communication
configuration
Prior art date
Application number
PCT/CN2014/071175
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 WO2015003483A1 publication Critical patent/WO2015003483A1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • G07G1/14Systems including one or more distant stations co-operating with a central processing unit

Definitions

  • the present invention relates to the field of communications, and in particular, to a POS terminal and a network configuration method and system thereof.
  • POS When the POS terminal adopts 2G/3G communication methods such as GPRS, WCDMA, EVDO, etc., POS is required. After the terminal accesses the wireless network, the subsequent transaction process can be performed.
  • the above communication method uses the PPP protocol at the link layer, according to the RFC. It is stipulated that at the beginning of communication, some communication parameters of the two parties can be agreed upon through negotiation and guarantee the follow-up communication process.
  • the PPP protocol provides commonly used negotiable parameters ( Options ), and allows customers to modify the negotiation parameters to adapt to various network environments.
  • the application environment of the POS terminal is different from that of the civilian mobile phone customer.
  • POS In most cases, the terminal needs to run in a private network environment. Therefore, when the same POS terminal uses different private network environments, communication failure occurs due to incompatibility of communication parameters, and the same POS The terminal may need to be used in different network environments.
  • the hardened dialing script may cause communication failure.
  • the terminal network configuration method includes: obtaining a negotiation parameter value, and generating a plurality of configuration files by using the negotiation parameter value in an array combination manner; installing the configuration file in the POS In the terminal security storage area; select a profile ID according to the selection input; read the selected profile ID from the secure storage area Corresponding configuration file, extracting the negotiation parameter value in the configuration file; performing communication negotiation according to the extracted negotiation parameter value and establishing a communication link according to the communication negotiation result.
  • the negotiation parameters include character escaping processing parameters, authentication mode, LCP packet retransmission times, and LCP. Packet retransmission interval, compression algorithm, address, and DNS acquisition path.
  • the value of the character escaping processing parameter is set to FFFFFFFF, A0000, or 0. And allow extension settings.
  • the terminal network configuration system includes: a configuration file generating unit, configured to acquire a negotiation parameter value, and generate a plurality of configuration files in a permutation and combination manner; and a configuration file installation unit, configured to install the configuration file In the POS terminal security storage area; a configuration file selection unit for selecting a configuration file ID according to the selection input; a negotiation parameter extraction unit for reading the selected configuration file ID from the secure storage area Corresponding configuration file, the negotiation parameter value is extracted in the configuration file; the negotiation communication unit is configured to perform communication negotiation according to the extracted negotiation parameter value and establish a communication link according to the communication negotiation result.
  • the negotiation parameters include character escaping processing parameters, authentication mode, LCP packet retransmission times, and LCP. Packet retransmission interval, compression algorithm, address, and DNS acquisition path.
  • the value of the character escaping processing parameter is set to FFFFFFFF, A0000, or 0. And allow extension settings.
  • the POS terminal network configuration system is as described above.
  • the POS terminal of the present invention and the network configuration method and system thereof the negotiation parameter values are arranged and combined to generate a configuration file, and the configuration file is pre-loaded in In the secure storage area of the POS terminal, when the communication is to be performed, the negotiation parameters in the configuration file are selected and extracted, and the communication negotiation is performed according to the negotiation parameters, and the communication link is established according to the communication negotiation result, so that the communication link is established according to the negotiation result.
  • POS terminals can adapt to different network environments, speed up communication time, and reduce subsequent maintenance costs.
  • FIG. 1 is a structural block diagram of a POS terminal network configuration system according to an embodiment of the present invention
  • Figure 2 is a schematic diagram of a configuration file
  • FIG. 3 is a structural block diagram of a POS terminal according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of execution of a method for configuring a POS terminal network according to an embodiment of the present invention.
  • POS terminal 1 POS terminal network configuration system 100 ; configuration file generation unit 11 ; configuration file installation unit 12; configuration file selection unit 13; negotiation parameter extraction unit 14;
  • FIG. 1 is a structural block diagram of a POS terminal network configuration system according to the present invention.
  • the POS terminal network configuration system 100 The configuration file generating unit 11, the configuration file installation unit 12, the configuration file selection unit 13, the negotiation parameter extraction unit 14, and the negotiation communication unit 15 are included.
  • the terminal adopts 2G/3G communication methods such as GPRS, WCDMA, EVDO, etc.
  • POS is required.
  • the subsequent transaction process can be performed.
  • the above communication method uses the PPP protocol at the link layer, and the PPP protocol provides common negotiation parameters ( Options ), and allows customers to modify the negotiation parameters to adapt to various network environments.
  • the profile generating unit 11 It is used to obtain a negotiation parameter value and generate a plurality of configuration files in a permutation and combination manner. Where each profile uniquely corresponds to one profile ID .
  • the negotiation parameters include character escaping processing parameters, authentication mode, number of LCP packet retransmissions, LCP packet retransmission interval, compression algorithm, address, and DNS acquisition path.
  • the negotiation phase is mainly used to determine the processing methods for subsequent communication between the two parties, such as authentication method and character escaping processing.
  • the configuration file is a combination of negotiation parameters corresponding to the processing methods.
  • Figure 2 is a schematic diagram of a configuration file.
  • the configuration file will be described in conjunction with Figure 2.
  • the address parameter 'noipdefault' when added to the negotiation parameter, it means that no IP address is specified. Assigned by the peer.
  • the DNS acquisition path parameter 'usepeerdns' is added to the negotiation parameters, it indicates that the DNS address used in the subsequent communication process is specified by the peer.
  • LCP packet retransmission interval parameter ' lcp-echo-interval 30 ' is added to the negotiation parameter,
  • the interval for retransmission of LCP packets is 30s. If not set, the LCP packet retransmission operation is not performed.
  • the LCP packet retransmission interval parameter is added to the negotiation parameters. lcp-echo-failure 3 ' indicates that the number of LCP packets allowed to be retransmitted is 3 times.
  • the selection and setting of the negotiation parameter values are summarized according to the cases encountered in the local use. For example, when used in a certain area of Jiangxi, the configuration of the opposite router needs to be compatible with the local broadband network, so the router configuration cannot be modified. And after testing and verification, it is happening During the PPP negotiation process, the server side requires the POS terminal to escape all the control characters during PPP negotiation because of the packet parsing mechanism. That is, the character escaping processing parameter 'asyncmap' is required. 'Set to 0xFFFFFFFF for normal data transfer. Therefore, we will use the character escape processing parameter 'asyncmap' as one of the negotiation parameters in the configuration file, and will be ' The values of asyncmap ' are set to the commonly used FFFFFFFF, A0000, 0;
  • the profile installation unit 12 is configured to install the profile in a POS terminal secure storage area.
  • the profile selection unit 13 is configured to select a profile ID according to the selection input .
  • the selection input is generated by an input device, which may be a mechanical input device such as a touch screen or a button.
  • the negotiation parameter extraction unit 14 is configured to read the selected profile ID from the secure storage area. Corresponding configuration file, extract the negotiation parameter value in the configuration file. For example, when the network fails, the administrator enters the profile selection interface and enters the profile ID. The corresponding configuration file can be selected, or the configuration file selection interface displays multiple configuration file IDs for the administrator to select.
  • the negotiating communication unit 15 is configured to perform communication negotiation according to the extracted negotiation parameter value and establish a communication link according to the communication negotiation result.
  • FIG. 3 is a structural block diagram of a POS terminal according to an embodiment of the present invention.
  • the POS The terminal network configuration system 100 is installed in the POS terminal 1, and the POS terminal 1 further includes a secure storage area 200.
  • FIG. 4 it is a flowchart of execution of a POS terminal network configuration method according to an embodiment of the present invention.
  • the POS terminal network configuration method runs in the POS terminal network configuration system 100, the POS The terminal network configuration method includes:
  • Step S101 Obtain a negotiation parameter value, and generate a plurality of configuration files by using the negotiation parameter value in an array combination manner;
  • Each configuration file uniquely corresponds to one configuration file ID.
  • the negotiation parameters include character escaping processing parameters, authentication mode, and LCP. Number of retransmissions of packets, interval of retransmission of LCP packets, compression algorithm, address, and DNS acquisition path. The value of the character escaping processing parameter 'asyncmap' is set to FFFFFFFF, A0000, or 0.
  • Step S102 Install the configuration file in a secure storage area of the POS terminal.
  • Step S103 Select a profile ID according to the selection input
  • the selection input is generated by an input device, which may be a mechanical input device such as a touch screen or a button.
  • Step S104 Read the selected profile ID from the secure storage area Corresponding configuration file, extracting negotiation parameter values in the configuration file;
  • Step S105 Perform communication negotiation according to the extracted negotiation parameter value and establish a communication link according to the communication negotiation result.
  • the POS terminal of the present invention and the network configuration method and system thereof the negotiation parameter values are arranged and combined to generate a configuration file, and the configuration file is pre-loaded in In the secure storage area of the POS terminal, when the communication is to be performed, the negotiation parameters in the configuration file are selected and extracted, and the communication protocol is negotiated with the corresponding network environment according to the negotiation parameters, and the communication link is established after the negotiation is successful, so that the communication link is established.
  • POS terminals can adapt to different network environments, speed up communication time, and reduce subsequent maintenance costs.

Abstract

Disclosed is a network configuration method of a POS terminal, comprising: obtaining negotiation parameter values, and generating multiple configuration files by using the negotiation parameter values in a permutation and combination manner; installing the configuration files in a secure storage area of the POS terminal; selecting a configuration file ID according to select input; reading, from the secure storage area, a configuration file corresponding to the selected configuration file ID, and extracting a negotiation parameter value from the configuration file; and performing communication negotiation according to the extracted negotiation parameter value and establishing a communications link according to a communication negotiation result. Further disclosed are a POS terminal and a network configuration system thereof. According to the present invention, the POS terminal can adapt to different network environments, a communication time is accelerated, and a subsequent maintenance cost is reduced.

Description

一种 POS 终端及其网络配置方法和系统 POS terminal and network configuration method and system thereof
技术领域 Technical field
本发明涉及通信领域,尤其涉及一种 POS 终端及其网络配置方法和系统。 The present invention relates to the field of communications, and in particular, to a POS terminal and a network configuration method and system thereof.
背景技术 Background technique
随着 POS 终端的广泛使用,其应用环境从银行系统到第三方支付环境,越来越广泛。无论何种应用环境, POS 终端与后台主机进行安全快速的通讯成为必不可少的步骤之一。例如,目前移动终端通常通过 2G/3G 网络与后台主机进行通讯。然而,从金融安全角度考虑某些应用环境需要搭建私有网络。因此,在不同应用环境的网络环境不可避免的存在差异。 With the widespread use of POS terminals, their application environments are becoming more widespread from banking systems to third-party payment environments. Regardless of the application environment, POS Secure and fast communication between the terminal and the background host becomes one of the essential steps. For example, currently mobile terminals usually pass 2G/3G The network communicates with the background host. However, considering some application environments from the perspective of financial security, it is necessary to build a private network. Therefore, there are inevitably differences in the network environment in different application environments.
当 POS 终端采用 GPRS 、 WCDMA 、 EVDO 等 2G/3G 通讯方式时,需要 POS 终端在接入无线网络之后才能进行后续的交易流程。上述通讯方式在链路层采用的是 PPP 协议,根据 RFC 规定,通讯之初,双方的部分通讯参数是可以通过协商来达成一致并保证后续通讯过程的。 PPP 协议提供了常用可协商参数( frequently used options ),并且允许客户修改各项协商参数来适应各种网络环境。 When the POS terminal adopts 2G/3G communication methods such as GPRS, WCDMA, EVDO, etc., POS is required. After the terminal accesses the wireless network, the subsequent transaction process can be performed. The above communication method uses the PPP protocol at the link layer, according to the RFC. It is stipulated that at the beginning of communication, some communication parameters of the two parties can be agreed upon through negotiation and guarantee the follow-up communication process. The PPP protocol provides commonly used negotiable parameters ( Options ), and allows customers to modify the negotiation parameters to adapt to various network environments.
但是,目前支持无线上网功能的移动终端,例如各种智能手机,在进行 PPP 拨号时,都是采用固化参数的方式来进行建立链路的过程,即为适应公网环境把相关的协商参数固化在拨号脚本中,因此在终端开发之时,成功进行拨号上网的配置就可以适应后续的使用,没有考虑协商参数的扩展性。 However, mobile terminals that currently support wireless Internet access, such as various smart phones, are performing PPP. When dialing, the process of establishing a link is adopted by using a curing parameter, that is, the relevant negotiation parameters are solidified in the dialing script in order to adapt to the public network environment. Therefore, when the terminal is developed, the configuration of the dial-up Internet connection can be successfully performed. Adapted to subsequent use, did not consider the scalability of the negotiation parameters.
而 POS 终端的应用环境不同于民用的手机客户,出于安全考虑, POS 终端在多数情况下需要运行在专网环境中。因此,同一 POS 终端在使用不同专用网络环境时,就会出现因为通讯参数无法兼容导致通讯失败的情况,并且,同一台 POS 终端可能需要在不同的网络环境下使用,固化的拨号脚本就可能导致通讯失败,则需要针对不同环境刷新不同固件,甚至使用不同的 POS 终端才能解决,这大大增加 POS 的使用及维护成本。通常进行软件升级需要使用 PC 、专用下载线、专用下载程序,而且固件的重新开发编译耗费一定人工成本。 The application environment of the POS terminal is different from that of the civilian mobile phone customer. For security reasons, POS In most cases, the terminal needs to run in a private network environment. Therefore, when the same POS terminal uses different private network environments, communication failure occurs due to incompatibility of communication parameters, and the same POS The terminal may need to be used in different network environments. The hardened dialing script may cause communication failure. You need to refresh different firmware for different environments, even using different POS terminals. This greatly increases the POS. Use and maintenance costs. Usually software upgrades require the use of a PC, a dedicated download line, a dedicated download program, and the re-development of the firmware costs a certain amount of labor.
发明内容 Summary of the invention
为解决上述技术问题,本发明采用的一个技术方案是: In order to solve the above technical problem, a technical solution adopted by the present invention is:
提供一种 POS 终端网络配置方法,包括:获取协商参数值,将所述协商参数值以排列组合方式生成多个配置文件;将所述配置文件安装在 POS 终端安全存储区中;根据选择输入选择一个配置文件 ID ;从安全存储区读取被选择的配置文件 ID 对应的配置文件,在该配置文件中提取协商参数值;根据提取的协商参数值进行通讯协商并根据通讯协商结果建立通讯链路。 Provide a POS The terminal network configuration method includes: obtaining a negotiation parameter value, and generating a plurality of configuration files by using the negotiation parameter value in an array combination manner; installing the configuration file in the POS In the terminal security storage area; select a profile ID according to the selection input; read the selected profile ID from the secure storage area Corresponding configuration file, extracting the negotiation parameter value in the configuration file; performing communication negotiation according to the extracted negotiation parameter value and establishing a communication link according to the communication negotiation result.
其中,所述协商参数包括字符转义处理参数、认证方式、 LCP 报文重传次数、 LCP 报文重传间隔、压缩算法、地址及 DNS 获取途径等。 The negotiation parameters include character escaping processing parameters, authentication mode, LCP packet retransmission times, and LCP. Packet retransmission interval, compression algorithm, address, and DNS acquisition path.
其中,所述字符转义处理参数的值设置为 FFFFFFFF 、 A0000 、或 0 ,并允许扩展设置。 Wherein, the value of the character escaping processing parameter is set to FFFFFFFF, A0000, or 0. And allow extension settings.
本发明采用的另一个技术方案是: Another technical solution adopted by the present invention is:
提供一种 POS 终端网络配置系统,包括:配置文件生成单元,用于获取协商参数值并将所述协商参数值以排列组合方式生成多个配置文件;配置文件安装单元,用于将所述配置文件安装在 POS 终端安全存储区中;配置文件选择单元,用于根据选择输入选择一个配置文件 ID ;协商参数提取单元,用于从安全存储区读取被选择的配置文件 ID 对应的配置文件,在该配置文件中提取协商参数值;协商通讯单元,用于根据提取的协商参数值进行通讯协商并根据通讯协商结果建立通讯链路。 Provide a POS The terminal network configuration system includes: a configuration file generating unit, configured to acquire a negotiation parameter value, and generate a plurality of configuration files in a permutation and combination manner; and a configuration file installation unit, configured to install the configuration file In the POS terminal security storage area; a configuration file selection unit for selecting a configuration file ID according to the selection input; a negotiation parameter extraction unit for reading the selected configuration file ID from the secure storage area Corresponding configuration file, the negotiation parameter value is extracted in the configuration file; the negotiation communication unit is configured to perform communication negotiation according to the extracted negotiation parameter value and establish a communication link according to the communication negotiation result.
其中,所述协商参数包括字符转义处理参数、认证方式、 LCP 报文重传次数、 LCP 报文重传间隔、压缩算法、地址及 DNS 获取途径。 The negotiation parameters include character escaping processing parameters, authentication mode, LCP packet retransmission times, and LCP. Packet retransmission interval, compression algorithm, address, and DNS acquisition path.
其中,所述字符转义处理参数的值设置为 FFFFFFFF 、 A0000 、或 0 ,并允许扩展设置。 Wherein, the value of the character escaping processing parameter is set to FFFFFFFF, A0000, or 0. And allow extension settings.
本发明采用的另一个技术方案是: Another technical solution adopted by the present invention is:
提供一种 POS 终端,包括 POS 终端网络配置系统和安全存储区,所述 POS 终端网络配置系统如上所述。 Providing a POS terminal, including a POS terminal network configuration system and a secure storage area, the POS The terminal network configuration system is as described above.
本发明的 POS 终端及其网络配置方法及系统,将协商参数值进行排列组合生成配置文件,并将配置文件预装载在 POS 终端的安全存储区中,当要进行通讯时选择并提取配置文件中的协商参数,以及根据协商参数与相应的网络环境进行通讯协商,并根据通讯协商结果建立通讯链路,使得 POS 终端可以适应不同的网络环境,加快通讯时间,并减少后续的维护成本。 The POS terminal of the present invention and the network configuration method and system thereof, the negotiation parameter values are arranged and combined to generate a configuration file, and the configuration file is pre-loaded in In the secure storage area of the POS terminal, when the communication is to be performed, the negotiation parameters in the configuration file are selected and extracted, and the communication negotiation is performed according to the negotiation parameters, and the communication link is established according to the communication negotiation result, so that the communication link is established according to the negotiation result. POS terminals can adapt to different network environments, speed up communication time, and reduce subsequent maintenance costs.
附图说明 BRIEF DESCRIPTION OF THE DRAWINGS
图 1 是本发明一实施方式中一种 POS 终端网络配置系统的结构框图; 1 is a structural block diagram of a POS terminal network configuration system according to an embodiment of the present invention;
图 2 是一配置文件的示意图; Figure 2 is a schematic diagram of a configuration file;
图 3 是本发明一实施方式中一种 POS 终端的结构框图; 3 is a structural block diagram of a POS terminal according to an embodiment of the present invention;
图 4 是本发明一实施方式中一种 POS 终端网络配置方法的执行流程图。 FIG. 4 is a flowchart of execution of a method for configuring a POS terminal network according to an embodiment of the present invention.
主要元件符号说明: The main component symbol description:
POS 终端 1 ; POS 终端网络配置系统 100 ;配置文件生成单元 11 ; 配置文件安装单元 12 ;配置文件选择单元 13 ;协商参数提取单元 14 ;  POS terminal 1 ; POS terminal network configuration system 100 ; configuration file generation unit 11 ; configuration file installation unit 12; configuration file selection unit 13; negotiation parameter extraction unit 14;
协商通讯单元 15 。Negotiate the communication unit 15 .
具体实施方式 detailed description
为详细说明本发明的技术内容、构造特征、所实现目的及效果,以下结合实施方式并配合附图详予说明。 The detailed description of the technical contents, structural features, and the objects and effects of the present invention will be described in detail below with reference to the accompanying drawings.
请一并参阅图 1 ,是本发明一种 POS 终端网络配置系统的结构框图。该 POS 终端网络配置系统 100 包括配置文件生成单元 11 、配置文件安装单元 12 、配置文件选择单元 13 、协商参数提取单元 14 、协商通讯单元 15 。 Please refer to FIG. 1 , which is a structural block diagram of a POS terminal network configuration system according to the present invention. The POS terminal network configuration system 100 The configuration file generating unit 11, the configuration file installation unit 12, the configuration file selection unit 13, the negotiation parameter extraction unit 14, and the negotiation communication unit 15 are included.
据 RFC 规定,通讯之初,双方的部分通讯参数是可以通过协商来达成一致并保证后续通讯过程的。当 POS 终端采用 GPRS 、 WCDMA 、 EVDO 等 2G/3G 通讯方式时,需要 POS 终端在接入无线网络之后才能进行后续的交易流程。上述通讯方式在链路层采用的是 PPP 协议, PPP 协议提供了常用协商参数( frequently used options ),并且允许客户修改各项协商参数来适应各种网络环境。 According to the RFC regulations, at the beginning of the communication, some of the communication parameters of the two parties can be agreed upon through negotiation and guarantee the follow-up communication process. When POS When the terminal adopts 2G/3G communication methods such as GPRS, WCDMA, EVDO, etc., POS is required. After the terminal accesses the wireless network, the subsequent transaction process can be performed. The above communication method uses the PPP protocol at the link layer, and the PPP protocol provides common negotiation parameters ( Options ), and allows customers to modify the negotiation parameters to adapt to various network environments.
所述配置文件生成单元 11 用于获取协商参数值并将所述协商参数值以排列组合方式生成多个配置文件。其中,每个配置文件惟一对应一个配置文件 ID 。所述协商参数包括字符转义处理参数、认证方式、 LCP 报文重传次数、 LCP 报文重传间隔、压缩算法、地址及 DNS 获取途径等。 The profile generating unit 11 It is used to obtain a negotiation parameter value and generate a plurality of configuration files in a permutation and combination manner. Where each profile uniquely corresponds to one profile ID . The negotiation parameters include character escaping processing parameters, authentication mode, number of LCP packet retransmissions, LCP packet retransmission interval, compression algorithm, address, and DNS acquisition path.
根据 RFC 规定, PPP 通讯的 LCP 协商阶段主要用来确定双方后续通讯的处理方法,例如认证方式,字符转义处理等。所述配置文件即是针对这些处理方法对应的协商参数进行组合。 LCP for PPP communication according to RFC regulations The negotiation phase is mainly used to determine the processing methods for subsequent communication between the two parties, such as authentication method and character escaping processing. The configuration file is a combination of negotiation parameters corresponding to the processing methods.
请参阅图 2 ,是一配置文件的示意图。结合图 2 对配置文件进行说明。 Please refer to Figure 2, which is a schematic diagram of a configuration file. The configuration file will be described in conjunction with Figure 2.
例如,在协商参数中增加压缩算法参数' novj ',' novjccomp ',' nopcomp ',' noccp '选项时,表示协商过程中不使用 vj , vjccomp , pcomp , ccp 这几个压缩算法;而没有上述选项时,则表示默认支持这些压缩算法。是否使用压缩算法由对端决定。 For example, add the compression algorithm parameter 'novj ', ' novjccomp ', ' nopcomp ', ' in the negotiation parameters. When the noccp 'option is used, it means that vj, vjccomp, pcomp, ccp are not used during negotiation. These compression algorithms; when there is no such option, it means that these compression algorithms are supported by default. Whether to use the compression algorithm is determined by the peer.
再如,在协商参数中增加地址参数' noipdefault '时,表示没有指定 IP 地址 , 由对端分配。在协商参数中增加 DNS 获取途径参数' usepeerdns '时,表示后续通讯过程中使用的 DNS 地址由对端指定。 For another example, when the address parameter 'noipdefault' is added to the negotiation parameter, it means that no IP address is specified. Assigned by the peer. When the DNS acquisition path parameter 'usepeerdns' is added to the negotiation parameters, it indicates that the DNS address used in the subsequent communication process is specified by the peer.
再如,在协商参数中增加 LCP 报文重传间隔参数' lcp-echo-interval 30 '时,表示 LCP 报文重传间隔时间为 30s ,不设置则表示不进行 LCP 报文重传操作;在协商参数中增加 LCP 报文重传间隔参数' lcp-echo-failure 3 '表示允许重传的 LCP 报文次数为 3 次。 For example, when the LCP packet retransmission interval parameter ' lcp-echo-interval 30 ' is added to the negotiation parameter, The interval for retransmission of LCP packets is 30s. If not set, the LCP packet retransmission operation is not performed. The LCP packet retransmission interval parameter is added to the negotiation parameters. lcp-echo-failure 3 ' indicates that the number of LCP packets allowed to be retransmitted is 3 times.
协商参数值的选择以及设置是根据在各地使用所遇见的案例进行汇总,例如,在江西某地区使用时,对方路由器配置需要兼容考虑当地的宽带网络,因此无法修改路由器配置。而经过测试验证发现,在进行 PPP 协商的过程中,服务器方因为报文解析机制,要求 POS 终端将 PPP 协商时的控制字符全部进行转义,即需要将字符转义处理参数' asyncmap '设置为 0xFFFFFFFF 才能进行正常数据传输。因此,我们将字符转义处理参数' asyncmap '作为配置文件中协商参数之一,并且将' asyncmap '的值分别设置为常用的 FFFFFFFF , A0000 , 0 三种; The selection and setting of the negotiation parameter values are summarized according to the cases encountered in the local use. For example, when used in a certain area of Jiangxi, the configuration of the opposite router needs to be compatible with the local broadband network, so the router configuration cannot be modified. And after testing and verification, it is happening During the PPP negotiation process, the server side requires the POS terminal to escape all the control characters during PPP negotiation because of the packet parsing mechanism. That is, the character escaping processing parameter 'asyncmap' is required. 'Set to 0xFFFFFFFF for normal data transfer. Therefore, we will use the character escape processing parameter 'asyncmap' as one of the negotiation parameters in the configuration file, and will be ' The values of asyncmap ' are set to the commonly used FFFFFFFF, A0000, 0;
在进行通讯协商之前可以通过调整配置文件的选择,以适应不同的网络链接需求。这可以快速排查问题,即使预置的配置文件依然不足以适应当前网络环境,也可以再形成新的配置文件,通过安全方式下载到 POS 终端中。由于配置文件中仅设置几个配置参数,文件大小仅百字节以内,相比整个固件通常都是 K 字节甚至 M 字节,下载耗费时间节约很多。 You can adjust the configuration file selection to suit different network link requirements before conducting communication negotiation. This can quickly troubleshoot the problem, even if the preset configuration file is still not enough to adapt to the current network environment, you can also form a new configuration file, download it to the secure way. In the POS terminal. Since only a few configuration parameters are set in the configuration file, the file size is only within one hundred bytes, which is usually K-byte or even M-byte compared to the entire firmware, which saves a lot of time.
所述配置文件安装单元 12 用于将所述配置文件安装在 POS 终端安全存储区中。 The profile installation unit 12 is configured to install the profile in a POS terminal secure storage area.
所述配置文件选择单元 13 用于根据选择输入选择一个配置文件 ID 。具体地,所述选择输入由输入装置产生,该输入装置可为触摸屏或按键等机械输入装置。 The profile selection unit 13 is configured to select a profile ID according to the selection input . Specifically, the selection input is generated by an input device, which may be a mechanical input device such as a touch screen or a button.
所述协商参数提取单元 14 用于从安全存储区读取被选择的配置文件 ID 对应的配置文件,在配置文件中提取协商参数值。例如,当网络出现故障时,管理员进入配置文件选择界面,输入配置文件 ID 可选择相应的配置文件,或者所述配置文件选择界面显示多个配置文件 ID 供管理员进行选择。 The negotiation parameter extraction unit 14 is configured to read the selected profile ID from the secure storage area. Corresponding configuration file, extract the negotiation parameter value in the configuration file. For example, when the network fails, the administrator enters the profile selection interface and enters the profile ID. The corresponding configuration file can be selected, or the configuration file selection interface displays multiple configuration file IDs for the administrator to select.
所述协商通讯单元 15 用于根据提取的协商参数值进行通讯协商并根据通讯协商结果建立通讯链路。 The negotiating communication unit 15 is configured to perform communication negotiation according to the extracted negotiation parameter value and establish a communication link according to the communication negotiation result.
请参阅图 3 ,是本发明一实施方式中一种 POS 终端的结构框图。在本实施方式中,所述 POS 终端网络配置系统 100 安装在 POS 终端 1 中,所述 POS 终端 1 还包括安全存储区 200 。 Please refer to FIG. 3, which is a structural block diagram of a POS terminal according to an embodiment of the present invention. In this embodiment, the POS The terminal network configuration system 100 is installed in the POS terminal 1, and the POS terminal 1 further includes a secure storage area 200.
请参阅图 4 ,是本发明一实施方式中一种 POS 终端网络配置方法的执行流程图。 Referring to FIG. 4, it is a flowchart of execution of a POS terminal network configuration method according to an embodiment of the present invention.
该 POS 终端网络配置方法运行于所述 POS 终端网络配置系统 100 中,该 POS 终端网络配置方法包括: The POS terminal network configuration method runs in the POS terminal network configuration system 100, the POS The terminal network configuration method includes:
步骤 S101 、获取协商参数值,将所述协商参数值以排列组合方式生成多个配置文件; Step S101: Obtain a negotiation parameter value, and generate a plurality of configuration files by using the negotiation parameter value in an array combination manner;
其中,每个配置文件惟一对应一个配置文件 ID 。所述协商参数包括字符转义处理参数、认证方式、 LCP 报文重传次数、 LCP 报文重传间隔、压缩算法、地址及 DNS 获取途径等。所述字符转义处理参数' asyncmap '的值设置为 FFFFFFFF 、 A0000 、或 0 。 Each configuration file uniquely corresponds to one configuration file ID. The negotiation parameters include character escaping processing parameters, authentication mode, and LCP. Number of retransmissions of packets, interval of retransmission of LCP packets, compression algorithm, address, and DNS acquisition path. The value of the character escaping processing parameter 'asyncmap' is set to FFFFFFFF, A0000, or 0.
步骤 S102 、将所述配置文件安装在 POS 终端安全存储区中; Step S102: Install the configuration file in a secure storage area of the POS terminal.
步骤 S103 、根据选择输入选择一个配置文件 ID ; Step S103: Select a profile ID according to the selection input;
具体地,所述选择输入由输入装置产生,该输入装置可为触摸屏或按键等机械输入装置。 Specifically, the selection input is generated by an input device, which may be a mechanical input device such as a touch screen or a button.
步骤 S104 、从安全存储区读取被选择的配置文件 ID 对应的配置文件,在该配置文件中提取协商参数值; Step S104: Read the selected profile ID from the secure storage area Corresponding configuration file, extracting negotiation parameter values in the configuration file;
步骤 S105 、根据提取的协商参数值进行通讯协商并根据通讯协商结果建立通讯链路。 Step S105: Perform communication negotiation according to the extracted negotiation parameter value and establish a communication link according to the communication negotiation result.
本发明的 POS 终端及其网络配置方法和系统,将协商参数值进行排列组合生成配置文件,并将配置文件预装载在 POS 终端的安全存储区中,当要进行通讯时选择并提取配置文件中的协商参数,以及根据协商参数与相应的网络环境进行通讯协商,并在协商成功后建立通讯链路,使得 POS 终端可以适应不同的网络环境,加快通讯时间,并减少后续的维护成本。 The POS terminal of the present invention and the network configuration method and system thereof, the negotiation parameter values are arranged and combined to generate a configuration file, and the configuration file is pre-loaded in In the secure storage area of the POS terminal, when the communication is to be performed, the negotiation parameters in the configuration file are selected and extracted, and the communication protocol is negotiated with the corresponding network environment according to the negotiation parameters, and the communication link is established after the negotiation is successful, so that the communication link is established. POS terminals can adapt to different network environments, speed up communication time, and reduce subsequent maintenance costs.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformation of the present invention and the contents of the drawings may be directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.

Claims (1)

  1. 1、 一种 POS 终端网络配置方法,其特征在于,包括:A POS terminal network configuration method, comprising:
    获取协商参数值,将所述协商参数值以排列组合方式生成多个配置文件;Obtaining a negotiation parameter value, and generating, by using the negotiation parameter value, a plurality of configuration files in an array combination manner;
    将所述配置文件安装在 POS 终端安全存储区中;The configuration file is installed in a secure storage area of the POS terminal;
    根据选择输入选择一个配置文件 ID ;Select a profile ID based on the selection input;
    从安全存储区读取被选择的配置文件 ID 对应的配置文件,在该配置文件中提取协商参数值;Reading a configuration file corresponding to the selected configuration file ID from the secure storage area, and extracting the negotiation parameter value in the configuration file;
    根据提取的协商参数值进行通讯协商并根据通讯协商结果建立通讯链路。The communication negotiation is performed according to the extracted negotiation parameter values, and the communication link is established according to the communication negotiation result.
    2、 根据权利要求 1 所述一种 POS 终端网络配置方法,其特征在于,所述协商参数包括字符转义处理参数、认证方式、 LCP 报文重传次数、 LCP 报文重传间隔、压缩算法、地址及 DNS 获取途径。The POS terminal network configuration method according to claim 1, wherein the negotiation parameter includes a character escaping processing parameter, an authentication method, Number of LCP packet retransmissions, LCP packet retransmission interval, compression algorithm, address, and DNS acquisition path.
    3、 根据权利要求 2 所述一种 POS 终端网络配置方法,其特征在于,所述字符转义处理参数的值设置为 FFFFFFFF 、 A0000 、或 0 ,并允许扩展设置。The POS terminal network configuration method according to claim 2, wherein the value of the character escaping processing parameter is set to FFFFFFFF , A0000 , or 0 and allow extended settings.
    4、 一种 POS 终端网络配置系统,其特征在于,包括:4. A POS terminal network configuration system, comprising:
    配置文件生成单元,用于获取协商参数值并将所述协商参数值以排列组合方式生成多个配置文件;a configuration file generating unit, configured to obtain a negotiation parameter value, and generate a plurality of configuration files by using the negotiation parameter value in an array combination manner;
    配置文件安装单元,用于将所述配置文件安装在 POS 终端安全存储区中;a configuration file installation unit, configured to install the configuration file in a secure storage area of the POS terminal;
    配置文件选择单元,用于根据选择输入选择一个配置文件 ID ;a profile selection unit for selecting a profile ID based on the selection input;
    协商参数提取单元,用于从安全存储区读取被选择的配置文件 ID 对应的配置文件,在该配置文件中提取协商参数值;Negotiation parameter extraction unit for reading the selected profile ID from the secure storage area Corresponding configuration file, extracting negotiation parameter values in the configuration file;
    协商通讯单元,用于根据提取的协商参数值进行通讯协商并根据通讯协商结果建立通讯链路。The negotiation communication unit is configured to perform communication negotiation according to the extracted negotiation parameter value and establish a communication link according to the communication negotiation result.
    5、 根据权利要求 4 所述一种 POS 终端网络配置系统,其特征在于,所述协商参数包括字符转义处理参数、认证方式、 LCP 报文重传次数、 LCP 报文重传间隔、压缩算法、地址及 DNS 获取途径。The POS terminal network configuration system according to claim 4, wherein the negotiation parameters include character escaping processing parameters, authentication methods, Number of LCP packet retransmissions, LCP packet retransmission interval, compression algorithm, address, and DNS acquisition path.
    6、 根据权利要求 5 所述一种 POS 终端网络配置系统,其特征在于,所述字符转义处理参数的值设置为 FFFFFFFF 、 A0000 、或 0 ,并允许扩展设置。6. The POS terminal network configuration system according to claim 5, wherein the value of the character escaping processing parameter is set to FFFFFFFF , A0000 , or 0 and allow extended settings.
    7、 一种 POS 终端,其特征在于,包括 POS 终端网络配置系统和安全存储区,所述 POS 终端网络配置系统如权利要求 4-6 任意一项所述。7. A POS terminal, comprising: a POS terminal network configuration system and a secure storage area, the POS terminal network configuration system as claimed 4-6 As stated in any of the items.
PCT/CN2014/071175 2013-07-11 2014-01-23 Pos terminal and network configuration method and system thereof WO2015003483A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310290545.6 2013-07-11
CN201310290545.6A CN103440714B (en) 2013-07-11 2013-07-11 A kind of POS terminal and network collocating method thereof and system

Publications (1)

Publication Number Publication Date
WO2015003483A1 true WO2015003483A1 (en) 2015-01-15

Family

ID=49694407

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/071175 WO2015003483A1 (en) 2013-07-11 2014-01-23 Pos terminal and network configuration method and system thereof

Country Status (2)

Country Link
CN (1) CN103440714B (en)
WO (1) WO2015003483A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440714B (en) * 2013-07-11 2015-09-30 福建联迪商用设备有限公司 A kind of POS terminal and network collocating method thereof and system
CN104954193B (en) * 2014-03-31 2018-08-10 中国银联股份有限公司 The system and method for off-line test terminal message
CN107578583B (en) * 2017-08-31 2020-07-28 百富计算机技术(深圳)有限公司 Setting method and system of payment terminal and terminal equipment
CN110875835A (en) * 2018-08-31 2020-03-10 北京意锐新创科技有限公司 Network distribution method and device based on mobile payment equipment
CN109617881A (en) * 2018-12-18 2019-04-12 福建联迪商用设备有限公司 A kind of processing method and terminal of POS terminal message

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1924038A1 (en) * 2006-11-20 2008-05-21 International Business Machines Corporation An electronic mailing method and system
CN102224716A (en) * 2008-11-21 2011-10-19 微软公司 Unified interface for configuring multiple networking technologies
CN103440714A (en) * 2013-07-11 2013-12-11 福建联迪商用设备有限公司 POS terminal and method and system for network configuration of POS terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1924038A1 (en) * 2006-11-20 2008-05-21 International Business Machines Corporation An electronic mailing method and system
CN102224716A (en) * 2008-11-21 2011-10-19 微软公司 Unified interface for configuring multiple networking technologies
CN103440714A (en) * 2013-07-11 2013-12-11 福建联迪商用设备有限公司 POS terminal and method and system for network configuration of POS terminal

Also Published As

Publication number Publication date
CN103440714A (en) 2013-12-11
CN103440714B (en) 2015-09-30

Similar Documents

Publication Publication Date Title
WO2015003483A1 (en) Pos terminal and network configuration method and system thereof
EP3731551A1 (en) Identity authentication method and system, and computing device
CA2923431C (en) Network connection automation
US8856290B2 (en) Method and apparatus for exchanging configuration information in a wireless local area network
CN105635084B (en) Terminal authentication apparatus and method
CN102821161B (en) A kind of network security auditing method, Apparatus and system
US20060221946A1 (en) Connection establishment on a tcp offload engine
CN105516080A (en) Processing method, apparatus, and system for TCP connection
CN101636968A (en) Method for preventing denial of service attacks using transmission control protocol state transition
CN107634984A (en) A kind of file synchronisation method based on one-way transmission path
CN102447720A (en) Method for remotely controlling personal computer (PC) by mobile phone
CN100559820C (en) A kind of dialing security gateway device
US7457875B2 (en) Access server with function of collecting communication statistics information
WO2017005163A1 (en) Wireless communication-based security authentication device
US9049254B2 (en) Control method, apparatus and system
US20070192846A1 (en) System and Method for Providing Security In A Network Environment Using Accounting Information
CN106686003B (en) Bypass the network admittance control system and method for deployment
WO2014120661A1 (en) Recovering lost device information in cable networks
CN103475491A (en) Remote maintenance system which is logged in to safely without code and achieving method
CN111225038B (en) Server access method and device
WO2024002143A1 (en) Root certificate updating method and apparatus
CN102075567B (en) Authentication method, client, server, feedthrough server and authentication system
WO2015018200A1 (en) Method and apparatus for upgrading detection engine in firewall device
CN106375265A (en) Household gateway and communication management method and communication system thereof
CN111953742B (en) Page redirection method, terminal equipment, intermediate equipment and server

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: 14822942

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: 14822942

Country of ref document: EP

Kind code of ref document: A1