WO2017128674A1 - Pos机具联网的方法及系统 - Google Patents
Pos机具联网的方法及系统 Download PDFInfo
- Publication number
- WO2017128674A1 WO2017128674A1 PCT/CN2016/092337 CN2016092337W WO2017128674A1 WO 2017128674 A1 WO2017128674 A1 WO 2017128674A1 CN 2016092337 W CN2016092337 W CN 2016092337W WO 2017128674 A1 WO2017128674 A1 WO 2017128674A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- low power
- pos device
- power mode
- networking
- ppp link
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/76—Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
- H04L47/765—Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions triggered by the end-points
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Definitions
- the present invention relates to the field of online payment technologies, and in particular, to a method and system for networking a POS device.
- POS and service backgrounds carry out various transactions.
- wireless (2G/3G/4G) is used as the communication means, firstly, network resources need to be obtained from the operator to establish a PPP link, and then based on the existence of the PPP link. In order to perform subsequent TCP/UDP and other IP communication with the server.
- the current POS terminal will use the heartbeat packet mechanism to maintain the PPP link.
- the POS in the absence of a transaction, the POS periodically sends a heartbeat packet to cause the system to push out a low power state, thereby ensuring that the PPP link is valid.
- the key to the heartbeat packet mechanism of the POS device is the setting of the interval of the heartbeat packet and the size of the heartbeat packet. Due to different regions, different operators will be based on current User configuration is used to configure network communication parameters. It is very difficult to set a uniform and valid value. In addition, whether the increase in traffic caused by the continuous heartbeat packet transmission mechanism will cause user confusion is not determined by the terminal device.
- POS implements especially hand-held POS implements, use battery power, whether it is power saving or energy saving, etc.
- the POS implements enter a low power mode during the idle period of the transaction to obtain the same power.
- the MCU stops working, and not only cannot send the heartbeat packet actively, but also can not receive the corresponding notification on the network side.
- Figure 2 shows the need to wake up and then send the heartbeat packet.
- the fixed wake-up is to set the exit low power mode, and then re-enter the low power mode after the heartbeat packet is sent.
- the technical problem to be solved by the present invention is: providing a mechanism for applying for a PPP link and an online hold for the existing network distribution, which can prevent the POS from performing various transaction activities, because the invalidity of the PPP link leads to transaction communication.
- the process fails, which requires re-applying the link resources and increasing the transaction time.
- POS machines On the basis of the low-power mode requirements of POS machines, as far as possible, POS machines have an effective link before each transaction, which improves communication efficiency and enhances the user's trading experience.
- the technical solution adopted by the present invention is: Providing a method for networking a POS device, comprising:
- the present invention further provides a system for networking POS implements, including:
- a query module configured to actively query a PDP activation state after the system exits the low power mode
- the beneficial effects of the present invention are as follows: Different from the prior art, the present invention actively queries the PDP activation state after the system exits the low power mode, and confirms that after deactivation, re-applies resources and establishes a valid PPP. link. In the above manner, the present invention enables the POS machine to have an effective link before each transaction, thereby improving communication efficiency and improving the user's transaction experience.
- FIG. 1 is a schematic diagram of a common transaction process of a POS machine in the prior art
- FIG. 2 is a schematic diagram of a transaction flow after a POS machine adopts a heartbeat mechanism in the prior art
- FIG. 3 is a schematic flow chart of a method embodiment of the present invention.
- FIG. 4 is a schematic flow chart of the present invention after adding a heartbeat mechanism
- FIG. 5 is a structural block diagram of a second embodiment of a system according to the present invention.
- the most critical idea of the present invention is: After exiting the low power mode, the PDP activation state is actively queried immediately. If the PPP link has failed, the new resource is immediately applied, and a new effective PPP link is established. Guaranteed continuous trading.
- a method for networking a POS device includes:
- the activation of the PDP may be a process of completing the GPRS attach and acquiring the IP address from the network side; and the deactivation of the PDP considers that the network side releases the IP address and disconnects the network link resources.
- TCP communication needs to be performed after establishing a valid PPP link; After the transaction, enter the low power mode to achieve energy savings.
- the validity of the PPP link can be ensured by combining the heartbeat packet and the active query. . That is, after entering the low power mode, the heartbeat mechanism is executed, and the heartbeat packet is periodically sent. After each heartbeat packet is received, the POS device exits the low power mode and actively queries the PDP activation state.
- the system is initialized, and the acknowledgment needs to be used, the system exits the low power mode, and the PDP activation state is queried. If it is confirmed that the PDP activation state is valid, Perform the normal transaction process. Otherwise, in the deactivated state, release the currently invalid PPP link, and re-apply the operator resources to establish a corresponding valid PPP link. Then perform TCP communication to implement the transaction, and after the transaction is completed. End the above process and enter the low power mode to save energy and wait for the next time you need to use it.
- the second embodiment executes a heartbeat mechanism, sends a wake heartbeat packet, and waits for the next use.
- the embodiment of the present invention actively queries the PDP activation state, and after confirming the activation, re-apply resources, and establish an effective PPP link, after implementing the transaction. , return to the low power mode to save energy, and increase the heartbeat mechanism to achieve regular detection when the energy saving requirements are low.
- the present invention enables the POS machine to have an effective link before each transaction, thereby improving communication efficiency and improving the user's transaction experience.
- the second embodiment of the present invention further provides a system 100 for networking a POS device, including:
- the query module 110 is configured to actively query the PDP activation state after the system exits the low power mode
- the release coupling module 120 is configured to release the currently invalid PPP link and re-apply resources to establish a valid PPP link if the PDP is in the deactivated state.
- TCP communication After establishing a valid PPP link, TCP communication is performed, and after the transaction is completed, the low power mode is entered.
- the heartbeat module 130 is further configured to perform a heartbeat mechanism and periodically send a heartbeat packet after entering the low power mode. After each heartbeat packet is received, the POS device exits the low power mode and actively queries the PDP activation.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种POS机具联网的方法及系统,包括:在系统退出低功耗模式后,主动查询PDP激活状态;若PDP处于去激活状态,则释放当前无效的PPP链路,并重新申请资源,建立有效的PPP链路。通过上述方式,本发明可使POS机具在每次交易前都已经有一个有效的链路存在,尽可能提高通讯效率,提升用户的交易体验。
Description
说明书 发明名称: POS机具联网的方法及系统 技术领域
[0001] 本发明涉及在线支付技术领域, 尤其是涉及一种 POS机具联网的方法及系统。
背景技术
[0002] POS与服务后台进行各种交易吋, 若使用无线 (2G/3G/4G)作为通讯手段, 首先 需要从运营商获取网络资源以建立 PPP链路, 然后在 PPP链路存在的基础上, 才 能与服务器进行后续的 TCP/UDP等 IP通讯。
[0003] 但是无线通讯的成功率和通讯速度受网络环境的影响很大。 网络质量的优劣以 及各地网络运营商对网络通信参数的不同配置都会影响到 POS交易的用户体验。 其中, 由于现在手机上互联网 APP的增多及普及, 从网络资源考虑, 运营商一般 都会将在一定吋间内都没有进行数据传输的终端踢下线, 以允许新用户获取资 源。
[0004] 由于无线通信受当前网络的影响较大, POS机具在软硬件设计吋, 就需要考虑 各种环境因素对用户体验的影响。 为了能够最大限度的提升交易完成速度, 在 环境条件许可情况下, 都希望能够在交易之前尽可能保持 PPP链路的存在及有效 , 这样就能快速且有效的进行后续的 IP通讯。
[0005] 如图 1所示, 若 POS机具进入低功耗状态, 会由于长吋间未进行任何数据传输 被运营商踢下线。 在下次交易前虽然 POS机具会重新激活, 但此吋通常 PPP链路 已失效, 现有技术中并不会对 PPP链路是否有效进行确认, 导致下次交易吋传输 失败, 需要在联网过程中重新申请 PPP链路, 增加了交易吋间, 用户体验效果不
[0006] 为了避免在下次交易数据收发前保证连接不会被掐断, 目前的 POS终端会采用 心跳包机制来维持住 PPP链路。
[0007] 如图 2所示, 在没有交易的情况下, POS会定期发送心跳包使系统推出低功耗 状态, 从而保证 PPP链路的有效。 但是 POS机具采用心跳包机制的关键是心跳包 的间隔吋间和心跳包的大小的设置。 由于不同地区不同运营商都会根据当前的
用户使用情况进行网络通信参数的配置, 要设置一个统一的且有效的值是非常 困难的。 另外, 持续发送心跳包机制带来的流量增加是否会造成用户的困扰不 是终端机具所能决定的。
[0008] 进一步的, POS机具, 尤其是手持式 POS机具, 使用的是电池供电, 无论是省 电还是节能等原因, 都会在交易空闲吋间让 POS机具进入低功耗模式, 以获取同 等电量情况下更长使用吋间的用户体验效果。 而一旦 POS机具进入低功耗模式, MCU停止工作, 不仅无法主动发送心跳包, 也无法接收到网络侧的相应通知。 图 2是需要定吋唤醒, 再发送心跳包。 这里的定吋唤醒就是需要定吋退出低功耗 模式, 心跳包发送完成后再重新进入低功耗模式。 由于发送心跳包的吋间一般 比较短, 所以该过程中依然无法确认是否存在有效的链路状态, 从而导致依然 存在图 1的耗吋情况。 甚至, 在某些特定网络环境下, 会出现网络侧主动发送的 信息无法有效的通知到 POS机具的主 CPU的情况。
技术问题
[0009] 本发明所要解决的技术问题是: 针对现有网络分布情况, 提供申请 PPP链路和 在线保持的机制, 可避免 POS进行各种交易活动吋, 因为 PPP链路的无效导致交 易的通讯过程失败, 从而需要重新申请链路资源, 增加交易吋间的情况。 同吋 结合 POS机具的低功耗模式需求的基础上, 尽可能使 POS机具在每次交易前都已 经有一个有效的链路存在, 尽可能提高通讯效率, 提升用户的交易体验。
问题的解决方案
技术解决方案
[0010] 为了解决上述技术问题, 本发明采用的技术方案为: 提供一种 POS机具联网的 方法, 包括:
[0011] 在系统退出低功耗模式后, 主动査询 PDP激活状态;
[0012] 若 PDP处于去激活状态, 则释放当前无效的 PPP链路, 并重新申请资源, 建立 有效的 PPP链路。
[0013] 为解决上述问题, 本发明还提供一种 POS机具联网的系统, 包括:
[0014] 査询模块, 用于在系统退出低功耗模式后, 主动査询 PDP激活状态;
[0015] 释放联接模块, 用于若 PDP处于去激活状态, 则释放当前无效的 PPP链路, 并
重新申请资源, 建立有效的 PPP链路。
发明的有益效果
有益效果
[0016] 本发明的有益效果在于: 区别于现有技术, 本发明在系统退出低功耗模式后, 主动査询 PDP激活状态, 并确认已去激活后, 重新申请资源, 并建立有效的 PPP 链路。 通过上述方式, 本发明可使 POS机具在每次交易前都已经有一个有效的链 路存在, 尽可能提高通讯效率, 提升用户的交易体验。
对附图的简要说明
附图说明
[0017] 图 1为现有技术中 POS机具普通交易流程示意图;
[0018] 图 2为现有技术中 POS机具采取心跳机制后的交易流程示意图;
[0019] 图 3为本发明方法实施例一流程示意图;
[0020] 图 4为本发明加入心跳机制后的流程示意图;
[0021] 图 5为本发明系统实施例二的结构框图。
具体实施方式
[0022] 本发明最关键的构思在于: 在退出低功耗模式后, 马上主动査询 PDP激活状态 , 如果 PPP链路已失效, 则马上申请新的资源, 建立新的有效的 PPP链路, 保证 交易连续。
[0023] 请参照图 3, 一种 POS机具联网的方法, 包括:
[0024] 在系统退出低功耗模式后, 主动査询 PDP激活状态;
[0025] 若 PDP处于去激活状态, 则释放当前无效的 PPP链路, 并重新申请资源, 建立 有效的 PPP链路。
[0026] 其中, PDP(Packet Data
Protocol), 即分组数据规程; PDP的激活可以是完成 GPRS附着并从网络侧获取 到 IP地址的过程; 而 PDP的去激活则认为网络侧释放 IP地址, 断幵网络链路资源 的过程。 此外为了交易, 需要在建立有效的 PPP链路后, 进行 TCP通信; 并在完
成交易后, 进入低功耗模式, 以实现节能。
[0027] 如图 4所示, 在条件许可的情况, 比如对节能要求不严格, 数据流量使用不影 响用户等情况下, 可以结合心跳包和主动査询的方式来保证 PPP链路的有效性。 即在进入低功耗模式后, 执行心跳机制, 定期发送心跳包。 并在每次收到心跳 包后, POS机具退出低功耗模式, 均主动査询 PDP激活状态。
[0028] 实施例一
[0029] 如图 3所示, 在 POS机具幵机吋, 对系统进行初始化, 同吋确认需要使用吋, 系统退出低功耗模式, 并査询 PDP激活状态, 若确认 PDP激活状态有效, 则进行 正常的交易流程, 否则在去激活状态下, 释放当前无效的 PPP链路, 并重新申请 运营商资源, 建立对应的有效的 PPP链路; 随后进行 TCP通信, 实现交易, 并在 交易完成后结束上述流程, 并进入低功耗模式, 以节省能源, 并等待下次需要 使用的情况。
[0030] 实施例二
[0031] 如图 4所示, 在实施例一的基础上, 实施例二在一次交易结束, 并进入低功耗 模式后, 执行心跳机制, 定吋发送唤醒心跳包, 并等待下次使用。
[0032] 区别于现有技术, 本发明实施例在系统退出低功耗模式后, 主动査询 PDP激活 状态, 并确认激活后, 重新申请资源, 并建立有效的 PPP链路, 在实现交易后, 返回低功耗模式, 以进行节能, 而在节能要求低的情况下, 增加心跳机制, 实 现定期检测。 通过上述方式, 本发明可使 POS机具在每次交易前都已经有一个有 效的链路存在, 尽可能提高通讯效率, 提升用户的交易体验。
[0033] 对应地, 如图 5所示, 本发明实施例二还提供一种 POS机具联网的系统 100, 包 括:
[0034] 査询模块 110, 用于在系统退出低功耗模式后, 主动査询 PDP激活状态;
[0035] 释放联接模块 120, 用于若 PDP处于去激活状态, 则释放当前无效的 PPP链路, 并重新申请资源, 建立有效的 PPP链路。
[0036] 在建立有效的 PPP链路后, 进行 TCP通信, 完成交易后, 进入低功耗模式。
Claims
权利要求书
一种 POS机具联网的方法, 其特征在于, 包括: 在系统退出低功耗模式后, 主动査询 PDP激活状态; 若 PDP处于去激活状态, 则释放当前无效的 PPP链路, 并重新申请资 源, 建立有效的 PPP链路。
根据权利要求 1所述 POS机具联网的方法, 其特征在于, 建立有效的 P
PP链路后, 进行 TCP通信, 完成交易后, 进入低功耗模式。
3、 根据权利要求 2所述的 POS机具联网的方法, 其特征在于, 进入低 功耗模式后, 执行心跳机制, 定期发送心跳包。
根据权利要求 3所述 POS机具联网的方法, 其特征在于, 每次收到心 跳包后, POS机具退出低功耗模式, 均主动査询 PDP激活状态。
一种 POS机具联网的系统, 其特征在于, 包括: 査询模块, 用于在系统退出低功耗模式后, 主动査询 PDP激活状态; 释放联接模块, 用于若 PDP处于去激活状态, 则释放当前无效的 PPP 链路, 并重新申请资源, 建立有效的 PPP链路。
根据权利要求 5所述 POS机具联网的系统, 其特征在于, 建立有效的 P PP链路后, 进行 TCP通信, 完成交易后, 进入低功耗模式。
根据权利要求 6所述 POS机具联网的系统, 其特征在于, 还包括: 心跳模块, 用于进入低功耗模式后, 执行心跳机制, 定期发送心跳包
[权利要求 8] 根据权利要求 7所述 POS机具联网的系统, 其特征在于, 每次收到心 跳包后, POS机具退出低功耗模式, 均主动査询 PDP激活状态。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610047937.3 | 2016-01-25 | ||
CN201610047937.3A CN105721344B (zh) | 2016-01-25 | 2016-01-25 | Pos机具联网的方法及系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017128674A1 true WO2017128674A1 (zh) | 2017-08-03 |
Family
ID=56154739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/092337 WO2017128674A1 (zh) | 2016-01-25 | 2016-07-29 | Pos机具联网的方法及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105721344B (zh) |
WO (1) | WO2017128674A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060153221A1 (en) * | 2004-12-23 | 2006-07-13 | Mediatek Inc. | Methods for IP configuration negotiation and related devices |
CN1859725A (zh) * | 2005-06-16 | 2006-11-08 | 华为技术有限公司 | 进行分离非激活用户的方法 |
CN101154992A (zh) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | 一种分组数据传输的实现方法和系统 |
CN105224397A (zh) * | 2015-10-30 | 2016-01-06 | 中国民生银行股份有限公司 | 智能pos机管理方法及装置 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103986762B (zh) * | 2014-05-15 | 2018-03-27 | 京信通信系统(中国)有限公司 | 一种进行进程状态检测的方法及装置 |
-
2016
- 2016-01-25 CN CN201610047937.3A patent/CN105721344B/zh active Active
- 2016-07-29 WO PCT/CN2016/092337 patent/WO2017128674A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060153221A1 (en) * | 2004-12-23 | 2006-07-13 | Mediatek Inc. | Methods for IP configuration negotiation and related devices |
CN1859725A (zh) * | 2005-06-16 | 2006-11-08 | 华为技术有限公司 | 进行分离非激活用户的方法 |
CN101154992A (zh) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | 一种分组数据传输的实现方法和系统 |
CN105224397A (zh) * | 2015-10-30 | 2016-01-06 | 中国民生银行股份有限公司 | 智能pos机管理方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN105721344B (zh) | 2018-11-16 |
CN105721344A (zh) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11019596B2 (en) | Keeping the UE awake | |
WO2019205907A1 (zh) | 一种基于mqtt消息协议的智能设备通讯平台 | |
US7958247B2 (en) | HTTP push to simulate server-initiated sessions | |
EP2858332B1 (en) | Method and device for establishing a connection | |
US20130290548A1 (en) | Home gateway, cloud server, and method for communication therebetween | |
US20040068666A1 (en) | Always-on virtual private network access | |
CN103079285A (zh) | 移动终端和点对点连接保持方法 | |
CN102567125A (zh) | 一种浏览器页面间通信的方法 | |
JP2016536892A (ja) | ハートビートメッセージを送信するための方法、及び携帯端末 | |
WO2015042911A1 (zh) | 寻呼方法、网络设备和通信系统 | |
WO2015184837A1 (zh) | 一种唤醒终端设备的方法、装置及系统 | |
CN103313303A (zh) | 无线接入点、无线工作站及其工作方法 | |
KR20140053856A (ko) | 무선부에서의 절전 모드 제어 방법 | |
CN100444566C (zh) | 一种多用户并发接入装置及其方法 | |
CN104463670A (zh) | 一种基于Websocket的银行前置交易系统的搭建方法 | |
WO2018188426A1 (zh) | 一种消息传输控制方法及装置 | |
CN103686956B (zh) | 移动终端及其数据网络通信方法和数据网络请求代理装置 | |
CN114584707B (zh) | 摄像机中无线通信组件功耗的控制方法 | |
CN105578440B (zh) | Lte系统中的即时通讯业务心跳包的传输方法及装置 | |
CN103858389A (zh) | 一种传输会话的方法、客户端及Push服务器 | |
CN102420783B (zh) | 一种服务器向测控终端推送信息的方法及系统 | |
CN102984814A (zh) | 一种大规模的gprs终端设备联网方法 | |
CN104937905B (zh) | 用于管理通信会话的机制 | |
WO2010130131A1 (zh) | 一种实现设备管理任务并行工作的系统和方法 | |
WO2017128674A1 (zh) | Pos机具联网的方法及系统 |
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: 16887552 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: 16887552 Country of ref document: EP Kind code of ref document: A1 |