CN111818136A - Data processing method and device, electronic equipment and computer readable medium - Google Patents

Data processing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111818136A
CN111818136A CN202010592464.1A CN202010592464A CN111818136A CN 111818136 A CN111818136 A CN 111818136A CN 202010592464 A CN202010592464 A CN 202010592464A CN 111818136 A CN111818136 A CN 111818136A
Authority
CN
China
Prior art keywords
data
target
logistics
communication link
server
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
CN202010592464.1A
Other languages
Chinese (zh)
Other versions
CN111818136B (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 CIMC Intelligent Technology Co Ltd
Original Assignee
China International Marine Containers Group Co Ltd
Shenzhen CIMC Intelligent 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 China International Marine Containers Group Co Ltd, Shenzhen CIMC Intelligent Technology Co Ltd filed Critical China International Marine Containers Group Co Ltd
Priority to CN202010592464.1A priority Critical patent/CN111818136B/en
Publication of CN111818136A publication Critical patent/CN111818136A/en
Priority to PCT/CN2021/097564 priority patent/WO2021259013A1/en
Priority to US18/153,310 priority patent/US20230163998A1/en
Application granted granted Critical
Publication of CN111818136B publication Critical patent/CN111818136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the application provides a data processing method and device, a computer readable medium and electronic equipment. The data processing method comprises the steps of responding to a data packet from a target intelligent logistics device, and detecting the type of a communication link between an intermediate server and the target intelligent logistics device; determining a target communication protocol adopted by a data packet during transmission according to the type of a communication link between the intermediate server and the target intelligent logistics equipment; analyzing the data packet based on the target communication protocol to obtain analyzed data; and packaging the analyzed data according to a communication protocol corresponding to the type of the communication link between the intermediate server and the logistics data server to generate a packaged data packet. According to the technical scheme of the embodiment of the application, the logistics data server can support various types of intelligent logistics equipment, various communication link types between the intelligent logistics equipment and the logistics data server, and meanwhile the system load of the logistics data service platform can be reduced.

Description

Data processing method and device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, an apparatus, a computer-readable medium, and an electronic device.
Background
The logistics data server is used for providing corresponding business services for the intelligent logistics equipment, so that a user can better control the intelligent logistics equipment through the logistics data server.
The logistics data server needs to support various types of intelligent logistics devices and various communication link types between each type of intelligent logistics device and the logistics data server in order to better serve the various types of intelligent logistics devices. In the related art, generally, the logistics data server develops functional modules supporting various intelligent logistics devices, and as the types of the intelligent logistics devices increase, the functional modules of the logistics data server are redundant, so that the system load of the logistics data server is seriously increased. In addition, when a new type of intelligent logistics equipment is added, the intelligent logistics equipment is required to be updated and maintained frequently, and the normal use of other types of intelligent logistics equipment is further influenced.
Disclosure of Invention
Embodiments of the present application provide a data processing method, an apparatus, a computer-readable medium, and an electronic device, which enable a logistics data server to support various types of intelligent logistics devices, and reduce a system load of a logistics data service platform while enabling various communication link types between the intelligent logistics devices and the logistics data server.
Additional features and advantages of the present application will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the present invention.
According to an aspect of an embodiment of the present application, there is provided a data processing method, including: detecting a communication link type between the intermediate server and a target intelligent logistics device in response to a data packet from the target intelligent logistics device; determining a target communication protocol adopted by the data packet during transmission according to the type of a communication link between the intermediate server and the target intelligent logistics equipment; analyzing the data packet based on the target communication protocol to obtain analyzed data; packaging the analyzed data according to a communication protocol corresponding to the type of the communication link between the intermediate server and the logistics data server to generate a packaged data packet; and sending the encapsulated data packet to the logistics data server through a communication link between the intermediate server and the logistics data server.
According to an aspect of an embodiment of the present application, there is provided a data processing apparatus including: the detection unit is used for responding to a data packet from a target intelligent logistics device and detecting the type of a communication link between the intermediate server and the target intelligent logistics device; the execution unit is used for determining a target communication protocol adopted by the data packet during transmission according to the type of the communication link between the intermediate server and the target intelligent logistics equipment; the analysis unit is used for analyzing the data packet based on the target communication protocol to obtain analyzed data; the packaging unit is used for packaging the analyzed data according to a communication protocol corresponding to the type of the communication link between the intermediate server and the logistics data server to generate a packaged data packet; and the sending unit is used for sending the encapsulated data packet to the logistics data server through a communication link between the intermediate server and the logistics data server.
In some embodiments of the present application, based on the foregoing solution, the detection unit includes: a detection subunit, configured to detect a target receiving port number at which the data packet is received; a first execution subunit, configured to determine, based on the target receiving port number and a correspondence between the port number and a communication link type, a communication link type between the intermediate server and the target intelligent logistics device.
In some embodiments of the present application, based on the foregoing solution, the execution unit includes: the acquisition subunit is used for acquiring the equipment type of the target intelligent logistics equipment; the first generation subunit is configured to generate target environment configuration information according to the device type of the target intelligent logistics device and the communication link type between the intermediate server and the target intelligent logistics device; and the second execution subunit is configured to determine, based on the target environment configuration information and a correspondence between the environment configuration information and a communication protocol, a target communication protocol adopted by the data packet during transmission.
In some embodiments of the present application, based on the foregoing scheme, the sending unit includes: the second generating subunit is used for generating a write-in message packet according to the encapsulated data packet; the adding subunit is used for adding the writing message packet into a message sending queue; and the sending subunit is configured to send the write message packet included in the message sending queue to the logistics data server through a communication link between the intermediate server and the logistics data server.
In some embodiments of the present application, based on the foregoing solution, the sending subunit is configured to determine, according to contents of write message packets, a priority of each write message packet in the message sending queue; determining the sending sequence of each write-in message packet in the message sending queue based on the priority of each write-in message packet; and sequentially sending the written message packets in the message sending queue to the logistics data server based on the sending sequence.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the data processing method as described in the above embodiments.
According to an aspect of embodiments of the present application, there is provided a computer-readable medium on which a computer program is stored, the computer program, when executed by a processor, implementing the data processing method as described in the above embodiments.
In the technical solutions provided in some embodiments of the present application, the logistics data server can support various different intelligent logistics devices and various types of communication link types between different intelligent logistics devices and the logistics data server, and can also effectively reduce the system load of the logistics data service platform while supporting various different intelligent logistics devices and various types of communication link types between different intelligent logistics devices and the logistics data server.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 shows a schematic diagram of an exemplary system architecture to which aspects of embodiments of the present application may be applied;
FIG. 2 schematically shows a flow diagram of a data processing method according to an embodiment of the present application;
FIG. 3 schematically shows a flow diagram of a data processing method according to an embodiment of the present application;
FIG. 4 schematically shows a flow diagram of a data processing method according to an embodiment of the present application;
fig. 5 schematically shows a detailed flowchart of step S250 according to an embodiment of the present application;
FIG. 6 schematically shows a flow diagram of a data processing method according to an embodiment of the present application;
FIG. 7 schematically shows a block diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 8 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied.
As shown in fig. 1, the system architecture 100 may include an intelligent logistics apparatus 101, an intermediate server 102, a logistics data server 103, and a network 104. The network 104 serves as a medium for providing communication links between the intelligent logistics apparatus 101, the intermediate server 102, and the logistics data server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. It should be understood that the numbers of the intelligent logistics apparatuses, the intermediate servers, the logistics data servers, and the networks in fig. 1 are merely illustrative. There may be any number of intelligent logistics devices, networks, and servers, as desired for implementation. For example, the intermediate server 102 or the logistics data server 103 may be a server cluster composed of a plurality of servers, and the like.
In the intermediate server 102, the intermediate server 102 responds to the data packet from the target intelligent logistics apparatus 101 and detects the communication link type between the intermediate server 102 and the target intelligent logistics apparatus 101; determining a target communication protocol adopted by the data packet during transmission according to the type of a communication link between the intermediate server 102 and the target intelligent logistics device 101; analyzing the data packet based on the target communication protocol to obtain analyzed data; packaging the analyzed data according to a communication protocol corresponding to the type of the communication link between the intermediate server 102 and the logistics data server 103 to generate a packaged data packet; and sending the encapsulated data packet to the logistics data server 103 through a communication link between the intermediate server 102 and the logistics data server 103.
Therefore, the technical scheme of the embodiment of the application can enable the logistics data server to support various types of intelligent logistics equipment and various communication link types between the intelligent logistics equipment and the logistics data server, and simultaneously can reduce the system load of the logistics data service platform.
The data processing method provided by the embodiments of the present application is generally performed by the intermediary server 102. However, it is easily understood by those skilled in the art that the data processing method provided in the embodiment of the present application may also be executed by the logistics data server 103, and this is not particularly limited.
The implementation details of the technical solution of the embodiment of the present application are set forth in detail below:
fig. 2 schematically shows a flowchart of a data processing method according to an embodiment of the present application, which may be performed by the intermediate server 102 shown in fig. 1, and the present embodiment is described by taking the intermediate server as an example. Referring to fig. 2, the data processing method at least includes steps S210 to S230, which are described in detail as follows:
in step S210, a communication link type between the intermediate server and the target intelligent logistics apparatus is detected in response to the data packet from the target intelligent logistics apparatus.
In one embodiment, the intelligent logistics device is a logistics device capable of performing intelligent control, and specifically, the intelligent logistics device can realize certain specific functions of sorting, carrying, storing and the like. The intelligent logistics equipment can receive the control instruction or upload the data of the intelligent logistics equipment to the corresponding intermediate server, and then the data are forwarded to the logistics data server by the intermediate server, so that the communication connection between the intelligent logistics equipment and the logistics data server is realized.
The communication link is a link when the intelligent logistics device is in communication connection with the intermediate server, the communication link between the intelligent logistics device and the intermediate server may include an LPWA (Low-Power Wide-Area) cellular communication link, a 5G global system for mobile communication (gsm) communication link, a Radio Frequency Identification (RFID) communication link, and a satellite communication link, and the satellite communication link may specifically include a Low-orbit satellite communication link such as an Orbcomm satellite communication link, an astronomical satellite communication link, and a cloud satellite communication link, which is not limited herein. The data packet is a data packet sent by the intelligent logistics equipment to the intermediate server through any one type of communication link.
The intermediate server can detect the type of the communication link between the intermediate server and the target intelligent logistics device after receiving the data packet of any target intelligent logistics device.
Referring to fig. 3, fig. 3 schematically shows a flowchart of a data processing method according to an embodiment of the present application, and referring to fig. 3, the step of detecting the type of the communication link between the intermediate server and the target intelligent logistics device may specifically include steps S310 to S320, which are described in detail as follows.
In step S310, a destination receiving port number of the received packet is detected.
In an embodiment, the receiving port is a specific function module in the intermediate server for receiving a data packet, and for different types of communication links, the intermediate server may receive the data packet from the target intelligent logistics device through different receiving ports, and the receiving port number is certain identification information for uniquely identifying different receiving ports, where the identification information may specifically be a serial number of the receiving port or a device identification of the receiving port, which is not limited herein. When determining the type of the communication link between the intermediate server and the target intelligent logistics device, a target receiving port receiving the data packet may be monitored first, and a receiving port number corresponding to the target receiving port may be obtained.
In step S320, a communication link type between the intermediate server and the target intelligent logistics device is determined based on the target receiving port number and the corresponding relationship between the port number and the communication link type.
In one embodiment, the intermediate server may pre-store a corresponding relationship between receiving port numbers of different receiving ports and corresponding communication link types, and the intermediate server determines the communication link type between the intermediate server and the target intelligent logistics device according to the determined receiving port number of the target receiving port and the corresponding relationship.
In the technical solution of the embodiment shown in fig. 3, by pre-establishing the correspondence between the number of the receiving port corresponding to each different receiving port and the type of the communication link, the type of the communication link between the intermediate server and the target intelligent logistics device can be determined quickly and accurately, and the efficiency of data processing is improved.
In step S220, a target communication protocol used in the transmission of the data packet is determined according to the communication link type between the intermediate server and the target intelligent logistics device.
In an embodiment, an association relationship exists between a communication link type between the intermediate server and the target intelligent logistics device and a target communication protocol adopted by the data packet during transmission, and after the communication link type between the intermediate server and the target intelligent logistics device is determined, the target communication protocol adopted by the data packet during transmission can be determined according to the determined communication link type and the association relationship, so that the data packet is analyzed and processed. It will be appreciated that the determined target communication protocol may be one or more, as the same communication link type may correspond to a plurality of different communication protocols.
Referring to fig. 4, fig. 4 schematically illustrates a specific flowchart of step S220 according to an embodiment of the present application, and referring to fig. 4, step S220 may specifically include step S410 to step S4230, which are described in detail below.
In step S410, the device type of the target intelligent logistics device is acquired.
In an embodiment, since the same type of communication link may correspond to a plurality of different communication protocols, and when the intelligent logistics devices of different device types communicate with the intermediate server by using the same type of communication link, on the premise that the device types of the intelligent logistics devices are different, the corresponding communication protocols may also be different, so that the target communication protocol used in the transmission of the data packet needs to be determined based on the device types of the intelligent logistics devices and the communication link types for transmitting the data packet between the two types of information of the intelligent logistics devices and the intermediate server.
Optionally, the device identifier of the target intelligent logistics device may be obtained, and the device type of the target intelligent logistics device is determined according to the device identifier of the target intelligent logistics device.
In step S420, target environment configuration information is generated according to the device type of the target intelligent logistics device and the communication link type between the intermediate server and the target intelligent logistics device.
In an embodiment, after the device type of the target intelligent logistics device and the communication link type between the intermediate server and the target intelligent logistics device are obtained, target environment configuration information corresponding to the target intelligent logistics device may be generated according to the two types of information, and a target communication protocol adopted in transmission of the data packet is determined based on the environment configuration information. It can be understood that the intermediate server may store in advance a correspondence between environment configuration information corresponding to different types of intelligent logistics devices and a communication protocol used in transmission of the data packet, so as to determine the communication protocol used in transmission according to the environment configuration information.
In step S430, a target communication protocol used by the data packet in transmission is determined based on the target environment configuration information and the corresponding relationship between the environment configuration information and the communication protocol.
In an embodiment, the intermediate server may search for a correspondence between the pre-stored environment configuration information and the communication protocol according to the generated target environment configuration information as an index, and determine a target communication protocol used when the data packet from the target intelligent logistics device is transmitted.
In the technical solution of the embodiment shown in fig. 4, by storing the correspondence between different environment configuration information and the communication protocol used in the transmission of the data packet, the intermediate server can support the intelligent logistics devices of different device types, and more quickly determine the target communication protocol used in the transmission of the data packet, thereby improving the efficiency of data processing.
In step S230, the data packet is analyzed based on the target communication protocol, so as to obtain analyzed data.
In an embodiment, after determining a target communication protocol used by a data packet of a target intelligent logistics device during transmission, in order to enable the logistics data server to smoothly receive and analyze the data packet, the data packet needs to be analyzed according to the determined target communication protocol to obtain analyzed data.
Optionally, the data packet may be specifically analyzed according to an analysis function corresponding to the target communication protocol, so as to obtain analyzed data.
In step S240, the analyzed data is encapsulated according to the communication protocol corresponding to the communication link type between the intermediate server and the logistics data server, and an encapsulated data packet is generated.
In one embodiment, the type of the communication link between the intermediate server and the logistics data server is a certain type of communication link agreed in advance by the intermediate server and the logistics data server. After the intermediate server obtains the analyzed data, in order to facilitate sending the analyzed data to the logistics data server and enable the logistics data server to read the analyzed information, the intermediate server may perform encapsulation processing on the analyzed data according to a communication protocol corresponding to a communication link type between the intermediate server and the logistics data server, and generate an encapsulated data packet.
In step S250, the encapsulated data packet is transmitted to the logistics data server through the communication link between the intermediate server and the logistics data server.
In an embodiment, the intermediate server sends the encapsulated data packet to the logistics data server through a communication link between the intermediate server and the logistics data server, and specifically, the encapsulated data packet may be sent to the logistics data server based on a sending port corresponding to the communication link between the intermediate server and the logistics data server.
Fig. 5 schematically shows a detailed flowchart of step S250 according to an embodiment of the present application, and referring to fig. 5, step S250 may include step S510 to step S530, which are described in detail as follows.
In step S510, a write message packet is generated from the encapsulated data packet.
In step S520, the write message packet is added to the message transmission queue.
In step S530, the write message packet included in the message transmission queue is transmitted to the logistics data server through a communication link between the intermediate server and the logistics data server.
In one embodiment, when the intermediate server sends the encapsulated data packet to the logistics data server, a corresponding write message packet is generated according to the encapsulated data packet and is used as a data packet to be sent. And the intermediate server adds all the generated message packets into the message sending queue, and sends all the write message packets in the message sending queue to the logistics data server through the thread for sending the messages.
Specifically, the intermediate server transmits the write message packet included in the message transmission queue to the logistics data server through a communication link in communication connection with the logistics data server.
By generating the write-in message packet according to the encapsulated data packet and adding the generated write-in message packet to the message sending queue, the intermediate server can effectively send the write-in messages corresponding to the intelligent logistics devices to the logistics data server in order, and the write-in message packet is prevented from being missed.
Fig. 6 schematically shows a flowchart of a data processing method according to an embodiment of the present application, and referring to fig. 6, the step of sending the write message packet contained in the message sending queue to the logistics data server may specifically include steps S610 to S630, which are described in detail below.
In step S610, the priority of each write message packet in the message transmission queue is determined according to the content of the write message packet.
In one embodiment, when the write message packets contained in the message sending queue are sent to the logistics data server, the intermediate server determines the priority of each write message packet in the message sending queue according to the content of the write message packet. For the write message packets using different function types, the corresponding priorities are different, for example, the priority corresponding to the write message packet of the warning prompt type or the device maintenance type is high, such as the priority corresponding to the write message packet of the data storage type is low. Optionally, the priority of the write message packet may be specifically divided into three levels, i.e., a high priority level, a medium priority level, and a low priority level, or may be divided into more than three priority levels according to the requirement.
Optionally, when determining the priority of each write-in message packet in the message sending queue according to the content of the write-in message packet, the priority of each write-in message packet may be determined according to a specific field included in the content of the write-in message packet and a corresponding relationship between the specific field and the priority.
In step S620, the transmission order of the respective write message packets in the message transmission queue is determined based on the priorities of the respective write message packets.
In one embodiment, when the sending sequence of each write message packet in the message sending queue is determined based on the priority of each write message packet, the sending sequence corresponding to the write message packet with the higher priority is earlier. It should be noted that, for two write message packets with the same priority, the sending order may be determined according to the time when the write message packet is added to the message sending queue, for example, the sending order corresponding to the write message packet that is added to the message sending queue earlier in time is earlier.
In step S630, the write message packets in the message transmission queue are sequentially transmitted to the logistics data server based on the transmission order.
In one embodiment, the intermediate server sequentially transmits the write message packets in the message transmission queue to the logistics data server based on the transmission order, so as to transmit the write message packets in the message transmission queue to the logistics data server.
In the technical solution of the embodiment shown in fig. 6, the sending sequence of each write-in message packet in the message sending queue is determined based on the priority of each write-in message packet, so that the write-in message packet with a high importance degree can be preferentially sent to the logistics data server according to the importance degree of each write-in message packet, thereby meeting a more complex service scenario and improving an application scenario of the scheme.
The following describes embodiments of an apparatus of the present application, which may be used to perform the data processing method in the above-described embodiments of the present application. For details that are not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the data processing method described above in the present application.
Fig. 7 schematically shows a block diagram of a data processing device according to an embodiment of the present application. Referring to fig. 7, a data processing apparatus 700 according to an embodiment of the present application includes: detection unit 710, execution unit 720, parsing unit 730, encapsulation unit 740, and sending unit 750.
The detection unit 710 is configured to detect a communication link type between the intermediate server and a target intelligent logistics device in response to a data packet from the target intelligent logistics device; the execution unit 720 is configured to determine, according to the type of the communication link between the intermediate server and the target intelligent logistics device, a target communication protocol used in transmission of the data packet; the analyzing unit 730 is configured to analyze the data packet based on the target communication protocol to obtain analyzed data; the encapsulating unit 740 is configured to encapsulate the analyzed data according to a communication protocol corresponding to a communication link type between the intermediate server and the logistics data server, and generate an encapsulated data packet; the sending unit 750 is configured to send the encapsulated data packet to the logistics data server through a communication link between the intermediate server and the logistics data server.
In one embodiment of the present application, the detecting unit 710 includes: a detection subunit, configured to detect a target receiving port number at which the data packet is received; a first execution subunit, configured to determine, based on the target receiving port number and a correspondence between the port number and a communication link type, a communication link type between the intermediate server and the target intelligent logistics device.
In an embodiment of the present application, the execution unit 720 includes: the acquisition subunit is used for acquiring the equipment type of the target intelligent logistics equipment; the first generation subunit is configured to generate target environment configuration information according to the device type of the target intelligent logistics device and the communication link type between the intermediate server and the target intelligent logistics device; and the second execution subunit is configured to determine, based on the target environment configuration information and a correspondence between the environment configuration information and a communication protocol, a target communication protocol adopted by the data packet during transmission.
In an embodiment of the present application, the sending unit 750 includes: the second generating subunit is used for generating a write-in message packet according to the encapsulated data packet; the adding subunit is used for adding the writing message packet into a message sending queue; and the sending subunit is configured to send the write message packet included in the message sending queue to the logistics data server through a communication link between the intermediate server and the logistics data server.
In an embodiment of the present application, the sending unit 750 includes: the sending subunit is specifically configured to determine, according to the content of the write-in message packet, a priority of each write-in message packet in the message sending queue; determining the sending sequence of each write-in message packet in the message sending queue based on the priority of each write-in message packet; sequentially sending the write-in message packets in the message sending queue to the logistics data server based on the sending sequence
FIG. 8 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system 800 of the electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, a computer system 800 includes a Central Processing Unit (CPU)801, which can perform various appropriate actions and processes, such as performing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 802 or a program loaded from a storage portion 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for system operation are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other by a bus 1504. An Input/Output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 808 including a hard disk and the like; and a communication section 809 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to embodiments of the present application, the processes described below with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. When the computer program is executed by the Central Processing Unit (CPU)801, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A data processing method is applied to an intermediate server connected with a logistics data server, and is characterized by comprising the following steps:
detecting a communication link type between the intermediate server and a target intelligent logistics device in response to a data packet from the target intelligent logistics device;
determining a target communication protocol adopted by the data packet during transmission according to the type of a communication link between the intermediate server and the target intelligent logistics equipment;
analyzing the data packet based on the target communication protocol to obtain analyzed data;
packaging the analyzed data according to a communication protocol corresponding to the type of the communication link between the intermediate server and the logistics data server to generate a packaged data packet;
and sending the encapsulated data packet to the logistics data server through a communication link between the intermediate server and the logistics data server.
2. The data processing method of claim 1, wherein the detecting the type of the communication link between the intermediate server and the target intelligent logistics device comprises:
detecting a target receiving port number of the received data packet;
and determining the communication link type between the intermediate server and the target intelligent logistics equipment based on the target receiving port number and the corresponding relation between the port number and the communication link type.
3. The data processing method of claim 1, wherein the determining a target communication protocol adopted by the data packet in transmission according to the communication link type between the intermediate server and the target intelligent logistics device comprises:
acquiring the equipment type of the target intelligent logistics equipment;
generating target environment configuration information according to the equipment type of the target intelligent logistics equipment and the communication link type between the intermediate server and the target intelligent logistics equipment;
and determining a target communication protocol adopted by the data packet during transmission based on the target environment configuration information and the corresponding relation between the environment configuration information and the communication protocol.
4. The data processing method of claim 1, wherein the sending the encapsulated data packet to the logistics data server via a communication link between the intermediate server and the logistics data server comprises:
generating a write-in message packet according to the encapsulated data packet;
adding the write message packet into a message sending queue;
and sending the write-in message packet contained in the message sending queue to the logistics data server through a communication link between the intermediate server and the logistics data server.
5. The data processing method according to claim 4, wherein the sending the write message packet included in the message sending queue to the logistics data server comprises:
determining the priority of each write-in message packet in the message sending queue according to the content of the write-in message packet;
determining the sending sequence of each write-in message packet in the message sending queue based on the priority of each write-in message packet;
and sequentially sending the written message packets in the message sending queue to the logistics data server based on the sending sequence.
6. A data processing apparatus, comprising:
the detection unit is used for responding to a data packet from a target intelligent logistics device and detecting the type of a communication link between the intermediate server and the target intelligent logistics device;
the execution unit is used for determining a target communication protocol adopted by the data packet during transmission according to the type of the communication link between the intermediate server and the target intelligent logistics equipment;
the analysis unit is used for analyzing the data packet based on the target communication protocol to obtain analyzed data;
the packaging unit is used for packaging the analyzed data according to a communication protocol corresponding to the type of the communication link between the intermediate server and the logistics data server to generate a packaged data packet;
and the sending unit is used for sending the encapsulated data packet to the logistics data server through a communication link between the intermediate server and the logistics data server.
7. The data processing apparatus of claim 6, wherein the detection unit comprises:
a detection subunit, configured to detect a target receiving port number at which the data packet is received;
a first execution subunit, configured to determine, based on the target receiving port number and a correspondence between the port number and a communication link type, a communication link type between the intermediate server and the target intelligent logistics device.
8. The data processing apparatus of claim 1, wherein the execution unit comprises:
the acquisition subunit is used for acquiring the equipment type of the target intelligent logistics equipment;
a generating subunit, configured to generate target environment configuration information according to the device type of the target intelligent logistics device and a communication link type between the intermediate server and the target intelligent logistics device;
and the second execution subunit is configured to determine, based on the target environment configuration information and a correspondence between the environment configuration information and a communication protocol, a target communication protocol adopted by the data packet during transmission.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a data processing method as claimed in any one of claims 1 to 5.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the data processing method of any one of claims 1 to 5.
CN202010592464.1A 2020-06-24 2020-06-24 Data processing method, device, electronic equipment and computer readable medium Active CN111818136B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202010592464.1A CN111818136B (en) 2020-06-24 2020-06-24 Data processing method, device, electronic equipment and computer readable medium
PCT/CN2021/097564 WO2021259013A1 (en) 2020-06-24 2021-06-01 Data processing method and apparatus, electronic device, and computer-readable medium
US18/153,310 US20230163998A1 (en) 2020-06-24 2023-01-11 Data processing method, device, electronic device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010592464.1A CN111818136B (en) 2020-06-24 2020-06-24 Data processing method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN111818136A true CN111818136A (en) 2020-10-23
CN111818136B CN111818136B (en) 2023-08-22

Family

ID=72856513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010592464.1A Active CN111818136B (en) 2020-06-24 2020-06-24 Data processing method, device, electronic equipment and computer readable medium

Country Status (2)

Country Link
CN (1) CN111818136B (en)
WO (1) WO2021259013A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804288A (en) * 2020-12-14 2021-05-14 国汽(北京)智能网联汽车研究院有限公司 Vehicle-end data processing method and device, electronic equipment and computer storage medium
WO2021259013A1 (en) * 2020-06-24 2021-12-30 深圳中集智能科技有限公司 Data processing method and apparatus, electronic device, and computer-readable medium
CN113938531A (en) * 2021-09-23 2022-01-14 北京车和家信息技术有限公司 Data transmission method, device, equipment and medium
CN114025353A (en) * 2021-11-04 2022-02-08 湖南三一华源机械有限公司 Data processing method and device for mobile equipment, storage medium and mobile equipment
CN114827188A (en) * 2022-03-04 2022-07-29 苏州智能交通信息科技股份有限公司 Platform equipment management method, system, terminal and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844795A (en) * 2022-04-27 2022-08-02 工银科技有限公司 End-to-end link monitoring method and device
CN115190161B (en) * 2022-06-10 2024-04-05 北京京东振世信息技术有限公司 Method, apparatus, device and computer readable medium for processing article data
CN114755993B (en) * 2022-06-13 2022-11-22 深圳市玄羽科技有限公司 Cooperative control method and system applied to industrial Internet and related equipment
CN115396752B (en) * 2022-07-29 2023-05-26 国电南京自动化股份有限公司 Redis-based biplane data acquisition method and system
CN115391019B (en) * 2022-10-26 2022-12-27 小米汽车科技有限公司 Data acquisition method and device, readable storage medium and chip

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006562A (en) * 2009-09-01 2011-04-06 杭州华三通信技术有限公司 Method and device for transmitting data on wireless local area network (WLAN) link
CN104394143A (en) * 2014-11-24 2015-03-04 青岛海尔软件有限公司 Internet of Things equipment and Internet of Things server communicating method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714945A (en) * 2009-12-02 2010-05-26 浙江中控技术股份有限公司 System and method for realizing internetwork communication
CN104202245B (en) * 2014-09-16 2018-01-23 深圳市金正方科技股份有限公司 The intelligent transmission method and device of adaptive communications mode
US10701037B2 (en) * 2015-05-27 2020-06-30 Ping Identity Corporation Scalable proxy clusters
CN111818136B (en) * 2020-06-24 2023-08-22 深圳中集智能科技有限公司 Data processing method, device, electronic equipment and computer readable medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006562A (en) * 2009-09-01 2011-04-06 杭州华三通信技术有限公司 Method and device for transmitting data on wireless local area network (WLAN) link
CN104394143A (en) * 2014-11-24 2015-03-04 青岛海尔软件有限公司 Internet of Things equipment and Internet of Things server communicating method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021259013A1 (en) * 2020-06-24 2021-12-30 深圳中集智能科技有限公司 Data processing method and apparatus, electronic device, and computer-readable medium
CN112804288A (en) * 2020-12-14 2021-05-14 国汽(北京)智能网联汽车研究院有限公司 Vehicle-end data processing method and device, electronic equipment and computer storage medium
CN113938531A (en) * 2021-09-23 2022-01-14 北京车和家信息技术有限公司 Data transmission method, device, equipment and medium
CN113938531B (en) * 2021-09-23 2023-10-31 北京车和家信息技术有限公司 Data transmission method, device, equipment and medium
CN114025353A (en) * 2021-11-04 2022-02-08 湖南三一华源机械有限公司 Data processing method and device for mobile equipment, storage medium and mobile equipment
CN114827188A (en) * 2022-03-04 2022-07-29 苏州智能交通信息科技股份有限公司 Platform equipment management method, system, terminal and storage medium
CN114827188B (en) * 2022-03-04 2024-04-16 苏州智能交通信息科技股份有限公司 Platform equipment management method, system, terminal and storage medium

Also Published As

Publication number Publication date
WO2021259013A1 (en) 2021-12-30
CN111818136B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN111954173A (en) Method, device, server and computer readable storage medium for sending short message
CN110445632B (en) Method and device for preventing client from crashing
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN112181542A (en) Function calling method and device, electronic equipment and storage medium
CN112311720A (en) Data transmission method and device
US20230163998A1 (en) Data processing method, device, electronic device and computer readable medium
CN116700907B (en) Service call demand document storage method, device, electronic equipment and readable medium
US11704157B2 (en) Method and apparatus for comparing acquired cloud resource use information to thresholds to recommend a target cloud resource instance
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN110727558A (en) Information prompting method and device, storage medium and electronic equipment
CN115600964A (en) Voice approval method and device and related equipment
CN113807056B (en) Document name sequence error correction method, device and equipment
CN115374207A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN113329096B (en) Message transmission method and device, electronic equipment and storage medium
CN112379967B (en) Simulator detection method, device, equipment and medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN113795039A (en) Operator network switching method, device, equipment and computer readable storage medium
CN112613955A (en) Order processing method and device, electronic equipment and storage medium
CN111970338A (en) Request processing method and device based on cloud function and computer readable medium
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN113704079A (en) Interface testing method and device based on Protobuf
CN110955583A (en) Notification method and device, electronic equipment and storage medium
CN115374320B (en) Text matching method and device, electronic equipment and computer medium
CN109032724B (en) Method, device, terminal and storage medium for processing user-defined bullet screen message

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
TA01 Transfer of patent application right

Effective date of registration: 20230425

Address after: 518000 Shenzhen national engineering laboratory building b1001-b1004, No. 20, Gaoxin South seventh Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Applicant after: SHENZHEN CIMC SECURITY AND SMART TECHNOLOGY Co.,Ltd.

Address before: Room 102, Block A, Phase II, Science and Technology Building, 1057 Nanhai Avenue, Shekou, Nanshan District, Shenzhen City, Guangdong Province, 518000

Applicant before: SHENZHEN CIMC SECURITY AND SMART TECHNOLOGY Co.,Ltd.

Applicant before: CHINA INTERNATIONAL MARINE CONTAINERS (GROUP) Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant