The content of the invention
The present invention provides a kind of batch delivering method and system, can realize that the express mail batch of stability and high efficiency is delivered.
One side of the invention is to provide a kind of batch delivering method, including:
Delivery device obtains and sent to server the request of data for including express delivery cabinet Termination ID to be delivered;
The data response that delivery device the reception server is inquired about and returned according to the request of data, the data response bag
Include the type and quantity of the sub- cabinet that is currently at idle condition of each point of cabinet of express delivery cabinet terminal management to be delivered described in description
Information divides cabinet list;
Delivery device from divide in cabinet list choose treat delivery divide cabinet and to server send include express delivery cabinet terminal to be delivered
ID and wait to deliver and divide cabinet ID unpacking request;
Server receives the unpacking request and pushes message of unpacking to the express delivery cabinet terminal, is wrapped in the unpacking message
Include to wait to deliver to divide cabinet ID and wait to deliver and divide sub- cabinet ID available free corresponding to cabinet;
Express delivery cabinet terminal to be delivered receives and according to the unpacking message to waiting to deliver under all idle sub- cabinets for dividing cabinet
Hair, which is unpacked, to be instructed;
Delivery device, which is chosen, to be waited to deliver sub- cabinet, is treated so that server is verified and courier is put into express mail to be delivered
Sub- cabinet is delivered, turns off the chamber door for waiting to deliver sub- cabinet.
Second aspect of the present invention is to provide a kind of batch delivery system, including:
Delivery device 11, for obtaining and sending the request of data for including express delivery cabinet Termination ID to be delivered to server;Connect
The data response that server is inquired about and returned according to the request of data is received, the data response includes treating that delivery is fast described in description
That passs the type of the sub- cabinet for being currently at idle condition of each point of cabinet of cabinet terminal management and the information of quantity divides cabinet list;From point
Choose to wait to deliver in cabinet list and divide cabinet and send comprising express delivery cabinet Termination ID to be delivered to server and treat that delivery divides opening for cabinet ID
Case is asked;Wait to deliver sub- cabinet with choosing, wait to deliver son so that server is verified and makes courier be put into express mail to be delivered
Cabinet, turn off the chamber door for waiting to deliver sub- cabinet;
Server 12, it is described to unpack for receiving the unpacking request and pushing message of unpacking to the express delivery cabinet terminal
Message includes waiting to deliver to divide cabinet ID and wait to deliver dividing sub- cabinet ID available free corresponding to cabinet;
Express delivery cabinet terminal 13, for receiving and according to the unpacking message to waiting to deliver under all idle sub- cabinets for dividing cabinet
Hair, which is unpacked, to be instructed.
Beneficial effects of the present invention are:
Certain free time that the present invention is matched by multiple Sexual behavior modes of express mail to be delivered that delivery device is a batch
Sub- cabinet combination divides cabinet, and sends request of unpacking to background server, disposable to open the sub- cabinet of whole for dividing cabinet, and further
Reported to server to be verified when delivery express mail selection when sub- cabinet is delivered, again to sub- cabinet state, solve multiple throwings
Delivery apparatus select same point of cabinet namely it is parallel when collision problem;Meanwhile confirmed after the completion of delivery, by courier, disappeared
Except the sub- cabinet status error caused by bottom hardware is unstable, the fault rate that sub- cabinet is not opened is greatly reduced, is improved
The stability of whole delivery system;In summary, delivering method of the present invention realizes batch and delivered, and is delivered so as to improve
Efficiency.
Embodiment
Fig. 1 is the flow chart of batch delivering method embodiment one of the present invention, and Fig. 2 is batch delivering method embodiment of the present invention
One signaling process figure, as depicted in figs. 1 and 2, batch delivering method of the present invention include:
S101, delivery device obtain and sent to server the request of data for including express delivery cabinet Termination ID to be delivered;
The data response that S102, delivery device the reception server are inquired about and returned according to the request of data, the data
Response include description described in express delivery cabinet terminal management to be delivered each point of cabinet the sub- cabinet for being currently at idle condition type with
The information of quantity divides cabinet list [table 1];
Express delivery cabinet Termination ID |
Divide cabinet ID |
Idle sub- cabinet type |
Idle sub- cabinet quantity |
6001 |
1 |
Greatly |
2 |
6001 |
2 |
In |
2 |
6001 |
3 |
It is small |
9 |
Table 1
S103, delivery device from divide in cabinet list choose treat delivery divide cabinet and to server send include express delivery cabinet to be delivered
Termination ID and wait to deliver and divide cabinet ID unpacking request;
S104, server receive the unpacking request and push message of unpacking to the express delivery cabinet terminal, and described unpack disappears
Breath includes waiting to deliver to divide cabinet ID and wait to deliver dividing sub- cabinet ID available free corresponding to cabinet;
S105, express delivery cabinet terminal to be delivered receive and according to the unpacking message to waiting to deliver all idle sons for dividing cabinet
Cabinet issues unpacking instruction;
S106, delivery device are chosen according to the express mail type and quantity for the treatment of batch delivery and wait to deliver sub- cabinet, so that server
Verified and courier is put into express mail to be delivered and wait to deliver sub- cabinet, turn off the chamber door for waiting to deliver sub- cabinet;
Preferably, the delivery device, which is chosen, waits to deliver sub- cabinet, so that server is verified and makes courier to wait to throw
Pass express mail and be put into and wait to deliver sub- cabinet, turning off the chamber door for waiting to deliver sub- cabinet includes:
S107, delivery device, which are obtained and sent to server, to be included express delivery cabinet Termination ID to be delivered, waits to deliver sub- cabinet ID, treats
The Air Way Bill No. of express mail and the delivery request of addressee's cell-phone number are delivered, so that server receives the delivery request and according to this
Whether the sub- cabinet status list [table 2] that ground is safeguarded waits that delivering sub- cabinet ID verifies to described, wait to deliver sub- cabinet described in judgement empty
It is not busy;
Table 2
If S108, being judged as YES, server is set to be changed to the state for waiting to deliver sub- cabinet in the sub- cabinet status list
Take, generate and to delivery order of express delivery cabinet terminal the to be delivered push comprising information in the delivery request so as to treat that delivery is fast
Pass cabinet terminal and return and server is received second and confirm response, and the first confirmation request is sent to delivery device;
S109, so that courier will be put into after sub- cabinet is delivered and close the chamber door of waiting to deliver sub- cabinet wait delivering express mail
Before or after, return to first by delivery device and confirm to respond;Wherein, transmission first is not differentiated between to confirm response and close chamber door
Sequencing;
S110 and the throwing for making server generate and include information in the delivery request to express delivery cabinet terminal to be delivered push
Pass order;
S111, so that express delivery cabinet terminal to be delivered return and make server receive second confirm response, make server according to
The sequential that the state for waiting to deliver sub- cabinet by sub- cabinet status list is changed to take establishes the snoop queue of each delivery order,
Pushed successively to express delivery cabinet terminal to be delivered and deliver order, so that express delivery cabinet terminal to be delivered returns and server is received second
Confirm response;
S112, server is set to delete the delivery order in the snoop queue;
If S113, being judged as NO, server is set to send the prompting message for reselecting and waiting to deliver sub- cabinet to delivery device,
Wait to deliver sub- cabinet ID so that delivery device acquisition is at least new and sent including express delivery cabinet Termination ID to be delivered, newly to server
Wait to deliver sub- cabinet ID, the Air Way Bill No. of express mail to be delivered and addressee's cell-phone number delivery request, then rejudge and new wait to deliver
Whether sub- cabinet is idle.
Certain free time that the present invention is matched by multiple Sexual behavior modes of express mail to be delivered that delivery device is a batch
Sub- cabinet combination divides cabinet, and sends request of unpacking to background server, disposable to open the sub- cabinet of whole for dividing cabinet, and further
Reported to server to be verified when delivery express mail selection when sub- cabinet is delivered, again to sub- cabinet state, solve multiple throwings
Delivery apparatus select same point of cabinet namely it is parallel when collision problem;Meanwhile confirmed after the completion of delivery, by courier, disappeared
Except the sub- cabinet status error caused by bottom hardware is unstable, the fault rate that sub- cabinet is not opened is greatly reduced, is improved
The stability of whole delivery system;In summary, delivering method of the present invention realizes batch and delivered, and is delivered so as to improve
Efficiency;After tested, deliver efficiency and improve about 20%.
Fig. 3 is the structured flowchart of batch delivery system embodiment one of the present invention, and batch delivery system of the present invention includes:
Delivery device, for obtaining and sending the request of data for including express delivery cabinet Termination ID to be delivered to server;Receive
The data response that server is inquired about and returned according to the request of data, the data response include express delivery to be delivered described in description
The type of the sub- cabinet for being currently at idle condition of each point of cabinet of cabinet terminal management and the information of quantity divide cabinet list;According to treating
The express mail type and quantity that batch is delivered treat that delivery divides cabinet and sent to server fast comprising waiting to deliver from dividing in cabinet list to choose
Pass cabinet Termination ID and wait to deliver the unpacking request for dividing cabinet ID;Wait to deliver sub- cabinet with choosing, so that server is verified and made fast
Express mail to be delivered is put into by the person of passing to be waited to deliver sub- cabinet, turns off the chamber door for waiting to deliver sub- cabinet.
Server, for receiving the unpacking request and pushing message of unpacking to the express delivery cabinet terminal, described unpack disappears
Breath includes waiting to deliver to divide cabinet ID and wait to deliver dividing sub- cabinet ID available free corresponding to cabinet;
Express delivery cabinet terminal to be delivered, for receiving and according to the unpacking message to waiting to deliver all idle sons for dividing cabinet
Cabinet issues unpacking instruction.
Preferably, the delivery device is specifically used for:Obtain and to server send including express delivery cabinet Termination ID to be delivered,
Wait to deliver sub- cabinet ID, the Air Way Bill No. of express mail to be delivered and addressee's cell-phone number delivery request;
The server is additionally operable to:Receive the delivery request and treated according to the sub- cabinet status list of local maintenance to described
Sub- cabinet ID is delivered to be verified, wait to deliver sub- cabinet described in judgement it is whether idle, and described in judge wait deliver sub- cabinet as it is idle when,
It will wait that the state for delivering sub- cabinet is changed to take in the sub- cabinet status list, generate and pushed to express delivery cabinet terminal to be delivered and wrapped
Delivery order containing information in the delivery request is so that express delivery cabinet terminal to be delivered returns and server is received the second confirmation
Response;With to delivery device send the first confirmation request so that courier pass through delivery device return first confirm respond.
Preferably, the server is additionally operable to:Whether idle judge to wait to deliver sub- cabinet described, and waiting to throw described in judgement
Pass sub- cabinet for it is busy when, sent to delivery device and reselect the prompting message of waiting to deliver sub- cabinet, so that delivery device obtains
It is at least new to wait to deliver sub- cabinet ID and send waiting to deliver sub- cabinet ID, treat including express delivery cabinet Termination ID to be delivered, newly to server
The Air Way Bill No. of express mail and the delivery request of addressee's cell-phone number are delivered, then rejudges whether new to wait to deliver sub- cabinet idle.
Preferably, the server is specifically used for:According to the state for waiting to deliver sub- cabinet by sub- cabinet status list
The sequential for being changed to take establishes the snoop queue of each delivery order, is pushed to express delivery cabinet terminal to be delivered deliver order successively, with
Return to express delivery cabinet terminal to be delivered and server is received the second confirmation response;With described so that express delivery cabinet terminal to be delivered
Return and server is received second and confirm after responding, the delivery order is deleted in the snoop queue.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.