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

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

Info

Publication number
CN111818136B
CN111818136B CN202010592464.1A CN202010592464A CN111818136B CN 111818136 B CN111818136 B CN 111818136B CN 202010592464 A CN202010592464 A CN 202010592464A CN 111818136 B CN111818136 B CN 111818136B
Authority
CN
China
Prior art keywords
data
message
target
equipment
packet
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.)
Active
Application number
CN202010592464.1A
Other languages
Chinese (zh)
Other versions
CN111818136A (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
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 Shenzhen CIMC Intelligent Technology Co Ltd filed Critical Shenzhen CIMC Intelligent Technology 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

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, a data processing device, a computer readable medium and electronic equipment. The data processing method comprises the steps of responding to a data packet from target intelligent logistics equipment, and detecting the type of a communication link between an intermediate server and the target intelligent logistics equipment; 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; and encapsulating the analyzed data according to a communication protocol corresponding to the communication link type between the intermediate server and the logistics data server to generate an encapsulated data packet. The technical scheme of the embodiment of the application enables 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 a logistics data service platform.

Description

Data processing method, 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, a data processing device, 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 equipment and various communication link types between each type of intelligent logistics equipment and the logistics data server in order to better serve the various types of intelligent logistics equipment. In the related art, the logistics data server generally 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 can be seriously increased. In addition, when new types of intelligent logistics equipment are added, the intelligent logistics equipment is required to be updated and maintained frequently, and normal use of other types of intelligent logistics equipment is affected.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device, a computer readable medium and electronic equipment, which can enable a 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 reduce the system load of a logistics data service platform.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
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 the target intelligent logistics equipment in response to a data packet from the target intelligent logistics equipment; 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; encapsulating the parsed data according to a communication protocol corresponding to the communication link type between the intermediate server and the logistics data server to generate an encapsulated 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 the data packet from the target intelligent logistics equipment and detecting the type of a communication link between the intermediate server and the target intelligent logistics equipment; the execution unit is used for 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; the analyzing 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 parsed data according to a communication protocol corresponding to the communication link type between the intermediate server and the logistics data server, and generating 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 application, based on the foregoing, the detection unit includes: a detection subunit, configured to detect a target receiving port number that receives the data packet; and the first execution subunit is used for 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.
In some embodiments of the application, based on the foregoing, 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 used for 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 the second execution subunit is used for 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.
In some embodiments of the present application, based on the foregoing scheme, the transmitting unit includes: a second generating subunit, configured to generate a write-in message packet according to the encapsulated data packet; an adding subunit, configured to add the write message packet to a message sending queue; and the sending subunit is used for sending the writing 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.
In some embodiments of the present application, based on the foregoing solution, the sending subunit is configured to determine, according to the content of the write message packet, a priority of each write message packet in the message sending queue; determining the sending sequence of each written message packet in the message sending queue based on the priority of each written message packet; and sequentially transmitting the written message packets in the message transmission queue to the logistics data server based on the transmission sequence.
According to an aspect of an embodiment of the present application, there is provided an electronic apparatus including: one or more processors; and a storage means 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 the embodiments of the present application, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements a data processing method as described in the above embodiments.
According to the technical scheme provided by the embodiments of the application, the logistics data server can support various different intelligent logistics equipment and various types of communication link types between the different intelligent logistics equipment and the logistics data server, and can effectively reduce the system load of the logistics data service platform while supporting various different intelligent logistics equipment and various types of communication link types between the different intelligent logistics equipment 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 as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of an embodiment of the application may be applied;
FIG. 2 schematically illustrates a flow chart of a data processing method according to one embodiment of the application;
FIG. 3 schematically illustrates a flow chart of a data processing method according to one embodiment of the application;
FIG. 4 schematically illustrates a flow chart of a data processing method according to one embodiment of the application;
FIG. 5 schematically illustrates a specific flow chart of step S250, according to one embodiment of the application;
FIG. 6 schematically illustrates a flow chart of a data processing method according to one embodiment of the application;
FIG. 7 schematically shows a block diagram of a data processing apparatus according to an embodiment of the application;
fig. 8 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many 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 the 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 application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they 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 order of actual execution may be changed according to actual situations.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of an embodiment of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include an intelligent logistics device 101, an intermediate server 102, a logistics data server 103, and a network 104. The network 104 serves as a medium for providing a communication link 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, among others. It should be understood that the number of intelligent logistics devices, intermediate servers, logistics data servers and 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 physical distribution data server 103 may be a server cluster formed by a plurality of servers.
Among the intermediate servers 102, the intermediate server 102 responds to the data packet from the target smart logistics device 101 and detects the type of communication link between the intermediate server 102 and the target smart logistics device 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 equipment 101; analyzing the data packet based on the target communication protocol to obtain analyzed data; encapsulating the parsed data according to a communication protocol corresponding to the communication link type between the intermediate server 102 and the logistics data server 103 to generate an encapsulated data packet; the encapsulated data packets are sent to the logistics data server 103 via 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 embodiment of the present application is generally performed by the intermediate server 102. However, it will be readily understood by those skilled in the art that the data processing method provided in the present embodiment of the present application may be performed by the physical distribution data server 103, which is not limited in particular.
The implementation details of the technical scheme of the embodiment of the application are described in detail below:
fig. 2 schematically shows a flow chart of a data processing method according to an embodiment of the application, which may be performed by the intermediate server 102 as shown in fig. 1, which embodiment is illustrated by way of example. Referring to fig. 2, the data processing method at least includes steps S210 to S230, and is described in detail as follows:
in step S210, a communication link type between the intermediate server and the target smart logistics device is detected in response to the data packet from the target smart logistics device.
In one embodiment, the intelligent logistics equipment is logistics equipment capable of performing intelligent control, and particularly can be logistics equipment capable of achieving a specific function 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 intelligent logistics equipment is forwarded to the logistics data server by the intermediate server, so that communication connection with the logistics data server is realized.
The communication link is a link when the intelligent logistics equipment and the intermediate server are in communication connection, and the communication link between the intelligent logistics equipment and the intermediate server can include an LPWA (Low-Power Wide-Area) cellular communication link, a 5G global system for mobile communication link, a radio frequency identification (RFID, radio Frequency Identification) communication link and a satellite communication link, and the satellite communication link can specifically include, but is not limited to, an Orbcomm satellite communication link, a sky-start satellite communication link, a cloud satellite communication link and other Low-orbit satellite communication links. The data packet is a data packet sent by the intelligent logistics equipment to the intermediate server through any one of the above types of communication links.
The intermediate server can detect the type of a communication link between the intermediate server and the target intelligent logistics equipment after receiving the data packet of any one target intelligent logistics equipment.
Referring to fig. 3, fig. 3 schematically illustrates a flowchart of a data processing method according to an embodiment of the present application, and referring to fig. 3, the step of detecting a type of a communication link between an intermediate server and a target smart logistics device may specifically include steps S310 to S320, which are described in detail below.
In step S310, the destination receiving port number of the received packet is detected.
In one embodiment, the receiving port is a specific functional module for receiving the data packet in the intermediate server, 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, where the receiving port number is some identification information that uniquely identifies different receiving ports, and the identification information may specifically be a number of the receiving port or a device identifier 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 equipment, the target receiving port for receiving the data packet can be monitored first, and the receiving port number corresponding to the target receiving port can be obtained.
In step S320, the communication link type between the intermediate server and the target smart logistics device is determined based on the target receiving port number and the correspondence between the port number and the communication link type.
In one embodiment, the intermediate server pre-stores the correspondence between the receiving port numbers of the different receiving ports and the corresponding communication link types, and determines the communication link types between the intermediate server and the target intelligent logistics equipment according to the determined receiving port numbers of the target receiving ports and the correspondence.
In the technical solution of the embodiment shown in fig. 3, by pre-establishing the correspondence between the receiving port numbers corresponding to the different receiving ports and the communication link types, the communication link types between the intermediate server and the target intelligent logistics equipment can be quickly and accurately determined, and the efficiency of data processing is improved.
In step S220, a target communication protocol used by the data packet during transmission is determined according to the type of the communication link between the intermediate server and the target intelligent logistics equipment.
In one embodiment, an association relationship exists between a communication link type between the intermediate server and the target intelligent logistics equipment 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 equipment 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 can be analyzed conveniently. 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 steps S410 to S4230, which are described in detail below.
In step S410, the device type of the target smart logistics device is obtained.
In one embodiment, since the same type of communication link can correspond to multiple different communication protocols, and when intelligent logistics equipment of different equipment types adopts the same type of communication link to communicate with the intermediate server, the corresponding communication protocols will also have differences on the premise that the equipment types of the intelligent logistics equipment are different, so that the target communication protocol adopted when the data packet is transmitted needs to be determined based on the equipment type of the intelligent logistics equipment and the communication link type of the data packet transmitted between the two types of information of the intelligent logistics equipment 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, the 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 one 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 can be generated according to the two types of information, and a target communication protocol adopted by the data packet during transmission is determined based on the environment configuration information. It can be understood that the intermediate server may store in advance the correspondence between the environment configuration information corresponding to the different types of intelligent logistics devices and the communication protocol adopted by the data packet during transmission, so as to determine the communication protocol adopted during 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 correspondence between the environment configuration information and the communication protocol.
In one embodiment, the intermediate server may search in a correspondence between pre-stored environment configuration information and a communication protocol according to the generated target environment configuration information as an index, and determine a target communication protocol adopted by a data packet from the target intelligent logistics equipment during transmission.
In the technical solution of the embodiment shown in fig. 4, by storing the correspondence between different environment configuration information and the communication protocol adopted by the data packet during transmission, the intermediate server can support intelligent logistics devices of different device types, so that the target communication protocol adopted by the data packet during transmission can be determined more quickly, and the efficiency of data processing is improved.
In step S230, the data packet is parsed based on the target communication protocol, and parsed data is obtained.
In one embodiment, after determining a target communication protocol adopted by a data packet of a target intelligent logistics device during transmission, in order for a logistics data server to successfully receive and parse the data packet, the data packet needs to be parsed according to the determined target communication protocol, so as to obtain parsed data.
Optionally, the data packet may be parsed according to a parsing function corresponding to the target communication protocol, so as to obtain parsed data.
In step S240, the parsed data is encapsulated according to a communication protocol corresponding to the type of the communication link between the intermediate server and the physical distribution data server, and an encapsulated data packet is generated.
In one embodiment, the type of communication link between the intermediate server and the logistics data server is some type of communication link agreed in advance by the intermediate server and the logistics data server. After the intermediate server obtains the parsed data, in order to facilitate sending the parsed data to the logistics data server and enable the logistics data server to read the parsed information, the parsed data may be encapsulated according to a communication protocol corresponding to a communication link type between the intermediate server and the logistics data server, so as to generate an encapsulated data packet.
In step S250, the encapsulated data packet is sent to the logistics data server via a communication link between the intermediate server and the logistics data server.
In one 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 illustrates a specific flowchart of step S250 according to one embodiment of the present application, and with reference to fig. 5, step S250 may include steps S510 to S530, which are described in detail below.
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 the 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 physical distribution data server, a corresponding write-in message packet is generated according to the encapsulated data packet and is used as the data packet to be sent. The intermediate server adds all the generated message packets to the message sending queue, and sends all the written message packets in the message sending queue to the stream data server through the thread for sending the message.
Specifically, the intermediate server transmits the write message packet contained 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 writing information package according to the packaged data package and adding the generated writing information package to the information sending queue, the intermediate server can orderly send the writing information corresponding to the intelligent logistics equipment to the logistics data server, and the missing writing information package is avoided.
Fig. 6 schematically illustrates a flowchart of a data processing method according to an embodiment of the present application, and referring to fig. 6, the step of transmitting a write message packet included in a message transmission 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 packet contained in the message sending queue is sent to the stream 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 priorities corresponding to the write message packets are different, for example, the priority corresponding to the write message packet of the warning prompt type or the equipment maintenance type is high, and the priority corresponding to the write message packet of the data storage type is low. Optionally, the priority of the writing message packet may be specifically classified into three levels of high priority, medium priority and low priority, and of course, may be classified into priority levels of more than three levels according to the requirements.
Optionally, when determining the priority of each writing message packet in the message sending queue according to the content of the writing message packet, the priority of each writing message packet may be determined according to a specific field included in the content of the writing message packet and a correspondence between the specific field and the priority.
In step S620, the transmission order of each write message packet in the message transmission queue is determined based on the priority of each write message packet.
In one embodiment, when determining the transmission order of each write message packet in the message transmission queue based on the priority of each write message packet, the transmission order corresponding to the write message packet with the higher priority is forward. It should be noted that, for two write message packets with the same priority, the transmission order may be determined according to the time when the write message packet is added to the message transmission queue, for example, the transmission order corresponding to the write message packet added to the message transmission queue earlier in time is earlier.
In step S630, the write message packets in the message transmission queue are sequentially transmitted to the stream 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 stream data server based on the transmission order to achieve transmission of the write message packets in the message transmission queue to the stream data server.
In the technical solution of the embodiment shown in fig. 6, the sending sequence of each writing message packet in the message sending queue is determined based on the priority of each writing message packet, so that the writing message packets with high importance degree can be preferentially sent to the logistics data server according to the importance degree of each writing message packet, so as to realize meeting more complex service scenes and improving the application scene of the solution.
The following describes embodiments of the apparatus of the present application that may be used to perform the data processing methods of the above-described embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the data processing method of the present application.
Fig. 7 schematically shows a block diagram of a data processing apparatus according to an embodiment of the application. Referring to fig. 7, a data processing apparatus 700 according to an embodiment of the present application includes: detection section 710, execution section 720, analysis section 730, encapsulation section 740, and transmission section 750.
Wherein, the detecting unit 710 is configured to detect a type of a communication link between the intermediate server and the target smart logistics device in response to a data packet from the target smart logistics device; the execution unit 720 is configured to determine, according to a type of a communication link between the intermediate server and the target intelligent logistics device, a target communication protocol adopted by the data packet during transmission; the parsing unit 730 is configured to parse the data packet based on the target communication protocol, to obtain parsed data; the encapsulation unit 740 is configured to encapsulate the parsed data according to a communication protocol corresponding to a communication link type between the intermediate server and the physical distribution data server, so as to 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 detection unit 710 includes: a detection subunit, configured to detect a target receiving port number that receives the data packet; and the first execution subunit is used for 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.
In one 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 used for 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 the second execution subunit is used for 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.
In one embodiment of the present application, the transmitting unit 750 includes: a second generating subunit, configured to generate a write-in message packet according to the encapsulated data packet; an adding subunit, configured to add the write message packet to a message sending queue; and the sending subunit is used for sending the writing 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.
In one embodiment of the present application, the transmitting 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 written message packet in the message sending queue based on the priority of each written message packet; sequentially transmitting the written message packets in the message transmission queue to the logistics data server based on the transmission sequence
Fig. 8 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the 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 impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 8, the computer system 800 includes a central processing unit (Central Processing Unit, CPU) 801 that 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 section 808 into a random access Memory (Random Access Memory, RAM) 803. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other through 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, mouse, etc.; an output portion 807 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and the like, and a speaker, and the like; a storage section 808 including a hard disk or the like; and a communication section 809 including a network interface card such as a LAN (Local Area Network ) card, modem, or the like. The communication section 809 performs communication processing via a network such as the internet. The drive 810 is also connected to the I/O interface 805 as needed. 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 needed so that a computer program read out therefrom is mounted into the storage portion 808 as needed.
In particular, according to embodiments of the present application, the processes described below with reference to 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 shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. When executed by a Central Processing Unit (CPU) 801, performs the various functions defined in the system of the present application.
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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 flowcharts 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 involved 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 provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the methods described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the 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 application 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 application pertains.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (6)

1. A data processing method applied to an intermediate server connected with a logistics data server, comprising:
detecting a communication link type between the intermediate server and the target intelligent logistics equipment in response to a data packet from the target intelligent logistics equipment; the target intelligent logistics equipment comprises logistics equipment for realizing sorting, carrying or storing functions;
acquiring the equipment identifier of the target intelligent logistics equipment, and determining the equipment type of the target intelligent logistics equipment according to the equipment identifier 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;
searching in a corresponding relation between pre-stored environment configuration information and a communication protocol according to the target environment configuration information as an index, and determining a target communication protocol adopted by the data packet from the target intelligent logistics equipment during transmission;
analyzing the data packet based on an analysis function corresponding to the target communication protocol to obtain analyzed data;
encapsulating the parsed data according to a communication protocol corresponding to a pre-agreed communication link type between the intermediate server and the logistics data server to generate an encapsulated data packet;
generating a writing message packet according to the encapsulated data packet;
adding the write message packet to a message sending queue;
transmitting all write message packets in a message transmission queue to the logistics data server through a communication link between the intermediate server and the logistics data server by a thread for transmitting messages;
transmitting all write message packets in the message transmission queue to the logistics data server, including:
determining the priority of each written message packet in the message sending queue according to the content of the written message packet; the writing message packets with different function types have different corresponding priorities, and specifically include: the write-in message packet of the warning prompt type or the equipment maintenance type has high corresponding priority, and the write-in message packet of the data storage type has low corresponding priority;
determining the sending sequence of each written message packet in the message sending queue based on the priority of each written message packet; wherein, the sending sequence corresponding to the writing message packet with high priority is forward; for two writing message packets with the same priority, determining a sending sequence according to the time of adding the writing message packets to a message sending queue, wherein the sending sequence corresponding to the writing message packet with earlier time added to the message sending queue is earlier;
and sequentially transmitting the written message packets in the message transmission queue to the logistics data server based on the transmission sequence.
2. The data processing method according to claim 1, wherein the detecting the type of the communication link between the intermediate server and the target smart logistics device comprises:
detecting a target receiving port number for receiving the 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. A data processing apparatus, comprising:
the detection unit is used for responding to the data packet from the target intelligent logistics equipment and detecting the type of a communication link between the intermediate server and the target intelligent logistics equipment; the target intelligent logistics equipment comprises logistics equipment for realizing sorting, carrying or storing functions;
the execution unit is used for acquiring the equipment identifier of the target intelligent logistics equipment and determining the equipment type of the target intelligent logistics equipment according to the equipment identifier 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; searching in a corresponding relation between pre-stored environment configuration information and a communication protocol according to the target environment configuration information as an index, and determining a target communication protocol adopted by the data packet from the target intelligent logistics equipment during transmission;
the analysis unit is used for analyzing the data packet based on an analysis function corresponding to 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 a preset communication link type between the intermediate server and the logistics data server, and generating a packaged data packet;
a sending unit, configured to generate a write-in message packet according to the encapsulated data packet; adding the write message packet to a message sending queue; transmitting all write message packets in a message transmission queue to the logistics data server through a communication link between the intermediate server and the logistics data server by a thread for transmitting messages;
the transmitting unit is further configured to:
determining the priority of each written message packet in the message sending queue according to the content of the written message packet; the writing message packets with different function types have different corresponding priorities, and specifically include: the write-in message packet of the warning prompt type or the equipment maintenance type has high corresponding priority, and the write-in message packet of the data storage type has low corresponding priority; determining the sending sequence of each written message packet in the message sending queue based on the priority of each written message packet; wherein, the sending sequence corresponding to the writing message packet with high priority is forward; for two writing message packets with the same priority, determining a sending sequence according to the time of adding the writing message packets to a message sending queue, wherein the sending sequence corresponding to the writing message packet with earlier time added to the message sending queue is earlier; and sequentially transmitting the written message packets in the message transmission queue to the logistics data server based on the transmission sequence.
4. A data processing apparatus according to claim 3, wherein the detection unit comprises:
a detection subunit, configured to detect a target receiving port number that receives the data packet;
and the first execution subunit is used for 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.
5. 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 implement the data processing method of any of claims 1 to 2.
6. A computer readable medium on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the data processing method according to any one of claims 1 to 2.
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 CN111818136A (en) 2020-10-23
CN111818136B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111818136B (en) * 2020-06-24 2023-08-22 深圳中集智能科技有限公司 Data processing method, device, electronic equipment 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
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
CN114827188B (en) * 2022-03-04 2024-04-16 苏州智能交通信息科技股份有限公司 Platform equipment management method, system, terminal and storage medium
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

Also Published As

Publication number Publication date
WO2021259013A1 (en) 2021-12-30
CN111818136A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
US20210042578A1 (en) Feature engineering orchestration method and apparatus
CN110297944B (en) Distributed XML data processing method and system
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN110445632B (en) Method and device for preventing client from crashing
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN111464352A (en) Call link data processing method and device
CN112181542A (en) Function calling method and device, electronic equipment and storage medium
US20230163998A1 (en) Data processing method, device, electronic device and computer readable medium
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN116700907B (en) Service call demand document storage method, device, electronic equipment and readable medium
CN111315026B (en) Channel selection method, device, gateway and computer readable storage medium
CN113329096B (en) Message transmission method and device, electronic equipment and storage medium
CN111459819B (en) Software testing method and device, electronic equipment and computer readable medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111736976B (en) Task processing method, device, computing equipment and medium
CN116112640A (en) Information transmission method, device and system
CN115225586B (en) Data packet transmitting method, device, equipment and computer readable storage medium
CN115866073B (en) Data difference fusion method, device, equipment and medium
CN110262756B (en) Method and device for caching data
CN112311833B (en) Data updating method and device
CN113778350A (en) Log printing method and device
CN113453192A (en) Method and device for calculating service between vehicles
CN113392011A (en) Link segmentation performance testing method and device
CN113778969A (en) Log processing method and device

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
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.

GR01 Patent grant
GR01 Patent grant