Disclosure of Invention
The invention aims to provide an intelligent logistics information management method and system based on a cloud server, and the management effect of logistics information is improved.
In order to achieve the above object, in a first aspect, the present invention provides an intelligent logistics information management method based on a cloud server, including the following steps:
carrying out structural improvement on an uploading data frame and a downloading data frame in a cloud server, and transmitting in a broadcasting mode;
establishing clock synchronization between the logistics terminal and the cloud server, and uploading data based on the server state of the uploaded data frame;
and establishing clock synchronization between the dispatching terminal and the cloud server, and downloading and dispatching data based on the server state of the downloaded data frame.
Before establishing clock synchronization between the dispatch terminal and the cloud server and downloading data based on the server state of the downloaded data frame, the method further comprises:
and performing data verification on the received logistics information uploaded by the logistics terminal, and generating various dispatching information according to the verification result.
The method comprises the following steps of performing data verification on received logistics information uploaded by the logistics terminal, and generating various dispatching information according to a verification result, wherein the steps comprise:
extracting the user name and the signing address in the logistics information, and performing data verification on the extracted information and the stored logistics information of all unportioned orders;
and according to the verification result, combining, superposing or not changing the current logistics information and the stored unpopulated logistics information.
After data verification is performed on the received logistics information uploaded by the logistics terminal and various dispatching information is generated according to the verification result, the method further comprises the following steps:
and storing all the logistics information uploaded by the logistics terminal, and performing format conversion on the corresponding logistics information based on the order dispatching information.
The method comprises the following steps of establishing clock synchronization between a dispatching terminal and the cloud server, and downloading and dispatching data based on the server state of the downloaded data frame, and comprises the following steps:
acquiring the download data frame by using the dispatch terminal, and reading the state of a server in the download data frame;
establishing clock synchronization between the dispatch terminal and the cloud server or performing data rollback based on the server state;
and if the dispatching terminal and the cloud server establish clock synchronization, acquiring dispatching information in the cloud server, and carrying out corresponding logistics dispatching according to the dispatching information.
Based on the server state, the data backspacing of the dispatch terminal and the cloud server comprises the following steps:
and if the dispatch terminal cannot establish clock synchronization with the cloud server according to the server state, returning the dispatch terminal for a set time, and then acquiring the download data frame again until the dispatch terminal establishes clock synchronization with the cloud server.
In a second aspect, the present invention provides an intelligent logistics information management system based on a cloud server, which is suitable for the intelligent logistics information management method based on the cloud server as described in the first aspect,
the intelligent logistics information management system based on the cloud server comprises a server state optimization module, a logistics information uploading module, a data comparison module and a logistics information downloading module, wherein the server state optimization module is connected with the logistics information uploading module and the logistics information downloading module, and the data comparison module is connected with the logistics information uploading module and the logistics information downloading module;
the server state optimization module is used for carrying out structural improvement on an uploading data frame and a downloading data frame in the cloud server and transmitting the uploading data frame and the downloading data frame in a broadcasting mode;
the logistics information uploading module establishes clock synchronization between the logistics terminal and the cloud server and uploads data based on the server state of the uploaded data frame;
the data comparison module is used for carrying out data verification on the received logistics information uploaded by the logistics terminal, generating various dispatching information according to the verification result, and storing, updating and format converting the logistics information;
and the logistics information downloading module establishes clock synchronization between the dispatching terminal and the cloud server, and downloads and dispatches data based on the server state of the downloaded data frame.
According to the intelligent logistics information management method and system based on the cloud server, the structure of an uploading data frame and a downloading data frame in the cloud server is improved, and the uploading data frame and the downloading data frame are transmitted in a broadcasting mode; establishing clock synchronization between the logistics terminal and the cloud server, and uploading data based on the server state of the uploaded data frame; performing data verification on the received logistics information uploaded by the logistics terminal, generating various dispatching information according to a verification result, and converting the logistics information progress format based on the dispatching information; clock synchronization is established between the dispatching terminal and the cloud server, data downloading and dispatching are carried out based on the server state of the downloaded data frame, and the management effect of logistics information is improved.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Referring to fig. 1 and 2, the present invention provides an intelligent logistics information management method based on a cloud server, including the following steps:
s101, carrying out structural improvement on an uploading data frame and a downloading data frame in the cloud server, and transmitting in a broadcasting mode.
Specifically, an upload data frame and a download data frame in a cloud server are obtained, a synchronization time slot is inserted in front of a first frame structure in the upload data frame and the download data frame, and a server state bit with a bit size is set in the synchronization time slot; based on the cloud server state, the server state is assigned and transmitted in a broadcast mode, wherein the assignment mode is as follows: for the uploaded data frame, assigning the state of the server in the uploaded data frame to be 1 or-1 according to the state of the cloud server, wherein the state represents busy or idle respectively; and for the download data frame, assigning the state of the server in the download data frame to be 2 or-2, respectively indicating busy or idle, and distinguishing upload and download by utilizing the two data to avoid errors caused by synchronous connection between different terminals and the cloud server.
When the cloud server receives simultaneous access of large-scale terminals, if the processing capacity limit of the cloud server is exceeded at the moment, new terminal access cannot be received any more, or the cloud server does not want new terminal access when special data packet transmission is carried out, the server state mark is set to be busy in the synchronous time slot, and the server state mark is set to be idle until the processing capacity of the cloud server is recovered. And carrying out synchronous channel transmission on the frame after the state is modified in a broadcasting mode, and sending out broadcasting information, wherein the broadcasting information comprises the data state of the current frame.
The busy/idle state of a synchronous channel transmission system is utilized to improve the large-scale access performance, when a cloud server receives simultaneous access of large-scale terminals and the limit of the processing capability of the cloud server is about to exceed, a 'busy' mark is set in a synchronous time slot, and when a new terminal detects the information, the cloud server backs for a period of time and then checks whether the access can be performed or not so as to avoid unnecessary access loss.
S102, establishing clock synchronization between the logistics terminal and the cloud server, and uploading data based on the server state of the uploaded data frame.
Specifically, a logistics terminal is used for acquiring an uploading data frame sent by the cloud server, and data uploading or waiting is carried out according to the server state in the uploading data frame; if the server state is 1, interrupting clock synchronization between the cloud server and the logistics terminal, sleeping or returning the logistics terminal for a period of time, and then acquiring the upload data frame at the current time again until the server state is detected to be-1; if the logistics terminal detects that the server state in the uploaded data frame is-1, establishing clock synchronization between the logistics terminal and the cloud server according to the synchronization time slot, and uploading all logistics information contained in the logistics terminal to the cloud server for storage after synchronization is completed. The logistics terminal and the cloud server are connected in a communication mode, the problem that data congestion is caused due to the fact that a plurality of logistics terminals are connected with the cloud server in a communication mode at the same time is avoided, and unnecessary access loss is avoided.
S103, carrying out data verification on the received logistics information uploaded by the logistics terminal, and generating various dispatching information according to the verification result.
Specifically, after the logistics terminal uploads all the logistics information, the cloud server is used to receive the logistics information, and perform data verification on the received logistics information uploaded by the logistics terminal, and generate various billing information according to a verification result, specifically including: and extracting the user name and the signing address in the logistics information, performing data verification on the extracted information and the stored logistics information of all the non-orders, and combining, overlapping or not changing the current logistics information and the stored logistics information of the non-orders according to the verification result.
The detailed process comprises the following steps: extracting a user name and a signing address in the received logistics information by using the cloud server, verifying and comparing the user name and the signing address in the logistics information which is not dispatched and is stored in the cloud server and uploaded before with the corresponding signing address, firstly, summarizing the corresponding logistics information according to the user name, comparing the signing addresses in all the logistics information obtained by summarizing, and if the signing addresses are the same, packaging and overlapping the corresponding logistics information with the same user name and signing addresses to generate new overlapped logistics information, and generating dispatching information according to the overlapped logistics information; the method comprises the steps that user information is the same, the signing addresses are different, actual mileage intervals among different signing addresses are obtained, the actual mileage intervals are compared with a set mileage threshold value, if the actual mileage intervals are larger than the mileage threshold value, the current logistics information is not changed, corresponding order dispatching information is directly generated, if the actual mileage intervals are smaller than or equal to the mileage threshold value, the corresponding logistics information is combined, a new combined logistics information is generated, all the logistics information which are under the same user name and accord with the mileage threshold value are generated in the combined logistics information, and then another type of order dispatching information is generated according to the combined logistics information.
After the corresponding order dispatching information is generated, storing all the logistics information uploaded by the logistics terminal, and performing format conversion on the corresponding logistics information based on the order dispatching information; the logistics information of the to-be-dispatched and the to-be-dispatched are distinguished, so that the situations of data matching error, repeated matching or delayed dispatching and the like are avoided, the disorder among data is avoided, and the management effect is improved.
And S104, establishing clock synchronization between the dispatching terminal and the cloud server, and downloading and dispatching data based on the server state of the downloaded data frame.
Specifically, a dispatch terminal is used for acquiring a download data frame sent by the cloud server, and data downloading or waiting is carried out according to the server state in the download data frame; if the server state is 2, interrupting clock synchronization between the cloud server and the dispatch terminal, sleeping or returning the dispatch terminal for a period of time, and then acquiring the download data frame at the current time again until the server state is detected to be-2; and if the dispatching terminal detects that the server state in the current download data frame is-2, establishing clock synchronization between the dispatching terminal and the cloud server according to the synchronization time slot, and downloading all dispatching information contained in the cloud server by using the dispatching terminal after synchronization is completed. The method and the system avoid data congestion caused by the fact that a plurality of the order sending terminals establish communication connection with the cloud server at the same time, and avoid unnecessary access loss.
After the corresponding order dispatching information is received by the order dispatching terminal, the order dispatching is carried out according to the signing address in the order dispatching information, the logistics information of the same user name can be dispatched at one time, the logistics processing efficiency is improved, repeated order dispatching and multiple order dispatching in the same place are reduced, the order dispatching time is shortened, and the management effect is further improved.
Referring to fig. 2 and fig. 3, the present invention provides an intelligent logistics information management system based on a cloud server, which is suitable for the intelligent logistics information management method based on the cloud server,
the intelligent logistics information management system based on the cloud server comprises a server state optimization module 1, a logistics information uploading module 2, a data comparison module 3 and a logistics information downloading module 4, wherein the server state optimization module 1 is connected with the logistics information uploading module 2 and the logistics information downloading module 4, and the data comparison module 3 is connected with the logistics information uploading module 2 and the logistics information downloading module 4;
the server state optimization module 1 is used for carrying out structural improvement on an uploading data frame and a downloading data frame in a cloud server and transmitting the uploading data frame and the downloading data frame in a broadcasting mode;
the logistics information uploading module 2 establishes clock synchronization between the logistics terminal and the cloud server, and uploads data based on the server state of the uploaded data frame;
the data comparison module 3 is used for performing data verification on the received logistics information uploaded by the logistics terminal, generating various dispatching information according to the verification result, and storing, updating and converting the logistics information;
and the logistics information downloading module 4 establishes clock synchronization between the dispatching terminal and the cloud server, and downloads and dispatches data based on the server state of the downloaded data frame.
In this embodiment, for specific limitations of the cloud server-based intelligent logistics information management system, reference may be made to the above limitations of the cloud server-based intelligent logistics information management method, which is not described herein again. All modules in the intelligent logistics information management system based on the cloud server can be completely or partially realized through software, hardware and a combination of the software and the hardware. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
According to the intelligent logistics information management method and system based on the cloud server, the structure of an uploading data frame and a downloading data frame in the cloud server is improved, and the uploading data frame and the downloading data frame are transmitted in a broadcasting mode; establishing clock synchronization between the logistics terminal and the cloud server, and uploading data based on the server state of the uploaded data frame; performing data verification on the received logistics information uploaded by the logistics terminal, generating various dispatching information according to a verification result, and converting the logistics information progress format based on the dispatching information; clock synchronization is established between the dispatching terminal and the cloud server, data downloading and dispatching are carried out based on the server state of the downloaded data frame, and the management effect of logistics information is improved.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.