Intelligent power bank renting method and device based on POS equipment and renting equipment
Through the intelligent rental method of power banks based on POS devices, the problem of unable to rent a power bank when the device is powered is solved, and a higher rental success rate and a safer payment process are achieved.
Patent Information
- Application Number
- CN202411822666.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-04-25
AI Technical Summary
The existing power bank rental method requires electronic equipment to have a certain amount of power, which leads to the inability to rent a power bank when the equipment is powered off, reducing the rental success rate.
The intelligent rental method of power banks based on POS devices is adopted to realize the rental of power banks by displaying the payment interface, swiping card payment and generating bullet-up instructions, and the rental of power banks can be achieved even if the electronic device does not have power.
It has improved the rental success rate of power banks, met the rental needs of areas where WeChat, Alipay, and power banks are not popularized, enriched the rental methods, reduced the risk of data leakage, and improved payment security and rental security.
Smart Images

Figure CN119888922A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power bank rental, and in particular to a power bank intelligent rental method and device based on POS equipment, and rental equipment. Background Art
[0002] With the rapid development of electronic equipment technology and the convenience and benefits that electronic equipment brings to people's lives, work, study and entertainment, people's demand and dependence on electronic equipment are getting higher and higher. Therefore, timely replenishing power for electronic equipment has become a problem of particular concern to people.
[0003] As a result, shared power banks came into being, and their technology has become more and more mature. The streets are full of power banks to meet people's needs for charging electronic devices. In actual applications, power banks are often rented by scanning the QR code on the rental device through WeChat, Alipay, or power bank applications.
[0004] However, it is found in practice that renting power banks through WeChat, Alipay, and power bank applications still requires the electronic device to have a certain amount of power. When the electronic device has no power, the power bank cannot be rented, resulting in the inability to use the power bank. Therefore, it is urgent to propose a new power bank rental method so that even when the electronic device has no power, the power bank can be rented, thereby improving the success rate of renting the power bank. Summary of the invention
[0005] The present invention provides a method and device for intelligently renting a power bank based on a POS device, and a rental device, so that the power bank can be rented even when the electronic device has no power, thereby improving the success rate of renting the power bank.
[0006] In order to solve the above technical problems, the first aspect of the present invention discloses a smart rental method of a power bank based on a POS device, the method comprising:
[0007] When a power bank rental request triggered by a user is detected, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, and the payment interface is used to prompt the user to swipe the card to pay for the rental of the power bank;
[0008] When it is detected that the target card is placed in the card swiping area on the rental device, the rental device calls up the payment function of the POS device so that the POS device interacts with the payment monitoring server for payment, and the POS device is integrated in the rental device;
[0009] The rental device monitors the card payment result corresponding to the POS device. When the card payment result is used to indicate a successful card payment, a power-up instruction is generated, and according to the power-up instruction, a target power bank is ejected from the rental device for use by the user.
[0010] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0011] The rental device determines the charging rules corresponding to renting the power bank on the rental device;
[0012] The rental device generates a payment interface corresponding to the power bank rental request according to the charging rules, and triggers the operation of displaying the payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place the target card in the card swiping area on the rental device to perform the card swiping payment operation;
[0013] Among them, the payment interface includes the charging rules corresponding to renting the power bank on the rental device.
[0014] As an optional implementation, in the first aspect of the present invention, the rental device determines the charging rules corresponding to renting the power bank on the rental device, including:
[0015] The rental device generates a power bank rental instruction corresponding to the power bank rental request according to the power bank rental request, and sends the power bank rental instruction to the cabinet center, wherein the power bank rental instruction is used to request the cabinet center to feedback the charging rules for renting the power bank on the rental device according to the power bank rental instruction, and receive the charging rules sent by the cabinet center; and / or
[0016] The rental device obtains charging rules from a predetermined elastic power database as charging rules corresponding to renting the power bank on the rental device.
[0017] As an optional implementation, in the first aspect of the present invention, the power bank rental instruction is also used to request feedback of a pop-up list of the rental device, the pop-up list is used to indicate multiple power banks on the rental device that are currently available for rental by the user and include the remaining power of each power bank;
[0018] The method further comprises:
[0019] The rental device receives the pop-up list sent by the cabinet center and displays the pop-up list to the user, allowing the user to select the desired power bank from the pop-up list, wherein the target power bank is the power bank selected by the user.
[0020] As an optional implementation, in the first aspect of the present invention, after the rental device ejects the target power bank from the rental device according to the ejection instruction for use by the user, the method further includes:
[0021] The rental device determines whether the rental device successfully ejects the target power bank;
[0022] When the result of the judgment is negative, the rental device re-executes the operation of ejecting the target power bank from the rental device according to the ejection instruction for use by the user;
[0023] The rental device determines whether the rental device successfully ejects the target power bank, including:
[0024] The rental device determines whether the target power bank exists in the card slot for storing the target power bank on the rental device, and when the determination result is no, determines that the target power bank is ejected successfully; or,
[0025] The rental device monitors the power change of the target power bank, and when the monitored power change of the target power bank indicates that the power state of the target power bank is in a power reduction state, it is determined that the target power bank is successfully ejected.
[0026] As an optional implementation, in the first aspect of the present invention, after the rental device re-executes the operation of ejecting the target power bank from the rental device according to the eject instruction for use by the user, the method further includes:
[0027] The rental device determines whether the rental device successfully ejects the target power bank;
[0028] When the result of the judgment is no, the rental device determines the remaining power of the target power bank, and selects one of the power banks with a remaining power greater than or equal to the remaining power of the target power bank from the rental device;
[0029] The rental device ejects one of the power banks from the rental device according to the power ejection instruction for use by the user.
[0030] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0031] When it is determined that the target power bank is successfully ejected from the rental device, the rental device determines the rental data of the target power bank, the rental data of the target power bank includes one or more of the identification of the target power bank, the ejection time of the target power bank, the geographical location of the target power bank when it is ejected, the data of the POS device and the data of the user who rented the target power bank, wherein the user data corresponding to the target power bank includes the identification of the target card and / or user attribute data, and the data of the POS device includes the identification of the POS device and / or the geographical location of the POS device;
[0032] The rental device generates a target order for the target power bank according to the rental data of the target power bank, and updates the current state of the target power bank to a use state.
[0033] The second aspect of the present invention discloses a smart rental device for power banks based on POS devices, the device is applied to rental devices, and the device includes:
[0034] A display module, for displaying a payment interface to a user who needs to rent a power bank on the rental device according to the power bank rental request when a power bank rental request triggered by a user is detected, wherein the payment interface is used to prompt the user to swipe a card to pay for renting the power bank;
[0035] A calling module, used for calling the payment function of the POS device when it is detected that the target card is placed in the card swiping area on the rental device, so that the POS device interacts with the payment monitoring server for payment, and the POS device is integrated on the rental device;
[0036] A monitoring module, used to monitor the card payment result corresponding to the POS device;
[0037] A generating module, used for generating a pop-up instruction when the card payment result is used to indicate a successful card payment;
[0038] The power-emerging module is used to eject the target power bank from the rental device according to the power-emerging instruction for use by the user.
[0039] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0040] A first determination module is used to determine the charging rules corresponding to renting the power bank on the rental device;
[0041] The generation module is further used to generate a payment interface corresponding to the power bank rental request according to the charging rules, and trigger the display module to perform the display of the payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place the target card in the card swiping area on the rental device to perform the card swiping payment operation;
[0042] Among them, the payment interface includes the charging rules corresponding to renting the power bank on the rental device.
[0043] As an optional implementation, in the second aspect of the present invention, the specific manner in which the first determination module determines the charging rules corresponding to renting the power bank on the rental device includes:
[0044] Generate a power bank rental instruction corresponding to the power bank rental request according to the power bank rental request, and send the power bank rental instruction to the cabinet center, wherein the power bank rental instruction is used to request the cabinet center to feedback the charging rules for renting the power bank on the rental device according to the power bank rental instruction, and receive the charging rules sent by the cabinet center; and / or
[0045] The charging rules are obtained from a predetermined elastic power database as the charging rules corresponding to renting the power bank on the rental device.
[0046] As an optional implementation, in the second aspect of the present invention, the power bank rental instruction is also used to request feedback of a pop-up list of the rental device, the pop-up list is used to indicate multiple power banks on the rental device that are currently available for rental by the user and include the remaining power of each power bank;
[0047] The first determining module is further used to receive the pop-up list sent by the cabinet center;
[0048] The display module is further used to display the pop-up list to the user, so that the user can select the desired power bank from the pop-up list, wherein the target power bank is the power bank selected by the user.
[0049] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0050] A judgment module, configured to judge whether the rental device successfully ejects the target power bank after the power-ejecting module ejects the target power bank from the rental device according to the power-ejecting instruction for use by the user;
[0051] The power-up module is further configured to, when the result of the judgment is negative, re-execute the operation of ejecting the target power bank from the rental device for use by the user according to the power-up instruction;
[0052] The specific method in which the judgment module judges whether the rental device successfully ejects the target power bank includes:
[0053] Determine whether the target power bank exists in the card slot for storing the target power bank on the rental device, and when the result of the determination is no, determine that the target power bank is ejected successfully; or,
[0054] The target power bank is monitored for power changes. When the power changes of the target power bank are monitored to indicate that the power state of the target power bank is in a power reduction state, it is determined that the target power bank is ejected successfully.
[0055] As an optional implementation, in the second aspect of the present invention, the judgment module is further used to judge whether the rental device successfully ejects the target power bank after the power-elastic module re-executes the operation of ejecting the target power bank from the rental device according to the power-elastic instruction for use by the user;
[0056] The device also includes:
[0057] A second determination module is used to determine the remaining power of the target power bank when the result of the determination is no;
[0058] A screening module, used for screening one of the power banks from the rental device, the remaining power of which is greater than or equal to the remaining power of the target power bank;
[0059] The power-springing module is further used to eject one of the power banks from the rental device for use by the user according to the power-springing instruction.
[0060] As an optional implementation, in the second aspect of the present invention, the second determination module is further used to determine the rental data of the target power bank when it is determined that the target power bank is successfully ejected from the rental device, the rental data of the target power bank includes one or more of the identification of the target power bank, the ejection time of the target power bank, the geographical location of the target power bank when it is ejected, the data of the POS device and the user data of the user who rented the target power bank, wherein the user data corresponding to the target power bank includes the identification of the target card and / or user attribute data, and the data of the POS device includes the identification of the POS device and / or the geographical location of the POS device;
[0061] The generating module is further used to generate a target order for the target power bank according to the rental data of the target power bank;
[0062] The second determination module is also used to update the current state of the target power bank to a use state.
[0063] The third aspect of the present invention discloses a rental device, the rental device comprising:
[0064] A memory storing executable program code;
[0065] a processor coupled to the memory;
[0066] The processor calls the executable program code stored in the memory to execute the power bank intelligent rental method based on the POS device disclosed in the first aspect of the present invention.
[0067] The fourth aspect of the present invention discloses a computer-readable storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the smart rental method of power bank based on POS device disclosed in the first aspect of the present invention.
[0068] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0069] In the embodiment of the present invention, when a power bank rental request triggered by a user is detected, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place the target card on the card swiping area on the rental device for card swiping payment; when it is detected that the target card is placed in the card swiping area on the rental device, the rental device calls up the payment function of the POS device, so that the POS device and the payment monitoring server perform interactive payment; the rental device monitors the card swiping payment result corresponding to the POS device, and when the card swiping payment result is used to indicate a successful card swiping payment, a pop-up instruction is generated, and according to the pop-up instruction, a payment card is sent from the rental device to the user. The target power bank pops up in the preparation for the user to use, that is, payment is made by swiping the POS card, so that the power bank can be rented even when the electronic device is out of power, thereby improving the success rate of renting the power bank and meeting the demand for renting the power bank in areas where WeChat, Alipay and power bank rental applications are not popular; and by providing a POS device swiping card payment method for renting the power bank, the rental methods of the power bank are enriched, which is conducive to improving the flexibility of renting the power bank; and through the interactive payment between the POS device and the payment monitoring server, the risk of data leakage is reduced, and the security of fee payment and power bank rental is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0071] Figure 1 It is a flow chart of a method for intelligently renting a power bank based on a POS device disclosed in an embodiment of the present invention;
[0072] Figure 2 It is a flow chart of another method for intelligently renting a power bank based on a POS device disclosed in an embodiment of the present invention;
[0073] Figure 3 It is a structural schematic diagram of a power bank intelligent rental device based on a POS device disclosed in an embodiment of the present invention;
[0074] Figure 4 It is a structural schematic diagram of another power bank intelligent rental device based on a POS device disclosed in an embodiment of the present invention;
[0075] Figure 5 It is a structural schematic diagram of a rental device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0076] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0077] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0078] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0079] The present invention discloses a method and device for intelligently renting a power bank based on a POS device, and a rental device. When a power bank rental request triggered by a user is detected, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place a target card on a card swiping area on the rental device for card swiping payment; when it is detected that a target card is placed on the card swiping area on the rental device, the rental device activates the payment function of the POS device, so that the POS device and a payment monitoring server perform interactive payment; the rental device monitors the card swiping payment result corresponding to the POS device, and generates a pop-up instruction when the card swiping payment result is used to indicate that the card swiping payment is successfully performed. , and according to the power-up instruction, the target power bank is ejected from the rental device for the user to use, that is, payment is made by swiping a card through POS, so that even when the electronic device is out of power, the power bank can be rented, thereby improving the success rate of renting a power bank, and meeting the demand for renting a power bank in areas where WeChat, Alipay, and power bank rental applications are not popularized; and by providing a POS device swiping card payment method for renting a power bank, the rental method of the power bank is enriched, which is conducive to improving the flexibility of renting a power bank; and through interactive payment between the POS device and the payment monitoring server, the risk of data leakage is reduced, and the security of fee payment and power bank rental is improved. The following are detailed explanations.
[0080] Embodiment 1
[0081] See also Figure 1 , Figure 1 The figure is a flow chart of a method for intelligently renting a power bank based on a POS device disclosed in an embodiment of the present invention. Figure 1 The described method for intelligently renting power banks based on POS devices can be applied to any scenario where power banks need to be rented, such as shopping malls, parks, streets, etc. Figure 1 As shown, the smart rental method of power bank based on POS device may include the following operations:
[0082] 101. When a power bank rental request triggered by a user is detected, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request.
[0083] In the embodiment of the present invention, optionally, renting can be understood as any of the words such as leasing, renting, borrowing, sharing, obtaining, using, etc., which are used to request the use of the power bank. When it is detected that a target card is placed on the card swiping area on the rental device, it means that it is detected that the user has triggered the power bank rental request, or when "renting a power bank" or "renting" or "power bank" or "renting" and other keywords related to renting a power bank are collected, it means that it is detected that the user has triggered the power bank rental request. At this time, when the payment interface is displayed to the user, the user can be prompted to place the target card on the card swiping area on the rental device to swipe the card for payment. Among them, the target card can be any card that can be recognized by the POS device, and the embodiment of the present invention is not limited.
[0084] In an embodiment of the present invention, optionally, the payment interface displays the charging rules corresponding to the power bank on the rental device, such as the starting price, the charge according to the charging time and the corresponding hourly fee, the charge according to the rental time and the corresponding hourly fee, etc.
[0085] 102. When it is detected that a target card is placed on the card swiping area on the rental device, the rental device activates the payment function of the POS device so that the POS device interacts with the payment monitoring server for payment. The POS device is integrated in the rental device.
[0086] In the embodiment of the present invention, optionally, a sensor for sensing a target card is placed in the card swiping area. When a target card is placed in the card swiping area, the sensor in the card swiping area can identify it. When identified, it indicates that the target card is detected to be placed in the card swiping area on the rental device.
[0087] In the embodiment of the present invention, the payment monitoring server may correspond to a POS device, and may be any server that can implement interactive payment with a POS device, such as a Stripe server, an Adyen server, a PayPa server, etc., which is not limited in the embodiment of the present invention.
[0088] In the embodiment of the present invention, the POS device and the payment monitoring server perform interactive payment, specifically including:
[0089] The POS device obtains the data of the target card, where the data of the target card includes the identification of the target card and / or the fee that the target card needs to pay this time;
[0090] The POS device obtains data of the rental device, where the data of the rental device includes an identification of the rental device and a geographical location of the rental device;
[0091] The POS device sends the POS device identifier (such as the serial number of the POS device), the target card data, the rental device data, and the current time data (such as one or more of the time when the POS device sends the data to the payment monitoring server, the time when the POS device obtains any of the aforementioned data, and the time when the POS device senses the target card) to the payment monitoring server, so that the payment monitoring server performs the following operations:
[0092] The payment monitoring server determines the receiving time data of the data received from the POS device, generates a payment touch parameter (such as a Token) according to the receiving time data, the data received from the POS device and a predetermined first encryption algorithm, and sends the payment touch parameter to the POS device, wherein the receiving time data includes one or more of the starting receiving time, the ending receiving time, and the data receiving duration; the payment touch parameter may be one of a symbol, a character, a number, and a picture;
[0093] The POS device receives the payment touch parameters sent by the payment monitoring server, and according to the received payment touch parameters, performs a deduction operation on the target card for the fee required for renting the target power bank, obtains the fee deduction result, and generates a card payment result according to the fee deduction result. When the fee deduction result is used to indicate that the deduction operation is successfully performed on the target card, the card payment result is used to indicate that the card payment is successfully performed; when the fee deduction result is used to indicate that the deduction operation is not successfully performed on the target card, the card payment result is used to indicate that the card payment is not successfully performed.
[0094] It can be seen that the embodiment of the present invention can also generate payment touch parameters together with the POS device's own data, the target card data obtained by the POS device and the data of the rental device. While safely generating the payment touch parameters, it can improve the accuracy and reliability of the generation of the payment touch parameters, which is beneficial to improve the accuracy, reliability and efficiency of the interactive payment between the POS device and the payment monitoring server, and further helps to increase the probability of users successfully renting a power bank.
[0095] In the embodiment of the present invention, optionally, the payment monitoring server generates payment touch parameters according to the reception time data, the data received from the POS device and the predetermined first encryption algorithm, including:
[0096] The payment monitoring server determines the first data length of all data in the reception time data and the data received from the POS device, and generates a first key equal to the number of data in the data received from the POS device and the reception time data according to the first data length and a predetermined first encryption algorithm, and allocates a corresponding first key to each data in the data received from the POS device and the reception time data based on all the first keys;
[0097] The payment monitoring server performs an encryption operation on the data based on the first key corresponding to each data to obtain encrypted data, and performs an encryption operation on each encrypted data based on the receiving time data to obtain a payment touch parameter.
[0098] It can be seen that the embodiments of the present invention can also generate multiple keys by the length of all data in the POS device's own data, the target card data obtained by the POS device, and the data of the rental device, and encrypt each data based on the key assigned to it, and then encrypt the encrypted data again based on the time when the data is received from the POS device. That is, the data is multiplexed and encrypted through the relevant data itself, which further improves the security of the payment touch parameters, thereby helping to further improve the security of card payment in the scenario of renting a power bank.
[0099] In the embodiment of the present invention, it also includes:
[0100] The POS device determines the second data length of all data in the POS device identification, the target card data, the rental device data and the current time data, and generates a corresponding second key for the target card data based on the second data length and a predetermined second encryption algorithm, and performs an encryption operation on the target card data based on the second key to obtain the encrypted target card data, and then sends the encrypted target card data to the payment monitoring server.
[0101] It can be seen that the embodiment of the present invention preliminarily encrypts the data of the target card that is about to execute the card swipe payment based on the data of the POS device itself and the data length of the acquired data before sending the data to the payment monitoring server. This can reduce the situation where the target card data is stolen and decrypted during transmission to the payment monitoring server, thereby causing the balance to be stolen. This ensures the security of the data and the target card balance while improving the efficiency of data transmission, which is beneficial to further improve the accuracy of the generation of payment touch parameters, and is beneficial to further improve the success efficiency and security of renting power banks.
[0102] In the embodiment of the present invention, it also includes:
[0103] The payment monitoring server obtains two or more of the pop-up list of rental equipment, charging rules, and fees required to be paid for renting a power bank, wherein the pop-up list, charging rules, and fees required to be paid for renting a power bank may be obtained from a POS device or a rental device, or may be obtained from a cabinet center, or may be obtained from a pop-up database, or may be obtained in other ways, without limitation;
[0104] The payment monitoring server generates at least one random rental parameter according to two of the target card data, the pop-up list, the charging rules and the fees required to rent the power bank, wherein each random rental parameter can be represented in any manner, such as symbols, characters, numbers, pictures, and in addition to the form of representation, it can also include the size of the form of representation, such as characters and character lengths, pictures and picture sizes;
[0105] For any random lease parameter, the payment monitoring server performs a data encryption operation on the payment touch parameter obtained above based on the random lease parameter to obtain an encrypted payment touch parameter;
[0106] The payment monitoring server generates final payment touch parameters based on all encrypted payment touch parameters.
[0107] In the embodiment of the present invention, for the description of the pop-up list and charging rules, please refer to the relevant description of the embodiment of the present invention, which will not be repeated here.
[0108] In an embodiment of the present invention, optionally, the first encryption algorithm and the second encryption algorithm include but are not limited to one of a symmetric encryption algorithm, an asymmetric encryption algorithm and a hash encryption algorithm, the symmetric encryption algorithm includes but is not limited to one of DES (Data Encryption Standard), 3DES (Triple DES), and AES (Advanced Encryption Standard), the asymmetric encryption algorithm includes but is not limited to one of RSA (Rivest-Shamir-Adleman), DSA (Digital Signature Algorithm), and ECC (Elliptic Curve Cryptography), and the hash encryption algorithm includes but is not limited to one of MD5 (Message Digest Algorithm 5), SHA-1 (Secure Hash Algorithm 1), SHA-2 and SHA-3.
[0109] It can be seen that the embodiments of the present invention can also combine the data of the sensed target card, the pop-up list, the charging rules and the fees required to rent the power bank to jointly generate corresponding random rental parameters, and encrypt the aforementioned payment touch parameters based on them, and then determine the final payment touch parameters based on all the encrypted payment touch parameters, which can further ensure the security of the payment touch parameters, thereby further improving the interactive payment security between the POS device and the payment monitoring server.
[0110] In the embodiment of the present invention, it also includes:
[0111] The target end obtains the network quality data of the current network, analyzes the network quality data, and obtains the network quality parameters of the current network;
[0112] The target end determines the network quality of the current network according to the network quality parameters of the current network, and obtains the number of times each encryption algorithm has been used in all encryption algorithms used in the past preset time period (such as the past month);
[0113] The target end selects the target encryption algorithm from all encryption algorithms according to the network quality of the current network and the number of times each encryption algorithm is used as the encryption algorithm actually used;
[0114] Among them, when the target end is a POS device, the encryption algorithm actually used is the second encryption algorithm; when the target end is a payment monitoring server, the encryption algorithm actually used is the first encryption algorithm.
[0115] In the embodiment of the present invention, the network quality parameters of the current network include, but are not limited to, one or more of network delay duration, packet loss rate, bandwidth, network load, bit error rate and throughput.
[0116] In the embodiment of the present invention, different encryption algorithms have different requirements for network quality, such as RSA algorithm has higher network quality requirements than 3DES algorithm. If the number of times the RSA algorithm, AES algorithm, and 3DES algorithm are used in the past preset time period is 30, 55, and 25 respectively, and the network quality meets the requirements of both the RSA algorithm and the AES algorithm, the AES algorithm with the larger number of times is selected as the encryption algorithm actually used; if the network quality only meets the requirements of the RSA algorithm, the RSA algorithm is selected as the encryption algorithm actually used.
[0117] It can be seen that the embodiments of the present invention can also combine the current network conditions and the number of times each encryption algorithm has been used in the past period of time to comprehensively select the optimal encryption algorithm, which can improve the accuracy and reliability of the selection of the encryption algorithm, thereby facilitating further improving the accuracy and reliability of the encryption of the corresponding data, and further facilitating further improving the security of card payment.
[0118] 103. The rental device monitors the card payment result corresponding to the POS device, and generates a pop-up instruction when the card payment result is used to indicate a successful card payment.
[0119] In the embodiment of the present invention, optionally, the generated pop-up instruction can be pre-generated, that is, when the POS device is monitored to successfully swipe the card, the pre-generated pop-up instruction is directly obtained, or it can be generated immediately when the POS device is monitored to successfully swipe the card.
[0120] 104. According to the power-up instruction, the target power bank is ejected from the rental device for use by the user.
[0121] In the embodiment of the present invention, the power bank can be optionally popped up in any manner, such as popping up the power bank with the most current power, or any power bank with a current power greater than or equal to a preset power, or a power bank with a current power greater than or equal to a preset power and a rental number less than or equal to a preset rental number, etc., all of which are included in the interpretation scope of the embodiment of the present invention. It should be noted that when the user selects the corresponding power bank, the selected power bank is directly popped up. Alternatively, the power bank can also be scored, and the power bank pop-up operation is performed according to the score, wherein the higher the score, the higher the possibility of being popped up first, that is, the highest-scoring power bank is popped up first, and if the highest-scoring power bank fails to pop up successfully, the second-scoring power bank is popped up, and so on, until the power bank is successfully popped up. The scoring of each power bank is based on the data reported by the power bank and / or the evaluation data uploaded by the user of the power bank. The data reported by the power bank includes the remaining power and / or the charging line status. The more the remaining power, the higher the score. The charging line status includes the disconnection of the charging line and / or the status of the charging line conductive port used to supply power to the power receiving device. The more the charging line is disconnected and / or the less sensitive the conductive port is, the lower the corresponding score is. If the charging line is completely disconnected or the conductive port cannot conduct electricity, the overall score of the corresponding power bank is 0. The evaluation data reported by the user includes one or more of the charging efficiency of the power bank, the power storage performance of the power bank and the abnormal situation of the power bank. The power storage performance of the power bank is used to measure the difference between the actual remaining power of the power bank and the displayed power. The closer the remaining power is to the displayed power, the better the power storage performance is and the higher the score is. The higher the charging efficiency of the power bank, the higher the score is. The abnormal situation of the power bank is used to indicate that the charging of the power bank is intermittent and unstable. The more abnormal the charging of the power bank is, the lower the score is. Furthermore, the power banks and their ratings on the rental device can be put into a corresponding pop-up list, and the rental device can pop up the power bank from the pop-up list according to the rating. In this way, the power bank pop-up operation is performed according to the rating result of the power bank, which increases the possibility and success of the pop-up power bank meeting the user's power demand.
[0122] It can be seen that implementation Figure 1The described method, when detecting a power bank rental request triggered by a user, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place a target card on the card swiping area of the rental device for card swiping payment; when detecting that the target card is placed in the card swiping area on the rental device, the rental device calls up the payment function of the POS device, so that the POS device and the payment monitoring server perform interactive payment; the rental device monitors the card swiping payment result corresponding to the POS device, and when the card swiping payment result is used to indicate a successful card swiping payment, generates a pop-up instruction, and according to the pop-up instruction, sends the card from the rental device to the rental device. The target power bank pops up for the user to use, that is, payment is made by swiping the POS card, so that the power bank can be rented even when the electronic device is out of power, thereby improving the success rate of renting the power bank and meeting the demand for renting the power bank in areas where WeChat, Alipay and power bank rental applications are not popular; and by providing a POS device swiping card payment method for renting the power bank, the rental methods of the power bank are enriched, which is conducive to improving the flexibility of renting the power bank; and through the interactive payment between the POS device and the payment monitoring server, the risk of data leakage is reduced, and the security of fee payment and power bank rental is improved.
[0123] In an optional embodiment, the method may further include the following steps:
[0124] The rental equipment determines the charging rules corresponding to the power bank on the rental equipment;
[0125] The rental device generates a payment interface corresponding to the power bank rental request according to the charging rules, and triggers the above-mentioned display of the payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place the target card in the card swiping area on the rental device to perform the card swiping payment operation;
[0126] Among them, the payment interface includes the charging rules corresponding to the power bank on the rental equipment.
[0127] In this optional embodiment, optionally, the rental device determines the charging rules corresponding to the power bank on the rental device, including:
[0128] The rental device generates a power bank rental instruction corresponding to the power bank rental request according to the power bank rental request, and sends the power bank rental instruction to the cabinet center, where the power bank rental instruction is used to request the cabinet center to feedback the charging rules for the power bank on the rental device according to the power bank rental instruction, and receive the charging rules sent by the cabinet center; and / or
[0129] The rental device obtains the charging rules from the predetermined elastic power database as the charging rules corresponding to the power bank on the rental device.
[0130] In this optional embodiment, the explanation of the charging rules can refer to the aforementioned related content explanations, which will not be repeated here.
[0131] In this optional embodiment, the charging rules can be unified rules for power banks on rental devices in all areas, or different rules can be charged for power banks in different areas or different rental devices. In this case, it is necessary to obtain the device identification or location identification of the rental device, and combine it with the power bank rental request to jointly generate a power bank rental instruction, so that the cabinet center can obtain more accurate charging rules based on the device identification or location identification.
[0132] It can be seen that this optional embodiment can generate a corresponding payment interface based on the acquired charging rules for renting a power bank, and provide it to the user. While generating an accurate payment interface, it can also help the user to clearly know the fees required to rent a power bank, so that the user can make a decision on whether to rent a power bank more quickly, which is beneficial to improving the user's experience of renting and using a power bank; and by obtaining the charging rules from the cabinet center and / or the elastic power database, the efficiency of obtaining the charging rules can be improved, which is beneficial to improving the efficiency of generating the payment interface.
[0133] In another optional embodiment, the power bank rental instruction is further used to request feedback of a pop-up list of the rental device, where the pop-up list is used to indicate multiple power banks that are currently available for rental by the user on the rental device and includes the remaining power of each power bank;
[0134] The method may further comprise the following steps:
[0135] The rental device receives the pop-up list sent by the cabinet center and displays the pop-up list to the user, allowing the user to select the required power bank from the pop-up list, wherein the target power bank is the power bank selected by the user.
[0136] In this optional embodiment, the pop-up list can be understood as a table or a non-table, as long as it includes multiple power banks that are currently available for rent on the rental device and the rating of each power bank, and further, it can also include the remaining power. Further, the pop-up list can also include the virtual arrangement of multiple power banks that are currently available for rent on the rental device, and the virtual arrangement is consistent with the actual arrangement. Further, the corresponding remaining power and the logo of the power bank can be displayed in the corresponding virtual arrangement position.
[0137] It can be seen that this optional embodiment, by presenting a pop-up list of power banks on the rental device to the user, especially presenting a virtual arrangement of the power banks that is consistent with the actual arrangement of the power banks on the rental device, is helpful for the user to view the accurate power bank situation, so that the user can quickly and accurately select the required power bank, which is beneficial to further improve the accuracy and efficiency of popping up power banks that meet user needs (such as power requirements, appearance requirements).
[0138] In yet another optional embodiment, the method may further include the following steps:
[0139] When the card payment result is used to indicate that the card payment was not successfully made, the rental device determines the factors for the unsuccessful payment;
[0140] When the factor is due to the network, the rental equipment determines the usage of all channels in the network and selects the channel with the best quality from all channels based on the usage of each channel;
[0141] The rental device re-executes the above-mentioned payment function of the POS device based on the channel with the best quality, so that the POS device and the payment monitoring server perform interactive payment operations;
[0142] When the factor is that the target card fee is insufficient, the rental device obtains the user's historical rental data of the power bank;
[0143] When the user's historical power bank rental data is used to indicate that the number of times the power bank has been rented within a preset time period is greater than or equal to a first preset number (such as 7 times a week) and the number of successful card payments each time the power bank is rented is greater than or equal to a second preset number (such as 6 times or 7 times), the rental device generates a power pop-up instruction and, according to the power pop-up instruction, pops up the target power bank from the rental device for the user to use.
[0144] In this optional embodiment, the usage of each channel optionally includes one or more of channel occupancy, signal quality, channel capacity, and channel stability. The more content the channel usage contains, the more conducive it is to improving the accuracy and efficiency of selecting the best quality channel, thereby improving the sensing efficiency and success probability of the target card, and improving the success probability and efficiency of the interactive payment between the POS device and the payment monitoring server, thereby improving the execution accuracy and reliability of the power bank pop-up operation.
[0145] In this optional embodiment, optionally, insufficient target card fees may be understood as insufficient to offset the minimum fees specified in the above charging rules.
[0146] In this optional embodiment, by identifying the identifier of the target card, the historical power bank rental data matching the identifier of the target card is obtained as the user's historical power bank rental data.
[0147] It can be seen that when the card payment is unsuccessful, this optional embodiment analyzes the reason for the card payment failure. If it is due to network reasons, the channel with the best quality is selected to re-activate the payment function of the POS device, thereby increasing the probability of successful card payment, which in turn helps to increase the probability of the user renting the required power bank; if it is due to insufficient funds, when it is determined that the user's power bank rental situation in the past time period meets the requirements, the power bank will be directly popped up, thereby increasing the probability of the user renting the required power bank, thereby improving the user's experience of renting a power bank.
[0148] Embodiment 2
[0149] See also Figure 3 , Figure 3 This is a flow chart of another method for intelligently renting a power bank based on a POS device disclosed in an embodiment of the present invention. Figure 1 The described method for intelligently renting power banks based on POS devices can be applied to any scenario where power banks need to be rented, such as shopping malls, parks, streets, etc. Figure 1 As shown, the smart rental method of power bank based on POS device may include the following operations:
[0150] 201. When a power bank rental request triggered by a user is detected, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request.
[0151] 202. When it is detected that a target card is placed on the card swiping area of the rental device, the rental device activates the payment function of the POS device so that the POS device interacts with the payment monitoring server for payment. The POS device is integrated in the rental device.
[0152] 203. The rental device monitors the card payment result corresponding to the POS device, and generates a pop-up instruction when the card payment result is used to indicate a successful card payment.
[0153] 204. According to the power ejection instruction, the target power bank is ejected from the rental device for use by the user.
[0154] In the embodiment of the present invention, for other descriptions of steps 201-204, please refer to the detailed description of steps 101-104 in the first embodiment, which will not be repeated here.
[0155] 205. The rental device determines whether the rental device successfully ejects the target power bank; when the result is no, the above step 204 is executed again; when the result is yes, the current process can be terminated.
[0156] In the embodiment of the present invention, optionally, the rental device determines whether the rental device successfully ejects the target power bank, including:
[0157] The rental device determines whether there is a target power bank in the card slot for storing the target power bank on the rental device, and when the result of the determination is no, determines that the target power bank is ejected successfully; or,
[0158] The rental device monitors the power change of the target power bank, and when the monitored power change of the target power bank indicates that the power state of the target power bank is in a power reduction state, it is determined that the target power bank is successfully ejected.
[0159] In an embodiment of the present invention, when it is determined that the spring piece of the card slot of the target power bank has not popped up, it means that the power bank has not been successfully ejected; when it is determined that the spring piece of the card slot of the target power bank has not popped up and the power status of the power bank is not in a reduced power state, it means that the power bank has not been successfully ejected.
[0160] It can be seen that implementation Figure 2 The described method, when detecting a power bank rental request triggered by a user, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place a target card on the card swiping area of the rental device for card swiping payment; when detecting that the target card is placed in the card swiping area on the rental device, the rental device calls up the payment function of the POS device, so that the POS device and the payment monitoring server perform interactive payment; the rental device monitors the card swiping payment result corresponding to the POS device, and when the card swiping payment result is used to indicate a successful card swiping payment, generates a pop-up instruction, and according to the pop-up instruction, sends the card from the rental device to the rental device. The target power bank is popped up for the user to use, that is, payment is made by swiping a card through POS, so that even when the electronic device has no power, the power bank can be rented, thereby improving the success rate of renting the power bank and meeting the demand for renting the power bank in areas where WeChat, Alipay, and power bank rental applications are not popularized; and by providing a POS device swiping card payment method for renting the power bank, the rental method of the power bank is enriched, which is conducive to improving the flexibility of renting the power bank; and through interactive payment between the POS device and the payment monitoring server, the risk of data leakage is reduced, and the security of fee payment and power bank rental is improved. In addition, after the power bank is popped up to the user, it is further determined whether the power bank is successfully popped up. If it is not successfully popped up, the pop-up operation is re-executed to increase the possibility of the user successfully obtaining the power bank; and by detecting the power bank card slot on the rental device and / or the power change detection of the power bank, a variety of judgment methods for whether the power bank is successfully popped up are provided, which improves the accuracy and reliability of the judgment of the successful pop-up of the power bank.
[0161] In an optional embodiment, after the rental device re-executes the above-mentioned operation of ejecting the target power bank from the rental device according to the eject instruction for use by the user, the method may further include the following steps:
[0162] The rental device determines whether the rental device successfully ejects the target power bank;
[0163] When the result of the judgment is negative, the rental device determines the remaining power of the target power bank, and selects one of the power banks from the rental device whose remaining power is greater than or equal to the remaining power of the target power bank;
[0164] The rental device pops out one of the power banks from the rental device according to the power-ejecting instruction for the user to use.
[0165] In this optional embodiment, the specific process of determining whether the target power bank is successfully ejected is described in detail above and will not be repeated here.
[0166] It can be seen that when the embodiment of the present invention determines that if the pop-up operation is executed again but the power bank is still not successfully popped out, the power bank whose remaining power is greater than or equal to the remaining power of the power bank to be popped out is directly selected from the rental device and popped out, thereby increasing the probability of successfully popping out the power bank and ensuring that the user rents a power bank that meets his or her power needs.
[0167] In another optional embodiment, the method may further include the following steps:
[0168] When it is determined that the target power bank is successfully ejected from the rental device, the rental device determines the rental data of the target power bank, the rental data of the target power bank includes one or more of the identification of the target power bank, the time when the target power bank is ejected, the geographical location of the target power bank when it is ejected, the data of the POS device, and the data of the user who rented the target power bank, wherein the user data corresponding to the target power bank includes the identification of the target card and / or user attribute data, and the data of the POS device includes the identification of the POS device and / or the geographical location of the POS device;
[0169] The rental device generates a target order for the target power bank according to the rental data of the target power bank, and updates the current status of the target power bank to a usage status.
[0170] In this optional embodiment, the current status of the target power bank is updated to the use status in the elastic power database.
[0171] It can be seen that after the embodiment of the present invention successfully pops up the power bank for the user, an order is generated based on various data of the power bank, which can improve the accuracy of order generation and facilitate the traceability and control of the lent power banks; and the status of the power bank is updated to the use status, thereby reducing the possibility of mistakenly treating the power bank in use as waiting to be loaned out, which is conducive to increasing the possibility of successful lending of other power banks in the future.
[0172] Embodiment 3
[0173] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a smart power bank rental device based on a POS device disclosed in an embodiment of the present invention. Figure 3 The described device can be applied to rental equipment, and the rental equipment can be applied to any scene where power bank rental is needed, such as shopping mall scene, park scene, street scene, etc. Figure 3 As shown, the smart rental device for power bank based on POS device may include:
[0174] The display module 301 is used to display a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request when a power bank rental request triggered by the user is detected;
[0175] The invocation module 302 is used to invoke the payment function of the POS device when it is detected that a target card is placed in the card swiping area on the rental device, so that the POS device interacts with the payment monitoring server for payment, and the POS device is integrated in the rental device;
[0176] Monitoring module 303, used to monitor the card payment result corresponding to the POS device;
[0177] A generating module 304, configured to generate a pop-up instruction when the card payment result indicates that the card payment is successfully made;
[0178] The power-up module 305 is used to eject the target power bank from the rental device according to the power-up instruction for the user to use.
[0179] In the embodiment of the present invention, the POS device and the payment monitoring server perform interactive payment, specifically including:
[0180] The POS device obtains the data of the target card, where the data of the target card includes the identification of the target card and / or the fee that the target card needs to pay this time;
[0181] The POS device obtains data of the rental device, where the data of the rental device includes an identification of the rental device and a geographical location of the rental device;
[0182] The POS device sends the POS device identifier (such as the serial number of the POS device), the target card data, the rental device data, and the current time data (such as one or more of the time when the POS device sends the data to the payment monitoring server, the time when the POS device obtains any of the aforementioned data, and the time when the POS device senses the target card) to the payment monitoring server, so that the payment monitoring server performs the following operations:
[0183] The payment monitoring server determines the receiving time data of the data received from the POS device, generates the payment touch parameters according to the receiving time data and the data received from the POS device, and sends the payment touch parameters to the POS device, wherein the receiving time data includes one or more of the starting receiving time, the ending receiving time, and the data receiving duration; the payment touch parameters may be one of symbols, characters, numbers, and pictures;
[0184] The POS device receives the payment touch parameters sent by the payment monitoring server, and according to the received payment touch parameters, performs a deduction operation on the target card for the fee required for renting the target power bank, obtains the fee deduction result, and generates a card payment result according to the fee deduction result. When the fee deduction result is used to indicate that the deduction operation is successfully performed on the target card, the card payment result is used to indicate that the card payment is successfully performed; when the fee deduction result is used to indicate that the deduction operation is not successfully performed on the target card, the card payment result is used to indicate that the card payment is not successfully performed.
[0185] It can be seen that the embodiment of the present invention can also generate payment touch parameters together with the POS device's own data, the target card data obtained by the POS device and the data of the rental device. While safely generating the payment touch parameters, it can improve the accuracy and reliability of the generation of the payment touch parameters, which is beneficial to improve the accuracy, reliability and efficiency of the interactive payment between the POS device and the payment monitoring server, and further helps to increase the probability of users successfully renting a power bank.
[0186] In the embodiment of the present invention, optionally, the payment monitoring server generates payment touch parameters according to the reception time data and the data received from the POS device, including:
[0187] The payment monitoring server determines the first data length of all data in the reception time data and the data received from the POS device, generates a first key equal to the number of data in the data received from the POS device and the reception time data according to the first data length, and allocates a corresponding first key to each data in the data received from the POS device and the reception time data based on all the first keys;
[0188] The payment monitoring server performs an encryption operation on the data based on the first key corresponding to each data to obtain encrypted data, and performs an encryption operation on each encrypted data based on the receiving time data to obtain a payment touch parameter.
[0189] It can be seen that the embodiments of the present invention can also generate multiple keys by the length of all data in the POS device's own data, the target card data obtained by the POS device, and the data of the rental device, and encrypt each data based on the key assigned to it, and then encrypt the encrypted data again based on the time when the data is received from the POS device. That is, the data is multiplexed and encrypted through the relevant data itself, which further improves the security of the payment touch parameters, thereby helping to further improve the security of card payment in the scenario of renting a power bank.
[0190] In the embodiment of the present invention, it also includes:
[0191] The POS device determines the second data length of all data in the POS device identification, the target card data, the rental device data and the current time data, and generates a corresponding second key for the target card data based on the second data length, and performs an encryption operation on the target card data based on the second key to obtain the encrypted target card data, and then sends the encrypted target card data to the payment monitoring server.
[0192] It can be seen that the embodiment of the present invention preliminarily encrypts the data of the target card that is about to execute the card swipe payment based on the data of the POS device itself and the data length of the acquired data before sending the data to the payment monitoring server. This can reduce the situation where the target card data is stolen and decrypted during transmission to the payment monitoring server, thereby causing the balance to be stolen. This ensures the security of the data and the target card balance while improving the efficiency of data transmission, which is beneficial to further improve the accuracy of the generation of payment touch parameters, and is beneficial to further improve the success efficiency and security of renting power banks.
[0193] In the embodiment of the present invention, it also includes:
[0194] The payment monitoring server obtains two or more of the pop-up list of rental equipment, charging rules, and fees required to be paid for renting a power bank, wherein the pop-up list, charging rules, and fees required to be paid for renting a power bank may be obtained from a POS device or a rental device, or may be obtained from a cabinet center, or may be obtained from a pop-up database, or may be obtained in other ways, without limitation;
[0195] The payment monitoring server generates at least one random rental parameter according to two of the target card data, the pop-up list, the charging rules and the fees required to rent the power bank, wherein each random rental parameter can be represented in any manner, such as symbols, characters, numbers, pictures, and in addition to the form of representation, it can also include the size of the form of representation, such as characters and character lengths, pictures and picture sizes;
[0196] For any random lease parameter, the payment monitoring server performs a data encryption operation on the payment touch parameter obtained above based on the random lease parameter to obtain an encrypted payment touch parameter;
[0197] The payment monitoring server generates final payment touch parameters based on all encrypted payment touch parameters.
[0198] In the embodiment of the present invention, for the description of the pop-up list and charging rules, please refer to the relevant description of the embodiment of the present invention, which will not be repeated here.
[0199] It can be seen that the embodiments of the present invention can also combine the data of the sensed target card, the pop-up list, the charging rules and the fees required to rent the power bank to jointly generate corresponding random rental parameters, and encrypt the aforementioned payment touch parameters based on them, and then determine the final payment touch parameters based on all the encrypted payment touch parameters, which can further ensure the security of the payment touch parameters, thereby further improving the interactive payment security between the POS device and the payment monitoring server.
[0200] In the embodiment of the present invention, it also includes:
[0201] The target end obtains the network quality data of the current network, analyzes the network quality data, and obtains the network quality parameters of the current network;
[0202] The target end determines the network quality of the current network according to the network quality parameters of the current network, and obtains the number of times each encryption algorithm has been used in all encryption algorithms used in the past preset time period (such as the past month);
[0203] The target end selects the target encryption algorithm from all encryption algorithms according to the network quality of the current network and the number of times each encryption algorithm is used as the encryption algorithm actually used;
[0204] Among them, when the target end is a POS device, the encryption algorithm actually used is the second encryption algorithm; when the target end is a payment monitoring server, the encryption algorithm actually used is the first encryption algorithm.
[0205] In the embodiment of the present invention, the network quality parameters of the current network include, but are not limited to, one or more of network delay duration, packet loss rate, bandwidth, network load, bit error rate and throughput.
[0206] In the embodiment of the present invention, different encryption algorithms have different requirements for network quality, such as RSA algorithm has higher network quality requirements than 3DES algorithm. If the number of times the RSA algorithm, AES algorithm, and 3DES algorithm are used in the past preset time period is 30, 55, and 25 respectively, and the network quality meets the requirements of both the RSA algorithm and the AES algorithm, the AES algorithm with the larger number of times is selected as the encryption algorithm actually used; if the network quality only meets the requirements of the RSA algorithm, the RSA algorithm is selected as the encryption algorithm actually used.
[0207] It can be seen that the embodiments of the present invention can also combine the current network conditions and the number of times each encryption algorithm has been used in the past period of time to comprehensively select the optimal encryption algorithm, which can improve the accuracy and reliability of the selection of the encryption algorithm, thereby facilitating further improving the accuracy and reliability of the encryption of the corresponding data, and further facilitating further improving the security of card payment.
[0208] It can be seen that implementation Figure 3 When the described device detects a power bank rental request triggered by a user, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place the target card on the card swiping area on the rental device for card swiping payment; when it is detected that the target card is placed in the card swiping area on the rental device, the rental device calls up the payment function of the POS device, so that the POS device and the payment monitoring server interact to make payment; the rental device monitors the card swiping payment result corresponding to the POS device, and when the card swiping payment result is used to indicate a successful card swiping payment, a pop-up instruction is generated, and according to the pop-up instruction, the card is sent from the rental device to the user. The target power bank pops up for the user to use, that is, payment is made by swiping the POS card, so that the power bank can be rented even when the electronic device is out of power, thereby improving the success rate of renting the power bank and meeting the demand for renting the power bank in areas where WeChat, Alipay and power bank rental applications are not popular; and by providing a POS device swiping card payment method for renting the power bank, the rental methods of the power bank are enriched, which is conducive to improving the flexibility of renting the power bank; and through the interactive payment between the POS device and the payment monitoring server, the risk of data leakage is reduced, and the security of fee payment and power bank rental is improved.
[0209] In an optional embodiment, if Figure 4 As shown, Figure 4 FIG. 1 is a schematic diagram of another structure of a smart charging treasure rental device based on a POS device disclosed in an embodiment of the present invention. Figure 4 As shown, the device also includes:
[0210] The first determination module 306 is used to determine the charging rules corresponding to the power bank on the rental device;
[0211] The generating module 304 is further used to generate a payment interface corresponding to the power bank rental request according to the charging rules, and trigger the display module 301 to display the payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place the target card in the card swiping area on the rental device to perform the card swiping payment operation;
[0212] Among them, the payment interface includes the charging rules corresponding to the power bank on the rental equipment.
[0213] In this optional embodiment, optionally, the specific manner in which the first determining module 306 determines the charging rules corresponding to the power bank on the rental device includes:
[0214] Generate a power bank rental instruction corresponding to the power bank rental request according to the power bank rental request, and send the power bank rental instruction to the cabinet center, the power bank rental instruction is used to request the cabinet center to feedback the charging rules for renting the power bank on the rental device according to the power bank rental instruction, and receive the charging rules sent by the cabinet center; and / or
[0215] The charging rules are obtained from a predetermined elastic power database as the charging rules corresponding to the power bank on the rented device.
[0216] It can be seen that implementation Figure 4 The described device can generate a corresponding payment interface based on the acquired charging rules for renting a power bank and provide it to the user. While generating an accurate payment interface, it allows the user to clearly know the fees required to rent a power bank, so that the user can make a quick decision on whether to rent a power bank, which in turn helps to improve the user's experience of renting and using a power bank; and by obtaining charging rules from the cabinet center and / or the elastic power database, the efficiency of obtaining the charging rules can be improved, which helps to improve the efficiency of generating the payment interface.
[0217] In another optional embodiment, the power bank rental instruction is further used to request feedback of a pop-up list of the rental device, where the pop-up list is used to indicate multiple power banks that are currently available for rental by the user on the rental device and includes the remaining power of each power bank;
[0218] like Figure 4 As shown, the first determination module 306 is also used to receive the pop-up list sent by the cabinet center;
[0219] The display module 301 is also used to display a pop-up list to the user, so that the user can select the desired power bank from the pop-up list, wherein the target power bank is the power bank selected by the user.
[0220] In this optional embodiment, the pop-up list can be understood as a table or a non-table, as long as it includes multiple power banks that are currently available for rent by users on the rental device and the remaining power of each power bank. Furthermore, the pop-up list also includes the virtual arrangement of multiple power banks that are currently available for rent on the rental device, and the virtual arrangement is consistent with the actual arrangement. Further, optionally, the corresponding remaining power and the logo of the power bank can be displayed in the corresponding virtual arrangement position.
[0221] It can be seen that implementation Figure 4 The described device can also display a pop-up list of power banks on the rental device to the user, especially a virtual arrangement of the power banks that is consistent with the actual arrangement of the power banks on the rental device, which is beneficial for the user to view the accurate power bank situation, so that the user can quickly and accurately select the required power bank, thereby helping to further improve the accuracy and efficiency of popping up the power bank that meets the user's needs.
[0222] In yet another optional embodiment, Figure 4 As shown, the device may also include:
[0223] The judgment module 307 is used to judge whether the rental device successfully ejects the target power bank after the power-ejecting module 305 ejects the target power bank from the rental device according to the power-ejecting instruction for the user to use;
[0224] The power-up module 305 is further used to re-execute the above-mentioned operation of popping out the target power bank from the rental device for the user to use according to the power-up instruction when the result of the judgment is no;
[0225] The specific method in which the judgment module 307 judges whether the rental device successfully ejects the target power bank includes:
[0226] Determine whether the target power bank exists in the card slot for storing the target power bank on the rental device, and when the result of the determination is no, determine that the target power bank is ejected successfully; or,
[0227] The target power bank is monitored for power changes. When the power changes of the target power bank are monitored to indicate that the power state of the target power bank is in a power reduction state, it is determined that the target power bank is ejected successfully.
[0228] It can be seen that implementation Figure 4The described device can also further determine whether the power bank is successfully ejected after ejecting the power bank to the user. If it is not successfully ejected, the ejection operation is re-executed to increase the possibility that the user can successfully obtain the power bank; and by detecting the power bank card slot on the rental device and / or the power bank's power change detection, a variety of judgment methods for whether the power bank is successfully ejected are provided, thereby improving the accuracy and reliability of the judgment of whether the power bank is successfully ejected.
[0229] In yet another optional embodiment, Figure 5 As shown, the judgment module 307 is also used to judge whether the rental device successfully ejects the target power bank after the eject module 305 re-executes the above-mentioned operation of ejecting the target power bank from the rental device according to the eject instruction for the user to use;
[0230] And, if Figure 4 As shown, the device may also include:
[0231] The second determination module 308 is used to determine the remaining power of the target power bank when the result of the determination is no;
[0232] A screening module 309 is used to screen one of the power banks from the rental devices, the remaining power of which is greater than or equal to the remaining power of the target power bank;
[0233] The power-spring module 305 is also used to eject one of the power banks from the rental device for use by the user according to the power-spring instruction.
[0234] It can be seen that implementation Figure 4 The described device can also directly select power banks from the rental devices whose remaining power is greater than or equal to the remaining power of the power bank to be ejected, and eject them when it is determined that the power bank has not been ejected successfully after the ejection operation has been re-executed, thereby increasing the probability of successfully ejecting the power bank and ensuring that the user rents a power bank that meets their power needs.
[0235] In yet another optional embodiment, Figure 4 As shown, the second determination module 308 is also used to determine the rental data of the target power bank when it is determined that the target power bank is successfully ejected from the rental device, the rental data of the target power bank includes one or more of the identification of the target power bank, the ejection time of the target power bank, the geographical location of the target power bank when it is ejected, the data of the POS device, and the user data of the user who rented the target power bank, wherein the user data corresponding to the target power bank includes the identification of the target card and / or user attribute data, and the data of the POS device includes the identification of the POS device and / or the geographical location of the POS device;
[0236] The generating module 304 is further used to generate a target order for the target power bank according to the rental data of the target power bank;
[0237] The second determination module 308 is also used to update the current state of the target power bank to a use state.
[0238] It can be seen that implementation Figure 4 The described device can also generate an order based on various data of the power bank after successfully popping out the power bank for the user, which can improve the accuracy of order generation and facilitate the traceability and control of the lent power banks; and update the status of the power bank to the use status, reducing the possibility of mistakenly treating the power bank in use as waiting to be lent, thereby facilitating the subsequent successful lending of other power banks.
[0239] In yet another optional embodiment, the second determination module 308 is further configured to determine factors of unsuccessful payment when the card payment result indicates that the card payment was unsuccessful;
[0240] The second determination module 308 is further used to determine the usage of all channels in the network when the factor is a network reason;
[0241] The screening module 309 is further used to screen the channel with the best quality from all the channels according to the usage of each channel;
[0242] The invoking module 302 is further used to re-execute the above-mentioned invoking payment function of the POS device based on the channel with the best quality, so that the POS device and the payment monitoring server perform interactive payment operations;
[0243] The second determination module 308 is also used to obtain the user's historical power bank rental data when the factor is insufficient target card fees;
[0244] The generating module 304 is further used to generate a power-on instruction when the historical data of renting a power bank by the user indicates that the number of times the power bank is rented within a preset time period is greater than or equal to a first preset number (such as 7 times a week) and the number of successful card payments during each rental of the power bank is greater than or equal to a second preset number (such as 6 times or 7 times);
[0245] The power-pop-up module 305 is also used to pop out the target power bank from the rental device according to the power-pop-up instruction for the user to use.
[0246] In this optional embodiment, the usage of each channel optionally includes one or more of channel occupancy, signal quality, channel capacity, and channel stability. The more content the channel usage contains, the more conducive it is to improving the accuracy and efficiency of selecting the best quality channel, thereby improving the sensing efficiency and success probability of the target card, and improving the success probability and efficiency of the interactive payment between the POS device and the payment monitoring server, thereby improving the execution accuracy and reliability of the power bank pop-up operation.
[0247] It can be seen that implementation Figure 4 When a card payment is unsuccessful, the described device can also analyze the reason for the card payment failure. If it is due to network reasons, the channel with the best quality is selected to re-activate the payment function of the POS device, thereby increasing the probability of successful card payment, which in turn helps to increase the probability of the user renting the required power bank; if it is due to insufficient funds, when it is determined that the user's power bank rental situation in the past time period meets the requirements, the power bank is also directly popped up, thereby increasing the probability of the user renting the required power bank, thereby improving the user's experience in renting a power bank.
[0248] Embodiment 3
[0249] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a rental device disclosed in an embodiment of the present invention. The rental device can be applied to any scenario where a power bank rental is required, such as a shopping mall, a park, a street, etc. Figure 5 As shown, the rental equipment may include:
[0250] A memory 401 storing executable program codes;
[0251] a processor 402 coupled to the memory 401;
[0252] The processor 402 calls the executable program code stored in the memory 401 to execute the steps of the power bank intelligent rental method based on the POS device described in the first or second embodiment of the present invention.
[0253] Embodiment 4
[0254] An embodiment of the present invention discloses a computer-readable storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the smart rental method of power banks based on POS devices described in Embodiment 1 or Embodiment 2 of the present invention.
[0255] Embodiment 5
[0256] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps of the power bank intelligent rental method based on a POS device described in Embodiment 1 or Embodiment 2.
[0257] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0258] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0259] Finally, it should be noted that the intelligent rental method and device of a power bank based on a POS device, and the rental device disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for intelligently renting a power bank based on a POS device, characterized in that: The method comprises: When a power bank rental request triggered by a user is detected, the rental device displays a payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, and the payment interface is used to prompt the user to swipe the card to pay for the rental of the power bank; When it is detected that the target card is placed in the card swiping area on the rental device, the rental device calls up the payment function of the POS device so that the POS device interacts with the payment monitoring server for payment, and the POS device is integrated in the rental device; The rental device monitors the card payment result corresponding to the POS device. When the card payment result is used to indicate a successful card payment, a power-up instruction is generated, and according to the power-up instruction, a target power bank is ejected from the rental device for use by the user.
2. The method for intelligently renting a power bank based on a POS device according to claim 1, characterized in that: The method further comprises: The rental device determines the charging rules corresponding to renting the power bank on the rental device; The rental device generates a payment interface corresponding to the power bank rental request according to the charging rules, and triggers the operation of displaying the payment interface to the user who needs to rent the power bank on the rental device according to the power bank rental request, so as to prompt the user to place the target card in the card swiping area on the rental device to perform the card swiping payment operation; Among them, the payment interface includes the charging rules corresponding to renting the power bank on the rental device.
3. The method for intelligently renting a power bank based on a POS device according to claim 2, characterized in that: The rental device determines the charging rules corresponding to renting the power bank on the rental device, including: The rental device generates a power bank rental instruction corresponding to the power bank rental request according to the power bank rental request, and sends the power bank rental instruction to the cabinet center, wherein the power bank rental instruction is used to request the cabinet center to feedback the charging rules for renting the power bank on the rental device according to the power bank rental instruction, and receive the charging rules sent by the cabinet center; and / or The rental device obtains charging rules from a predetermined elastic power database as charging rules corresponding to renting the power bank on the rental device.
4. The method for intelligently renting a power bank based on a POS device according to claim 3, characterized in that: The power bank rental instruction is also used to request feedback of a pop-up list of the rental device, where the pop-up list is used to indicate multiple power banks on the rental device that are currently available for rental by the user and includes the remaining power of each power bank; The method further comprises: The rental device receives the pop-up list sent by the cabinet center and displays the pop-up list to the user, allowing the user to select the desired power bank from the pop-up list, wherein the target power bank is the power bank selected by the user.
5. The method for intelligently renting a power bank based on a POS device according to any one of claims 1 to 4, characterized in that: After the rental device ejects the target power bank from the rental device according to the ejection instruction for use by the user, the method further includes: The rental device determines whether the rental device successfully ejects the target power bank; When the result of the judgment is negative, the rental device re-executes the operation of ejecting the target power bank from the rental device according to the ejection instruction for use by the user; The rental device determines whether the rental device successfully ejects the target power bank, including: The rental device determines whether the target power bank exists in the card slot for storing the target power bank on the rental device, and when the determination result is no, determines that the target power bank is ejected successfully; or, The rental device monitors the power change of the target power bank, and when the monitored power change of the target power bank indicates that the power state of the target power bank is in a power reduction state, it is determined that the target power bank is successfully ejected.
6. The method for intelligently renting a power bank based on a POS device according to claim 5, characterized in that: After the rental device re-executes the operation of ejecting the target power bank from the rental device according to the eject instruction for use by the user, the method further includes: The rental device determines whether the rental device successfully ejects the target power bank; When the result of the judgment is negative, the rental device determines the remaining power of the target power bank, and selects one of the power banks from the rental device whose remaining power is greater than or equal to the remaining power of the target power bank; The rental device ejects one of the power banks from the rental device according to the power ejection instruction for use by the user.
7. The method for intelligently renting a power bank based on a POS device according to claim 6, characterized in that: The method further comprises: When it is determined that the target power bank is successfully ejected from the rental device, the rental device determines the rental data of the target power bank, the rental data of the target power bank includes one or more of the identification of the target power bank, the ejection time of the target power bank, the geographical location of the target power bank when it is ejected, the data of the POS device and the data of the user who rented the target power bank, wherein the user data corresponding to the target power bank includes the identification of the target card and / or user attribute data, and the data of the POS device includes the identification of the POS device and / or the geographical location of the POS device; The rental device generates a target order for the target power bank according to the rental data of the target power bank, and updates the current state of the target power bank to a use state.
8. A smart rental device for power banks based on POS equipment, characterized in that: The device is applied to rental equipment, and the device comprises: A display module, for displaying a payment interface to a user who needs to rent a power bank on the rental device according to the power bank rental request when a power bank rental request triggered by a user is detected, wherein the payment interface is used to prompt the user to swipe a card to pay for renting the power bank; A calling module, for calling a payment function of a POS device when it is detected that the target card is placed in the card swiping area on the rental device, so that the POS device performs interactive payment with a payment monitoring server, and the POS device is integrated on the rental device; A monitoring module, used to monitor the card payment result corresponding to the POS device; A generating module, used for generating a pop-up instruction when the card payment result is used to indicate a successful card payment; The power-emerging module is used to eject the target power bank from the rental device according to the power-emerging instruction for use by the user.
9. A rental device, characterized in that: The rental equipment includes: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the smart rental method of power bank based on POS device as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the smart rental method of power bank based on POS device as described in any one of claims 1-7.
Citation Information
Patent Citations
Mobile power supply renting and returning method as well as system and server thereof
CN107134067A
Sharing power bank method
CN107680280A
Charge pal renting method, charge pal returning method and renting equipment
CN111353859A
Power bank renting method and system, power bank renting equipment and POS machine
CN111508157A
Shared battery management method and device, equipment, system, medium and program
CN113506147A