CN112967454A - Resource distribution method, device, cabinet, electronic equipment and storage medium - Google Patents

Resource distribution method, device, cabinet, electronic equipment and storage medium Download PDF

Info

Publication number
CN112967454A
CN112967454A CN202110194334.7A CN202110194334A CN112967454A CN 112967454 A CN112967454 A CN 112967454A CN 202110194334 A CN202110194334 A CN 202110194334A CN 112967454 A CN112967454 A CN 112967454A
Authority
CN
China
Prior art keywords
resource
target
identity information
determining
resources
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
CN202110194334.7A
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.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information Technology 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 Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202110194334.7A priority Critical patent/CN112967454A/en
Publication of CN112967454A publication Critical patent/CN112967454A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/003Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/07701Constructional details, e.g. mounting of circuits in the carrier the record carrier comprising an interface suitable for human interaction
    • G06K19/07713Constructional details, e.g. mounting of circuits in the carrier the record carrier comprising an interface suitable for human interaction the interface, upon reception of an interrogation signal, being capable of signaling to indicate its position to a user or a detection device
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/06Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by returnable containers, i.e. reverse vending systems in which a user is rewarded for returning a container that serves as a token of value, e.g. bottles
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/08Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
    • G07F7/0873Details of the card reader

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a resource distribution method, a resource distribution device, a cabinet, electronic equipment and a storage medium, wherein the method comprises the following steps: determining target identity information of a target user according to a request identifier in a received resource acquisition request; if the target identity information is matched with the identity information in the preset identity information set, determining a target resource from at least one resource to be allocated; at least one resource to be allocated is a resource recovered after the user resource is used; and updating the target resource and the target identity information into a pre-established resource allocation table, and allocating the target resource to the target user according to the updated record in the resource allocation table. The technical scheme of the embodiment of the invention solves the problems that the resources cannot be flexibly distributed and cannot be centrally managed in the prior art, and achieves the technical effects of reducing the use cost of the resources and improving the efficiency of resource management.

Description

Resource distribution method, device, cabinet, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a resource distribution method, a resource distribution device, a cabinet, electronic equipment and a storage medium.
Background
In the existing positioning system, a corresponding resource is mostly allocated to each user, and the current location information of the user is determined based on the resource, optionally, the allocated resource is a UWB positioning tag, and at this time, an accessory adapted to the resource needs to be allocated to the user, for example, a charging device, and the UWB positioning tag is charged based on the charging device.
When the present invention is implemented based on the above-described embodiments, the inventors have found that the following problems occur:
at present, a resource of a user is needed. Meanwhile, a special charging area is required to be provided for charging the positioning tag. Because the cost of positioning the tag is high, correspondingly, providing a special charging area for the tag also needs to consume more resources, and therefore, the technical problem of high resource cost exists based on the above mode.
Disclosure of Invention
The invention provides a resource distribution method, a resource distribution device, a cabinet, electronic equipment and a storage medium, which are used for realizing dynamic resource distribution, so that resources can be repeatedly used, the resource cost is further reduced, and the technical effect of improving the resource management efficiency is achieved.
In a first aspect, an embodiment of the present invention provides a resource distribution method, where the method includes:
determining target identity information of a target user according to a request identifier in a received resource acquisition request;
if the target identity information is matched with the identity information in the preset identity information set, determining a target resource from at least one resource to be allocated; wherein, the at least one resource to be allocated is a resource recovered after the user resource is used;
and updating the target resource and the target identity information to a pre-established resource allocation table, and allocating the target resource to the target user according to the updated record in the resource allocation table.
In a second aspect, an embodiment of the present invention further provides a resource distribution apparatus, where the apparatus includes:
the identity information determining module is used for determining target identity information of a target user according to a request identifier in the received resource acquisition request;
the target resource determining module is used for determining a target resource from at least one resource to be allocated if the target identity information is matched with the identity information in a preset identity information set;
and the target resource allocation module is used for updating the target resources and the target identity information into a pre-established resource allocation table and allocating the target resources to the target users according to the updated records in the resource allocation table.
In a third aspect, an embodiment of the present invention further provides a resource distribution cabinet, where the cabinet includes:
the identity information identification module is arranged on the resource distribution cabinet and used for identifying the target object placed in the target area and generating a resource acquisition request or a resource release request based on the identified target object;
the resource distribution module is used for receiving a resource acquisition request or a resource release request and determining target resource information according to the request;
the control module receives the target resource information sent by the resource distribution module and generates a distribution signal or a playback signal according to the target resource information;
the resource popping module is used for receiving the distribution signal or the replacement signal, determining a target position of the target resource from the resource temporary storage area according to the distribution signal or the replacement signal, and popping a target resource temporary storage clamping slot at the target position so as to enable a target user to take away or replace the target resource from the target temporary storage clamping slot;
the resource temporary storage region comprises at least one resource temporary storage clamping groove, and the resource temporary storage clamping groove is used for storing resources to be allocated.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the resource distribution method according to any one of the embodiments of the present invention.
In a fifth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the resource distribution method according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the identity information of the user is determined by processing the request identifier in the received resource acquisition request, when the identity information of the user is matched with the preset identity information, the target resource can be determined from all the resources to be allocated and allocated to the target user, so that the dynamic allocation of the resource is realized, the resource can be reused, the technical problem that in the prior art, a part of resource is used by a person, and a special charging area is provided for charging the target resource, so that the resource cost is higher is solved, the uniform management of the resource is realized, the same resource can be reused, the utilization rate of the resource is improved, the management efficiency is improved, and the technical effect of reducing the cost is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a resource distribution method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a resource distribution method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a resource distribution method according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a UWB tag dynamic binding according to a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of a dynamic unbundling of a UWB tag according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a resource distribution cabinet according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a resource distribution cabinet according to a sixth embodiment of the present invention
Fig. 8 is a schematic structural diagram of a resource distribution apparatus according to a seventh embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an eighth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a resource distribution method according to an embodiment of the present invention, where the method is applicable to a case where corresponding resources are dynamically distributed to target users, and the method may be executed by a resource distribution apparatus, and the apparatus may be implemented in a form of software and/or hardware. The hardware can be electronic equipment, the electronic equipment can be a resource distribution cabinet, and the method provided by the invention can be integrated in the resource distribution cabinet.
As shown in fig. 1, the method of this embodiment specifically includes the following steps:
s110, determining target identity information of the target user according to the request identification in the received resource acquisition request.
The resource may be a positioning resource for positioning the current location information of the user, and may be, for example, but not limited to, a UWB positioning tag and the like. The resource obtaining request may be an instruction or code for obtaining a resource, and is used to request resource allocation, for example, after an identifier for characterizing a user identity is identified, the resource obtaining request may be generated. The request identifier may be an identifier carried in the resource acquisition request, and optionally, target identity information of the target user. The target user may be a user requesting to distribute resources, and the target identity information may be information for distinguishing different users, such as identity card information, face information, fingerprint information, and the like.
Specifically, after receiving the resource acquisition request, the resource acquisition request may be analyzed, and a request identifier carried in the resource acquisition request is extracted. According to the request identifier obtained by analysis, the request identifier can be used as target identity information of the target user.
S120, if the target identity information is matched with the identity information in the preset identity information set, determining the target resource from at least one resource to be allocated.
Wherein, at least one resource to be allocated is a resource recovered after the user resource is used. That is, at least one resource to be allocated is a resource that can be currently used when the resource acquisition request is received. The at least one resource to be allocated may also be understood as a resource to be allocated to the target user for use by the target user. The preset identity information set may be a set of all predetermined identity information that can use the resource. That is, the preset identity set includes a plurality of elements, and each element is identity information. And presetting users in the identity set as legal users, namely the users for which resources are allocated. The target resource is a resource determined to be allocated to the target user from at least one resource to be allocated.
Specifically, in order to ensure the security of the resource, the authentication may be performed according to the target identity information. If the target identity information can be found in the preset identity information set, it is indicated that the target identity information is legal, and resources can be allocated to the target user corresponding to the target identity information. At this time, a resource suitable for being allocated to the target user may be determined from at least one resource to be allocated, and the resource may be used as the target resource. If the target identity information cannot be found in the preset identity information set, it is indicated that the target identity information is illegal, and resources cannot be allocated to the target user corresponding to the target identity information.
Illustratively, the preset identity information set includes identity information a, B, C and D; the resources to be allocated include numbers 1, 2, 3 and 4. If the target identity information is A, the target identity information can be determined to be matched with the identity information in the preset identity information set, and if the resource No. 1 is determined to be a suitable resource from the resources to be allocated, the resource No. 1 can be used as the target resource. If the target identity information is E, it may be determined that the target identity information does not match the identity information in the preset identity information set, and resources cannot be allocated to the target user.
S130, updating the target resource and the target identity information to a pre-established resource allocation table, and allocating the target resource to the target user according to the updated record in the resource allocation table.
The resource allocation table may be a table storing the corresponding allocation relationship between the resource and the identity information. The resource allocation table includes the allocated resources and the user identity information using the resources.
Specifically, after the target identity information and the target resource are determined, the corresponding relationship between the target identity information and the target resource may be updated to a pre-created resource allocation table. When detecting that the information in the resource allocation table is updated, the target resource to be distributed can be determined according to the updated record and allocated to the target user.
Illustratively, the target identity information and the resource identifier corresponding to the target resource are correspondingly stored in the resource allocation table. When detecting that there is information change in the resource allocation table, the updated record may be determined, and the target resource corresponding to the updated record is popped up, so that the target user can take the target resource.
If the target resource is a UWB positioning tag, the location information of the target user corresponding to the target resource may be determined based on the target resource.
Specifically, when the UWB positioning tag is in an operating state, the current position information of the UWB tag can be determined. Correspondingly, the identity information of the target user with the UWB tag can be determined according to the current position information of the UWB tag, and then the current position information of the user can be determined. In this way, the corresponding resources can be dynamically allocated to the users, and the position information of the target user with the resources can be determined.
According to the technical scheme of the embodiment of the invention, the identity information of the user is determined by processing the request identifier in the received resource acquisition request, when the identity information of the user is matched with the preset identity information, the target resource can be determined from all the resources to be allocated and allocated to the target user, so that the dynamic allocation of the resource is realized, the resource can be reused, the technical problem that in the prior art, a part of resource is used by a person, and a special charging area is provided for charging the target resource, so that the resource cost is higher is solved, the uniform management of the resource is realized, the same resource can be reused, the utilization rate of the resource is improved, the management efficiency is improved, and the technical effect of reducing the cost is achieved.
Example two
Fig. 2 is a schematic flow chart of a resource distribution method according to a second embodiment of the present invention, and reference may be made to the technical solution of this embodiment in the present embodiment for specific implementation of a method for determining a resource acquisition request and a method for determining a target resource based on the foregoing embodiments. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, identifying a target object used for representing user identity information in a preset area based on an identity identification module, and generating a resource acquisition request according to the identified target object.
The identity recognition module may be a module for packaging an identity recognition method, and is used for performing identity recognition of a user. The area that the identification module can collect can be used as a preset area. The target object may be an object carrying identity information of a target user, and may be, for example, an identity card, a human face, a fingerprint, an iris, or the like.
Specifically, when the user places the target object in the preset area of the identity recognition module, the identity recognition module may recognize the identity information corresponding to the target object according to the target object in the preset area, and use the identity information as the request identifier. Further, a resource acquisition request carrying the request identifier may be generated to request resource allocation.
For example, if the identification module is an identification card identification module, the preset area may be an area for reading identification card information. If the identity recognition module is a fingerprint recognition module, the preset area can be an area for collecting fingerprint information. If the identity recognition module is a work card recognition module, the preset area can be an area for reading the work card information.
And S220, when the resource acquisition request is received, extracting a request identifier carried by the resource acquisition request.
Specifically, when the resource acquisition request is received, the resource acquisition request may be analyzed, and a request identifier carried in the resource acquisition request is determined.
And S230, determining target identity information of the target user according to the request identifier.
Specifically, after the request identifier is extracted, the request identifier may be used as target identity information of the target user.
S240, if the target identity information is matched with the identity information in the preset identity information set, determining the current state of each resource to be selected in the resource state table.
The current state comprises an idle state and a charging state, the idle state is a state where the resource with the resource electric quantity residual quantity larger than or equal to a first preset threshold value is located, and the idle state is a state where the resource with the resource electric quantity residual quantity smaller than the first preset threshold value and in the charging state is located. The first preset threshold may be a preset electric quantity value, such as 50%, 30%, etc. The resource status table may include a resource identifier, a current status of the resource corresponding to the resource identifier, and a current remaining power of the resource. The resources to be selected may be resources in the resource status table that each may be used.
It should be noted that, when the remaining amount of the electric quantity of the resource is greater than or equal to the first preset threshold, the available time of the resource may satisfy the user requirement. If the power consumption of the resource is larger, the first preset threshold value can be increased; if the power consumption when the resource is used is small, the first preset threshold value can be reduced. In this embodiment, the specific value of the first preset threshold is not particularly limited. In practical use, the first preset threshold value can be set according to actual requirements.
Specifically, if the target identity information matches the identity information in the preset identity information set, it indicates that the target identity information is legal information, and resources can be allocated to the target user. Furthermore, all the resources in the resource state table can be determined as the resources to be selected, and the current state corresponding to each resource to be selected is obtained from the resource state table.
Illustratively, the first preset threshold is 50%, the resources to be selected included in the resource status table are a, B, C, and D, the current electric quantity of the resource to be selected a is 35%, the current electric quantity of the resource to be selected B is 55%, the current electric quantity of the resource to be selected C is 70%, and the current electric quantity of the resource to be selected D is 20%. In this case, the correspondence stored in the resource state table may be an a-charge state, a B-idle state, a C-idle state, and a D-charge state.
And S250, determining the resources to be distributed from the resources to be selected according to the current state.
Specifically, the resource to be selected, which is currently in an idle state, may be determined as the resource to be allocated, so as to ensure that the resource subsequently allocated to the target user can meet the user usage requirement.
In order to ensure that the resource to be allocated can be determined, the resource to be allocated may be determined according to at least one of the following manners:
and in the first mode, the resource to be selected with the current state being the idle state is taken as the resource to be allocated.
Illustratively, the first preset threshold is 50%, the resources to be selected included in the resource status table are a, B, C, and D, the current electric quantity of the resource to be selected a is 35%, the current electric quantity of the resource to be selected B is 55%, the current electric quantity of the resource to be selected C is 70%, and the current electric quantity of the resource to be selected D is 20%. In this case, the correspondence stored in the resource state table may be an a-charge state, a B-idle state, a C-idle state, and a D-charge state. At this time, the resources B and C to be selected may be used as resources to be allocated.
And secondly, if the resources to be selected in the idle state in the current state are empty, determining the resources to be allocated from the resources to be selected in the charging state in the current state and with the charging amount larger than or equal to a second threshold value.
The second threshold may be a preset electric quantity value, such as 10%, 5%, etc. It should be noted that the value of the second threshold is smaller than the first preset threshold.
Specifically, if the current states corresponding to all resources to be selected in the resource state table are charging states, it may be determined that the resources to be selected, whose current states are idle states, are empty. In order to ensure that the target user can allocate the resources, the resources to be allocated may be determined from the resources to be selected whose current state is the charging state. The resource to be selected, the current state of which is the charging state and the charging amount of which is greater than or equal to the second threshold value, may be determined as the resource to be allocated.
Illustratively, the first preset threshold is 50%, the second threshold is 30%, the resources to be selected included in the resource status table are a, B, C, and D, the current electric quantity of the resource to be selected a is 35%, the current electric quantity of the resource to be selected B is 25%, the current electric quantity of the resource to be selected C is 40%, and the current electric quantity of the resource to be selected D is 20%. In this case, the correspondence stored in the resource status table may be a-charge status, B-charge status, C-charge status, and D-charge status. At this time, the resource to be selected whose current state is the idle state is empty, the resource to be selected whose current state is the charging state and whose charge amount is greater than or equal to the second threshold may be determined as the resource to be selected a and C, and the resource to be selected a and C are used as the resource to be allocated.
And S260, determining the target resource according to the resource attribute of the resource to be distributed.
The resource attribute may include a resource usage frequency and/or a resource usage duration. The resource usage frequency may be a total number of times the resource has been used, and the resource-usable time period may be a time period determined based on the current amount of power and the amount of power consumed per unit time.
Specifically, the resource attribute of each resource to be allocated may be obtained, and the target resource is determined from the resources to be allocated according to the resource attribute through a preset rule.
It should be noted that the resource attribute may be stored in the resource state table, or may be stored in another storage table, and is not particularly limited in this embodiment.
For example, if the resource to be allocated includes resource a and resource B, the resource usage frequency of resource a is 100 times, and the resource usage frequency of resource B is 10 times. It can be determined that the number of battery charges and discharges of resource B is less than that of resource a, and in general, the battery usage effect of resource B is better than that of resource a. In order to reduce the gap between the resource usage frequencies of the resources, the resource a may be determined as a target resource. If the resource to be allocated includes a resource C and a resource D, the resource usable time of the resource C is 24 hours, and the resource usable time of the resource D is 20 hours, in order to ensure that the resource usable time meets the use requirement of the target user, the resource with the longer resource usable time may be used as the target resource, that is, the resource C is used as the target resource.
It should be noted that, if the target resource is determined from the resources to be allocated according to the resource usage frequency and the resource usage duration, the resource usage frequency and the resource usage duration may be considered comprehensively, and the resource to be allocated that is suitable for the target user to use is determined as the target resource. The method of comprehensive consideration may be a resource determination model determined according to big data analysis, or a method of performing weighted summation based on different resource attributes.
In this embodiment, determining the target resource according to the resource usage frequency and the resource usage duration has the advantages that the usable lifetime of each resource is limited, and when the usage frequency of the target resource is higher, there is a problem that a resource has a fault due to a higher usage frequency of a certain resource.
In order to ensure the accuracy of each resource state in the resource state table, after the target resource is determined, the information corresponding to the target resource in the resource state table may be updated in a specific manner:
and deleting the target resource from the resource state table or modifying the state corresponding to the target resource into the used state.
Specifically, if the resource status table includes the resource to be selected and does not include the resource being used, the target resource may be deleted from the resource status table. If all resources are included in the resource status table, the status of the resource being used may be modified to a used status for distinguishing from the resource to be selected.
S270, updating the resource identification and the target identity information of the target resource into a resource allocation table as a target field.
The resource identifier may be an identifier allocated to each resource, and is used to distinguish each resource. The target field may include a resource identification field and an identity information field.
Specifically, after the target identity information and the target resource are determined, the resource identifier and the target identity information of the target resource may be used as a target field, and the target field is added to the resource allocation table, so that the user corresponding to each resource can be determined according to the resource allocation table. And establishing a corresponding relation between the resource identifier of the target resource and the target identity information, and updating the corresponding relation into a resource allocation table.
And S280, when the updated record in the resource allocation table is detected, allocating the target resource corresponding to the target resource identifier to the target user.
Specifically, when a newly added record in the resource allocation table is detected, a target resource identifier may be determined according to a target field corresponding to the newly added record, and then a target resource is determined according to the target resource identifier; and determining target identity information according to the target field corresponding to the newly added record so as to determine the target user. In turn, the target resource is allocated to the target user to enable the target user to use the target resource.
According to the technical scheme of the embodiment of the invention, the resources meeting the use requirements are dynamically allocated to the user according to the current state of the resources to be selected, so that the resources can be repeatedly used, and the resource allocation condition is recorded by using the resource allocation table, so that the problems that the resources can not be ensured to meet the use duration of the user when the resources are allocated and the management efficiency is low when the resources are allocated are solved, the effect of allocating the resources with the resource attributes meeting the requirements to the user is realized, and the technical effect of improving the resource management efficiency is also realized.
EXAMPLE III
Fig. 3 is a schematic flow chart of a resource distribution method according to a third embodiment of the present invention, where this embodiment is based on the foregoing embodiments, and not only can distribute resources for users, but also can recover corresponding resources after the users finish using the resources, and a specific implementation manner of this embodiment may refer to a technical solution of this embodiment. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 3, the method of this embodiment specifically includes the following steps:
s310, determining target identity information of the target user according to the request identification in the received resource acquisition request.
S320, if the target identity information is matched with the identity information in the preset identity information set, determining the target resource from at least one resource to be distributed.
S330, updating the target resource and the target identity information to a pre-established resource allocation table, and allocating the target resource to the target user according to the updated record in the resource allocation table.
S340, when the resource replacing request is received, obtaining the identifier of the resource to be replaced.
The resource release request may be an instruction or code used when releasing the resource. The resource to be put back may be the resource that the target user wants to return. The identifier of the resource to be put back may be an identifier corresponding to the resource to be put back, and is used to distinguish different resources to be put back.
Specifically, after receiving the resource release request, the resource acquisition request may be analyzed, and the identifier of the resource to be released, which is carried in the resource release request, is extracted, so as to determine the resource to be released according to the identifier of the resource to be released.
It should be noted that, when the angelica is still to be replaced with the resource, the user may place the resource to be replaced on the resource identification area to obtain the identifier of the resource to be replaced.
For example, the user may place the target resource in a preset area or a resource identification area, so that the identification device or the resource identification module can identify the target resource. Upon identifying the target resource, a corresponding resource put back request may be generated.
S350, searching the resource record to be deleted which is consistent with the resource identifier to be put back from the pre-established resource allocation table, and deleting the resource record to be deleted.
The resource record to be deleted may be a record in the resource allocation table that matches the identifier of the resource to be put back.
Specifically, after the resource to be replaced is identified, the record corresponding to the resource identifier to be replaced may be found in the resource allocation table according to the resource identifier to be replaced, and the record may further include the user identity information corresponding to the resource to be replaced. Further, the searched record can be used as the resource record to be deleted, and the resource record to be deleted can be deleted from the resource allocation table.
It should be noted that, if the record consistent with the identifier of the resource to be replaced cannot be found from the pre-established resource allocation table, it may be indicated that the resource to be replaced may not belong to the current system management.
And S360, updating the resource association information of the resource to be replaced into a resource state table, determining the resource state of the resource to be replaced according to the residual electric quantity of the resource to be replaced, and determining the target resource matched with the resource acquisition request according to the resource state when the resource acquisition request is received.
The resource-related information may be information related to the resource to be put back, such as a resource identifier, a frequency of resource usage, and the like.
Specifically, the resource association information of the resource to be put back may be updated to the resource status table, so as to complete the resource record of the resource to be put back. And the residual electric quantity of the resource to be put back can be detected, and the resource state of the resource to be put back is determined to be an idle state or a charging state according to the residual electric quantity and the first preset threshold value. If the remaining power is greater than or equal to a first preset threshold, updating the state corresponding to the resource to be put back to an idle state; if the remaining power is less than the first preset threshold, the state corresponding to the resource to be replaced can be updated to the charging state. And the resource to be put back with insufficient electric quantity can be charged.
If the resource state table includes the resource to be selected and does not include the resource in use, the resource to be replaced may be added to the resource state table. If all resources are included in the resource state table, the state modification corresponding to the resources to be put back can be updated from the used state to the idle state or the charging state.
It should be noted that, if the resource attribute information in the resource state table includes the resource usage frequency, the resource usage frequency corresponding to the resource to be put back may be increased by one when the resource association information of the resource to be put back is updated to the resource state table.
On the basis of the embodiment, if the user is detected to return the resources to be returned, the successful information of the resource return can be fed back; if the user is not detected to return the resources to be put back, the return prompting information can be fed back.
According to the technical scheme of the embodiment of the invention, the resources can be recovered and reused by dynamically replacing the resources, so that the problems that the distributed resources are difficult to recover and the recovered resources are difficult to manage after the resources are recovered are solved, the resources are reused, the use cost of the resources can be reduced, and the management efficiency of the resources can be improved.
Example four
As an optional embodiment of the foregoing embodiments, fig. 4 is a schematic diagram of a UWB tag dynamic binding provided by a fourth embodiment of the present invention, and on the basis of the foregoing embodiments, in this embodiment, reference may be made to the technical solution of this embodiment for a specific implementation manner of binding a UWB tag and a user. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 4, the method of this embodiment specifically includes the following steps:
1. the target user can carry the target object and place the target object (such as an identity card) in a preset area (such as an identity card reader on a UWB (ultra Wide band) tag charging cabinet) which can be identified by the identity identification module, so that the identity identification module identifies the target object, and identity information of the user is acquired.
2. The server can acquire target identity information (such as identity card information) according to the identity recognition module and determine whether the target identity information is in a preset identity information set (such as a preset database for storing user identity information, a user table and the like); if yes, determining that the target user is a legal user; if not, the target user can be determined to be an illegal user.
3. If the target user is a legal user, the resource to be allocated, the current state of which is idle, can be inquired from the resource to be selected in the resource state table (such as a UWB tag table). And, the resource to be allocated with the resource identifier (e.g., tag number) at the head can be used as the target resource (e.g., UWB tag). The resource to be allocated with the highest electricity quantity or the electricity quantity higher than a preset threshold and less frequent use can also be taken as the target resource.
4. And creating a corresponding record in a resource allocation table (UWB tag worksheet) according to the target identity information and the resource identifier of the target resource, wherein the record comprises two fields of the target identity information and the resource identifier of the target resource. And, a column of the tag status corresponding to the target resource identifier in the resource allocation table is set to "used".
5. According to the target resource identification in the resource allocation table, target card slot information corresponding to the target resource can be determined, and a control message can be sent to the target card slot so that the target card slot pops up, and a user can take out the target resource from the target card slot.
According to the technical scheme of the embodiment of the invention, the identity information of the user is determined by processing the request identifier in the received resource acquisition request, when the identity information of the user is matched with the preset identity information, the target resource can be determined from all the resources to be allocated and allocated to the target user, so that the dynamic allocation of the resource is realized, the resource can be reused, the technical problem that in the prior art, a part of resource is used by a person, and a special charging area is provided for charging the target resource, so that the resource cost is higher is solved, the uniform management of the resource is realized, the same resource can be reused, the utilization rate of the resource is improved, the management efficiency is improved, and the technical effect of reducing the cost is achieved.
EXAMPLE five
As an optional embodiment of the foregoing embodiments, fig. 5 is a schematic diagram of a dynamic unbundling of a UWB tag according to a fifth embodiment of the present invention, and on the basis of the foregoing embodiments, in this embodiment, reference may be made to the technical solution of this embodiment for a specific implementation of unbundling of a UWB tag and a user. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 5, the method of this embodiment specifically includes the following steps:
1. if the resource needs to be replaced, the resource to be replaced can be placed in a resource identification area (such as a UWB reader on a UWB tag charging cabinet). The card reader, optionally, the resource identification device, or the identity identification device identifies the resource to be replaced (e.g., the UWB tag to be returned), and obtains the identifier of the resource to be replaced (e.g., the tag number of the UWB).
2. And inquiring in the resource allocation table according to the resource identifier to be put back, taking the inquired record corresponding to the resource identifier to be put back as the resource record to be deleted, and deleting the resource record to be deleted.
3. And updating the label state in the resource state table from 'used' to 'idle' or 'charging' according to the resource identifier to be put back.
4. At this moment, can pop out and place the draw-in groove of waiting to put back the resource, the user can the resource put back to the draw-in groove to the suggestion user returns and waits to put back the resource, for example: "please insert UWB tag to be returned" is displayed on the screen.
5. After the return of the resources to be put back is detected, the success of the return of the resources can be prompted. For example: and after detecting that the UWB tag to be returned is inserted into the preset position, displaying the information of successful card returning on the display screen.
According to the technical scheme of the embodiment, the resources to be replaced are identified in the resource identification area, and the resources to be replaced can be registered, so that the real-time performance and the accuracy of records in the resource allocation table and the resource state table are ensured. The resources to be put back can be recovered, the problems that distributed resources are difficult to recover in the prior art and the resource management efficiency is low are solved, the resources are recovered, the use cost of the resources can be reduced, and the resource management efficiency can be improved.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a resource distribution cabinet according to a sixth embodiment of the present invention. As shown in fig. 6, the resource distribution cabinet 60 includes: a resource temporary storage area 601 and an identification area 602.
The temporary resource storage area 601 includes a plurality of temporary resource storage slots 603. The recognition area 602 includes a recognition device 604 and a target area 605.
Specifically, each resource temporary storage card slot 603 in the resource temporary storage area 601 may store one resource, and the resource temporary storage card slot is a pop-up card slot. The recognition means 604 in the recognition area 602 may be means for recognizing a target object, for example: identity card readers, card readers for industry cards, and/or UWB tag readers, among others. The target area 605 in the recognition area 602 is used for placing a target object so that the recognition means 604 can recognize the target object.
Fig. 7 is a schematic structural diagram of a resource distribution cabinet according to a sixth embodiment of the present invention. The resource distribution methods provided by the above embodiments can be integrated on the resource distribution cabinet provided by the present embodiment. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 7, the resource distributor 60 cabinet includes: an identity information recognition module 610, a resource distribution module 620, a control module 630, and a resource ejection module 640.
And the identity information identification module 610 is arranged on the resource distribution cabinet and is used for identifying the target object placed in the target area and generating a resource acquisition request or a resource replacement request based on the identified target object.
Wherein the target area may be an area where the target object is recognized. A sensor or a recognition device or the like may be provided in the target area to perform sensing and recognition of the target object in the area.
Specifically, the identity information identifying module 610 is disposed on the resource distribution cabinet. Whether a target object is placed in the target area can be detected, and if yes, the target object can be sensed and identified. If the target object is an object carrying identity information, such as an identity card, a work card, or a face, the identity information recognition module 610 may obtain target identity information corresponding to the target object, and generate a resource obtaining request based on the target identity information. If the target object is a resource to be put back, the identity information identification module 610 may obtain a resource identifier to be put back corresponding to the resource to be put back, and generate a resource put-back request based on the resource identifier to be put back.
The resource distribution module 620 is configured to receive a resource acquisition request or a resource replacement request, and determine target resource information according to the request.
The target resource information may include a resource identifier corresponding to the target resource, and may also include location information of the target resource.
Specifically, the resource distribution module 620 may receive the resource obtaining request, and may verify the target identity information parsed from the resource obtaining request. When the verification is passed, a target resource can be determined from the at least one resource to be allocated. Further, target resource information corresponding to the target resource may be determined, and the target resource information may be sent to the control module 630. The resource distribution module 620 may further receive the resource release request, analyze the resource release request, determine target resource information corresponding to the resource release request, and send the target resource information to the control module 630.
The control module 630 receives the target resource information sent by the resource distribution module, and generates a distribution signal or a playback signal according to the target resource information.
Specifically, when the control module 630 receives the target resource information sent by the resource distribution module 620, it may generate a distribution signal or a put-back signal according to the target resource information, and send the distribution signal or the put-back signal to the resource pop-up module 640.
The resource popping module 640 is configured to receive the distribution signal or the replacement signal, determine a target location of the target resource from the resource temporary storage region according to the distribution signal or the replacement signal, and pop up the target resource temporary storage card slot located at the target location, so that the target user takes away or replaces the target resource from the target temporary storage card slot.
The resource temporary storage region comprises at least one resource temporary storage clamping groove, and the resource temporary storage clamping groove is used for storing resources to be allocated.
Specifically, when the resource popping module 640 receives the dispatch signal or the put-back signal sent by the control module 630, the dispatch signal or the put-back signal may be analyzed to obtain the target resource information in the signal, so as to determine the target position of the target resource from the resource temporary storage area according to the target resource information. And the target resource temporary storage card slot positioned at the target position can be popped out. And if the target user requests to acquire the resource, the target user can take the target resource from the target temporary storage card slot. If the target user requests to put back the resource, the target user can put the resource to be put back into the target temporary storage card slot.
It should be noted that the resources and the resource temporary storage card slots may be in one-to-one correspondence. Or the corresponding relation between the resource and the temporary resource storage card slot is established when the resource is put back, and the corresponding relation between the resource and the temporary resource storage card slot is deleted when the resource is taken away. If the resource is located in the temporary resource storage clamping groove, the resource can be charged.
According to the technical scheme of the embodiment of the invention, the identity information of the user is determined by processing the request identifier in the received resource acquisition request, when the identity information of the user is matched with the preset identity information, the target resource can be determined from all the resources to be allocated and allocated to the target user, so that the dynamic allocation of the resource is realized, the resource can be reused, the technical problem that in the prior art, a part of resource is used by a person, and a special charging area is provided for charging the target resource, so that the resource cost is higher is solved, the uniform management of the resource is realized, the same resource can be reused, the utilization rate of the resource is improved, the management efficiency is improved, and the technical effect of reducing the cost is achieved.
EXAMPLE seven
Fig. 8 is a schematic structural diagram of a resource distribution apparatus according to a seventh embodiment of the present invention, where the apparatus includes: identity information determination module 710, target resource determination module 720, and target resource allocation module 730.
The identity information determining module 710 is configured to determine target identity information of a target user according to a request identifier in a received resource acquisition request; a target resource determining module 720, configured to determine a target resource from at least one resource to be allocated if the target identity information matches identity information in a preset identity information set; the target resource allocation module 730 is configured to update the target resource and the target identity information to a pre-created resource allocation table, and allocate the target resource to the target user according to the updated record in the resource allocation table.
Optionally, the apparatus further comprises: and the resource acquisition request generating module is used for identifying a target object used for representing the user identity information in the preset area based on the identity identifying module and generating a resource acquisition request according to the identified target object.
Optionally, the identity information determining module 710 is specifically configured to, when receiving a resource obtaining request, extract a request identifier carried by the resource obtaining request; and determining the target identity information of the target user according to the request identifier.
Optionally, the target resource determining module 720 is specifically configured to determine a current state of each resource to be selected in the resource state table; the current state comprises an idle state and a charging state, the idle state is a state where the resource with the resource electric quantity residual quantity larger than or equal to a first preset threshold value is located, and the idle state is a state where the resource with the resource electric quantity residual quantity smaller than the first preset threshold value and in the charging state is located; determining resources to be allocated from the resources to be selected according to the current state; determining target resources according to the resource attributes of the resources to be distributed; wherein the resource attribute comprises resource usage frequency and/or resource usage duration.
Optionally, the target resource determining module 720 includes at least one of the following modes:
taking the resource to be selected with the current state being an idle state as the resource to be allocated;
and if the resources to be selected, the current state of which is the idle state, are empty, determining the resources to be allocated from the resources to be selected, the current state of which is the charging state and the charging amount of which is greater than or equal to the second threshold value.
Optionally, the apparatus further comprises: and the resource state table updating module is used for deleting the target resource from the resource state table or modifying the state corresponding to the target resource into the used state.
Optionally, the target resource allocation module 730 is specifically configured to update the resource identifier of the target resource and the target identity information as target fields into the resource allocation table; and when the updated record in the resource allocation table is detected, allocating the target resource corresponding to the target resource identifier to the target user.
Optionally, the apparatus further comprises: the resource replacing module is used for acquiring the identifier of the resource to be replaced when the resource replacing request is received; searching a resource record to be deleted which is consistent with the resource identifier to be put back from a pre-established resource allocation table, and deleting the resource record to be deleted; and updating the resource association information of the resource to be replaced into a resource state table, determining the resource state of the resource to be replaced according to the residual electric quantity of the resource to be replaced, and determining a target resource matched with the resource acquisition request according to the resource state when the resource acquisition request is received.
Optionally, the resource is a UWB positioning tag.
Optionally, the apparatus further comprises: and the positioning module is used for determining the position information of the target user corresponding to the target resource based on the target resource.
According to the technical scheme of the embodiment of the invention, the identity information of the user is determined by processing the request identifier in the received resource acquisition request, when the identity information of the user is matched with the preset identity information, the target resource can be determined from all the resources to be allocated and allocated to the target user, so that the dynamic allocation of the resource is realized, the resource can be reused, the technical problem that in the prior art, a part of resource is used by a person, and a special charging area is provided for charging the target resource, so that the resource cost is higher is solved, the uniform management of the resource is realized, the same resource can be reused, the utilization rate of the resource is improved, the management efficiency is improved, and the technical effect of reducing the cost is achieved.
The resource distribution device provided by the embodiment of the invention can execute the resource distribution method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the system are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example eight
Fig. 9 is a schematic structural diagram of an electronic device according to an eighth embodiment of the present invention. FIG. 9 illustrates a block diagram of an exemplary electronic device 80 suitable for use in implementing embodiments of the present invention. The electronic device 80 shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 9, the electronic device 80 is in the form of a general purpose computing device. The components of the electronic device 80 may include, but are not limited to: one or more processors or processing units 801, a system memory 802, and a bus 803 that couples various system components including the system memory 802 and the processing unit 801.
Bus 803 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The electronic device 80 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 80 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 802 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)804 and/or cache memory 805. The electronic device 80 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 806 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 803 by one or more data media interfaces. Memory 802 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 808 having a set (at least one) of program modules 807 may be stored, for instance, in memory 802, such program modules 807 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 807 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The electronic device 80 may also communicate with one or more external devices 809 (e.g., keyboard, pointing device, display 810, etc.), with one or more devices that enable a user to interact with the electronic device 80, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 80 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 811. Also, the electronic device 80 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 812. As shown, the network adapter 812 communicates with the other modules of the electronic device 80 over the bus 803. It should be appreciated that although not shown in FIG. 9, other hardware and/or software modules may be used in conjunction with electronic device 80, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 801 executes various functional applications and data processing by running a program stored in the system memory 802, for example, to implement the resource distribution method provided by the embodiment of the present invention.
Example nine
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for managing a storage chip, and the method includes:
determining target identity information of a target user according to a request identifier in a received resource acquisition request;
if the target identity information is matched with the identity information in the preset identity information set, determining a target resource from at least one resource to be allocated; wherein, the at least one resource to be allocated is a resource recovered after the user resource is used;
and updating the target resource and the target identity information to a pre-established resource allocation table, and allocating the target resource to the target user according to the updated record in the resource allocation table.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A method for resource distribution, comprising:
determining target identity information of a target user according to a request identifier in a received resource acquisition request;
if the target identity information is matched with the identity information in the preset identity information set, determining a target resource from at least one resource to be allocated; wherein, the at least one resource to be allocated is a resource recovered after the user resource is used;
and updating the target resource and the target identity information to a pre-established resource allocation table, and allocating the target resource to the target user according to the updated record in the resource allocation table.
2. The method according to claim 1, before determining the target identity information of the target user according to the request identifier in the received resource acquisition request, further comprising:
and identifying a target object used for representing user identity information in a preset area based on an identity identification module, and generating a resource acquisition request according to the identified target object.
3. The method according to claim 1, wherein the determining the target identity information of the target user according to the request identifier in the received resource acquisition request comprises:
when a resource acquisition request is received, extracting a request identifier carried by the resource acquisition request;
and determining the target identity information of the target user according to the request identifier.
4. The method of claim 1, wherein the determining the target resource from the at least one resource to be allocated comprises:
determining the current state of each resource to be selected in the resource state table; the current state comprises an idle state and a charging state, the idle state is a state where the resource with the resource electric quantity residual quantity larger than or equal to a first preset threshold value is located, and the idle state is a state where the resource with the resource electric quantity residual quantity smaller than the first preset threshold value and in the charging state is located;
determining resources to be allocated from the resources to be selected according to the current state;
determining target resources according to the resource attributes of the resources to be distributed; wherein the resource attribute comprises resource usage frequency and/or resource usage duration.
5. The method according to claim 4, wherein the determining resources to be allocated from the resources to be selected according to the current state includes at least one of:
taking the resource to be selected with the current state being an idle state as the resource to be allocated;
and if the resources to be selected, the current state of which is the idle state, are empty, determining the resources to be allocated from the resources to be selected, the current state of which is the charging state and the charging amount of which is greater than or equal to the second threshold value.
6. The method according to claim 4, further comprising, after said determining the target resource from the at least one resource to be allocated:
and deleting the target resource from the resource state table or modifying the state corresponding to the target resource into the used state.
7. The method of claim 1, wherein the updating the target resource and the target identity information to a pre-created resource allocation table and allocating the target resource to the target user according to the updated record in the resource allocation table comprises:
updating the resource identifier of the target resource and the target identity information into the resource allocation table as target fields;
and when the updated record in the resource allocation table is detected, allocating the target resource corresponding to the target resource identifier to the target user.
8. The method of claim 1, further comprising:
when a resource replacing request is received, acquiring a resource identifier to be replaced of the resource to be replaced;
searching a resource record to be deleted which is consistent with the resource identifier to be put back from a pre-established resource allocation table, and deleting the resource record to be deleted;
and updating the resource association information of the resource to be replaced into a resource state table, determining the resource state of the resource to be replaced according to the residual electric quantity of the resource to be replaced, and determining a target resource matched with the resource acquisition request according to the resource state when the resource acquisition request is received.
9. The method of any of claims 1-8, wherein the resource is a UWB positioning tag.
10. The method of claim 9, further comprising:
and determining the position information of the target user corresponding to the target resource based on the target resource.
11. A resource distribution apparatus, comprising:
the identity information determining module is used for determining target identity information of a target user according to a request identifier in the received resource acquisition request;
the target resource determining module is used for determining a target resource from at least one resource to be allocated if the target identity information is matched with the identity information in a preset identity information set;
and the target resource allocation module is used for updating the target resources and the target identity information into a pre-established resource allocation table and allocating the target resources to the target users according to the updated records in the resource allocation table.
12. A resource distribution cabinet, comprising:
the identity information identification module is arranged on the resource distribution cabinet and used for identifying the target object placed in the target area and generating a resource acquisition request or a resource release request based on the identified target object;
the resource distribution module is used for receiving a resource acquisition request or a resource release request and determining target resource information according to the request;
the control module receives the target resource information sent by the resource distribution module and generates a distribution signal or a playback signal according to the target resource information;
the resource popping module is used for receiving the distribution signal or the replacement signal, determining a target position of the target resource from the resource temporary storage area according to the distribution signal or the replacement signal, and popping a target resource temporary storage clamping slot at the target position so as to enable a target user to take away or replace the target resource from the target temporary storage clamping slot;
the resource temporary storage region comprises at least one resource temporary storage clamping groove, and the resource temporary storage clamping groove is used for storing resources to be allocated.
13. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the resource distribution method of any one of claims 1-10.
14. A storage medium containing computer-executable instructions for performing the resource distribution method of any one of claims 1-10 when executed by a computer processor.
CN202110194334.7A 2021-02-20 2021-02-20 Resource distribution method, device, cabinet, electronic equipment and storage medium Pending CN112967454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110194334.7A CN112967454A (en) 2021-02-20 2021-02-20 Resource distribution method, device, cabinet, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110194334.7A CN112967454A (en) 2021-02-20 2021-02-20 Resource distribution method, device, cabinet, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112967454A true CN112967454A (en) 2021-06-15

Family

ID=76285326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110194334.7A Pending CN112967454A (en) 2021-02-20 2021-02-20 Resource distribution method, device, cabinet, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112967454A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113573027A (en) * 2021-08-13 2021-10-29 北京飞讯数码科技有限公司 Resource sequencing display method, device, equipment and medium in command terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563840A (en) * 2017-07-31 2018-01-09 北京三快在线科技有限公司 Portable power source leasing method, system, electronic equipment and readable storage medium storing program for executing
CN108806103A (en) * 2018-08-21 2018-11-13 深圳来电科技有限公司 Mobile power rent method and mobile power leased machine
CN109087462A (en) * 2018-08-02 2018-12-25 深圳讯丰通医疗股份有限公司 A kind of control system and method for shared Medical cabinet
CN109146255A (en) * 2018-07-26 2019-01-04 蔚来汽车有限公司 Dispatching method, system, dispatch server and the equipment of mobile charging treasured
CN109472675A (en) * 2018-11-29 2019-03-15 阿里巴巴集团控股有限公司 Processing method, device, system and the equipment of charter business
CN109670723A (en) * 2018-12-29 2019-04-23 唐山市智明电子科技有限公司 A kind of intelligence tool management system and method
CN112102567A (en) * 2020-09-23 2020-12-18 深圳街电科技有限公司 Leasing method of mobile power supply, mobile terminal and leasing equipment
CN112380507A (en) * 2020-11-11 2021-02-19 岭东核电有限公司 Method and system for borrowing mobile working terminal of nuclear power station based on work card verification

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563840A (en) * 2017-07-31 2018-01-09 北京三快在线科技有限公司 Portable power source leasing method, system, electronic equipment and readable storage medium storing program for executing
CN109146255A (en) * 2018-07-26 2019-01-04 蔚来汽车有限公司 Dispatching method, system, dispatch server and the equipment of mobile charging treasured
CN109087462A (en) * 2018-08-02 2018-12-25 深圳讯丰通医疗股份有限公司 A kind of control system and method for shared Medical cabinet
CN108806103A (en) * 2018-08-21 2018-11-13 深圳来电科技有限公司 Mobile power rent method and mobile power leased machine
CN109472675A (en) * 2018-11-29 2019-03-15 阿里巴巴集团控股有限公司 Processing method, device, system and the equipment of charter business
CN109670723A (en) * 2018-12-29 2019-04-23 唐山市智明电子科技有限公司 A kind of intelligence tool management system and method
CN112102567A (en) * 2020-09-23 2020-12-18 深圳街电科技有限公司 Leasing method of mobile power supply, mobile terminal and leasing equipment
CN112380507A (en) * 2020-11-11 2021-02-19 岭东核电有限公司 Method and system for borrowing mobile working terminal of nuclear power station based on work card verification

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113573027A (en) * 2021-08-13 2021-10-29 北京飞讯数码科技有限公司 Resource sequencing display method, device, equipment and medium in command terminal

Similar Documents

Publication Publication Date Title
CN107506145B (en) Physical storage scheduling method and cloud host creation method
CN111061752B (en) Data processing method and device and electronic equipment
CN109583222A (en) Distributed file system metadata service device recycles client jurisdiction method and device
US20100106436A1 (en) Power consumption calculation facility
CN116755891B (en) Event queue processing method and system based on multithreading
CN112631731A (en) Data query method and device, electronic equipment and storage medium
CN112162976A (en) Data reconciliation method, device, equipment and storage medium
CN112967454A (en) Resource distribution method, device, cabinet, electronic equipment and storage medium
CN113315160B (en) Load scheduling method, device, equipment and storage medium of energy storage equipment
CN108520401B (en) User list management method, device, platform and storage medium
CN113268478A (en) Big data analysis method and device, electronic equipment and storage medium
CN110543432B (en) Memory defragmentation method, device, terminal and storage medium
CN114201466B (en) Anti-cache breakdown method, device, equipment and readable storage medium
CN113297617A (en) Authority data acquisition method and device, computer equipment and storage medium
CN115731559A (en) Electronic file generation management method and device and computer equipment
CN115016890A (en) Virtual machine resource allocation method and device, electronic equipment and storage medium
CN115378806A (en) Flow distribution method and device, computer equipment and storage medium
CN109460511B (en) Method and device for acquiring user portrait, electronic equipment and storage medium
CN112685371A (en) File storage space distribution method and device based on big data and storage medium
CN104426900B (en) multimedia data acquisition method and system
CN112669025B (en) Data resource supply charging method, device, medium and terminal equipment
CN113360454B (en) Memory snapshot file compression and decompression method and related device
CN114860390B (en) Container data management method, device, program product, medium and electronic equipment
CN110134691B (en) Data verification method, device, equipment and medium
CN109447386B (en) Work assessment method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210615