CN117893209A - Point recharging method, device and equipment for identification equipment and storage medium - Google Patents

Point recharging method, device and equipment for identification equipment and storage medium Download PDF

Info

Publication number
CN117893209A
CN117893209A CN202311803968.3A CN202311803968A CN117893209A CN 117893209 A CN117893209 A CN 117893209A CN 202311803968 A CN202311803968 A CN 202311803968A CN 117893209 A CN117893209 A CN 117893209A
Authority
CN
China
Prior art keywords
recharging
point
check code
identification
ciphertext
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311803968.3A
Other languages
Chinese (zh)
Inventor
王杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Zhongnuo Microelectronics Co ltd
Original Assignee
Guangzhou Zhongnuo Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Zhongnuo Microelectronics Co ltd filed Critical Guangzhou Zhongnuo Microelectronics Co ltd
Priority to CN202311803968.3A priority Critical patent/CN117893209A/en
Publication of CN117893209A publication Critical patent/CN117893209A/en
Pending legal-status Critical Current

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the application discloses a point recharging method, a point recharging device, point recharging equipment and a storage medium of identification equipment, wherein the point recharging method comprises the following steps: under the condition that a recharging instruction is received, recharging point request information is sent to second identification equipment, and the second identification equipment is used for generating recharging point ciphertext based on the recharging point request information and returning the recharging point ciphertext; receiving the recharging point ciphertext, decrypting the recharging point ciphertext to obtain the universal recharging point and a check code, and carrying out validity check based on the check code; and under the condition that the validity check is passed, the general recharging point is increased, and a billing authority request is sent to a host computer for updating the distributed bill, wherein the distributed bill records all the identification devices and the corresponding general recharging point. According to the scheme, the problem that the recharging mode is single and the recharging points cannot be used commonly among all the identification devices when the consumable equipment is recharged is solved, and the recharging flexibility is improved.

Description

Point recharging method, device and equipment for identification equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a point recharging method, a point recharging device, point recharging equipment and point recharging storage medium for identification equipment.
Background
At present, consumable devices of various brands and types are required to be identified, reset, programmed and other operations are performed on the consumable devices by specific identification devices, and corresponding recharging points are consumed in the operation process of the identification devices.
In the related art, each consumable device has a dedicated recharging point number, and the recharging point number needs to be used in the identification device through the point card recharging, and the recharging mode of the recharging point number is fixed, so that the consumable device cannot be used freely among the identification devices of the same style, and the convenience and the use rate of the recharging point number are reduced. Meanwhile, the method cannot be compatible with other types of consumable equipment, is single in use mode and lacks flexibility. When the identification device is lost, the recharging points stored in the identification device are also lost or unusable together, thereby resulting in a poor user experience.
Disclosure of Invention
The embodiment of the application provides a point recharging method, device, equipment and storage medium of identification equipment, solves the problems that the recharging mode of recharging points of consumable equipment is single and can not be used commonly among all identification equipment, and improves the universality and recharging flexibility of recharging points.
In a first aspect, an embodiment of the present application provides a point recharging method of an identification device, which is applied to a first identification device, and includes:
under the condition that a recharging instruction is received, recharging point request information is sent to second identification equipment, and the second identification equipment is used for generating recharging point ciphertext based on the recharging point request information and returning the recharging point ciphertext;
receiving the recharging point ciphertext, decrypting the recharging point ciphertext to obtain the universal recharging point and a check code, and carrying out validity check based on the check code;
and under the condition that the validity check is passed, the general recharging point is increased, and a billing authority request is sent to a host computer for updating the distributed bill, wherein the distributed bill records all the identification devices and the corresponding general recharging point.
Optionally, before the sending the recharging point request information to the second identifying device, the method further includes:
generating recharging point request information based on the recharging instruction, wherein the recharging point request information comprises points to be recharged;
and determining the second identification equipment with the point to be recharged based on the current networking.
Optionally, the recharging instruction includes a device identifier, and before the recharging point request information is sent to the second identifying device, the method further includes:
a second identification device is determined based on the device identification.
Optionally, the check code includes a second check code generated by the second identifying device based on the locally stored distributed bill, and the performing validity check based on the check code includes:
acquiring a first check code, and comparing the first check code with the second check code, wherein the first check code is generated based on a locally stored distributed bill;
correspondingly, the validity check passes, including:
the first check code is consistent with the second check code.
Optionally, after the sending the accounting authority request to the host, the method further includes:
under the condition of being granted with the billing authority, updating the locally stored distributed bill based on the universal recharging point number to obtain updated information, and generating a third check code based on the updated distributed bill;
the updating information and the third check code are sent to the host, and the host is used for synchronizing the stored distributed bill based on the updating information and storing the third check code;
And broadcasting the updated information to other identification devices for the other identification devices to synchronize the stored distributed bills based on the updated information.
Optionally, the method further comprises:
receiving a recharging point number operation instruction sent by the host;
under the condition that the recharging point operation instruction is successfully checked, carrying out operation processing of local recharging point based on the recharging point operation instruction, wherein the operation processing comprises operation of adding or reducing general recharging point;
and sending an operation success message to the host computer for updating the distributed bill under the condition that the operation processing is completed.
In a second aspect, an embodiment of the present application provides a point number recharging method of an identification device, which is applied to a second identification device, and includes:
receiving recharging point request information sent by first identification equipment;
responding to the confirmation operation of the recharging point request information, and decrypting the recharging point request information to obtain the point to be recharged and a check code;
performing validity verification based on the verification code;
and under the condition that the validity check is passed, generating a recharging point ciphertext comprising the corresponding general recharging point and the check code according to the to-be-recharged point, and sending the recharging point ciphertext to the first identification equipment for the first identification equipment to increase the general recharging point based on the recharging point ciphertext.
Optionally, the check code includes a first check code generated by the first identifying device based on a locally stored distributed bill, and the performing validity check based on the check code includes:
acquiring a second check code, and comparing the first check code with the second check code, wherein the second check code is generated based on a locally stored distributed bill;
correspondingly, the validity check passes, including:
the first check code is consistent with the second check code.
In a third aspect, an embodiment of the present application provides a point number recharging apparatus for an identification device, including:
the information sending module is configured to send recharging point request information to the second identification equipment under the condition that a recharging instruction is received, and is used for the second identification equipment to generate recharging point ciphertext based on the recharging point request information and return the recharging point ciphertext;
the first decryption module is configured to receive the recharging point ciphertext, decrypt the recharging point ciphertext and obtain the universal recharging point and the check code;
the first verification module is configured to perform validity verification based on the verification code;
and the recharging point processing module is configured to increase the general recharging point under the condition that the validity check is passed, send a billing authority request to a host computer and update the distributed bill, wherein the distributed bill records all the identification devices and the corresponding general recharging point.
In a fourth aspect, an embodiment of the present application provides a point number recharging apparatus for an identification device, including:
the information receiving module is used for receiving the recharging point request information sent by the first identification equipment;
the second decryption module is configured to respond to the confirmation operation of the recharging point request information and decrypt the recharging point request information to obtain the point to be recharged and the check code;
a second verification module configured to perform validity verification based on the verification code;
the ciphertext generating module is configured to generate a recharge point ciphertext comprising corresponding universal recharge points and the check codes according to the to-be-recharged points under the condition that the validity check is passed;
and the information sending module is configured to send the information to the first identification equipment and is used for the first identification equipment to increase the general recharging points based on the recharging point ciphertext.
In a fifth aspect, an embodiment of the present application provides a point number recharging device of an identification device, where the device includes: one or more processors; and a storage configured to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the point charging method of the identification device of the first and second aspects.
In a sixth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the point refill method of the identification device according to the first and second aspects.
According to the embodiment of the application, under the condition that a recharging instruction is received, recharging point request information is sent to second identification equipment, the second identification equipment is used for generating recharging point ciphertext based on the recharging point request information, returning the recharging point ciphertext, receiving the recharging point ciphertext, decrypting the recharging point ciphertext to obtain universal recharging points and check codes, carrying out validity check on the basis of the check codes, under the condition that the validity check is passed, carrying out the addition of the universal recharging points, and sending a billing authority request to a host computer for updating a distributed bill, wherein the distributed bill is recorded with all identification equipment and the corresponding universal recharging points. The method can request the recharging points from the identification equipment in the same network by sending the request information to the second identification equipment, so that the universality of the recharging points is realized, and the situation that the recharging points stored in the lost equipment cannot be used after the equipment in the network is lost can be avoided. The security of data transmission between the identification devices can be ensured by encrypting the recharging points to generate recharging point ciphertext. The consistency of the distributed bill of each identification device can be ensured by carrying out validity check on the check code. And after receiving the accounting permission, accounting is carried out on the distributed bill, so that the distributed bill can be prevented from being maliciously tampered by the identification equipment.
Drawings
Fig. 1 is a flowchart of a point recharging method of an identification device according to an embodiment of the present application;
FIG. 2 is a flow chart of a billing rights request method provided by an embodiment of the present application;
FIG. 3 is a flowchart of a method for processing operations of local recharge points according to an embodiment of the present application;
FIG. 4 is a flow chart of another method for point refill for identification devices provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a point number recharging device of an identification device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a point number recharging device of another identification device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a point number recharging device of the identification device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The embodiment of the application can be used for a scene of point number recharging on the identification equipment of the consumable equipment, and based on the use scene, it can be understood that the execution main body of the scheme can be a first identifier and a second identifier in the same networking.
The method, the device, the equipment and the medium for recharging the points of the identification equipment provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a point recharging method of an identification device, which is applied to a first identification device, as shown in fig. 1, and includes:
and step 101, under the condition that a recharging instruction is received, sending recharging point request information to second identification equipment, wherein the second identification equipment is used for generating recharging point ciphertext based on the recharging point request information and returning the recharging point ciphertext.
In one embodiment, the recharge instruction may be an instruction sent when a point recharge to the corresponding identification device is required, and may be used to trigger a recharge task of the identification device, which may be sent by the user. The recharging point can be a virtual coin used in the using process of the consumable equipment, and the corresponding recharging point is required to be deducted through operation when the identification equipment identifies, resets, burns and writes the consumable equipment. The recharge points are stored in the corresponding identification device. The recharging point request information is information capable of representing the recharging point request requirement, and may include the number of required recharging points, for example: three refill points are required. Optionally, the recharging point request information may further include a check code of the first identification device. The check code of the first identification device may be a string generated by calculating distributed billing data stored locally in the first identification device. The first identification device may be a hardware device with identification, reset and write functions, where the first identification device is capable of requesting a recharge point from other identification devices in the network. The second identification device may also be a hardware device with identification, reset and programming functions, where the second identification device is a device capable of providing a corresponding number of refill points based on requests from other identification devices within the network. The recharging point ciphertext can be encrypted information obtained by encrypting the recharging point of corresponding quantity and the check code of the second identification device. The check code of the second identification device may be a character string generated by calculating distributed billing data stored locally in the second identification device. The distributed bill is a bill for recording the number of the refill points stored in each of the identification devices.
In one embodiment, after receiving a recharging instruction sent by a user, the first identification device triggers a recharging point request operation, and sends recharging point request information to the second identification device, so that the second identification device can determine the number of recharging points to be provided according to the number of recharging points required in the recharging point request information sent by the first identification device, and the recharging point ciphertext is obtained by encrypting the request points to be provided in an asymmetric encryption mode, and the recharging point ciphertext is sent to the first identification device.
In one embodiment, before sending the refill point request information to the second identification device, the method further comprises:
generating recharging point request information based on the recharging instruction, wherein the recharging point request information comprises points to be recharged;
and determining a second identification device with the point to be recharged based on the current networking.
In one embodiment, each identification device may be located by setting a three-dimensional beacon base station, and each identification device may send coordinates to the host at regular time, or send the coordinates after the change to the host when the coordinates of the identification device change, and may also send a request to the identification device actively by the host to obtain coordinates specifying one or more identification devices.
The points may be recharge points that need to be acquired for the first identification device. Networking may refer to connecting different devices together to form a network, where operations such as uploading, downloading, forwarding, etc. of data are implemented. In one embodiment, the number of identification devices within the ad hoc network may be determined based on the coordinates of the individual identification devices. The current networking refers to the networking in which the current first identification device is located. The first identification device may determine all connectable devices in the network by scanning within the current network, which may be hosts or other identification devices. In one embodiment, the recharging point request information may be generated by receiving a recharging instruction sent by the user, and for example, if the instruction sent by the user is 10 recharging points, the recharging point request information of "obtaining 10 recharging points" is correspondingly generated, and the recharging task of the first identification device is triggered. After the recharging point request information is generated, based on the identification devices which can be connected in the current networking, one or more identification devices with recharging points are selected as second identification devices.
The recharging point request information is generated based on the recharging instruction, so that the number of recharging points needing recharging can be rapidly determined. The second identification equipment with the point to be charged is determined based on the former networking, the second identification equipment can be determined in a scanning mode in the networking, and therefore the fact that all lost identification equipment in the networking can be requested is guaranteed, and loss or waste of the point to be charged in the lost identification equipment is avoided.
In one embodiment, the recharging instruction includes a device identifier, and before the sending recharging point request information to the second identifying device, the method further includes:
a second identification device is determined based on the device identification.
The device identifier is a unique flag for representing the identification device, and may be a device name or a device ID.
For example, if the recharge instruction sent by the user is: and after the connectable identification equipment is determined, the identification equipment B is determined to be the second identification equipment, and the recharging point request information for acquiring 10 recharging points is sent to the identification equipment B.
And step S102, receiving the recharging point ciphertext, decrypting the recharging point ciphertext to obtain the universal recharging point and a check code, and performing validity check based on the check code.
The general recharging points are the recharging points which are not affected by the type of the identification equipment and can be used by all the identification equipment in the same network. The validity check may be performed by comparing the received check code with a locally generated check code.
In one embodiment, the first identification device receives the recharging point ciphertext sent by the second identification device, decrypts the recharging point ciphertext to obtain decrypted data, the decrypted data comprises the recharging point with the same number as that of the recharging point request information and the check code generated by the second identification device, and the received check code generated by the second identification device is compared with the check code generated by the first device to perform validity check.
In one embodiment, the check code includes a second check code generated by the second identification device based on the locally stored distributed bill, and the performing validity check based on the check code includes:
Acquiring a first check code, and comparing the first check code with the second check code, wherein the first check code is generated based on a locally stored distributed bill;
correspondingly, the validity check passes, including:
the first check code is consistent with the second check code.
The first check code is obtained by calculating the locally stored distributed bill by the first identification equipment. The second check code is a check code generated by the second identification device based on the locally stored distributed bill. After obtaining the decrypted data, the first identification device can obtain the first check code by inquiring from the database, compares the obtained first check code with the received second check code, and if the first check and the second check code are consistent, the validity check is passed.
The validity check is carried out by comparing the first check code with the second check code, so that whether the distributed bill stored in the first identification device is consistent with the local bill stored in the second identification device at present can be judged, and the consistency of the distributed bill of the first identification device and the distributed bill of the second identification device is ensured.
Step 103, if the validity check passes, increasing the general recharging points, and sending a billing authority request to a host for updating a distributed bill, wherein the distributed bill records each identification device and the corresponding general recharging points.
The adding of the recharging points refers to adding the recharging points based on the original recharging points. The billing rights request is a request instruction that needs to be sent when billing is performed on the distributed bill. Wherein the distributed bill records each identification device and corresponding universal recharging points, and the example, the recharging points of the identification device A: 10, identification device B's recharge points: 20, identification device C's point of recharge: 15.
In one embodiment, under the condition that the validity check is passed, the first identification device adds a corresponding number of recharging points based on the original recharging points, and sends a billing authority request to the host computer, so as to update the current distributed bill after the received billing authority.
The recharging point request information is sent to the second identification equipment under the condition that the recharging instruction is received, and the recharging point ciphertext is generated by the second identification equipment based on the recharging point request information and returned; receiving the recharging point ciphertext, decrypting the recharging point ciphertext to obtain the general recharging point and a check code, and carrying out validity check based on the check code; and under the condition that the validity check is passed, adding the general recharging points, and sending a billing authority request to the host computer for updating the bill, wherein the distributed bill records all the identification devices and the corresponding general recharging points. The method can request the recharging points from the identification equipment in the same network by sending the request information to the second identification equipment, so that the universality of the recharging points is realized, and the situation that the recharging points stored in the lost equipment cannot be used after the equipment in the network is lost can be avoided. The security of data transmission between the identification devices can be ensured by encrypting the recharging points to generate recharging point ciphertext. The consistency of the distributed bill of each identification device can be ensured by carrying out validity check on the check code. And after receiving the accounting permission, accounting is carried out on the distributed bill, so that the distributed bill can be prevented from being maliciously tampered by the identification equipment.
Fig. 2 is a flowchart of a billing authority request method according to an embodiment of the present application, as shown in fig. 2, including:
step S201, under the condition that the billing authority is granted, updating the locally stored distributed bill based on the universal recharging point number to obtain updated information, and generating a third check code based on the updated distributed bill.
In one embodiment, the updated information may be updated distributed bills or specific updated content, and the first device obtains 10 recharging points from the second device. The updated distributed bill may add the obtained refill points to a new distributed bill obtained after the original distributed bill. The third verification code may be a new string of characters generated by calculating the updated new distributed bill. Under the condition that the host grants the billing authority of the first identification device, adding the recharging point number obtained by decrypting the ciphertext sent by the second identification device to the original distributed bill to obtain an updated distributed bill, and performing MD5 calculation based on data in the distributed bill to generate a third check code. Wherein. If the updated information is the updated new distributed bill, generating a third check code directly based on the updated bill. And if the update information is specific update content, modifying the original bill based on the update content to obtain a new distributed bill, and generating a third check code based on the new distributed bill.
Step S202, sending the update information and the third check code to the host, where the host is configured to synchronize the stored distributed bill based on the update information, and save the third check code.
After the third check code is generated, the third check code and the updating information are sent to the host computer, so that the host computer synchronizes the stored distributed bill based on the updating information, and the third check code is stored and used for validity check in the next updating operation. If the updated information is the updated distributed bill, the stored original distributed bill can be directly replaced by the updated distributed bill. If the update information is specific update content, the host computer modifies the original distributed bill according to the update content, so that the modified bill is consistent with the bill updated by the first identification device.
Step S203, broadcasting the update information to other identification devices, where the other identification devices synchronize the stored distributed bill based on the update information.
The first identification device broadcasts the update information to other identification devices in the network, so that each identification device synchronizes the stored distributed bill based on the update information, wherein if the update information is the updated distributed bill, the other identification devices can directly replace the stored original distributed bill with the updated distributed bill. If the updated information is specific updated content, the other identification devices modify the original distributed bills according to the updated content, so that the modified bills are consistent with the bills updated by the first identification device.
Under the condition of granting the accounting authority, updating the locally stored distributed bill based on the general recharging points to obtain updated information, generating a third check code based on the updated distributed bill, sending the updated information and the third check code to a host, wherein the host is used for synchronizing the stored distributed bill based on the updated information, storing the third check code, broadcasting the updated information to other identification devices, and the other identification devices are used for synchronizing the stored distributed bill based on the updated information. And generating a third check for the updated distributed bill, so that the validity check can be conveniently carried out through the third check code in the subsequent updating operation, and the consistency of the distributed bill of each device in the networking can be realized by broadcasting the updating information to the host and other identifying devices in the networking.
Fig. 3 is a flowchart of an operation processing method of local recharge points provided in an embodiment of the present application, as shown in fig. 3, including:
step S301, receiving a recharge point operation instruction sent by the host.
The recharging point operation instruction can be a command sent by the host computer when the identification device is subjected to recharging point operation processing, and the type of the recharging point operation instruction can be a recharging type or a recycling type.
In one embodiment, the verification code sent by the host is received while the recharging point operation instruction sent by the host is received, the received recharging point operation instruction is decrypted after the recharging point operation instruction and the verification code are received, decrypted data of the operation instruction are obtained, the received verification code is verified, and the identification equipment is triggered to carry out recharging point operation under the condition that verification is successful. The check code is a character string obtained by calculating the locally stored distributed bill by the host. After the check code in the operation instruction is received, the check code is compared with the check code corresponding to the latest distributed bill of the first identification equipment, and if the check code is consistent with the check code, the operation instruction is checked successfully.
Step S302, performing operation processing of local recharging points based on the recharging point operation instruction, where the operation processing includes an operation of increasing or decreasing the general recharging points, when the recharging point operation instruction is successfully checked.
The operation processing of the number of refill points refers to an operation of increasing or decreasing the number of universal refill points, and includes an operation of increasing or decreasing the number of universal refill points. For example, if the recharging point operation instruction is to recycle 20 recharging points, the number of recharging points is correspondingly reduced by 20 based on the recharging points recorded by the original distributed bill.
Step S303, when the operation process is completed, sending an operation success message to the host for updating the distributed bill.
An operation success message is a notification indicating that the operation process is successful. After the operation processing of the first identification equipment is successful, an operation success message is sent to the host, the host updates the distributed bill based on the operation success message, and the latest distributed bill is broadcasted to other equipment in the networking after the updating is completed.
In one embodiment, after sending the operation success message to the host, the host sends the accounting permission to the first identification device, the first identification device updates the distributed bill after receiving the accounting permission, and broadcasts the updated distributed bill or specific operation content to the host and other identification devices in the network to perform distributed bill synchronization. The method for performing distributed bill synchronization based on the updated bill or the specific operation content is the same as the method of step S202-step S203, and will not be described herein.
Fig. 4 is a flowchart of another point recharging method of an identification device according to an embodiment of the present application, as shown in fig. 4, including:
step S401, receiving recharging point request information sent by the first identification device.
In one embodiment, after receiving the recharging point request information sent by the first identification device, it is determined whether the recharging point can be provided for the first identification device according to the actual situation of the user, and if so, the user can click a "confirm operation" button on the screen of the second device.
And step S402, in response to the confirmation operation of the recharging point request information, decrypting the recharging point request information to obtain the point to be recharged and the check code.
And in response to the confirmation operation of the user on the recharging point request, decrypting the recharging point request information to obtain the point to be recharged and the check code, wherein the point to be recharged is the recharging point required to be requested by the first identification equipment. Wherein the check code is a string generated by the first identification device based on the current distributed billing calculation.
And step S403, carrying out validity check based on the check code.
Searching a check code corresponding to the latest distributed bill stored locally, and carrying out validity check on the check code and the check code of the first identification device obtained by decryption.
In one embodiment, the check code includes a first check code generated by the first identification device based on the locally stored distributed bill, and performing validity check based on the check code includes:
Acquiring a second check code, and comparing the first check code with the second check code, wherein the second check code is generated based on a locally stored distributed bill;
correspondingly, the validity check passes, including:
the first check code is consistent with the second check code.
The first check code is obtained by calculating the locally stored distributed bill by the first identification equipment. The second check code is a check code generated by the second identification device based on the locally stored distributed bill. After the second identification device obtains the number of points to be recharged and the check code, the second check code can be obtained in a query mode from the database, the obtained second check code is compared with the received first check code, and if the first check is consistent with the second check code, the validity check is passed.
The validity check is carried out by comparing the first check code with the second check code, so that whether the distributed bill stored in the first identification device is consistent with the local bill stored in the second identification device at present can be judged, and the consistency of the distributed bill of the first identification device and the distributed bill of the second identification device is ensured.
And step S404, generating a recharging point ciphertext comprising the corresponding general recharging point and the check code according to the to-be-recharged point under the condition that the validity check is passed, and sending the recharging point ciphertext to the first identification equipment for the first identification equipment to increase the general recharging point based on the recharging point ciphertext.
In one embodiment, the second identifying device may determine, according to the number of to-be-recharged points, whether the number of locally stored recharge points meets the number of to-be-recharged points, and if so, encrypt the corresponding number of recharge points in the second identifying device by using an asymmetric encryption manner, generate a recharge point ciphertext, and send the recharge point ciphertext to the first identifying device, where the first identifying device is configured to increase the universal recharge point based on the recharge point ciphertext. If the number of the charging points does not meet the preset value, encrypting all the charging points in the second identification equipment in an asymmetric encryption mode, obtaining a charging point ciphertext and sending the charging point ciphertext to the first identification equipment, wherein the charging point ciphertext is used for adding the general charging points by the first identification equipment based on the charging point ciphertext.
The method comprises the steps of receiving the recharging point request information sent by the first identification equipment, responding to the confirmation operation of the recharging point request information, decrypting the recharging point request information to obtain the to-be-recharged point and the check code, carrying out validity check based on the check code, generating a recharging point ciphertext containing the corresponding general recharging point and the check code according to the to-be-recharged point under the condition that the validity check is passed, and sending the recharging point ciphertext to the first identification equipment, wherein the recharging point ciphertext is used for the first identification equipment to increase the general recharging point based on the recharging point ciphertext. The method can provide the recharging points for the identification devices in the same network by receiving the transmission request of the first identification device, so that the universality of the recharging points is realized, and the situation that the recharging points stored in the lost device cannot be used after the equipment in the network is lost can be avoided. The security of data transmission between the identification devices can be ensured by encrypting the recharging points to generate recharging point ciphertext. The consistency of the distributed bill of each identification device can be ensured by carrying out validity check on the check code.
Fig. 5 is a schematic structural diagram of a point recharging device of an identification device according to an embodiment of the present application, including:
the information sending module 51 is configured to send recharging point request information to a second identifying device, where the second identifying device generates a recharging point ciphertext based on the recharging point request information, and returns the recharging point ciphertext;
the first decryption module 52 is configured to receive the ciphertext of the recharging points, decrypt the ciphertext of the recharging points, and obtain universal recharging points and a check code;
a first verification module 53, configured to perform validity verification based on the verification code;
and the recharging point processing module 54 is configured to increase the general recharging point if the validity check is passed, and send a billing authority request to the host, where the distributed bill is updated, and the distributed bill records each identification device and the corresponding general recharging point.
The recharging point request information is sent to the second identification equipment under the condition that the recharging instruction is received, and the recharging point ciphertext is generated by the second identification equipment based on the recharging point request information and returned; receiving the recharging point ciphertext, decrypting the recharging point ciphertext to obtain the general recharging point and a check code, and carrying out validity check based on the check code; and under the condition that the validity check is passed, adding the general recharging points, and sending a billing authority request to the host computer for updating the bill, wherein the distributed bill records all the identification devices and the corresponding general recharging points. The method can request the recharging points from the identification equipment in the same network by sending the request information to the second identification equipment, so that the universality of the recharging points is realized, and the situation that the recharging points stored in the lost equipment cannot be used after the equipment in the network is lost can be avoided. The security of data transmission between the identification devices can be ensured by encrypting the recharging points to generate recharging point ciphertext. The consistency of the distributed bill of each identification device can be ensured by carrying out validity check on the check code. And after receiving the accounting permission, accounting is carried out on the distributed bill, so that the distributed bill can be prevented from being maliciously tampered by the identification equipment.
In one possible embodiment, the point recharging apparatus further includes a request information generating module and a second identifying device determining module;
the request information generation module is used for generating recharging point request information based on the recharging instruction, and the recharging point request information comprises the points to be recharged;
and the second identification equipment determining module is used for determining the second identification equipment with the point number to be recharged based on the current networking.
In a possible embodiment, the second identification device determining module is further configured to determine the second identification device based on the device identification.
In a possible embodiment, the first verification module 53 is specifically configured to obtain a first verification code, perform a comparison between the first verification code and the second verification code, and generate the first verification code based on a locally stored distributed bill;
the first check code is consistent with the second check code, and the validity check is passed.
In one possible embodiment, the point recharging device further comprises an updating module, a check code generating module, a bill synchronizing module and a broadcasting module;
the updating module is used for updating the locally stored distributed bill based on the universal recharging points to obtain updated information under the condition that the accounting authority is granted;
The check code generation module is used for generating a third check code based on the updated distributed bill;
the bill synchronization module is used for sending the update information and the third check code to the host, and is used for synchronizing the stored distributed bill by the host based on the update information and storing the third check code;
and the broadcasting module is used for broadcasting the updated information to other identification devices and synchronizing the stored distributed bill by the other identification devices based on the updated information.
In one possible embodiment, the point recharging device further comprises an instruction receiving module and an operation processing module;
the instruction receiving module is used for receiving the recharging point number operation instruction sent by the host;
the operation processing module is used for carrying out the operation processing of the local recharging points based on the recharging point operation instruction under the condition that the recharging point operation instruction is successfully checked, wherein the operation processing comprises the operation of increasing or decreasing the general recharging points;
and the information sending module 51 is configured to send an operation success message to the host for updating the distributed bill when the operation processing is completed.
Fig. 6 is a schematic structural diagram of a point recharging device of another identification device according to an embodiment of the present application, including:
an information receiving module 61 configured to receive the charging point request information transmitted by the first identifying device;
a second decryption module 62, configured to decrypt the recharging point request information to obtain the to-be-recharged point and the check code in response to a confirmation operation of the recharging point request information;
a second verification module 63 configured to perform validity verification based on the verification code;
the ciphertext generating module 64 is configured to generate a recharge point ciphertext including a corresponding general recharge point and the check code according to the to-be-recharged point if the validity check passes;
the information sending module 65 is configured to send the information to the first identifying device, and is used for the first identifying device to increase the general recharging point based on the recharging point ciphertext.
The method comprises the steps of receiving the recharging point request information sent by the first identification equipment, responding to the confirmation operation of the recharging point request information, decrypting the recharging point request information to obtain the to-be-recharged point and the check code, carrying out validity check based on the check code, generating a recharging point ciphertext containing the corresponding general recharging point and the check code according to the to-be-recharged point under the condition that the validity check is passed, and sending the recharging point ciphertext to the first identification equipment, wherein the recharging point ciphertext is used for the first identification equipment to increase the general recharging point based on the recharging point ciphertext. The method can provide the recharging points for the identification devices in the same network by receiving the transmission request of the first identification device, so that the universality of the recharging points is realized, and the situation that the recharging points stored in the lost device cannot be used after the equipment in the network is lost can be avoided. The security of data transmission between the identification devices can be ensured by encrypting the recharging points to generate recharging point ciphertext. The consistency of the distributed bill of each identification device can be ensured by carrying out validity check on the check code.
In a possible embodiment, the information receiving module 61 is configured to obtain a second check code, and perform a comparison between the first check code and the second check code, where the second check code is generated based on a locally stored distributed bill;
the first check code is consistent with the second check code, and the validity check is passed.
The embodiment of the application also provides a point recharging device of the identification device, and the point recharging device of the identification device can be integrated with the point recharging device of the identification device. Fig. 7 is a schematic structural diagram of a point number recharging device of the identification device according to an embodiment of the present application. Referring to fig. 7, the point recharging apparatus of the identification apparatus includes: an input device 73, an output device 74, a memory 72, and one or more processors 71; a memory 72 for storing one or more programs; the one or more programs, when executed by the one or more processors 71, cause the one or more processors 71 to implement the point-charging method of the identification device provided by the above-described embodiment. Wherein the input device 73, the output device 74, the memory 72 and the processor 71 may be connected by a bus or otherwise, for example in fig. 7.
The memory 72 is used as a storage medium readable by a computing device and storing software programs, computer executable programs and modules, such as program instructions/modules corresponding to the point number recharging method of the identifying device according to any embodiment of the present application. The memory 72 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the device, etc. In addition, memory 72 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 72 may further include memory located remotely from processor 71, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 73 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the device. The output device 74 may include a display device such as a display screen.
The processor 71 executes various functional applications of the device and data processing, namely, implements the point recharging method of the identification device described above, by running software programs, instructions and modules stored in the memory 72.
The point recharging device, the point recharging device and the point recharging computer of the identification equipment can be used for executing the point recharging method of the identification equipment provided by any embodiment, and have corresponding functions and beneficial effects.
The present application also provides a storage medium storing computer-executable instructions that, when executed by a computer processor, are configured to perform the point recharging method of the identification device provided in the above embodiment, the point recharging method of the identification device including:
under the condition that a recharging instruction is received, recharging point request information is sent to second identification equipment, and the second identification equipment is used for generating recharging point ciphertext based on the recharging point request information and returning the recharging point ciphertext;
receiving the recharging point ciphertext, decrypting the recharging point ciphertext to obtain the universal recharging point and a check code, and carrying out validity check based on the check code;
And under the condition that the validity check is passed, the general recharging point is increased, and a billing authority request is sent to a host computer for updating the bill, wherein the distributed bill records all the identification devices and the corresponding general recharging point.
The point recharging method of the identification device further comprises the following steps:
receiving recharging point request information sent by first identification equipment;
responding to the confirmation operation of the recharging point request information, and decrypting the recharging point request information to obtain the point to be recharged and a check code;
performing validity verification based on the verification code;
and under the condition that the validity check is passed, generating a recharging point ciphertext comprising the corresponding general recharging point and the check code according to the to-be-recharged point, and sending the recharging point ciphertext to the first identification equipment for the first identification equipment to increase the general recharging point based on the recharging point ciphertext.
Storage media-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; nonvolatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (e.g., in different computer systems connected by a network). The storage medium may store program instructions (e.g., embodied as a computer program) executable by one or more processors.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present application is not limited to the point recharging method of the identification device described above, and may also perform the related operations in the point recharging method of the identification device provided in any embodiment of the present application.
The point recharging device, the device and the storage medium of the identification device provided in the foregoing embodiments may perform the point recharging method of the identification device provided in any embodiment of the present application, and technical details not described in detail in the foregoing embodiments may be referred to the point recharging method of the identification device provided in any embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (12)

1. A point recharging method of an identification device, applied to a first identification device, comprising:
under the condition that a recharging instruction is received, recharging point request information is sent to second identification equipment, and the second identification equipment is used for generating recharging point ciphertext based on the recharging point request information and returning the recharging point ciphertext;
receiving the recharging point ciphertext, decrypting the recharging point ciphertext to obtain the universal recharging point and a check code, and carrying out validity check based on the check code;
and under the condition that the validity check is passed, the general recharging point is increased, and a billing authority request is sent to a host computer for updating the distributed bill, wherein the distributed bill records all the identification devices and the corresponding general recharging point.
2. The point charging method of the identification device according to claim 1, further comprising, before said transmitting the charging point request information to the second identification device:
generating recharging point request information based on the recharging instruction, wherein the recharging point request information comprises points to be recharged;
and determining the second identification equipment with the point to be recharged based on the current networking.
3. The method for point refill for an identification device of claim 1, wherein said refill instruction comprises a device identification, and further comprising, prior to said sending refill point request information to a second identification device:
a second identification device is determined based on the device identification.
4. A point refill method for an identification device according to any of claims 1-3, wherein the check code comprises a second check code generated by the second identification device based on a locally stored distributed bill, the legitimacy check based on the check code comprising:
acquiring a first check code, and comparing the first check code with the second check code, wherein the first check code is generated based on a locally stored distributed bill;
correspondingly, the validity check passes, including:
the first check code is consistent with the second check code.
5. A method of point refill for an identification device according to any one of claims 1-3, further comprising, after said sending a request for billing rights to a host:
under the condition of being granted with the billing authority, updating the locally stored distributed bill based on the universal recharging point number to obtain updated information, and generating a third check code based on the updated distributed bill;
The updating information and the third check code are sent to the host, and the host is used for synchronizing the stored distributed bill based on the updating information and storing the third check code;
and broadcasting the updated information to other identification devices for the other identification devices to synchronize the stored distributed bills based on the updated information.
6. A point refill method for an identification device according to any one of claims 1-3, wherein the method further comprises:
receiving a recharging point number operation instruction sent by the host;
under the condition that the recharging point operation instruction is successfully checked, carrying out operation processing of local recharging point based on the recharging point operation instruction, wherein the operation processing comprises operation of adding or reducing general recharging point;
and sending an operation success message to the host computer for updating the distributed bill under the condition that the operation processing is completed.
7. A point-of-use recharging method of an identification device, applied to a second identification device, comprising:
receiving recharging point request information sent by first identification equipment;
responding to the confirmation operation of the recharging point request information, and decrypting the recharging point request information to obtain the point to be recharged and a check code;
Performing validity verification based on the verification code;
and under the condition that the validity check is passed, generating a recharging point ciphertext comprising the corresponding general recharging point and the check code according to the to-be-recharged point, and sending the recharging point ciphertext to the first identification equipment for the first identification equipment to increase the general recharging point based on the recharging point ciphertext.
8. The point refill method of an identification device of claim 7, wherein the check code comprises a first check code generated by the first identification device based on a locally stored distributed bill, the verifying legitimacy based on the check code comprising:
acquiring a second check code, and comparing the first check code with the second check code, wherein the second check code is generated based on a locally stored distributed bill;
correspondingly, the validity check passes, including:
the first check code is consistent with the second check code.
9. A point recharging apparatus for an identification device, comprising:
the information sending module is configured to send recharging point request information to the second identification equipment under the condition that a recharging instruction is received, and is used for the second identification equipment to generate recharging point ciphertext based on the recharging point request information and return the recharging point ciphertext;
The first decryption module is configured to receive the recharging point ciphertext, decrypt the recharging point ciphertext and obtain the universal recharging point and the check code;
the first verification module is used for carrying out validity verification based on the verification code;
and the recharging point processing module is configured to increase the general recharging point under the condition that the validity check is passed, send a billing authority request to a host computer and update the distributed bill, wherein the distributed bill records all the identification devices and the corresponding general recharging point.
10. A point recharging apparatus for an identification device, comprising:
the information receiving module is configured to receive the recharging point request information sent by the first identification equipment;
the second decryption module is configured to respond to the confirmation operation of the recharging point request information and decrypt the recharging point request information to obtain the point to be recharged and the check code;
a second verification module configured to perform validity verification based on the verification code;
the ciphertext generating module is configured to generate a recharge point ciphertext comprising corresponding universal recharge points and the check codes according to the to-be-recharged points under the condition that the validity check is passed;
And the information sending module is configured to send the recharging point ciphertext to the first identification equipment and is used for the first identification equipment to increase the general recharging point based on the recharging point ciphertext.
11. A point refill device that identifies a device, the device comprising: one or more processors; storage means for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the point refill method of the identification device of any of claims 1-8.
12. A storage medium storing computer executable instructions which, when executed by a computer processor, are for performing the point refill method of an identification device as claimed in any one of claims 1 to 8.
CN202311803968.3A 2023-12-25 2023-12-25 Point recharging method, device and equipment for identification equipment and storage medium Pending CN117893209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311803968.3A CN117893209A (en) 2023-12-25 2023-12-25 Point recharging method, device and equipment for identification equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311803968.3A CN117893209A (en) 2023-12-25 2023-12-25 Point recharging method, device and equipment for identification equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117893209A true CN117893209A (en) 2024-04-16

Family

ID=90640407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311803968.3A Pending CN117893209A (en) 2023-12-25 2023-12-25 Point recharging method, device and equipment for identification equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117893209A (en)

Similar Documents

Publication Publication Date Title
JP6896942B2 (en) Blockchain-based transaction processing methods and devices, as well as electronic devices
JP4659865B2 (en) Value information transmission system, value information transmission method, value information transmission device, and value information transmission program
EP2628125B1 (en) Method and apparatus for downloading drm module
JP4976492B2 (en) Methods and systems for backing up and restoring licenses
US20200374686A1 (en) Embedded Universal Integrated Circuit Card Profile Management Method and Apparatus
EP1978462A1 (en) Terminal apparatus, server apparatus, and digital content distribution system
CN103282911A (en) Method for interworking trust between a trusted region and an untrusted region, method, server, and terminal for controlling the downloading of trusted applications, and control system applying same
EP1921555A1 (en) Method and apparatus for moving dividing, or merging copyrighted content
CN101160915B (en) Method for charging precisely in the digital rights management and a device thereof
CN112732827A (en) Securely sharing selected fields in a blockchain with runtime access determination
CN1826810B (en) Procedure for monitoring the usage of a broadcasted content
CN111722861A (en) Application program upgrading method, device, equipment and storage medium
EP3041188B1 (en) Method, device and system for controlling presentation of application
CN109492384B (en) Method for receiving entity access and accessing password device, password device and entity
CN117893209A (en) Point recharging method, device and equipment for identification equipment and storage medium
CN110866229B (en) Multi-platform account authority unified management method and system
CN109614114B (en) License file acquisition method and device, readable storage medium and electronic equipment
KR20100010745A (en) Contents auto update system and method
CN112528239A (en) Method and device for automatically authorizing software
US20090151001A1 (en) Method and apparatus for operating rights
KR102666287B1 (en) Method for providing nft service and system thereof
CN113157207B (en) Data processing method, device and storage medium
CN111199486B (en) Data processing method, device and storage medium based on blockchain network
JP2001109625A (en) Software charging system
KR20240061390A (en) Method for providing nft service and system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination