技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种POS机自动解锁锁定的方法及系统。The invention relates to the field of computer technology, in particular to a method and system for automatically unlocking and locking a POS machine.
背景技术Background technique
当前POS设备一般在操作员签到之后,任何人均可以操作POS机,包括刷卡交易、撤销交易、转账和查询流水等各种操作,存在安全隐患。At present, after the operator signs in on the current POS device, anyone can operate the POS machine, including various operations such as swiping the card, canceling the transaction, transferring money, and checking the flow, which poses a security risk.
这样某些不法分子可能会利用这个漏洞先消费,后再到店内秘密撤销此前的刷卡交易业务,进行骗取商家财产的违法行为。In this way, some criminals may take advantage of this loophole to consume first, and then go to the store to secretly cancel the previous credit card transaction business, and carry out illegal acts of defrauding the merchant's property.
甚至此前发生过这种案件,即违法人员以刷卡套现并给予好处费为名骗取商家信任,先持信用卡到商家店铺刷POS套取现金,进而偷偷潜入店里秘密操作POS机撤消该笔业务,窃取商家财产。There have even been such cases before, that is, the illegal personnel defrauded the trust of the merchant in the name of cashing out by swiping the card and giving the benefit fee. Merchant property.
当前解决此问题的方案,主要是依靠商户自身从流程和监管上尽量避免问题的发生。一方面从流程上,例如设置专门的退货中心;另一方面从监管上,对操作员进行业务培训,完善商铺摄像头等;The current solution to this problem is mainly to rely on the merchants themselves to avoid problems as much as possible from the perspective of process and supervision. On the one hand, in terms of process, such as setting up a special return center; on the other hand, in terms of supervision, provide business training for operators, improve store cameras, etc.;
当前的方案主要还是依靠商户人工监管的方法,店主不可能一天24小时都盯着POS机,因此仍然存在安全隐患。The current solution mainly relies on the method of manual supervision by merchants. It is impossible for shopkeepers to stare at the POS machine 24 hours a day, so there are still potential safety hazards.
发明内容Contents of the invention
本发明所要解决的技术问题是:本发明提供一种安全可靠的POS机自动解锁方法及系统。The technical problem to be solved by the present invention is: the present invention provides a safe and reliable POS machine automatic unlocking method and system.
为了解决上述技术问题,本发明提供了一种POS机自动解锁锁定的方法,包括以下步骤:In order to solve the above technical problems, the present invention provides a method for automatically unlocking and locking a POS machine, comprising the following steps:
S1:POS机获取预设范围内每一个移动终端的物理地址及信号强度;S1: The POS machine obtains the physical address and signal strength of each mobile terminal within the preset range;
S2:判断所述每一个移动终端的物理地址是否存在于预设第一物理地址列表中;S2: judging whether the physical address of each mobile terminal exists in the preset first physical address list;
S3:若存在,则判断与物理地址对应的移动终端的信号强度是否大于预设信号强度;S3: If it exists, judge whether the signal strength of the mobile terminal corresponding to the physical address is greater than the preset signal strength;
S4:若是,则解锁POS机,否则锁定POS机。S4: If yes, unlock the POS machine, otherwise lock the POS machine.
本发明还提供了一种POS机自动解锁锁定的系统,包括POS机,所述POS机包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:The present invention also provides a system for automatically unlocking and locking a POS machine, including a POS machine, the POS machine includes a memory, a processor, and a computer program stored in the memory and operable on the processor, the processor executes the Perform the following steps when describing the program:
S1:POS机获取预设范围内每一个移动终端的物理地址及信号强度;S1: The POS machine obtains the physical address and signal strength of each mobile terminal within the preset range;
S2:判断所述每一个移动终端的物理地址是否存在于预设第一物理地址列表中;S2: judging whether the physical address of each mobile terminal exists in the preset first physical address list;
S3:若存在,则判断与物理地址对应的移动终端的信号强度是否大于预设信号强度;S3: If it exists, judge whether the signal strength of the mobile terminal corresponding to the physical address is greater than the preset signal strength;
S4:若是,则解锁POS机,否则锁定POS机。S4: If yes, unlock the POS machine, otherwise lock the POS machine.
本发明的有益效果为:The beneficial effects of the present invention are:
本发明通过POS机获取一定范围内的移动终端的物理地址及信号强度,并判断上述物理地址是否存在于预设第一物理地址列表中,若存在则继续判断物理地址对应的信号强度是否大于预设信号强度,若是,则解锁POS机,否则锁定POS机;通过上述方法可以将店主及POS机操作员的移动终端的物理地址存在第一物理列表中,当POS机获取得到的物理地址存在第一物理列表中时,并判断对应的信号强度是否大于预设信号强度,若是,则代表店主或POS机操作员在POS附近,则对POS进行解锁,若否,则对POS机进行锁定,实现了POS屏幕的智能控制,提高了POS机操作的便利性,同时保障了POS机操作的安全性,避免不法分子对POS机进行相关操作;本发明能够自动识别商户的操作员和店主是否在POS机附近,只有操作员和店主在POS机旁边时,才允许对POS进行解锁,从而进行相关操作,进而有效杜绝在商家不知情的情况下,POS机被秘密操作。The present invention acquires the physical addresses and signal strengths of mobile terminals within a certain range through the POS machine, and judges whether the physical addresses exist in the preset first physical address list, and if so, continues to judge whether the signal strengths corresponding to the physical addresses are greater than the preset ones. Set the signal strength, if so, then unlock the POS machine, otherwise lock the POS machine; through the above method, the physical addresses of the mobile terminals of the shopkeeper and the POS machine operator can be stored in the first physical list, when the physical address obtained by the POS machine exists in the first physical list When it is in a physical list, and judge whether the corresponding signal strength is greater than the preset signal strength, if it is, it means that the shopkeeper or the POS machine operator is near the POS, then unlock the POS, if not, then lock the POS machine to realize The intelligent control of the POS screen improves the convenience of the POS machine operation, and at the same time ensures the safety of the POS machine operation, preventing criminals from performing related operations on the POS machine; In the vicinity of the POS machine, only when the operator and shopkeeper are next to the POS machine, are they allowed to unlock the POS, so as to perform related operations, thereby effectively preventing the POS machine from being secretly operated without the merchant's knowledge.
附图说明Description of drawings
图1为根据本发明实施例的一种POS机自动解锁锁定的方法主要步骤流程图;Fig. 1 is a flow chart of main steps of a method for automatically unlocking and locking a POS machine according to an embodiment of the present invention;
图2为根据本发明实施例的一种POS机自动解锁锁定的系统结构示意图;FIG. 2 is a schematic structural diagram of a system for automatically unlocking and locking a POS machine according to an embodiment of the present invention;
标号说明:Label description:
1、POS机;2、存储器;3、处理器。1. POS machine; 2. Storage; 3. Processor.
具体实施方式detailed description
本发明最关键的构思在于:POS机获取一定范围内的移动终端的物理地址及信号强度,并判断上述物理地址是否存在于预设第一物理地址列表中,若存在,则判断物理地址对应的信号强度是否大于预设信号强度,若是,则解锁POS机,否则锁定POS机,提高了POS机操作的安全。The most critical idea of the present invention is: the POS machine obtains the physical addresses and signal strengths of mobile terminals within a certain range, and judges whether the above-mentioned physical addresses exist in the preset first physical address list; Whether the signal strength is greater than the preset signal strength, if so, unlock the POS machine, otherwise lock the POS machine, which improves the safety of the POS machine operation.
请参照图1所示,本发明提供了一种POS机自动解锁锁定的方法,包括以下步骤:Please refer to Fig. 1, the present invention provides a method for automatically unlocking and locking a POS machine, comprising the following steps:
S1:POS机获取预设范围内每一个移动终端的物理地址及信号强度;S1: The POS machine obtains the physical address and signal strength of each mobile terminal within the preset range;
S2:判断所述每一个移动终端的物理地址是否存在于预设第一物理地址列表中;S2: judging whether the physical address of each mobile terminal exists in the preset first physical address list;
S3:若存在,则判断与物理地址对应的移动终端的信号强度是否大于预设信号强度;S3: If it exists, judge whether the signal strength of the mobile terminal corresponding to the physical address is greater than the preset signal strength;
S4:若是,则解锁POS机,否则锁定POS机。S4: If yes, unlock the POS machine, otherwise lock the POS machine.
从上述描述可知,本发明通过POS机获取一定范围内的移动终端的物理地址及信号强度,并判断上述物理地址是否存在于预设第一物理地址列表中,若存在则继续判断物理地址对应的信号强度是否大于预设信号强度,若是,则解锁POS机,否则锁定POS机;通过上述方法可以将店主及POS机操作员的移动终端的物理地址存在第一物理列表中,当POS机获取得到的物理地址存在第一物理列表中时,并判断对应的信号强度是否大于预设信号强度,若是,则代表店主或POS机操作员在POS附近,则对POS进行解锁,若否,则对POS机进行锁定,实现了POS屏幕的智能控制,提高了POS机操作的便利性,同时保障了POS机操作的安全性,避免不法分子对POS机进行相关操作;本发明能够自动识别商户的操作员和店主是否在POS机附近,只有操作员和店主在POS机旁边时,才允许对POS进行解锁,从而进行相关操作,进而有效杜绝在商家不知情的情况下,POS机被秘密操作。As can be seen from the above description, the present invention obtains the physical addresses and signal strengths of mobile terminals within a certain range through the POS machine, and judges whether the above-mentioned physical addresses exist in the preset first physical address list, and if so, continues to judge the physical addresses corresponding to the physical addresses. Whether the signal strength is greater than the preset signal strength, if so, then unlock the POS machine, otherwise lock the POS machine; through the above method, the physical addresses of the mobile terminals of the shop owner and the POS machine operator can be stored in the first physical list, when the POS machine obtains When the physical address exists in the first physical list, and judge whether the corresponding signal strength is greater than the preset signal strength, if yes, it means that the store owner or POS machine operator is near the POS, then unlock the POS, if not, then unlock the POS lock the POS machine, realize the intelligent control of the POS screen, improve the convenience of the POS machine operation, and at the same time ensure the safety of the POS machine operation, and prevent criminals from performing related operations on the POS machine; the invention can automatically identify the operator of the merchant Whether the owner is near the POS machine or not, only when the operator and the owner are next to the POS machine, the POS is allowed to be unlocked, so as to perform related operations, thereby effectively preventing the POS machine from being secretly operated without the merchant's knowledge.
进一步的,所述S3具体为:Further, the S3 is specifically:
若存在,则输出所述第一物理地址列表中与移动终端相同的物理地址;If it exists, then output the same physical address as the mobile terminal in the first physical address list;
判断与所述物理地址对应的移动终端的信号强度是否大于预设信号强度。Judging whether the signal strength of the mobile terminal corresponding to the physical address is greater than a preset signal strength.
从上述描述可知,通过上述方法能够快速判断移动终端的物理地址是否存在于预设第一物理地址列表中,从而保障了POS机操作的安全性。It can be seen from the above description that the above method can quickly determine whether the physical address of the mobile terminal exists in the preset first physical address list, thereby ensuring the security of the POS machine operation.
进一步的,所述S1具体为:Further, the S1 is specifically:
POS机获取预设范围内每一个移动终端发送的无线报文;The POS machine obtains the wireless message sent by each mobile terminal within the preset range;
解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度;Analyze the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal;
将每一个移动终端的物理地址及信号强度存储在预设第二物理地址列表中。The physical address and signal strength of each mobile terminal are stored in the preset second physical address list.
从上述描述可知,通过上述方法能够快速准确地获取一定范围内移动终端的物理地址及信号强度,同时将获取得到的数据存储在预设第二物理地址列表中,方便后续数据的处理。It can be seen from the above description that the above method can quickly and accurately obtain the physical address and signal strength of mobile terminals within a certain range, and at the same time store the obtained data in the preset second physical address list to facilitate subsequent data processing.
进一步的,“POS机获取预设范围内每一个移动终端发送的无线报文”之前还包括:Further, before "the POS machine obtains the wireless message sent by each mobile terminal within the preset range" also includes:
在POS机预设范围内的每一个移动终端每隔预设第一时间间隔发送无线报文。Each mobile terminal within the preset range of the POS machine sends a wireless message every preset first time interval.
从上述描述可知,通过上述方法保证了POS机在每隔一定时间能够接收到移动终端发送的无线报文。It can be seen from the above description that the above method ensures that the POS machine can receive the wireless message sent by the mobile terminal at regular intervals.
进一步的,“POS机获取预设范围内每一个移动终端发送的无线报文”具体为:Further, "the POS machine obtains the wireless message sent by each mobile terminal within the preset range" is specifically:
每隔预设第二时间判断POS机的网络是否处理空闲状态;Judging whether the network of the POS machine is in an idle state every preset second time;
若是,则切换所述POS机的WiFi模块工作模式为WiFi探针模式;每隔预设第三时间间隔依次切换所述WiFi模块的信道;若否,则切换所述POS机的WiFi模块工作模式为正常工作模式;If so, switch the WiFi module operating mode of the POS machine to be the WiFi probe mode; switch the channels of the WiFi module successively every preset third time interval; if not, then switch the WiFi module operating mode of the POS machine In normal working mode;
所述POS机获取预设范围内每一个移动终端发送的无线报文。The POS machine acquires wireless messages sent by each mobile terminal within a preset range.
从上述描述可知,上述对WiFi模块的信道进行切换是为了提高监听的精度,即可以进行全频段信道监听,否则只能监听到当前信道的报文;通过上述方法能够有效提高POS机的WiFi模块的工作效率,充分利用资源。It can be seen from the above description that the above-mentioned channel switching of the WiFi module is to improve the monitoring accuracy, that is, the full-band channel monitoring can be performed, otherwise only the messages of the current channel can be monitored; the above method can effectively improve the WiFi module of the POS machine. work efficiency and make full use of resources.
进一步的,“POS机获取预设范围内每一个移动终端发送的无线报文”之后还包括:Further, after "the POS machine obtains the wireless message sent by each mobile terminal within the preset range", it also includes:
切换所述WiFi模块为正常工作模式。Switch the WiFi module to normal working mode.
从上述描述可知,通过上述方法能够保障WiFi模块正常工作。It can be seen from the above description that the normal operation of the WiFi module can be guaranteed through the above method.
进一步的,“解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度”具体为:Further, "analyzing the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal" is specifically:
获取每一个移动终端发送的无线报文中的源地址和信号强度,所述源地址即为移动终端的物理地址,得到每一个移动终端对应的物理地址和信号强度。Obtain the source address and signal strength in the wireless message sent by each mobile terminal, the source address is the physical address of the mobile terminal, and obtain the corresponding physical address and signal strength of each mobile terminal.
从上述描述可知,精确地获取得到获取终端的物理地址,提高了数据获取的准确性。It can be known from the above description that the accurate acquisition of the physical address of the acquisition terminal improves the accuracy of data acquisition.
进一步的,所述S2具体为:Further, the S2 is specifically:
预设第一物理地址列表,所述第一物理地址列表中存储若干个物理地址;A first physical address list is preset, and several physical addresses are stored in the first physical address list;
获取所述第二物理地址列表中所有的物理地址,判断所述所有的物理地址是否存在于所述第一物理地址列表中。Obtaining all physical addresses in the second physical address list, and judging whether all the physical addresses exist in the first physical address list.
从上述描述可知,通过上述方法能够判断POS附近移动终端的物理地址是否存在于预设的第一物理地址列表中,根据判断结果进行后续的相关操作,有效保障了POS机操作的安全性。As can be seen from the above description, the above method can determine whether the physical address of the mobile terminal near the POS exists in the preset first physical address list, and perform subsequent related operations according to the determination result, effectively ensuring the security of the POS machine operation.
进一步的,所述S2具体为:Further, the S2 is specifically:
预设第一物理地址列表,将预设的第一移动终端和第二移动终端的物理地址存储在所述第一物理地址列表中;Presetting a first physical address list, storing the preset physical addresses of the first mobile terminal and the second mobile terminal in the first physical address list;
判断每一个移动终端的物理地址及信号强度是否存在于预设第一物理地址列表中。It is judged whether the physical address and signal strength of each mobile terminal exist in the preset first physical address list.
从上述描述可知,当所述第一移动终端和第二移动终端为店主及POS机操作员的移动终端时,通过上述方法能够准确判断店主或POS操作员是否在POS机旁边,上述方法保障了POS机操作的安全性,避免不法分子对POS机进行相关操作。As can be seen from the above description, when the first mobile terminal and the second mobile terminal are the mobile terminals of the shopkeeper and the POS machine operator, the above method can accurately determine whether the shopkeeper or the POS operator is next to the POS machine. The safety of the POS machine operation prevents criminals from operating the POS machine.
进一步的,按照预设时间间隔重复执行步骤S1、S2、S3和S4。Further, steps S1, S2, S3 and S4 are repeatedly executed at preset time intervals.
从上述描述可知,通过上述方法能够按照预设时间间隔判断移动终端的物理地址是否存在于第一物理地址列表中,并对存在于第一物理列表中的移动终端的信号强度与预设信号强度进行判断,从而有效对POS机的屏幕进行锁定或解锁操作,实现了POS机解锁及锁定的智能控制,同时保障了POS机操作的安全性。As can be seen from the above description, the above method can determine whether the physical address of the mobile terminal exists in the first physical address list according to the preset time interval, and compare the signal strength of the mobile terminal existing in the first physical list with the preset signal strength Judgment is made to effectively lock or unlock the screen of the POS machine, realize the intelligent control of unlocking and locking the POS machine, and at the same time ensure the safety of the POS machine operation.
请参照图2所示,本发明提供的一种POS机自动解锁锁定的系统,包括POS机1,所述POS机1包括存储器2、处理器3及存储在存储器2上并可在处理器3上运行的计算机程序,所述处理器3执行所述程序时实现以下步骤:Please refer to shown in Fig. 2, a kind of POS machine automatic unlocking locking system provided by the present invention comprises POS machine 1, and described POS machine 1 comprises memory 2, processor 3 and is stored on memory 2 and can be in processor 3 A computer program running on the computer, the processor 3 implements the following steps when executing the program:
S1:POS机获取预设范围内每一个移动终端的物理地址及信号强度;S1: The POS machine obtains the physical address and signal strength of each mobile terminal within the preset range;
S2:判断所述每一个移动终端的物理地址是否存在于预设第一物理地址列表中;S2: judging whether the physical address of each mobile terminal exists in the preset first physical address list;
S3:若存在,则判断与物理地址对应的移动终端的信号强度是否大于预设信号强度;S3: If it exists, judge whether the signal strength of the mobile terminal corresponding to the physical address is greater than the preset signal strength;
S4:若是,则解锁POS机,否则锁定POS机。S4: If yes, unlock the POS machine, otherwise lock the POS machine.
进一步的,所述的一种POS机自动解锁锁定的系统,所述S3具体为:Further, in the system for automatically unlocking and locking a POS machine, the S3 is specifically:
若存在,则输出所述第一物理地址列表中与移动终端相同的物理地址;If it exists, then output the same physical address as the mobile terminal in the first physical address list;
判断与所述物理地址对应的移动终端的信号强度是否大于预设信号强度。Judging whether the signal strength of the mobile terminal corresponding to the physical address is greater than a preset signal strength.
进一步的,所述的一种POS机自动解锁锁定的系统,所述S1具体为:Further, in the system for automatically unlocking and locking a POS machine, the S1 is specifically:
POS机获取预设范围内每一个移动终端发送的无线报文;The POS machine obtains the wireless message sent by each mobile terminal within the preset range;
解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度;Analyze the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal;
将每一个移动终端的物理地址及信号强度存储在预设第二物理地址列表中。The physical address and signal strength of each mobile terminal are stored in the preset second physical address list.
进一步的,所述的一种POS机自动解锁锁定的系统,“POS机获取预设范围内每一个移动终端发送的无线报文”之前还包括:Further, the system for automatically unlocking and locking a POS machine, before "the POS machine obtains the wireless message sent by each mobile terminal within the preset range", also includes:
在POS机预设范围内的每一个移动终端每隔预设第一时间间隔发送无线报文。Each mobile terminal within the preset range of the POS machine sends a wireless message every preset first time interval.
进一步的,所述的一种POS机自动解锁锁定的系统,“POS机获取预设范围内每一个移动终端发送的无线报文”具体为:Further, in the system for automatically unlocking and locking a POS machine, "the POS machine obtains the wireless message sent by each mobile terminal within the preset range" is specifically:
每隔预设第二时间判断POS机的网络是否处理空闲状态;Judging whether the network of the POS machine is in an idle state every preset second time;
若是,则切换所述POS机的WiFi模块工作模式为WiFi探针模式;每隔预设第三时间间隔依次切换所述WiFi模块的信道;若否,则切换所述POS机的WiFi模块工作模式为正常工作模式;If so, switch the WiFi module operating mode of the POS machine to be the WiFi probe mode; switch the channels of the WiFi module successively every preset third time interval; if not, then switch the WiFi module operating mode of the POS machine In normal working mode;
所述POS机获取预设范围内每一个移动终端发送的无线报文。The POS machine acquires wireless messages sent by each mobile terminal within a preset range.
进一步的,所述的一种POS机自动解锁锁定的系统,“POS机获取预设范围内每一个移动终端发送的无线报文”之后还包括:Further, the described system for automatically unlocking and locking a POS machine, after "the POS machine obtains the wireless message sent by each mobile terminal within the preset range", also includes:
切换所述WiFi模块为正常工作模式。Switch the WiFi module to normal working mode.
进一步的,所述的一种POS机自动解锁锁定的系统,“解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度”具体为:Further, the described system for automatically unlocking and locking a POS machine, "analyzes the wireless message sent by each mobile terminal, and obtains the physical address and signal strength of each mobile terminal" is specifically:
获取每一个移动终端发送的无线报文中的源地址和信号强度,所述源地址即为移动终端的物理地址,得到每一个移动终端对应的物理地址和信号强度。Obtain the source address and signal strength in the wireless message sent by each mobile terminal, the source address is the physical address of the mobile terminal, and obtain the physical address and signal strength corresponding to each mobile terminal.
进一步的,所述的一种POS机自动解锁锁定的系统,所述S2具体为:Further, in the system for automatically unlocking and locking a POS machine, the S2 is specifically:
预设第一物理地址列表,所述第一物理地址列表中存储若干个物理地址;A first physical address list is preset, and several physical addresses are stored in the first physical address list;
获取所述第二物理地址列表中所有的物理地址,判断所述所有的物理地址是否存在于所述第一物理地址列表中。Acquiring all physical addresses in the second physical address list, and judging whether all the physical addresses exist in the first physical address list.
进一步的,所述的一种POS机自动解锁锁定的系统,所述S2具体为:Further, in the system for automatically unlocking and locking a POS machine, the S2 is specifically:
预设第一物理地址列表,将预设的第一移动终端和第二移动终端的物理地址存储在所述第一物理地址列表中;Presetting a first physical address list, storing the preset physical addresses of the first mobile terminal and the second mobile terminal in the first physical address list;
判断每一个移动终端的物理地址及信号强度是否存在于预设第一物理地址列表中。It is judged whether the physical address and signal strength of each mobile terminal exist in the preset first physical address list.
进一步的,所述的一种POS机自动解锁锁定的系统,按照预设时间间隔重复执行步骤S1、S2、S3和S4。Further, in the system for automatically unlocking and locking a POS machine, steps S1, S2, S3 and S4 are repeatedly executed at preset time intervals.
请参照图1所示,本发明人实施例一为:Please refer to shown in Figure 1, the inventor's embodiment one is:
本发明提供了一种POS机自动解锁锁定的方法,包括以下步骤:The invention provides a method for automatically unlocking and locking a POS machine, comprising the following steps:
S1:POS机获取预设范围内每一个移动终端的物理地址及信号强度;S1: The POS machine obtains the physical address and signal strength of each mobile terminal within the preset range;
所述S1具体为:The S1 is specifically:
在POS机预设范围内的每一个移动终端每隔预设第一时间间隔发送无线报文;Each mobile terminal within the preset range of the POS machine sends a wireless message every preset first time interval;
POS机获取预设范围内每一个移动终端发送的无线报文;The POS machine obtains the wireless message sent by each mobile terminal within the preset range;
“POS机获取预设范围内每一个移动终端发送的无线报文”具体为:"The POS machine obtains the wireless message sent by each mobile terminal within the preset range" is specifically:
每隔预设第二时间判断POS机的网络是否处理空闲状态;Judging whether the network of the POS machine is in an idle state every preset second time;
若是,则切换所述POS机的WiFi模块工作模式为WiFi探针模式;每隔预设第三时间间隔依次切换所述WiFi模块的信道;若否,则切换所述POS机的WiFi模块工作模式为正常工作模式;If so, switch the WiFi module operating mode of the POS machine to be the WiFi probe mode; switch the channels of the WiFi module successively every preset third time interval; if not, then switch the WiFi module operating mode of the POS machine In normal working mode;
所述POS机获取预设范围内每一个移动终端发送的无线报文。The POS machine acquires wireless messages sent by each mobile terminal within a preset range.
切换所述WiFi模块为正常工作模式;Switch the WiFi module to normal working mode;
解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度;Analyze the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal;
“解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度”具体为:"Analyze the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal" is specifically:
获取每一个移动终端发送的无线报文中的源地址和信号强度,所述源地址即为移动终端的物理地址,得到每一个移动终端对应的物理地址和信号强度。Obtain the source address and signal strength in the wireless message sent by each mobile terminal, the source address is the physical address of the mobile terminal, and obtain the physical address and signal strength corresponding to each mobile terminal.
将每一个移动终端对应的物理地址及信号强度存储在预设第二物理地址列表中。The physical address and signal strength corresponding to each mobile terminal are stored in the preset second physical address list.
切换所述WiFi模块为正常工作模式;Switch the WiFi module to normal working mode;
解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度;Analyze the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal;
将每一个移动终端的物理地址及信号强度存储在预设第二物理地址列表中。The physical address and signal strength of each mobile terminal are stored in the preset second physical address list.
S2:判断所述每一个移动终端的物理地址是否存在于预设第一物理地址列表中;S2: judging whether the physical address of each mobile terminal exists in the preset first physical address list;
其特征在于,所述S2具体为:It is characterized in that said S2 is specifically:
预设第一物理地址列表,所述第一物理地址列表中存储若干个物理地址;A first physical address list is preset, and several physical addresses are stored in the first physical address list;
获取所述第二物理地址列表中所有的物理地址,判断所述所有的物理地址是否存在于所述第一物理地址列表中。Acquiring all physical addresses in the second physical address list, and judging whether all the physical addresses exist in the first physical address list.
S3:若存在,则判断与物理地址对应的移动终端的信号强度是否大于预设信号强度;S3: If it exists, judge whether the signal strength of the mobile terminal corresponding to the physical address is greater than the preset signal strength;
所述S3具体为:The S3 is specifically:
若存在,则输出所述第一物理地址列表中与移动终端相同的物理地址;If it exists, then output the same physical address as the mobile terminal in the first physical address list;
判断与所述物理地址对应的移动终端的信号强度是否大于预设信号强度。Judging whether the signal strength of the mobile terminal corresponding to the physical address is greater than a preset signal strength.
S4:若是,则解锁POS机,否则锁定POS机。S4: If yes, unlock the POS machine, otherwise lock the POS machine.
本发明的实施例二为:Embodiment two of the present invention is:
S1:POS机获取预设范围内每一个移动终端的物理地址及信号强度;预设范围根据POS机的WiFi模块信号覆盖的范围而定;S1: The POS machine obtains the physical address and signal strength of each mobile terminal within the preset range; the preset range is determined according to the signal coverage of the WiFi module of the POS machine;
所述S1具体为:The S1 is specifically:
POS机通过WiFi模块获取预设范围内每一个移动终端的WiFi模块发送的无线报文;解析每一个移动终端的WiFi模块发送的无线报文,即可得到每一个获取终端的物理地址及信号强度。The POS machine obtains the wireless message sent by the WiFi module of each mobile terminal within the preset range through the WiFi module; by analyzing the wireless message sent by the WiFi module of each mobile terminal, the physical address and signal strength of each terminal can be obtained .
S2:判断所述每一个移动终端的物理地址是否存在于预设第一物理地址列表中;S2: judging whether the physical address of each mobile terminal exists in the preset first physical address list;
所述S2具体为:The S2 is specifically:
预设第一物理地址列表,将预设的第一移动终端和第二移动终端的物理地址存储在所述第一物理地址列表中;Presetting a first physical address list, storing the preset physical addresses of the first mobile terminal and the second mobile terminal in the first physical address list;
判断每一个移动终端的物理地址及信号强度是否存在于预设第一物理地址列表中。It is judged whether the physical address and signal strength of each mobile terminal exist in the preset first physical address list.
S3:若存在,则判断与物理地址对应的移动终端的信号强度是否大于预设信号强度;S3: If it exists, judge whether the signal strength of the mobile terminal corresponding to the physical address is greater than the preset signal strength;
S4:若是,则解锁POS机,否则锁定POS机;S4: If yes, unlock the POS machine, otherwise lock the POS machine;
按照预设时间间隔重复执行步骤S1、S2、S3和S4。Steps S1, S2, S3 and S4 are repeatedly executed at preset time intervals.
本发明的实施例三为:Embodiment three of the present invention is:
将店员及POS机操作员的移动终端的物理地址MAC存储在预设第一物理地址列表中;Store the physical address MAC of the mobile terminal of the clerk and the POS machine operator in the preset first physical address list;
每隔一定时间间隔判断POS机的网络是否处理空闲状态;Determine whether the network of the POS machine is idle at regular intervals;
若是,则切换所述POS机的WiFi模块工作模式为WiFi探针模式;每隔信道停留时间间隔(每个信道的停留时间,例如设置为100ms)将所述WiFi模块的信道从信道1依次切换至信道13;If so, switch the WiFi module operating mode of the POS machine to be the WiFi probe mode; every channel dwell time interval (the dwell time of each channel, for example, is set to 100ms) the channel of the WiFi module is switched from channel 1 in sequence to channel 13;
若否,则切换所述POS机的WiFi模块工作模式为正常工作模式;If not, then switch the WiFi module operating mode of the POS machine to be a normal operating mode;
POS机通过WiFi模块接收到一定范围内的移动终端WiFi模块广播的无线报文(Probe Request报文),解析无线报文,得到移动终端的物理地址MAC和信号强度,并将得到的物理地址MAC和信号强度存储在预设第二物理地址列表中,将WiFi模块切换会原先工作模式,即正常工作模式;The POS machine receives the wireless message (Probe Request message) broadcast by the mobile terminal WiFi module within a certain range through the WiFi module, analyzes the wireless message, obtains the physical address MAC and signal strength of the mobile terminal, and converts the obtained physical address MAC and signal strength are stored in the preset second physical address list, and the WiFi module is switched to the original working mode, that is, the normal working mode;
判断第二物理地址列表中的移动终端的物理地址MAC是否存在于预设第一物理地址列表中,若存在,并且其对应的信号强度大于预设信号强度,例如-40dbm,表明店主或POS操作员在POS机旁边,此时解锁POS机,否则锁定POS机,不允许操作POS机。Determine whether the physical address MAC of the mobile terminal in the second physical address list exists in the preset first physical address list, if it exists, and its corresponding signal strength is greater than the preset signal strength, for example -40dbm, indicating that the store owner or POS operation If the operator is next to the POS machine, unlock the POS machine at this time, otherwise the POS machine will be locked and not allowed to operate the POS machine.
请参照图2所示,本发明的实施例四为:Please refer to Figure 2, the fourth embodiment of the present invention is:
本发明提供了一种POS机自动解锁锁定的方法,包括POS机,所述POS机包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:The invention provides a method for automatically unlocking and locking a POS machine, including a POS machine, the POS machine includes a memory, a processor and a computer program stored in the memory and operable on the processor, the processor executes the The following steps are implemented in the program:
S1:POS机获取预设范围内每一个移动终端的物理地址及信号强度;S1: The POS machine obtains the physical address and signal strength of each mobile terminal within the preset range;
所述S1具体为:The S1 is specifically:
在POS机预设范围内的每一个移动终端每隔预设第一时间间隔发送无线报文;Each mobile terminal within the preset range of the POS machine sends a wireless message every preset first time interval;
POS机获取预设范围内每一个移动终端发送的无线报文;The POS machine obtains the wireless message sent by each mobile terminal within the preset range;
“POS机获取预设范围内每一个移动终端发送的无线报文”具体为:"The POS machine obtains the wireless message sent by each mobile terminal within the preset range" is specifically:
每隔预设第二时间判断POS机的网络是否处理空闲状态;Judging whether the network of the POS machine is in an idle state every preset second time;
若是,则切换所述POS机的WiFi模块工作模式为WiFi探针模式;每隔预设第三时间间隔依次切换所述WiFi模块的信道;若否,则切换所述POS机的WiFi模块工作模式为正常工作模式;If so, switch the WiFi module operating mode of the POS machine to be the WiFi probe mode; switch the channels of the WiFi module successively every preset third time interval; if not, then switch the WiFi module operating mode of the POS machine In normal working mode;
所述POS机获取预设范围内每一个移动终端发送的无线报文。The POS machine acquires wireless messages sent by each mobile terminal within a preset range.
切换所述WiFi模块为正常工作模式;Switch the WiFi module to normal working mode;
解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度;Analyze the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal;
“解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度”具体为:"Analyze the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal" is specifically:
获取每一个移动终端发送的无线报文中的源地址和信号强度,所述源地址即为移动终端的物理地址,得到每一个移动终端对应的物理地址和信号强度。Obtain the source address and signal strength in the wireless message sent by each mobile terminal, the source address is the physical address of the mobile terminal, and obtain the corresponding physical address and signal strength of each mobile terminal.
将每一个移动终端对应的物理地址及信号强度存储在预设第二物理地址列表中。The physical address and signal strength corresponding to each mobile terminal are stored in the preset second physical address list.
切换所述WiFi模块为正常工作模式;Switch the WiFi module to normal working mode;
解析每一个移动终端发送的无线报文,得到每一个移动终端的物理地址及信号强度;Analyze the wireless message sent by each mobile terminal to obtain the physical address and signal strength of each mobile terminal;
将每一个移动终端的物理地址及信号强度存储在预设第二物理地址列表中。The physical address and signal strength of each mobile terminal are stored in the preset second physical address list.
S2:判断所述每一个移动终端的物理地址是否存在于预设第一物理地址列表中;S2: judging whether the physical address of each mobile terminal exists in the preset first physical address list;
其特征在于,所述S2具体为:It is characterized in that said S2 is specifically:
预设第一物理地址列表,所述第一物理地址列表中存储若干个物理地址;A first physical address list is preset, and several physical addresses are stored in the first physical address list;
获取所述第二物理地址列表中所有的物理地址,判断所述所有的物理地址是否存在于所述第一物理地址列表中。Obtaining all physical addresses in the second physical address list, and judging whether all the physical addresses exist in the first physical address list.
S3:若存在,则判断与物理地址对应的移动终端的信号强度是否大于预设信号强度;S3: If it exists, judge whether the signal strength of the mobile terminal corresponding to the physical address is greater than the preset signal strength;
所述S3具体为:The S3 is specifically:
若存在,则输出所述第一物理地址列表中与移动终端相同的物理地址;If it exists, then output the same physical address as the mobile terminal in the first physical address list;
判断与所述物理地址对应的移动终端的信号强度是否大于预设信号强度。Judging whether the signal strength of the mobile terminal corresponding to the physical address is greater than a preset signal strength.
S4:若是,则解锁POS机,否则锁定POS机。S4: If yes, unlock the POS machine, otherwise lock the POS machine.
本发明的实施例五为:Embodiment five of the present invention is:
本发明提供了一种POS机自动解锁锁定的方法,包括POS机,所述POS机包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:The invention provides a method for automatically unlocking and locking a POS machine, including a POS machine, the POS machine includes a memory, a processor and a computer program stored in the memory and operable on the processor, the processor executes the The following steps are implemented in the program:
S1:POS机获取预设范围内每一个移动终端的物理地址及信号强度;预设范围根据POS机的WiFi模块信号覆盖的范围而定;S1: The POS machine obtains the physical address and signal strength of each mobile terminal within the preset range; the preset range is determined according to the signal coverage of the WiFi module of the POS machine;
所述S1具体为:The S1 is specifically:
POS机通过WiFi模块获取预设范围内每一个移动终端的WiFi模块发送的无线报文;解析每一个移动终端的WiFi模块发送的无线报文,即可得到每一个获取终端的物理地址及信号强度。The POS machine obtains the wireless message sent by the WiFi module of each mobile terminal within the preset range through the WiFi module; by analyzing the wireless message sent by the WiFi module of each mobile terminal, the physical address and signal strength of each terminal can be obtained .
S2:判断所述每一个移动终端的物理地址是否存在于预设第一物理地址列表中;S2: judging whether the physical address of each mobile terminal exists in the preset first physical address list;
所述S2具体为:The S2 is specifically:
预设第一物理地址列表,将预设的第一移动终端和第二移动终端的物理地址存储在所述第一物理地址列表中;Presetting a first physical address list, storing the preset physical addresses of the first mobile terminal and the second mobile terminal in the first physical address list;
判断每一个移动终端的物理地址及信号强度是否存在于预设第一物理地址列表中。It is judged whether the physical address and signal strength of each mobile terminal exist in the preset first physical address list.
S3:若存在,则判断与物理地址对应的移动终端的信号强度是否大于预设信号强度;S3: If it exists, judge whether the signal strength of the mobile terminal corresponding to the physical address is greater than the preset signal strength;
S4:若是,则解锁POS机,否则锁定POS机;S4: If yes, unlock the POS machine, otherwise lock the POS machine;
按照预设时间间隔重复执行步骤S1、S2、S3和S4。Steps S1, S2, S3 and S4 are repeatedly executed at preset time intervals.
综上所述,本发明通过POS机获取一定范围内的移动终端的物理地址及信号强度,并判断上述物理地址是否存在于预设第一物理地址列表中,若存在则继续判断物理地址对应的信号强度是否大于预设信号强度,若是,则解锁POS机,否则锁定POS机;通过上述方法可以将店主及POS机操作员的移动终端的物理地址存在第一物理列表中,当POS机获取得到的物理地址存在第一物理列表中时,并判断对应的信号强度是否大于预设信号强度,若是,则代表店主或POS机操作员在POS附近,则对POS进行解锁,若否,则对POS机进行锁定,实现了POS屏幕的智能控制,提高了POS机操作的便利性,同时保障了POS机操作的安全性,避免不法分子对POS机进行相关操作;本发明能够自动识别商户的操作员和店主是否在POS机附近,只有操作员和店主在POS机旁边时,才允许对POS进行解锁,从而进行相关操作,进而有效杜绝在商家不知情的情况下,POS机被秘密操作。In summary, the present invention obtains the physical addresses and signal strengths of mobile terminals within a certain range through the POS machine, and judges whether the above-mentioned physical addresses exist in the preset first physical address list, and if so, continues to judge the physical addresses corresponding to the physical addresses. Whether the signal strength is greater than the preset signal strength, if so, then unlock the POS machine, otherwise lock the POS machine; through the above method, the physical addresses of the mobile terminals of the shop owner and the POS machine operator can be stored in the first physical list, when the POS machine obtains When the physical address exists in the first physical list, and judge whether the corresponding signal strength is greater than the preset signal strength, if yes, it means that the store owner or POS machine operator is near the POS, then unlock the POS, if not, then unlock the POS lock the POS machine, realize the intelligent control of the POS screen, improve the convenience of the POS machine operation, and at the same time ensure the safety of the POS machine operation, and prevent criminals from performing related operations on the POS machine; the invention can automatically identify the operator of the merchant Whether the owner is near the POS machine or not, only when the operator and the owner are next to the POS machine, the POS is allowed to be unlocked, so as to perform related operations, thereby effectively preventing the POS machine from being secretly operated without the merchant's knowledge.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等同变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent transformations made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields, are all included in the same way. Within the scope of patent protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/095598WO2019023975A1 (en) | 2017-08-02 | 2017-08-02 | Method and system for automatic unlocking and locking of pos machine |
| Publication Number | Publication Date |
|---|---|
| CN107636661Atrue CN107636661A (en) | 2018-01-26 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201780000803.9APendingCN107636661A (en) | 2017-08-02 | 2017-08-02 | A method and system for automatically unlocking and locking a POS machine |
| Country | Link |
|---|---|
| CN (1) | CN107636661A (en) |
| WO (1) | WO2019023975A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113221092A (en)* | 2021-05-26 | 2021-08-06 | 德明通讯(上海)股份有限公司 | Screen unlocking method and terminal based on trust environment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103369511A (en)* | 2012-03-28 | 2013-10-23 | 宇龙计算机通信科技(深圳)有限公司 | WiFi network-based unlocking or locking method and communication terminal |
| CN103853328A (en)* | 2012-12-03 | 2014-06-11 | 三星电子株式会社 | Method for controlling screen lock and mobile terminal |
| CN104462929A (en)* | 2014-11-27 | 2015-03-25 | 广东欧珀移动通信有限公司 | Privacy protection method and device for mobile equipment |
| CN104933836A (en)* | 2014-03-21 | 2015-09-23 | 现代自动车株式会社 | System and method for monitoring security around a vehicle |
| US20150302188A1 (en)* | 2014-02-06 | 2015-10-22 | Siddharth Potbhare | System and method for wireless proximity-based access to a computing device |
| US20160048664A1 (en)* | 2013-06-04 | 2016-02-18 | Samsung Electronics Co., Ltd. | User device and operating method thereof |
| CN105468958A (en)* | 2014-09-01 | 2016-04-06 | 深圳富泰宏精密工业有限公司 | Electronic apparatus unlocking method and system |
| CN105812538A (en)* | 2016-04-19 | 2016-07-27 | 上海斐讯数据通信技术有限公司 | Locking and unlocking system |
| CN106506791A (en)* | 2015-09-08 | 2017-03-15 | 中兴通讯股份有限公司 | A kind of method and apparatus of control screen locking |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104091115A (en)* | 2014-06-30 | 2014-10-08 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for monitoring safety of terminals |
| CN105931330B (en)* | 2016-04-19 | 2019-03-05 | 北京奇虎科技有限公司 | Intelligent unlocking method and smart lock |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103369511A (en)* | 2012-03-28 | 2013-10-23 | 宇龙计算机通信科技(深圳)有限公司 | WiFi network-based unlocking or locking method and communication terminal |
| CN103853328A (en)* | 2012-12-03 | 2014-06-11 | 三星电子株式会社 | Method for controlling screen lock and mobile terminal |
| US20160048664A1 (en)* | 2013-06-04 | 2016-02-18 | Samsung Electronics Co., Ltd. | User device and operating method thereof |
| US20150302188A1 (en)* | 2014-02-06 | 2015-10-22 | Siddharth Potbhare | System and method for wireless proximity-based access to a computing device |
| CN104933836A (en)* | 2014-03-21 | 2015-09-23 | 现代自动车株式会社 | System and method for monitoring security around a vehicle |
| CN105468958A (en)* | 2014-09-01 | 2016-04-06 | 深圳富泰宏精密工业有限公司 | Electronic apparatus unlocking method and system |
| CN104462929A (en)* | 2014-11-27 | 2015-03-25 | 广东欧珀移动通信有限公司 | Privacy protection method and device for mobile equipment |
| CN106506791A (en)* | 2015-09-08 | 2017-03-15 | 中兴通讯股份有限公司 | A kind of method and apparatus of control screen locking |
| CN105812538A (en)* | 2016-04-19 | 2016-07-27 | 上海斐讯数据通信技术有限公司 | Locking and unlocking system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113221092A (en)* | 2021-05-26 | 2021-08-06 | 德明通讯(上海)股份有限公司 | Screen unlocking method and terminal based on trust environment |
| CN113221092B (en)* | 2021-05-26 | 2024-05-31 | 德明通讯(上海)股份有限公司 | Screen unlocking method and terminal based on trust environment |
| Publication number | Publication date |
|---|---|
| WO2019023975A1 (en) | 2019-02-07 |
| Publication | Publication Date | Title |
|---|---|---|
| CN109492378B (en) | Identity verification method based on equipment identification code, server and medium | |
| CN104780043B (en) | Access control method and system based on two dimensional code | |
| CN102638617B (en) | Active response system based on intrusion detection for Android mobile phones | |
| CN109660502A (en) | Detection method, device, equipment and the storage medium of abnormal behaviour | |
| US20190096197A1 (en) | Atm skimmer detection based upon incidental rf emissions | |
| US20170311154A1 (en) | Security hub utilizing near field communication to onboard sensors | |
| CN106533669A (en) | Device identification method, device and system | |
| CN107730775A (en) | Self-service dealing method, apparatus, system and electronic equipment | |
| CN110503758A (en) | Control method, device, electronic equipment and the computer-readable medium of vehicle | |
| CN101499190A (en) | Security management method, system and apparatus for electronic purse | |
| CN109726601A (en) | The recognition methods of unlawful practice and device, storage medium, computer equipment | |
| CN109426961B (en) | Card binding risk control method and device | |
| CN105718793A (en) | Method and system for preventing malicious code from identifying sandbox on the basis of sandbox environment modification | |
| US20170243188A1 (en) | Point of service user identification | |
| CN107636661A (en) | A method and system for automatically unlocking and locking a POS machine | |
| CN107040497B (en) | Network account anti-theft method and device | |
| KR101624276B1 (en) | Method and apparatus for detecting icon spoofing of mobile application | |
| CN114445217A (en) | Credit risk prevention and control method, device and system and computer readable storage medium | |
| CN114359995A (en) | Equipment management system, method and device | |
| CN111246395A (en) | Method and apparatus for wirelessly unlocking and locking an electronic device | |
| CN105743643A (en) | Communication security detection method and device | |
| CN101510239B (en) | Information processing system and information processing method | |
| CN106022122B (en) | Information processing method and device | |
| CN102622546A (en) | XFS (extensions for financial services) order based call identity authentication method and call identity authentication system | |
| CN114792268A (en) | Statement push method, apparatus, device, product and readable storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20180126 | |
| RJ01 | Rejection of invention patent application after publication |