CN112330854A - Charging cabinet opening method, server and computer readable storage medium - Google Patents

Charging cabinet opening method, server and computer readable storage medium Download PDF

Info

Publication number
CN112330854A
CN112330854A CN202011021127.3A CN202011021127A CN112330854A CN 112330854 A CN112330854 A CN 112330854A CN 202011021127 A CN202011021127 A CN 202011021127A CN 112330854 A CN112330854 A CN 112330854A
Authority
CN
China
Prior art keywords
unpacking
charging cabinet
instruction
sending
charging
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.)
Granted
Application number
CN202011021127.3A
Other languages
Chinese (zh)
Other versions
CN112330854B (en
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.)
Shenzhen Zhilai Science and Technology Co Ltd
Original Assignee
Shenzhen Zhilai Science and 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 Shenzhen Zhilai Science and Technology Co Ltd filed Critical Shenzhen Zhilai Science and Technology Co Ltd
Priority to CN202011021127.3A priority Critical patent/CN112330854B/en
Publication of CN112330854A publication Critical patent/CN112330854A/en
Application granted granted Critical
Publication of CN112330854B publication Critical patent/CN112330854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S30/00Systems supporting specific end-user applications in the sector of transportation
    • Y04S30/10Systems supporting the interoperability of electric or hybrid vehicles
    • Y04S30/12Remote or cooperative charging

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a method for opening a charging cabinet, which comprises the following steps: after a plurality of unpacking instructions are stored in a storage area corresponding to a charging cabinet, setting a sending interval duration for each unpacking instruction, wherein the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result of the charging cabinet is less than the interval duration; and sending the box opening instruction to the charging cabinet at intervals of the interval duration. The invention also provides a server and a computer readable storage medium. The invention avoids the problem that the server cannot accurately obtain the unpacking result corresponding to the unpacking instruction.

Description

Charging cabinet opening method, server and computer readable storage medium
Technical Field
The invention relates to the technical field of charging cabinets, in particular to a method for opening a charging cabinet, a server and a computer readable storage medium.
Background
Along with the development of economy and the improvement of resident consumption level, the electric motor car is gradually popularized, becomes one of indispensable vehicles of trip, and it is also more and more extensive to use the charging cabinet to carry out the mode of charging to the electric motor car.
At present, the charging cabinet on the market mainly has two types, namely a single-chip microcomputer type charging cabinet and an android type charging cabinet. The android has the advantages that the android can be flexibly operated on an interface, the computing performance is high, a large amount of information can be simultaneously processed in a concurrent mode, and the single chip microcomputer has the advantages of small size, low power consumption, low price and low cost. When the large-batch operation is deployed, the singlechip version is preferred.
Although the single-chip microcomputer is cheap, the processing performance of the single-core single-chip microcomputer is far lower than that of an android machine, the processing data can be processed by only one thread, and simultaneous processing of multiple threads is difficult.
The charging cabinet includes a plurality of charging ports, each charging port having a corresponding door. The user is renting the mouth that charges when charging at needs, and the chamber door is opened to the cabinet that needs to charge for the mouth that charges that exposes charges and charges the storage battery car.
And under the condition of ensuring that the network state of the single-chip microcomputer charging cabinet is on line, a large number of users apply for renting the charging port for charging, so that the charging cabinet can receive a large number of unpacking instructions sent by the server in a short time. When the charging cabinet receives the unpacking instruction, the unpacking is required to be carried out firstly, and then the unpacking result is reported to the server. However, the charging cabinet cannot execute a plurality of instruction information at the same time, so that the unpacking result reported by the charging cabinet cannot correspond to the unpacking instruction, and the server cannot accurately obtain the unpacking result corresponding to the unpacking instruction.
Disclosure of Invention
The invention mainly aims to provide a method for opening a box of a charging cabinet, a server and a computer readable storage medium, and aims to solve the problem that the server cannot accurately obtain a box opening result corresponding to a box opening instruction.
In order to achieve the above object, the present invention provides a method for opening a charging cabinet, including the following steps:
after a plurality of unpacking instructions are stored in a storage area corresponding to a charging cabinet, setting a sending interval duration for each unpacking instruction, wherein the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result of the charging cabinet is less than the interval duration;
and sending the box opening instruction to the charging cabinet at intervals of the interval duration.
In one embodiment, the step of sending the unpacking command to the charging cabinet every interval of the interval duration comprises:
sending the box opening instruction in the storage area to the charging cabinet;
receiving a box opening result sent by the charging cabinet;
deleting the unpacking instruction corresponding to the unpacking result when the unpacking result is successful;
and when the time length between the time point of sending the box opening instruction and the current time point reaches the interval time length, returning to execute the step of sending the box opening instruction in the storage area to the charging cabinet.
In an embodiment, before the step of receiving the unpacking result sent by the charging cabinet, the method further includes:
when the unpacking result is unpacking failure, resending the unpacking instruction corresponding to the unpacking result to the charging cabinet;
and returning to execute the step of receiving the unpacking result sent by the charging cabinet.
In an embodiment, after the step of receiving the unpacking result sent by the charging cabinet, the method further includes:
when the unpacking result is unpacking failure, acquiring the sending times of the unpacking instruction corresponding to the unpacking result;
and when the sending times do not reach the preset times, the unpacking instruction corresponding to the unpacking result is sent to the charging cabinet again, the sending times are updated, and the step of receiving the unpacking result sent by the charging cabinet is returned to be executed.
And when the frequency reaches a preset frequency, deleting the unpacking instruction corresponding to the unpacking result, and returning to execute the step of sending the unpacking instruction in the storage region to the charging cabinet when the time length between the time point of sending the unpacking instruction and the current time point reaches the interval time length.
In an embodiment, the step of setting the interval duration of transmission for each unpacking instruction includes:
setting a sending queue, and adding each unpacking instruction to the sending queue;
and setting the interval duration of the box opening instruction sent to the charging cabinet by the sending queue.
In an embodiment, before the step of setting a sending interval duration for each unpacking instruction when it is detected that the storage area corresponding to the charging cabinet includes a plurality of unpacking instructions, the method further includes:
when a charging request is received, determining a charging port of a charging cabinet corresponding to the charging request;
and generating a box opening instruction corresponding to the charging port, and storing the box opening instruction to a storage area corresponding to the charging cabinet.
In an embodiment, after the step of storing the box opening instruction in the storage area corresponding to the charging cabinet, the method further includes:
detecting whether a storage area corresponding to the charging cabinet stores a plurality of box opening instructions or not;
when a storage area corresponding to the charging cabinet is detected to store a plurality of box opening instructions, executing the step of setting the interval duration of sending each box opening instruction;
and when a storage area corresponding to the charging cabinet stores an unpacking instruction, sending the unpacking instruction to the charging cabinet.
In an embodiment, when it is detected that a storage area corresponding to the charging cabinet stores a plurality of unpacking instructions, the step of setting a sending interval duration for each unpacking instruction includes:
acquiring an equipment identifier of a charging cabinet, and configuring a storage area corresponding to the charging cabinet;
associating the device identification with the storage area.
In order to achieve the above object, the present invention further provides a server, which includes a memory, a processor, and an unpacking program stored in the memory and executable on the processor, wherein the unpacking program, when executed by the processor, implements the steps of the unpacking method for a charging cabinet as described above.
To achieve the above object, the present invention provides a computer-readable storage medium including a box opening program, which when executed by a processor, implements the steps of the method for opening a charging cabinet as described above.
According to the method for opening the box of the charging cabinet, the server and the computer readable storage medium, after the server detects that a plurality of box opening instructions are stored in a storage area corresponding to the charging cabinet, the server sets a sending interval duration for each box opening instruction, the sum of the box opening duration of the charging cabinet and the reporting duration of the box opening result is smaller than the interval duration, and the server sends the box opening instructions to the charging cabinet at intervals of preset duration. The server sets the sending interval duration for the unpacking instructions, and the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking results is smaller than the interval duration, so that the server can receive the unpacking results corresponding to the unpacking instructions within the interval duration after sending the unpacking instructions to the charging cabinet, that is, the server sends the next unpacking instruction after knowing the unpacking results corresponding to the currently sent unpacking instructions, and the server is prevented from being incapable of accurately obtaining the unpacking results corresponding to the unpacking instructions.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a charging cabinet according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of the method for opening the charging cabinet according to the present invention;
fig. 3 is a detailed flowchart of a second embodiment of the method for opening the charging cabinet according to the present invention;
fig. 4 is a detailed flowchart of a third embodiment of the method for opening the charging cabinet according to the present invention;
fig. 5 is a detailed flowchart of a fourth embodiment of the method for opening the charging cabinet according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The main solution of the embodiment of the invention is as follows: after a plurality of unpacking instructions are stored in a storage area corresponding to a charging cabinet, setting a sending interval duration for each unpacking instruction, wherein the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result of the charging cabinet is less than the interval duration; and sending the box opening instruction to the charging cabinet at intervals of the interval duration.
The server sets the sending interval duration for the unpacking instructions, and the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking results is smaller than the interval duration, so that the server can receive the unpacking results corresponding to the unpacking instructions within the interval duration after sending the unpacking instructions to the charging cabinet, that is, the server sends the next unpacking instruction after knowing the unpacking results corresponding to the currently sent unpacking instructions, and the server is prevented from being incapable of accurately obtaining the unpacking results corresponding to the unpacking instructions.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware structure of an intelligent express delivery cabinet according to an embodiment of the present invention.
As shown in fig. 1, an embodiment of the present invention relates to a charging cabinet, and the charging cabinet may include: a processor 101, e.g. a CPU, a communication bus 102, a memory 103. Wherein the communication bus 102 is used for enabling connection communication between these components. The memory 103 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 103 may alternatively be a storage device separate from the aforementioned processor 101. Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the charging cabinet and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 103, which is a kind of computer storage medium, may include therein an unpacking program.
In the apparatus shown in fig. 1, the processor 101 may be configured to call an unpacking program stored in the memory 103 and perform the following operations:
after a plurality of unpacking instructions are stored in a storage area corresponding to a charging cabinet, setting a sending interval duration for each unpacking instruction, wherein the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result of the charging cabinet is less than the interval duration;
and sending the box opening instruction to the charging cabinet at intervals of the interval duration.
In one embodiment, the processor 101 may call an unpacking program stored in the memory 103, and further perform the following operations:
sending the box opening instruction in the storage area to the charging cabinet;
receiving a box opening result sent by the charging cabinet;
deleting the unpacking instruction corresponding to the unpacking result when the unpacking result is successful;
and when the time length between the time point of sending the box opening instruction and the current time point reaches the interval time length, returning to execute the step of sending the box opening instruction in the storage area to the charging cabinet.
In one embodiment, the processor 101 may call an unpacking program stored in the memory 103, and further perform the following operations:
when the unpacking result is unpacking failure, resending the unpacking instruction corresponding to the unpacking result to the charging cabinet;
and returning to execute the step of receiving the unpacking result sent by the charging cabinet.
In one embodiment, the processor 101 may call an unpacking program stored in the memory 103, and further perform the following operations:
when the unpacking result is unpacking failure, acquiring the sending times of the unpacking instruction corresponding to the unpacking result;
and when the sending times do not reach the preset times, the unpacking instruction corresponding to the unpacking result is sent to the charging cabinet again, the sending times are updated, and the step of receiving the unpacking result sent by the charging cabinet is returned to be executed.
And when the frequency reaches a preset frequency, deleting the unpacking instruction corresponding to the unpacking result, and returning to execute the step of sending the unpacking instruction in the storage region to the charging cabinet when the time length between the time point of sending the unpacking instruction and the current time point reaches the interval time length.
In one embodiment, the processor 101 may call an unpacking program stored in the memory 103, and further perform the following operations:
setting a sending queue, and adding each unpacking instruction to the sending queue;
and setting the interval duration of the box opening instruction sent to the charging cabinet by the sending queue.
In one embodiment, the processor 101 may call an unpacking program stored in the memory 103, and further perform the following operations:
when a charging request is received, determining a charging port of a charging cabinet corresponding to the charging request;
and generating a box opening instruction corresponding to the charging port, and storing the box opening instruction to a storage area corresponding to the charging cabinet.
In one embodiment, the processor 101 may call an unpacking program stored in the memory 103, and further perform the following operations:
detecting whether a storage area corresponding to the charging cabinet stores a plurality of box opening instructions or not;
when a storage area corresponding to the charging cabinet is detected to store a plurality of box opening instructions, executing the step of setting the interval duration of sending each box opening instruction;
and when a storage area corresponding to the charging cabinet stores an unpacking instruction, sending the unpacking instruction to the charging cabinet.
In one embodiment, the processor 101 may call an unpacking program stored in the memory 103, and further perform the following operations:
acquiring an equipment identifier of a charging cabinet, and configuring a storage area corresponding to the charging cabinet;
associating the device identification with the storage area.
According to the scheme, after the server detects that a plurality of unpacking instructions are stored in the storage area corresponding to the charging cabinet, the server sets the sending interval duration for each unpacking instruction, the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result is less than the interval duration, and the server sends the unpacking instruction to the charging cabinet at preset intervals. The server sets the sending interval duration for the unpacking instructions, and the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking results is smaller than the interval duration, so that the server can receive the unpacking results corresponding to the unpacking instructions within the interval duration after sending the unpacking instructions to the charging cabinet, that is, the server sends the next unpacking instruction after knowing the unpacking results corresponding to the currently sent unpacking instructions, and the server is prevented from being incapable of accurately obtaining the unpacking results corresponding to the unpacking instructions.
Based on the hardware architecture of the charging cabinet, the embodiment of the opening method of the charging cabinet is provided.
Referring to fig. 2, fig. 2 is a first embodiment of a method for opening a charging cabinet according to the present invention, the method for opening a charging cabinet includes the following steps:
step S10, after a plurality of unpacking instructions are stored in a storage area corresponding to a charging cabinet, setting a sending interval duration for each unpacking instruction, wherein the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result of the charging cabinet is less than the interval duration;
in this embodiment, the execution subject is a server. The server can configure initialization information for the charging cabinet, wherein the initialization information comprises cabinet information and site information. The cabinet information includes the sub-column number and the row number of the middle cabinet of the charging cabinet, each cabinet is provided with a cabinet door, and the charging cabinet exposes the charging port in the cabinet through the cabinet door of the opened cabinet to charge the electric vehicle. The cabinet information further includes the number of cabinets in each row and the number of cabinets in each column, and includes the type of charging port in each cabinet, and further includes the number of each cabinet. Numbered, e.g., 34 (third row, fourth column). The station information is the position of the charging cabinet. The server configures the equipment number of the charging cabinet according to the site information, and the equipment number can be regarded as the equipment identifier of the charging cabinet. And the server stores the equipment identifier, the cabinet information and the site information in an associated manner, configures a corresponding storage area for the charging cabinet, and associates the equipment identifier with the storage area. Specifically, the server includes a plurality of storage areas, each storage area may be configured with a corresponding number, and when the server associates the device identifier with the storage area, a mapping relationship table may be established, where the device identifier and the number corresponding to the storage area are stored in the table, and the following table may be specifically used:
Figure BDA0002699470190000071
Figure BDA0002699470190000081
the device identifier 0001 is associated with the storage area a, the device identifier 0002 is associated with the storage area B, and the device identifier 0003 is associated with the storage area C.
And the server issues the equipment number to the charging cabinet, so that the charging cabinet stores the equipment number as the equipment identifier. In addition, the server sends the equipment identification, the site information and the cabinet information to a cloud database for storage, and the cloud database can be regarded as a cloud server. It can be understood that the server divides the storage area of the server into a plurality of storage areas, and the server associates the device identifier corresponding to the charging cabinet for the divided storage areas.
The server needs to maintain a communication connection with the charging cabinet. Specifically, the charging cabinet acquires the equipment identifier, generates a login request according to the equipment identifier, and sends the login request to the server. And the server receives the login request, creates a network connection number sessionId for the charging cabinet and feeds the network connection number sessionId back to the charging cabinet. After receiving the sessionId fed back by the server, the charging cabinet initiates a heartbeat request to the server at intervals, wherein the heartbeat content of the heartbeat request is the sessionId, and the sessionId is used for informing the server that the network connection is normal and generating and pushing a box opening instruction. If the heartbeat request of the charging cabinet fails, the login request and the heartbeat request are initiated again to try to connect again. The server can store the network normal state of the charging cabinet, so that the server can inquire the network state of the charging cabinet conveniently.
The charging cabinet is provided with the charging two-dimensional code, and a terminal of a user can send a charging request to the server after scanning the charging two-dimensional code. Specifically, the charging cabinet is provided with a plurality of cabinet doors, each cabinet door is provided with a corresponding serial number, the terminal scans the charging two-dimensional code and then sends a selection interface to the terminal, the selection interface comprises the serial numbers of the cabinet doors of the charging cabinet, and a user selects the cabinet door of the cabinet to be opened on the selection interface. After the user selects the number of the cabinet door, the terminal generates a charging request according to the number and the equipment identifier of the charging cabinet, and sends the charging request to the server. And the server generates a box opening instruction according to the charging request and stores the box opening instruction to a storage area corresponding to the charging cabinet.
After a plurality of box opening instructions are stored in the storage area, it can be determined that a plurality of users request the charging cabinet to charge in the time period of the current time point. At this time, the server sets the interval duration of transmission for each unpacking instruction. The server of the interval duration indicator sends the interval duration between two box opening instructions to the charging cabinet. It should be noted that the sum of the time length of opening the charging cabinet and the time length of reporting the result of opening the charging cabinet is less than the interval time length. The unpacking time duration refers to the time duration between the time when the charging cabinet receives the unpacking instruction and the time when the box door is opened, and the time duration is the experience time duration, but the unpacking time duration may be slightly longer than the experience time duration. The reporting time length of the unpacking result refers to the time length from the time point when the unpacking result is expected to be generated by the charging cabinet to the time point when the unpacking result is uploaded to the server. The time point at which the case opening result is expected to be generated is the end time point of opening the door of the case.
And step S20, sending the unpacking command to the charging cabinet at intervals of the interval duration.
After the interval duration is set, the server can send the unpacking instructions to the charging cabinet one by one at the interval duration set at each interval. Due to the fact that the sending interval duration is greater than or equal to the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result of the charging cabinet, the server can receive the unpacking result corresponding to the unpacking instruction after sending one unpacking instruction, and then sends the next unpacking instruction again, and the process is circulated, so that the server can know the unpacking result of each unpacking instruction. The unpacking result comprises unpacking success and unpacking failure. In addition, the server can send the unpacking result, the charging port corresponding to the unpacking result and the charging cabinet to the cloud database after receiving the unpacking result, and when the user inquires the unpacking result through the terminal, the server obtains the unpacking result from the cloud database and feeds the unpacking result back to the terminal, so that the user can know the unpacking result.
It should be noted that, in this embodiment, the single chip of the charging cabinet is single-core or dual-core, that is, the charging cabinet cannot simultaneously execute the opening of the box doors corresponding to the multiple box opening instructions and report the box opening result. However, the scheme of the embodiment can also be applied to a charging cabinet with a three-core, four-core or more than four-core single chip microcomputer so as to save the computing resources of the charging cabinet.
In the technical scheme provided by this embodiment, after detecting that a storage area corresponding to the charging cabinet stores a plurality of unpacking instructions, the server sets a sending interval duration for each unpacking instruction, the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result is less than the interval duration, and then sends the unpacking instruction to the charging cabinet at intervals of the preset duration. The server sets the sending interval duration for the unpacking instructions, and the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking results is smaller than the interval duration, so that the server can receive the unpacking results corresponding to the unpacking instructions within the interval duration after sending the unpacking instructions to the charging cabinet, that is, the server sends the next unpacking instruction after knowing the unpacking results corresponding to the currently sent unpacking instructions, and the server is prevented from being incapable of accurately obtaining the unpacking results corresponding to the unpacking instructions.
Referring to fig. 3, fig. 3 is a second embodiment of the opening method of the charging cabinet according to the present invention, and based on the first embodiment, the step S20 includes:
step S21, sending the unpacking instruction in the storage area to the charging cabinet;
step S22, receiving the unpacking result sent by the charging cabinet;
step S23, deleting the unpacking instruction corresponding to the unpacking result when the unpacking result is successful;
in this embodiment, the server performs temporal sorting on each unpacking instruction when the interval duration is set. The sorting means that sorting is performed from the morning to the evening according to the generation time of the unpacking command, and the earlier the generation time is, the earlier the unpacking command is sent to the charging cabinet. The server extracts the unpacking instruction with the earliest generation time and then sends the unpacking instruction to the charging cabinet.
After the charging cabinet receives the box opening instruction, the box opening instruction is analyzed to obtain a box door of which the box opening instruction requests to open the box, and the box door is opened by the charging cabinet. After the charging cabinet receives the unpacking command and presets the time length, the unpacking result can be obtained. Specifically, the cabinet that charges can set up photoelectric sensor in the cupboard, if photoelectric sensor senses light, photoelectric sensor can send signal to the singlechip of the cabinet that charges. Therefore, after the charging cabinet receives the unpacking command for the preset time, whether the signals sent by the photoelectric sensor are received or not is detected, if the signals are not received, the unpacking result is that the unpacking fails, and if the signals sent by the photoelectric sensor are received, the unpacking result is that the unpacking succeeds. And the charging cabinet sends the unpacking result to the server. The server analyzes the unpacking result after receiving the unpacking result, and if the analyzed unpacking result is successful, the unpacking instruction corresponding to the unpacking result is deleted in the storage area, so that the server is prevented from sending the unpacking instruction to the charging cabinet for multiple times.
And step S24, the time length between the time point of sending the box opening instruction and the current time point reaches the interval time length.
And the server is provided with a corresponding timing module for each storage area, and when the server extracts the unpacking command from the storage area and sends the unpacking command, the server controls the timing module corresponding to the storage area to start timing. After the unpacking instruction is deleted, and the timing duration between the time point of sending the unpacking instruction and the current time point reaches the interval duration, sending the unpacking instruction in the storage area to the charging cabinet, namely returning to the step of sending the unpacking instruction in the storage area by the charging cabinet until all the unpacking instructions in the storage area are sent completely.
If the unpacking result received by the server is that unpacking fails, the unpacking instruction corresponding to the unpacking result is sent to the charging cabinet again, so that the charging cabinet opens the box door corresponding to the unpacking instruction again. And the server returns to the step of receiving the unpacking result sent by the charging cabinet.
However, the door opening member of the cabinet in the charging cabinet may be damaged, and even if the server sends an opening instruction to the charging cabinet, the door of the cabinet cannot be opened. And if the sending times do not reach the preset times, the unpacking instruction corresponding to the unpacking result is sent to the charging cabinet again, and the sending times are updated, namely the current sending times are plus 1, and then the step of receiving the unpacking result sent by the charging cabinet is returned. And if the sending times reach preset times, deleting the unpacking instruction, and returning to the step of sending the unpacking instruction in the storage area to the charging cabinet when the time length between the time point of sending the unpacking instruction and the current time point reaches the interval time length. Meanwhile, the server stores the unpacking result into the cloud database so that the user can conveniently inquire the unpacking result.
In the technical scheme provided by this embodiment, the server sends the unpacking instructions in the storage area to the charging cabinet, receives the unpacking result sent by the charging cabinet, deletes the unpacking instruction corresponding to the unpacking result if the unpacking result is successful, and returns to the step of sending the unpacking instructions in the storage area to the charging cabinet when the time between the time point of sending the unpacking instruction and the current time point reaches the interval time so as to send the unpacking instructions in the storage area to the charging cabinet in sequence.
Referring to fig. 4, fig. 4 is a third embodiment of the opening method of the charging cabinet according to the present invention, and based on the first or second embodiment, the step S10 includes:
step S11, setting a sending queue, and adding each unpacking instruction to the sending queue;
and step S12, setting the interval duration of the sending queue sending the unpacking command to the charging cabinet.
In this embodiment, after detecting that a plurality of unpacking instructions are stored in the storage area, the server sets a corresponding sending queue for the storage area. And the server sequentially adds the unpacking instructions to the sending queue from morning to evening according to the production time of the unpacking instructions. The head of the queue in the sending queue is the unpacking instruction with the earliest production time. And if the storage area stores a newly produced unpacking instruction, adding the unpacking instruction to the tail of the sending queue.
And after the server adds each unpacking instruction to the sending queue, setting the interval duration for sending the unpacking instruction to the party who wants to charge, namely sending the unpacking instruction at the head of the queue to the charging cabinet by the interval duration set at each interval of the sending queue.
In the technical scheme provided by this embodiment, the server sets the sending queue, adds each unpacking instruction to the sending queue, and then sets the interval duration of the unpacking instructions sent by the sending queue to the charging cabinet, so that the interval duration set at intervals in the sending queue sequentially sends each unpacking instruction to the charging cabinet.
Referring to fig. 5, fig. 5 is a fourth embodiment of the method for opening a charging cabinet according to the present invention, and based on any one of the first to third embodiments, before the step S10, the method further includes:
step S30, when receiving a charging request, determining a charging port of a charging cabinet corresponding to the charging request;
and step S40, generating a box opening instruction corresponding to the charging port, and storing the box opening instruction in a storage area corresponding to the charging cabinet.
In this embodiment, a user sends a charging request to a server through a terminal, the server determines a charging port of a charging cabinet corresponding to the charging request, and the server acquires order data corresponding to the charging port from the charging request, so as to generate a box opening instruction corresponding to the charging port according to the order data. The order data refers to the number of the charging port and the equipment identifier of the charging cabinet where the charging port is located. The server stores the unpacking state of the charging port, the number of the charging port and the equipment identification of the charging cabinet corresponding to the charging port into the cloud database, and the unpacking state of the charging port at the moment is the unpacking state. It should be noted that, after the server receives the unpacking result, the unpacking result is sent to the cloud database, and the cloud database changes the state of unpacking not to be successful or unsuccessful.
And after the server produces the unpacking instruction, storing the unpacking instruction to a storage area corresponding to the charging cabinet. And the server detects whether a plurality of box opening instructions are stored in a storage area corresponding to the charging cabinet, if so, the server executes the step S10 and the step S20 to sequentially send the box opening instructions to the charging cabinet at interval duration set at intervals. If the storage area stores one unpacking instruction, the unpacking instruction is directly sent to the charging cabinet, but the server needs to determine the sending time point of the last unpacking instruction in the storage area, if the time length between the current time point and the sending time point of the last unpacking instruction is greater than the interval time length, the server already receives the unpacking result corresponding to the last unpacking instruction, and the server can directly send the unpacking instruction in the storage area to the charging cabinet; if the time length between the current time point and the sending time point of the last unpacking instruction is less than the interval time length, the server needs to wait until the unpacking result corresponding to the last unpacking instruction is received, and then the unpacking instruction in the storage area is sent to the charging cabinet.
The invention also provides a server, which comprises a memory, a processor and an unpacking program stored in the memory and capable of running on the processor, wherein the unpacking program realizes the steps of the unpacking method for the charging cabinet in the embodiment when being executed by the processor.
The present invention also provides a computer-readable storage medium including a box opening program, which when executed by a processor implements the steps of the method for opening a charging cabinet according to the above embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The method for opening the charging cabinet is characterized by comprising the following steps:
after a plurality of unpacking instructions are stored in a storage area corresponding to a charging cabinet, setting a sending interval duration for each unpacking instruction, wherein the sum of the unpacking duration of the charging cabinet and the reporting duration of the unpacking result of the charging cabinet is less than the interval duration;
and sending the box opening instruction to the charging cabinet at intervals of the interval duration.
2. The method of opening a charging cabinet according to claim 1, wherein the step of sending the opening command to the charging cabinet every interval of the interval duration comprises:
sending the box opening instruction in the storage area to the charging cabinet;
receiving a box opening result sent by the charging cabinet;
deleting the unpacking instruction corresponding to the unpacking result when the unpacking result is successful;
and when the time length between the time point of sending the box opening instruction and the current time point reaches the interval time length, returning to execute the step of sending the box opening instruction in the storage area to the charging cabinet.
3. The method for unpacking according to claim 2, wherein the step of receiving the unpacking result sent by the charging cabinet is preceded by:
when the unpacking result is unpacking failure, resending the unpacking instruction corresponding to the unpacking result to the charging cabinet;
and returning to execute the step of receiving the unpacking result sent by the charging cabinet.
4. The method for unpacking according to claim 3, wherein the step of receiving the unpacking result sent by the charging cabinet is further followed by the steps of:
when the unpacking result is unpacking failure, acquiring the sending times of the unpacking instruction corresponding to the unpacking result;
and when the sending times do not reach the preset times, the unpacking instruction corresponding to the unpacking result is sent to the charging cabinet again, the sending times are updated, and the step of receiving the unpacking result sent by the charging cabinet is returned to be executed.
And when the frequency reaches a preset frequency, deleting the unpacking instruction corresponding to the unpacking result, and returning to execute the step of sending the unpacking instruction in the storage region to the charging cabinet when the time length between the time point of sending the unpacking instruction and the current time point reaches the interval time length.
5. The method for opening the charging cabinet according to claim 1, wherein the step of setting the interval duration of transmission for each of the opening commands comprises:
setting a sending queue, and adding each unpacking instruction to the sending queue;
and setting the interval duration of the box opening instruction sent to the charging cabinet by the sending queue.
6. The method for opening the charging cabinet according to any one of claims 1 to 5, wherein before the step of setting the interval duration of sending for each of the box opening instructions when detecting that the storage area corresponding to the charging cabinet comprises a plurality of box opening instructions, the method further comprises:
when a charging request is received, determining a charging port of a charging cabinet corresponding to the charging request;
and generating a box opening instruction corresponding to the charging port, and storing the box opening instruction to a storage area corresponding to the charging cabinet.
7. The method for opening the charging cabinet according to claim 6, wherein after the step of storing the opening instruction in the storage area corresponding to the charging cabinet, the method further comprises:
detecting whether a storage area corresponding to the charging cabinet stores a plurality of box opening instructions or not;
when a storage area corresponding to the charging cabinet is detected to store a plurality of box opening instructions, executing the step of setting the interval duration of sending each box opening instruction;
and when a storage area corresponding to the charging cabinet stores an unpacking instruction, sending the unpacking instruction to the charging cabinet.
8. The method for opening the charging cabinet according to any one of claims 1 to 5, wherein the step of setting the interval duration of sending for each of the box opening instructions when detecting that the storage area corresponding to the charging cabinet stores a plurality of box opening instructions comprises:
acquiring an equipment identifier of a charging cabinet, and configuring a storage area corresponding to the charging cabinet;
associating the device identification with the storage area.
9. A server, characterized in that the server comprises a memory, a processor and an unpacking program stored in the memory and executable on the processor, the unpacking program, when executed by the processor, implementing the steps of the unpacking method for a charging cabinet according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises an unpacking program which, when executed by a processor, implements the steps of the unpacking method for a charging cabinet according to any one of claims 1 to 8.
CN202011021127.3A 2020-09-24 2020-09-24 Charging cabinet opening method, server and computer readable storage medium Active CN112330854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011021127.3A CN112330854B (en) 2020-09-24 2020-09-24 Charging cabinet opening method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011021127.3A CN112330854B (en) 2020-09-24 2020-09-24 Charging cabinet opening method, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112330854A true CN112330854A (en) 2021-02-05
CN112330854B CN112330854B (en) 2022-08-12

Family

ID=74304190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011021127.3A Active CN112330854B (en) 2020-09-24 2020-09-24 Charging cabinet opening method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112330854B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2430784A1 (en) * 2010-01-05 2012-03-21 Huawei Technologies Co., Ltd. Network timing distribution and synchronization using virtual network delays
CN104461707A (en) * 2014-11-28 2015-03-25 华为技术有限公司 Locking request processing method and device
CN107705444A (en) * 2017-08-28 2018-02-16 苏州花坞信息科技有限公司 A kind of wireless charging shares charging cabinet
CN107818636A (en) * 2017-10-19 2018-03-20 中科富创(北京)科技有限公司 The state monitoring method and device of express delivery cabinet storing bin
CN108198298A (en) * 2017-12-27 2018-06-22 惠州Tcl家电集团有限公司 Unlocking method, terminal and the computer readable storage medium of shared household electrical appliances
CN108762931A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Method for scheduling task, server based on distributed scheduling system and storage medium
CN109343941A (en) * 2018-08-14 2019-02-15 阿里巴巴集团控股有限公司 Task processing method, device, electronic equipment and computer readable storage medium
CN110443638A (en) * 2019-07-16 2019-11-12 广州微米物联网科技有限公司 A kind of intelligent vending machine approaches to IM and system based on sports center
US10523532B1 (en) * 2017-03-28 2019-12-31 Amazon Technologies, Inc. Multiple queueing for distributed environments
CN110674957A (en) * 2019-09-20 2020-01-10 中瑞百行科技(北京)有限公司 Intelligent charging management system and method
CN111399909A (en) * 2020-03-02 2020-07-10 中国平安人寿保险股份有限公司 Service system data distribution processing method, device and storage medium
CN111505946A (en) * 2019-01-31 2020-08-07 华为终端有限公司 Equipment control method and equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2430784A1 (en) * 2010-01-05 2012-03-21 Huawei Technologies Co., Ltd. Network timing distribution and synchronization using virtual network delays
CN104461707A (en) * 2014-11-28 2015-03-25 华为技术有限公司 Locking request processing method and device
US10523532B1 (en) * 2017-03-28 2019-12-31 Amazon Technologies, Inc. Multiple queueing for distributed environments
CN107705444A (en) * 2017-08-28 2018-02-16 苏州花坞信息科技有限公司 A kind of wireless charging shares charging cabinet
CN107818636A (en) * 2017-10-19 2018-03-20 中科富创(北京)科技有限公司 The state monitoring method and device of express delivery cabinet storing bin
CN108198298A (en) * 2017-12-27 2018-06-22 惠州Tcl家电集团有限公司 Unlocking method, terminal and the computer readable storage medium of shared household electrical appliances
CN108762931A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Method for scheduling task, server based on distributed scheduling system and storage medium
CN109343941A (en) * 2018-08-14 2019-02-15 阿里巴巴集团控股有限公司 Task processing method, device, electronic equipment and computer readable storage medium
CN111505946A (en) * 2019-01-31 2020-08-07 华为终端有限公司 Equipment control method and equipment
CN110443638A (en) * 2019-07-16 2019-11-12 广州微米物联网科技有限公司 A kind of intelligent vending machine approaches to IM and system based on sports center
CN110674957A (en) * 2019-09-20 2020-01-10 中瑞百行科技(北京)有限公司 Intelligent charging management system and method
CN111399909A (en) * 2020-03-02 2020-07-10 中国平安人寿保险股份有限公司 Service system data distribution processing method, device and storage medium

Also Published As

Publication number Publication date
CN112330854B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN107886952B (en) Method, device and system for controlling intelligent household electrical appliance through voice and electronic equipment
CN109936587B (en) Control method, control device, electronic apparatus, and storage medium
CN110378696A (en) A kind of brush face method of payment, device, readable storage medium storing program for executing and terminal device
CN113938535B (en) Internet of things equipment access method and device based on multi-protocol adaptation
CN113765714B (en) Equipment network distribution method and device, storage medium and electronic equipment
CN109981360B (en) Internet of things equipment site opening method, device and system and storage medium
CN109600401A (en) Household electrical appliances upgrade method, client and server
CN113271578B (en) Network distribution method, device, equipment and computer readable storage medium
CN112738046B (en) One-key login method, terminal and system server
CN114783116A (en) Offline cabinet opening method and device for intelligent cabinet
CN107181825B (en) Online processing method of terminal equipment data
CN110109850B (en) Scanning equipment searching method and device based on SANE protocol framework
CN105635852A (en) Method and apparatus for matching of smart television with dynamic link library
CN111580986A (en) Data acquisition method, system and medium based on acquisition service middleware
CN112330854B (en) Charging cabinet opening method, server and computer readable storage medium
CN112333284B (en) 5G intelligent gateway-based data transmission method, system and storage medium
CN109948332A (en) A kind of physical machine login password remapping method and device
CN109964473B (en) Voice service response method and device
CN112994176A (en) Robot charging method, system, electronic device and storage medium
CN112235124A (en) Method and device for configuring pico-cell, storage medium and electronic device
CN108112052B (en) Terminal network sharing method and device, air conditioner and storage medium
CN110708386A (en) Page display method, terminal device and server
CN113643482B (en) Cabinet opening control method and device and computing equipment
CN111030874B (en) Service arranging method, equipment, storage medium and device
CN113504879A (en) Data storage method and intelligent household appliance

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
GR01 Patent grant
GR01 Patent grant