WO2021259013A1 - 数据处理方法、装置、电子设备及计算机可读介质 - Google Patents

数据处理方法、装置、电子设备及计算机可读介质 Download PDF

Info

Publication number
WO2021259013A1
WO2021259013A1 PCT/CN2021/097564 CN2021097564W WO2021259013A1 WO 2021259013 A1 WO2021259013 A1 WO 2021259013A1 CN 2021097564 W CN2021097564 W CN 2021097564W WO 2021259013 A1 WO2021259013 A1 WO 2021259013A1
Authority
WO
WIPO (PCT)
Prior art keywords
logistics
data
target
server
communication link
Prior art date
Application number
PCT/CN2021/097564
Other languages
English (en)
French (fr)
Inventor
吕洁印
周受钦
赵玉龙
李继春
Original Assignee
深圳中集智能科技有限公司
广东中集智能科技有限公司
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 深圳中集智能科技有限公司, 广东中集智能科技有限公司 filed Critical 深圳中集智能科技有限公司
Publication of WO2021259013A1 publication Critical patent/WO2021259013A1/zh

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]

Definitions

  • This application relates to the field of computer technology, specifically, to a data processing method, device, computer readable medium, and electronic equipment.
  • the logistics data server is used to provide corresponding business services to the intelligent logistics equipment, so that users 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 multiple communication link types between each type of intelligent logistics equipment and the logistics data server.
  • logistics data servers generally develop functional modules that support various smart logistics equipment.
  • the functional modules of the logistics data server are redundant, which will seriously increase the system load of the logistics data server.
  • the smart logistics equipment needs to be updated and maintained from time to time, which affects the normal use of other types of smart logistics equipment.
  • the embodiments of the present application provide a data processing method, device, computer readable medium, and electronic equipment, which can enable a logistics data server to support various types of smart logistics equipment, as well as multiple connections between the smart logistics equipment and the logistics data server. This type of communication link can also reduce the system load of the logistics data service platform.
  • a data processing method including: in response to a data packet from a target smart logistics device, detecting a communication link type between the intermediate server and the target smart logistics device; According to the type of communication link between the intermediate server and the target intelligent logistics equipment, determine the target communication protocol used when the data packet is transmitted; parse the data packet based on the target communication protocol, and obtain the result after analysis The data; encapsulate the parsed data according to the communication protocol corresponding to the communication link type between the intermediate server and the logistics data server to generate encapsulated data packets; through the intermediate server and The communication link between the logistics data servers sends the encapsulated data packet to the logistics data server.
  • a data processing device including: a detection unit, configured to respond to a data packet from a target smart logistics device to detect the connection between the intermediate server and the target smart logistics device Communication link type; an execution unit for determining the target communication protocol adopted by the data packet during transmission according to the communication link type between the intermediate server and the target intelligent logistics equipment; an analysis unit for Analyze the data packet based on the target communication protocol to obtain the parsed data; an encapsulation unit for analyzing the parsed data according to the communication protocol corresponding to the communication link type between the intermediate server and the logistics data server The encapsulated data is processed to generate encapsulated data packets; the sending unit is configured to send the encapsulated data packets to the logistics data server through the communication link between the intermediate server and the logistics data server .
  • the detection unit includes: a detection subunit, configured to detect the target receiving port number that receives the data packet; and a first execution subunit, configured based on the target The port number and the corresponding relationship between the port number and the communication link type are received, and the communication link type between the intermediate server and the target intelligent logistics device is determined.
  • the execution unit includes: an acquisition subunit for acquiring the device type of the target smart logistics device; a first generation subunit for acquiring the device type of the target smart logistics device; The device type of the device and the communication link type between the intermediate server and the target intelligent logistics device generate target environment configuration information; the second execution subunit is used to configure the target environment based on the target environment configuration information and the environment configuration information
  • the correspondence relationship with the communication protocol determines the target communication protocol adopted by the data packet during transmission.
  • the sending unit includes: a second generating subunit, configured to generate a write message packet according to the encapsulated data packet; and an adding subunit, configured to transfer all The write message packet is added to the message sending queue; the sending subunit is used to send the write message packet contained in the message sending queue through the communication link between the intermediate server and the logistics data server To the logistics data server.
  • the sending subunit includes: a priority determining subunit for determining each written message packet in the message sending queue according to the content of the written message packet Priority
  • the sending order determining sub-unit is used for determining the sending order of each writing message packet in the message sending queue based on the priority of each writing message packet;
  • the sending sub-unit is used to sequentially send the written message packets in the message sending queue to the logistics data server based on the sending order.
  • an electronic device including: one or more processors; a storage device, configured to store one or more programs, when the one or more programs are When multiple processors are executed, the one or more processors implement the data processing method described in the foregoing embodiment.
  • a computer-readable medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the data processing method described in the above-mentioned embodiment.
  • the logistics data server can be enabled to support various smart logistics equipment and various types of communication link types between different smart logistics equipment and the logistics data server, And while being able to support a variety of different intelligent logistics equipment and various types of communication link types between different intelligent logistics equipment and logistics data servers, it can also effectively reduce the system load of the logistics data service platform.
  • Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied;
  • FIG. 2 schematically shows a flowchart of a data processing method according to an embodiment of the present application
  • FIG. 3 schematically shows a flowchart of a data processing method according to an embodiment of the present application
  • FIG. 4 schematically shows a flowchart of a data processing method according to an embodiment of the present application
  • FIG. 5 schematically shows a specific flowchart of step S250 according to an embodiment of the present application
  • Fig. 6 schematically shows a flowchart of a data processing method according to an embodiment of the present application
  • Fig. 7 schematically shows a block diagram of a data processing device according to an embodiment of the present application.
  • FIG. 8 shows a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
  • the block diagrams shown in the drawings are merely functional entities, and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in the form of software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices. entity.
  • the flowchart shown in the drawings is only an exemplary description, and does not necessarily include all contents and operations/steps, nor does it have to be performed in the described order. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partially combined, so the actual execution order may be changed according to actual conditions.
  • Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied.
  • 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 is used as a medium for providing a communication link between the smart logistics equipment 101, the intermediate server 102, and the logistics data server 103.
  • the network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on. It should be understood that the numbers of smart logistics equipment, intermediate servers, logistics data servers, and networks in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of intelligent logistics equipment, networks and servers.
  • the intermediate server 102 or the logistics data server 103 may be a server cluster composed of multiple servers.
  • the intermediate server 102 responds to the data packet from the target intelligent logistics device 101, and detects the type of communication link between the intermediate server 102 and the target intelligent logistics device 101; and according to the intermediate server 102 and the target intelligent logistics device
  • the type of communication link between 101 determines the target communication protocol used when the data packet is transmitted; analyzes the data packet based on the target communication protocol to obtain the parsed data; according to the communication between the intermediate server 102 and the logistics data server 103
  • the communication protocol corresponding to the communication link type encapsulates the parsed data to generate encapsulated data packets; the encapsulated data packets are sent to the logistics data server through the communication link between the intermediate server 102 and the logistics data server 103 103.
  • the technical solutions of the embodiments of the present application can enable the logistics data server to support various types of smart logistics equipment, as well as multiple types of communication links between the smart logistics equipment and the logistics data server, while reducing logistics data.
  • the system load of the service platform can be provided.
  • the data processing method provided by the embodiment of the present application is generally executed by the intermediate server 102. However, it is easily understood by those skilled in the art that the data processing method provided in the embodiment of this application can also be executed by the logistics data server 103 in the data processing method of this exemplary embodiment, which is not particularly limited.
  • FIG. 2 schematically shows a flowchart of a data processing method according to an embodiment of the present application.
  • the data processing method may be executed by the intermediate server 102 as shown in FIG. 1, and this embodiment takes the intermediate server as an example. Be explained.
  • the data processing method at least includes steps S210 to S250, which are described in detail as follows:
  • step S210 in response to a data packet from the target smart logistics device, the type of communication link between the intermediate server and the target smart logistics device is detected.
  • the smart logistics equipment is a logistics equipment that can be intelligently controlled, and specifically may be a logistics equipment that implements certain specific functions such as sorting, handling, and storage.
  • the intelligent logistics equipment can receive control instructions or upload its own data to the corresponding intermediate server, and then forward the intermediate server to the logistics data server, so as to realize the communication connection with the logistics data server.
  • the communication link is the link between the intelligent logistics equipment and the intermediate server for communication connection.
  • the communication link between the intelligent logistics equipment and the intermediate server can include LPWA (Low-Power Wide-Area) cellular communication link, 5G global Mobile communication system communication link, radio frequency identification (RFID, Radio Frequency Identification) communication link and satellite communication link.
  • the satellite communication link may specifically include Orbcomm satellite communication link, Apocalypse satellite communication link, and cloud satellite communication link Low-orbit satellite communication links such as roads, etc., are not limited here.
  • a data packet is a data packet sent by an intelligent logistics device to an intermediate server through any of the above-mentioned communication links.
  • the intermediate server When the intermediate server receives a data packet from any target intelligent logistics device, it can detect the type of communication link between the intermediate server and the target intelligent logistics device.
  • FIG. 3 schematically shows a flowchart of a data processing method according to an embodiment of the present application.
  • the steps of detecting the type of communication link between the intermediate server and the target intelligent logistics device are specifically It may include step S310 to step S320, which are described in detail as follows.
  • step S310 the target receiving port number of the received data packet is detected.
  • the receiving port is the specific functional module that receives the data packet in the intermediate server.
  • the intermediate server will receive the data packet from the target smart logistics device through different receiving ports, and the receiving port number
  • the identification information may specifically be the number of the receiving port or the device identification of the receiving port, which is not limited here.
  • step S320 based on the target receiving port number and the corresponding relationship between the port number and the communication link type, the communication link type between the intermediate server and the target intelligent logistics device is determined.
  • the intermediate server pre-stores the corresponding relationship between the receiving port numbers of different receiving ports and the corresponding communication link types, and the intermediate server determines the receiving port number of the determined target receiving port and the above-mentioned corresponding relationship.
  • step S220 according to the type of the communication link between the intermediate server and the target intelligent logistics device, the target communication protocol used when the data packet is transmitted is determined.
  • the target communication protocol used during transmission of the data packet can be determined according to the determined communication link type and the above-mentioned association relationship, so as to facilitate the analysis and processing of the data packet. It can be understood that since the same communication link type can correspond to multiple different communication protocols, the determined target communication protocol can be one or more.
  • FIG. 4 schematically shows a specific flowchart of step S220 according to an embodiment of the present application.
  • step S220 may specifically include step S410 to step S430, which are described in detail as follows.
  • step S410 the device type of the target smart logistics device is acquired.
  • the same type of communication link can correspond to multiple different communication protocols
  • the smart logistics Under the premise of different equipment types the corresponding communication protocols will also be different. Therefore, the type of equipment based on the intelligent logistics equipment and the communication link type between the two types of information and the intermediate server to transmit data packets between the intelligent logistics equipment and the intermediate server are required. To determine the target communication protocol used by the data packet during transmission.
  • the device identification of the target smart logistics device may be obtained, and the device type of the target smart logistics device may be determined according to the device identification of the target smart logistics device.
  • step S420 the target environment configuration information is generated according to the device type of the target smart logistics device and the communication link type between the intermediate server and the target smart logistics device.
  • the target environment configuration information corresponding to the target smart logistics device can be generated based on these two kinds of information, And based on the environment configuration information, the target communication protocol adopted by the data packet during transmission is determined.
  • the intermediate server may pre-store the corresponding relationship between the environmental configuration information corresponding to different types of smart logistics equipment and the communication protocol used in the transmission of the data packet, so as to determine the position in the transmission according to the environmental configuration information. The communication protocol used.
  • step S430 based on the target environment configuration information and the corresponding relationship between the environment configuration information and the communication protocol, the target communication protocol used when the data packet is transmitted is determined.
  • the intermediate server may use the generated target environment configuration information as an index, search in the correspondence between the pre-stored environment configuration information and the communication protocol, and determine where the data packet from the target smart logistics device is transmitted during transmission.
  • the target communication protocol used.
  • the intermediate server can support smart logistics equipment of different equipment types.
  • the target communication protocol used in the transmission of the data packet can be determined more quickly, and the efficiency of data processing can be improved.
  • step S230 the data packet is parsed based on the target communication protocol to obtain the parsed data.
  • the logistics data server after determining the target communication protocol used during transmission of the data packet of the target smart logistics device, in order to enable the logistics data server to smoothly receive and parse the data packet, it needs to be analyzed according to the determined target communication protocol The data packet, get the parsed data.
  • the data packet can be parsed according to the analysis function corresponding to the target communication protocol to obtain the parsed data.
  • step S240 the parsed data is encapsulated according to the communication protocol corresponding to the communication link type between the intermediate server and the logistics data server to generate the encapsulated data packet.
  • the type of 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.
  • 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, it can follow the communication link between the intermediate server and the logistics data server
  • the communication protocol corresponding to the type encapsulates the parsed data to generate an encapsulated data packet.
  • step S250 the encapsulated data packet is sent to the logistics data server through the communication link between the intermediate server and the logistics data server.
  • the intermediate server sends the encapsulated data packet to the logistics data server through the communication link between the intermediate server and the logistics data server. Specifically, it may be based on the communication link between the intermediate server and the logistics data server.
  • the corresponding sending port sends the encapsulated data packet to the logistics data server.
  • step S250 may include step S510 to step S530, which are described in detail as follows.
  • step S510 a write message packet is generated according to the encapsulated data packet.
  • step S520 the write message packet is added to the message sending queue.
  • step S530 the written message packet contained in the message sending queue is sent to the logistics data server through the communication link between the intermediate server and the logistics data server.
  • the intermediate server when the intermediate server sends the encapsulated data packet to the logistics data server, it generates a corresponding write message packet according to the encapsulated data packet as the data packet that needs 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 logistics data server through the thread that sends the message.
  • the intermediate server sends the written message packet contained in the message sending queue to the logistics data server through the communication link that communicates with the logistics data server.
  • FIG. 6 schematically shows a flowchart of a data processing method according to an embodiment of the present application.
  • the step of sending the write message packet contained in the message sending queue to the logistics data server may be specifically Including step S610 to step S630, the detailed description is as follows.
  • step S610 the priority of each written message packet in the message sending queue is determined according to the content of the written message packet.
  • the intermediate server when the intermediate server sends the written message packet contained in the message sending queue to the logistics data server, it will determine the priority of each written message packet in the message sending queue according to the content of the written message packet. For the write message packages that use different function types, the corresponding priority is different. For example, the write message package of the warning prompt type or the equipment maintenance type has a higher priority, such as the write message package of the data storage type. The priority is low.
  • the priority of writing the message packet can be specifically divided into three levels: high priority, medium priority, and low priority. Of course, it can also be divided into three or more priority levels according to requirements.
  • the specific field contained in the content of the written message packet, as well as the specific field and priority can be determined according to the content of the written message packet.
  • determine the priority of each written message packet determines the priority of each written message packet.
  • step S620 based on the priority of each written message packet, the sending order of each written message packet in the message sending queue is determined.
  • the write message packet with the higher priority corresponds to the higher sending order. It should be pointed out that for two write message packets with the same priority, the sending order can be determined according to the time when the write message packet is added to the message sending queue, such as the earlier write message packet added to the message sending queue. The corresponding sending order is higher.
  • step S630 the written message packets in the message sending queue are sequentially sent to the logistics data server based on the sending order.
  • the intermediate server sequentially sends the written message packets in the message sending queue to the logistics data server based on the sending order, so as to realize the sending of the written message packets in the message sending queue to the logistics data server.
  • the sending order of each written message packet in the message sending queue is determined, and the priority will be important according to the importance of each written message packet.
  • Highly written message packets are sent to the logistics data server to meet more complex business scenarios and improve the application scenarios of the solution.
  • Fig. 7 schematically shows a block diagram of a data processing device according to an embodiment of the present application.
  • a data processing device 700 according to an embodiment of the present application includes: a detection unit 710, an execution unit 720, an analysis unit 730, an encapsulation unit 740, and a sending unit 750.
  • the detection unit 710 is used to detect the type of communication link between the intermediate server and the target intelligent logistics device in response to a data packet from the target intelligent logistics device;
  • the execution unit 720 is used to detect the type of communication link between the intermediate server and the target intelligent logistics device according to the The type of communication link between the target intelligent logistics equipment determines the target communication protocol used when the data packet is transmitted;
  • the parsing unit 730 is configured to parse the data packet based on the target communication protocol to obtain the parsed data
  • the encapsulation unit 740 is configured to encapsulate the parsed data according to the communication protocol corresponding to the communication link type between the intermediate server and the logistics data server to generate an encapsulated data packet; sending unit 750 It is used for sending the encapsulated data packet to the logistics data server through the communication link between the intermediate server and the logistics data server.
  • the detection unit 710 includes: a detection subunit, configured to detect the target receiving port number that receives the data packet; a first execution subunit, configured based on the target receiving port number , And the corresponding relationship between the port number and the communication link type to determine the communication link type between the intermediate server and the target intelligent logistics equipment.
  • the execution unit 720 includes: an acquisition subunit, configured to acquire the device type of the target smart logistics device; a first generation subunit, configured according to the device type of the target smart logistics device Type and the type of the communication link between the intermediate server and the target intelligent logistics equipment to generate target environment configuration information; the second execution subunit is used to generate target environment configuration information based on the target environment configuration information, and the environment configuration information and communication protocol The corresponding relationship between the two determines the target communication protocol adopted by the data packet during transmission.
  • the sending unit 750 includes: a second generating subunit, configured to generate a write message packet according to the encapsulated data packet; and an adding subunit, configured to write the write The message packet is added to the message sending queue; a sending subunit is used to send the write message packet contained in the message sending queue to the message sending queue through the communication link between the intermediate server and the logistics data server Logistics data server.
  • the sending subunit includes: a priority determining subunit is specifically configured to determine the priority of each written message packet in the message sending queue according to the content of the written message packet; The sending order determining sub-unit is used to determine the sending order of each written message packet in the message sending queue based on the priority of each written message packet; the sending sub-unit is used to send messages sequentially based on the sending order The write message packet in the queue is sent to the logistics data server.
  • FIG. 8 shows a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
  • the computer system 800 includes a central processing unit (Central Processing Unit, CPU) 801, which can be loaded into a random storage device according to a program stored in a read-only memory (Read-Only Memory, ROM) 802 or from a storage part 808. Access to the program in the memory (Random Access Memory, RAM) 803 to execute various appropriate actions and processing, for example, execute the method described in the foregoing embodiment. In RAM 803, various programs and data required for system operation are also stored.
  • the CPU 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804.
  • An input/output (Input/Output, I/O) interface 805 is also connected to the bus 804.
  • the following components are connected to the I/O interface 805: the input part 806 including keyboard, mouse, etc.; including the output part such as cathode ray tube (Cathode Ray Tube, CRT), liquid crystal display (LCD), and speakers 807 ; A storage part 808 including a hard disk, etc.; and a communication part 809 including a network interface card such as a LAN (Local Area Network) card and a modem.
  • the communication section 809 performs communication processing via a network such as the Internet.
  • the driver 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, etc., is installed on the drive 810 as needed, so that the computer program read from it is installed into the storage part 808 as needed.
  • the process described below with reference to the flowchart can be implemented as a computer software program.
  • the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication part 809, and/or installed from the removable medium 811.
  • CPU central processing unit
  • the computer-readable medium shown in the embodiment 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 may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
  • Computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Erasable Programmable Read Only Memory (EPROM), flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable of the above The combination.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the above-mentioned module, program segment, or part of code includes one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown one after the other can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by It is realized by a combination of dedicated hardware and computer instructions.
  • the units described in the embodiments of the present application may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • this application also provides a computer-readable medium.
  • the computer-readable medium may be included in the electronic device described in the above-mentioned embodiment; or it may exist alone without being assembled into the electronic device. middle.
  • the foregoing computer-readable medium carries one or more programs, and when the foregoing one or more programs are executed by an electronic device, the electronic device realizes the method described in the foregoing embodiment.
  • modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory.
  • the features and functions of two or more modules or units described above may be embodied in one module or unit.
  • the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.
  • the exemplary embodiments described herein can be implemented by software, or can be implemented by combining software 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, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) execute the method according to the embodiment of the present application.
  • a non-volatile storage medium which can be a CD-ROM, U disk, mobile hard disk, etc.
  • Including several instructions to make a computing device which can be a personal computer, a server, a touch terminal, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种数据处理方法、装置、计算机可读介质及电子设备。数据处理方法包括响应于来自目标智能物流设备的数据包,检测中间服务器与目标智能物流设备之间的通信链路类型;根据中间服务器与目标智能物流设备之间的通信链路类型,确定数据包在传输时所采用的目标通信协议;基于目标通信协议解析数据包,得到解析后的数据;按照中间服务器与物流数据服务器之间的通信链路类型所对应的通信协议对解析后的数据进行封装处理,生成封装后的数据包。使得物流数据服务器能支持各种类型的智能物流设备,以及智能物流设备与物流数据服务器之间的多种通信链路类型的同时,还能减小物流数据服务平台的系统负荷。

Description

数据处理方法、装置、电子设备及计算机可读介质
本申请基于并要求2020年06月24日递交、发明名称为“数据处理方法、装置、电子设备及计算机可读介质”的中国专利申请CN202010592464.1的优先权,在此通过引用将其全部内容合并于此。
技术领域
本申请涉及计算机技术领域,具体而言,涉及一种数据处理方法、装置、计算机可读介质及电子设备。
背景技术
物流数据服务器用于给智能物流设备提供相应的业务服务,以使得用户可以更好的通过物流数据服务器对智能物流设备进行控制。
物流数据服务器为了更好服务各种类型的智能物流设备,需要支持各种类型的智能物流设备以及每种类型的智能物流设备与物流数据服务器之间的多种通信链路类型。相关技术中,物流数据服务器一般通过开发支持各种智能物流设备的功能模块,随着智能物流设备的类型增多,导致物流数据服务器的功能模块冗余,从而会严重增加物流数据服务器的系统负荷。此外,在有新类型的智能物流设备加入时,就会使得需要智能物流设备时常需要更新维护,进而影响到其它类型的智能物流设备的正常使用。
公开内容
本申请的实施例提供了一种数据处理方法、装置、计算机可读介质及电子设备,可以使得物流数据服务器能支持各种类型的智能物流设备,以及智能物流设备与物流数据服务器之间的多种通信链路类型的同时,还能减小物流数据服务平台的系统负荷。
本申请的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本发明的实践而习得。
根据本申请实施例的一个方面,提供了一种数据处理方法,包括:响应于来自目标智能物流设备的数据包,检测所述中间服务器与所述目标智能物流设备之间的通信链路类型;根据所述中间服务器与所述目标智能物流设备之间的通信链路类型,确定所述数据包在传输时所采用的目标通信协议;基于所述目标通信协议解析所述数据包,得到解析后的数据;按照所述中间服务器与所述物流数据服务器之间的通信链路类型所对应的通信协议对所述解析后的数据进行封装处理,生成封装后的数据包;通过所述 中间服务器与所述物流数据服务器之间的通信链路发送所述封装后的数据包至所述物流数据服务器。
根据本申请实施例的一个方面,提供了一种数据处理装置,包括:检测单元,用于响应于来自目标智能物流设备的数据包,检测所述中间服务器与所述目标智能物流设备之间的通信链路类型;执行单元,用于根据所述中间服务器与所述目标智能物流设备之间的通信链路类型,确定所述数据包在传输时所采用的目标通信协议;解析单元,用于基于所述目标通信协议解析所述数据包,得到解析后的数据;封装单元,用于按照所述中间服务器与所述物流数据服务器之间的通信链路类型所对应的通信协议对所述解析后的数据进行封装处理,生成封装后的数据包;发送单元,用于通过所述中间服务器与所述物流数据服务器之间的通信链路发送所述封装后的数据包至所述物流数据服务器。
在本申请的一些实施例中,基于前述方案,所述检测单元包括:检测子单元,用于检测接收到所述数据包的目标接收端口号;第一执行子单元,用于基于所述目标接收端口号,以及端口号与通信链路类型之间的对应关系,确定所述中间服务器与所述目标智能物流设备之间的通信链路类型。
在本申请的一些实施例中,基于前述方案,所述执行单元包括:获取子单元,用于获取所述目标智能物流设备的设备类型;第一生成子单元,用于根据所述目标智能物流设备的设备类型以及所述中间服务器与所述目标智能物流设备之间的通信链路类型,生成目标环境配置信息;第二执行子单元,用于基于所述目标环境配置信息,以及环境配置信息与通信协议之间的对应关系,确定所述数据包在传输时所采用的目标通信协议。
在本申请的一些实施例中,基于前述方案,所述发送单元包括:第二生成子单元,用于根据所述封装后的数据包,生成写入消息包;添加子单元,用于将所述写入消息包添加至消息发送队列中;发送子单元,用于通过所述中间服务器与所述物流数据服务器之间的通信链路,将所述消息发送队列中包含的写入消息包发送至所述物流数据服务器。
在本申请的一些实施例中,基于前述方案,所述发送子单元包括:优选级确定次子单元,用于根据写入消息包的内容,确定所述消息发送队列中的各个写入消息包的优先级;
发送顺序确定次子单元,用于基于各个写入消息包的优先级,确定所述消息发送队列中各个写入消息包的发送顺序;
发送子次单元用于基于所述发送顺序依次将消息发送队列中的写入消息包发送至所述物流数据服务器。
根据本申请实施例的一个方面,提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述实施例中所述的数据处理方法。
根据本申请实施例的一个方面,提供了一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述实施例中所述的数据处理方法。
在本申请的一些实施例所提供的技术方案中,可以使得物流数据服务器能够支持各种不同的智能物流设备以及不同的智能物流设备与物流数据服务器之间的多种类型的通信链路类型,且在能够支持各种不同的智能物流设备以及不同的智能物流设备与物流数据服务器之间的多种类型的通信链路类型的同时,还可以有效减小物流数据服务平台的系统负荷。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了可以应用本申请实施例的技术方案的示例性系统架构的示意图;
图2示意性示出了根据本申请的一个实施例的数据处理方法的流程图;
图3示意性示出了根据本申请的一个实施例的数据处理方法的流程图;
图4示意性示出了根据本申请的一个实施例的数据处理方法的流程图;
图5示意性示出了根据本申请的一个实施例的步骤S250的具体流程图;
图6示意性示出了根据本申请的一个实施例的数据处理方法的流程图;
图7示意性示出了根据本申请的一个实施例的数据处理装置的框图;
图8示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。
具体实施方式
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本公开的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而没有特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本公开的各方面。
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。
图1示出了可以应用本申请实施例的技术方案的示例性系统架构的示意图。
如图1所示,系统架构100可以包括智能物流设备101、中间服务器102、物流数据服务器103以及网络104。网络104用以作为智能物流设备101、中间服务器102和物流数据服务器103之间提供通信链路的介质。网络102可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。应该理解,图1中的智能物流设备、中间服务器、物流数据服务器以及网络的数目仅仅是示意性的。根据实现需要,可以具有任意数目的智能物流设备、网络和服务器。比如中间服务器102或物流数据服务器103可以是多个服务器组成的服务器集群等。
在中间服务器102中,中间服务器102响应于来自目标智能物流设备101的数据包,且检测中间服务器102与目标智能物流设备101之间的通信链路类型;并根据中间服务器102与目标智能物流设备101之间的通信链路类型,确定该数据包在传输时所采用的目标通信协议;基于该目标通信协议解析数据包,得到解析后的数据;按照中间服务器102与物流数据服务器103之间的通信链路类型所对应的通信协议对解析后的数据进行封装处理,生成封装后的数据包;通过中间服务器102与物流数据服务器103之间的通信链路发送封装后的数据包至物流数据服务器103。
可见,本申请实施例的技术方案可以使得物流数据服务器能支持各种类型的智能物流设备,以及智能物流设备与物流数据服务器之间的多种通信链路类型的同时,还能减小物流数据服务平台的系统负荷。
本申请的实施例所提供的数据处理方法一般由中间服务器102执行。但本领域技术人员容易理解的是,本申请实施例所提供的数据处理方法也可以 由物流数据服务器103执行本示例性实施例中的数据处理方法,对此不做特殊限定。
以下对本申请实施例的技术方案的实现细节进行详细阐述:
图2示意性示出了根据本申请的一个实施例的数据处理方法的流程图,该数据处理方法可以由如图1所示的中间服务器102来执行,本实施例以中间服务器来执行为例进行说明。参考图2所示,该数据处理方法至少包括步骤S210至步骤S250,详细介绍如下:
在步骤S210中,响应于来自目标智能物流设备的数据包,检测中间服务器与目标智能物流设备之间的通信链路类型。
在一个实施例中,智能物流设备为可以进行智能控制的物流设备,具体可以为实现分拣、搬运、存储等某种具体功能的物流设备。智能物流设备可以接收来自控制指令或者将自身的数据上传至对应的中间服务器,再由中间服务器转发至物流数据服务器,从而实现与物流数据服务器之间进行通信连接。
通信链路为智能物流设备与中间服务器之间进行通信连接时的链路,智能物流设备与中间服务器之间的通信链路可以包括LPWA(Low-Power Wide-Area)蜂窝通信链路、5G全球移动通信系统通信链路、射频识别(RFID,Radio Frequency Identification)通信链路及卫星通信链路,该卫星通信链路具体可以包括Orbcomm卫星通信链路、天启卫星通信链路、行云卫星通信链路等低轨卫星通信链路等,在此不作限定。数据包为智能物流设备通过上述任意一种类型的通信链路向中间服务器发送的数据包。
中间服务器在接收到任意一个目标智能物流设备的数据包,可以检测中间服务器与目标智能物流设备之间的通信链路类型。
参考图3,图3示意性示出了根据本申请的一个实施例的数据处理方法的流程图,参考图3所示,检测中间服务器与目标智能物流设备之间的通信链路类型的步骤具体可以包括步骤S310至步骤S320,详细描述如下。
在步骤S310中,检测接收到数据包的目标接收端口号。
在一个实施例中,接收端口为中间服务器中接收数据包的具体功能模块,针对不同类型的通信链路,中间服务器会通过不同的接收端口来接收来自目标智能物流设备的数据包,接收端口号为对不同的接收端口进行唯一标识的某种标识信息,该标识信息具体可以为接收端口的编号或接收端口的设备标识,在此不作限定。在确定中间服务器与目标智能物流设备之间的通信链路类型时,可以先监测接收到数据包的目标接收端口,并获取该目标接收端口对应的接收端口号。
在步骤S320中,基于目标接收端口号,以及端口号与通信链路类型之间的对应关系,确定中间服务器与目标智能物流设备之间的通信链路类型。
在一个实施例中,中间服务器会预存不同接收端口的接收端口号与对应的通信链路类型之间的对应关系,中间服务器根据所确定的目标接收端口的接收端口号以及上述对应关系,来确定中间服务器与目标智能物流设备之间 的通信链路类型。
图3所示的实施例的技术方案中,通过预先建立各个不同的接收端口对应的接收端口号与通信链路类型之间的对应关系,可以实现快速且准确地确定中间服务器与目标智能物流设备之间的通信链路类型,提高数据处理的效率。
在步骤S220中,根据中间服务器与目标智能物流设备之间的通信链路类型,确定数据包在传输时所采用的目标通信协议。
在一个实施例中,中间服务器与目标智能物流设备之间的通信链路类型与该数据包在传输时所采用的目标通信协议之间存在关联关系,在确定得到中间服务器与目标智能物流设备之间的通信链路类型后,可以根据所确定的通信链路类型以及上述关联关系,确定该数据包在传输时所采用的目标通信协议,以便于对数据包进行解析处理。可以理解的是,由于同一通信链路类型可以对应多种不同的通信协议,因此,所确定的目标通信协议可以为一种或多种。
参考图4,图4示意性示出了根据本申请的一个实施例的步骤S220的具体流程图,参考图4所示,步骤S220具体可以包括步骤S410至步骤S430,详细描述如下。
在步骤S410中,获取目标智能物流设备的设备类型。
在一个实施例中,由于同一类型的通信链路可以对应多种不同的通信协议,而在不同设备类型的智能物流设备采用同一类型的通信链路与中间服务器之间进行通信时,在智能物流设备的设备类型不同的前提下,对应的通信协议也会存在差异,因此需要基于智能物流设备的设备类型以及智能物流设备这两种类型的信息与中间服务器之间传输数据包的通信链路类型来确定数据包在传输时所采用的目标通信协议。
可选的,可以获取目标智能物流设备的设备标识,根据该目标智能物流设备的设备标识确定目标智能物流设备的设备类型。
在步骤S420中,根据目标智能物流设备的设备类型以及中间服务器与目标智能物流设备之间的通信链路类型,生成目标环境配置信息。
在一个实施例中,在获取目标智能物流设备的设备类型以及中间服务器与目标智能物流设备之间的通信链路类型后,可以根据这两种信息生成目标智能物流设备对应的目标环境配置信息,并基于该环境配置信息确定数据包在传输时所采用的目标通信协议。可以理解的是,中间服务器可以预先存储有不同类型的智能物流设备对应的环境配置信息与数据包在传输时所采用的通信协议之间的对应关系,以便于根据环境配置信息确定在传输时所采用的通信协议。
在步骤S430中,基于目标环境配置信息,以及环境配置信息与通信协议之间的对应关系,确定数据包在传输时所采用的目标通信协议。
在一个实施例中,中间服务器可以根据生成的目标环境配置信息作为索引,在预存的环境配置信息与通信协议之间的对应关系中进行查找,确定来 自目标智能物流设备的数据包在传输时所采用的目标通信协议。
图4所示实施例的技术方案中,通过存储有不同的环境配置信息与数据包在传输时所采用的通信协议之间的对应关系,可以使得中间服务器能支持不同设备类型的智能物流设备,更为快速地确定的数据包在传输时所采用的目标通信协议,提高数据处理的效率。
在步骤S230中,基于目标通信协议解析所述数据包,得到解析后的数据。
在一个实施例中,在确定目标智能物流设备的数据包在传输时所采用的目标通信协议后,为了使得物流数据服务器能顺利地接收并解析该数据包,需要根据所确定的目标通信协议解析该数据包,得到解析后的数据。
可选的,具体可以根据目标通信协议对应的解析函数来解析该数据包,得到解析后的数据。
在步骤S240中,按照中间服务器与物流数据服务器之间的通信链路类型所对应的通信协议对解析后的数据进行封装处理,生成封装后的数据包。
在一个实施例中,中间服务器与物流数据服务器之间的通信链路类型为中间服务器与物流数据服务器预先所约定的某种类型的通信链路。中间服务器在得到解析后的数据后,为了便于将解析后的数据发送至物流数据服务器且使得物流数据服务器能读取该解析后的信息,可以按照中间服务器与物流数据服务器之间的通信链路类型所对应的通信协议对解析后的数据进行封装处理,生成封装后的数据包。
在步骤S250中,通过中间服务器与物流数据服务器之间的通信链路发送封装后的数据包至物流数据服务器。
在一个实施例中,中间服务器通过中间服务器与物流数据服务器之间的通信链路发送封装后的数据包至物流数据服务器,具体的,可以基于该中间服务器与物流数据服务器之间的通信链路所对应的发送端口来发送封装后的数据包至物流数据服务器。
图5示意性示出了根据本申请的一个实施例的步骤S250的具体流程图,参考图5所示,步骤S250可以包括步骤S510至步骤S530,详细描述如下。
在步骤S510中,根据封装后的数据包,生成写入消息包。
在步骤S520中,将写入消息包添加至消息发送队列中。
在步骤S530中,通过中间服务器与物流数据服务器之间的通信链路,将消息发送队列中包含的写入消息包发送至所述物流数据服务器。
在一个实施例中,中间服务器在将封装后的数据包发送至物流数据服务器时,会根据封装后的数据包生成相应的写入消息包,作为需要进行发送的数据包。中间服务器将生成的所有的消息包添加到消息发送队列中,通过发送消息的线程来执行将消息发送队列中的所有写入消息包发送至物流数据服务器。
具体的,中间服务器通过与物流数据服务器之间进行通信连接的通信链 路来将消息发送队列中包含的写入消息包发送至物流数据服务器。
通过根据封装后的数据包,生成写入消息包,并将生成的写入消息包添加到消息发送队列,可以有效使得中间服务器可以将多个智能物流设备对应的写入消息有序地发送至物流数据服务器,避免遗漏写入消息包。
图6示意性示出了根据本申请的一个实施例的数据处理方法的流程图,参考图6所示,将消息发送队列中包含的写入消息包发送至所述物流数据服务器的步骤具体可以包括步骤S610至步骤S630,详细描述如下。
在步骤S610中,根据写入消息包的内容,确定消息发送队列中的各个写入消息包的优先级。
在一个实施例中,中间服务器在消息发送队列中包含的写入消息包发送至物流数据服务器时,会根据写入消息包的内容,确定消息发送队列中的各个写入消息包的优先级。对于使用不同功能类型的写入消息包,其对应的优先级不同,例如,警告提示类型或设备维护类型的写入消息包所对应的优先级高,如数据存储类型的写入消息包所对应的优先级低。可选的,写入消息包的优先级具体可以划分为高优先级、中优先级,低优先级三个级别,当然也可以根据需求划分为三个以上级别的优先等级。
可选的,在根据写入消息包的内容,确定消息发送队列中的各个写入消息包的优先级时,可以根据写入消息包的内容所包含的特定字段,以及特定字段和优先级的对应关系,确定各个写入消息包的优先级。
在步骤S620中,基于各个写入消息包的优先级,确定消息发送队列中各个写入消息包的发送顺序。
在一个实施例中,基于各个写入消息包的优先级,确定消息发送队列中各个写入消息包的发送顺序时,优先级高的写入消息包对应的发送顺序靠前。需要指出的是,对于优先级相同的两个写入消息包,可以根据写入消息包添加至消息发送队列的时间来确定发送顺序,如添加至消息发送队列的时间较早的写入消息包所对应的发送顺序靠前。
在步骤S630中,基于发送顺序依次将消息发送队列中的写入消息包发送至物流数据服务器。
在一个实施例中,中间服务器基于发送顺序依次将消息发送队列中的写入消息包发送至物流数据服务器,以实现将消息发送队列中的写入消息包发送至物流数据服务器。
图6所示实施例的技术方案中,基于各个写入消息包的优先级,确定消息发送队列中各个写入消息包的发送顺序,可以实现根据各个写入消息包的重要程度,优先将重要程度高的写入消息包发送至物流数据服务器,以实现满足更为复杂的业务场景,提高该方案的适用场景。
以下介绍本申请的装置实施例,可以用于执行本申请上述实施例中的数据处理方法。对于本申请装置实施例中未披露的细节,请参照本申请上述的数据处理方法的实施例。
图7示意性示出了根据本申请的一个实施例的数据处理装置的框图。参 照图7所示,根据本申请的一个实施例的数据处理装置700,包括:检测单元710、执行单元720、解析单元730、封装单元740以及发送单元750。
其中,检测单元710用于响应于来自目标智能物流设备的数据包,检测所述中间服务器与所述目标智能物流设备之间的通信链路类型;执行单元720用于根据所述中间服务器与所述目标智能物流设备之间的通信链路类型,确定所述数据包在传输时所采用的目标通信协议;解析单元730用于基于所述目标通信协议解析所述数据包,得到解析后的数据;封装单元740用于按照所述中间服务器与所述物流数据服务器之间的通信链路类型所对应的通信协议对所述解析后的数据进行封装处理,生成封装后的数据包;发送单元750用于通过所述中间服务器与所述物流数据服务器之间的通信链路发送所述封装后的数据包至所述物流数据服务器。
在本申请的一个实施例中,所述检测单元710包括:检测子单元,用于检测接收到所述数据包的目标接收端口号;第一执行子单元,用于基于所述目标接收端口号,以及端口号与通信链路类型之间的对应关系,确定所述中间服务器与所述目标智能物流设备之间的通信链路类型。
在本申请的一个实施例中,所述执行单元720包括:获取子单元,用于获取所述目标智能物流设备的设备类型;第一生成子单元,用于根据所述目标智能物流设备的设备类型以及所述中间服务器与所述目标智能物流设备之间的通信链路类型,生成目标环境配置信息;第二执行子单元,用于基于所述目标环境配置信息,以及环境配置信息与通信协议之间的对应关系,确定所述数据包在传输时所采用的目标通信协议。
在本申请的一个实施例中,所述发送单元750包括:第二生成子单元,用于根据所述封装后的数据包,生成写入消息包;添加子单元,用于将所述写入消息包添加至消息发送队列中;发送子单元,用于通过所述中间服务器与所述物流数据服务器之间的通信链路,将所述消息发送队列中包含的写入消息包发送至所述物流数据服务器。
在本申请的一个实施例中,所述发送子单元包括:优选级确定次子单元具体用于根据写入消息包的内容,确定所述消息发送队列中的各个写入消息包的优先级;发送顺序确定次子单元,用于基于各个写入消息包的优先级,确定所述消息发送队列中各个写入消息包的发送顺序;发送子次单元用于基于所述发送顺序依次将消息发送队列中的写入消息包发送至所述物流数据服务器。
图8示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。
需要说明的是,图8示出的电子设备的计算机系统800仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。
如图8所示,计算机系统800包括中央处理单元(Central Processing Unit,CPU)801,其可以根据存储在只读存储器(Read-Only Memory,ROM)802中的程序或者从储存部分808加载到随机访问存储器(Random  Access Memory,RAM)803中的程序而执行各种适当的动作和处理,例如执行上述实施例中所述的方法。在RAM 803中,还存储有系统操作所需的各种程序和数据。CPU 801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(Input/Output,I/O)接口805也连接至总线804。
以下部件连接至I/O接口805:包括键盘、鼠标等的输入部分806;包括诸如阴极射线管(Cathode Ray Tube,CRT)、液晶显示器(Liquid Crystal Display,LCD)等以及扬声器等的输出部分807;包括硬盘等的储存部分808;以及包括诸如LAN(Local Area Network,局域网)卡、调制解调器等的网络接口卡的通信部分809。通信部分809经由诸如因特网的网络执行通信处理。驱动器810也根据需要连接至I/O接口805。可拆卸介质811,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器810上,以便于从其上读出的计算机程序根据需要被安装入储存部分808。
特别地,根据本申请的实施例,下文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分809从网络上被下载和安装,和/或从可拆卸介质811被安装。在该计算机程序被中央处理单元(CPU)801执行时,执行本申请的系统中限定的各种功能。
需要说明的是,本申请实施例所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和 计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现上述实施例中所述的方法。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本申请实施方式的方法。
本领域技术人员在考虑说明书及实践这里公开的申请后,将容易想到本申请的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。

Claims (12)

  1. 一种数据处理方法,应用于与物流数据服务器连接的中间服务器,其特征在于,包括:
    响应于来自目标智能物流设备的数据包,检测所述中间服务器与所述目标智能物流设备之间的通信链路类型;
    根据所述中间服务器与所述目标智能物流设备之间的通信链路类型,确定所述数据包在传输时所采用的目标通信协议;
    基于所述目标通信协议解析所述数据包,得到解析后的数据;
    按照所述中间服务器与所述物流数据服务器之间的通信链路类型所对应的通信协议对所述解析后的数据进行封装处理,生成封装后的数据包;
    通过所述中间服务器与所述物流数据服务器之间的通信链路发送所述封装后的数据包至所述物流数据服务器。
  2. 根据权利要求1所述的数据处理方法,其特征在于,所述检测所述中间服务器与所述目标智能物流设备之间的通信链路类型,包括:
    检测接收到所述数据包的目标接收端口号;
    基于所述目标接收端口号,以及端口号与通信链路类型之间的对应关系,确定所述中间服务器与所述目标智能物流设备之间的通信链路类型。
  3. 根据权利要求1所述的数据处理方法,其特征在于,所述根据所述中间服务器与所述目标智能物流设备之间的通信链路类型,确定所述数据包在传输时所采用的目标通信协议,包括:
    获取所述目标智能物流设备的设备类型;
    根据所述目标智能物流设备的设备类型以及所述中间服务器与所述目标智能物流设备之间的通信链路类型,生成目标环境配置信息;
    基于所述目标环境配置信息,以及环境配置信息与通信协议之间的对应关系,确定所述数据包在传输时所采用的目标通信协议。
  4. 根据权利要求1所述的数据处理方法,其特征在于,所述通过所述中间服务器与所述物流数据服务器之间的通信链路发送所述封装后的数据包至所述物流数据服务器,包括:
    根据所述封装后的数据包,生成写入消息包;
    将所述写入消息包添加至消息发送队列中;
    通过所述中间服务器与所述物流数据服务器之间的通信链路,将所述消息发送队列中包含的写入消息包发送至所述物流数据服务器。
  5. 根据权利要求4所述的数据处理方法,其特征在于,所述将所述消息发送队列中包含的写入消息包发送至所述物流数据服务器,包括:
    根据写入消息包的内容,确定所述消息发送队列中的各个写入消息包的优先级;
    基于各个写入消息包的优先级,确定所述消息发送队列中各个写入消息包的发送顺序;
    基于所述发送顺序依次将消息发送队列中的写入消息包发送至所述物流 数据服务器。
  6. 一种数据处理装置,其特征在于,包括:
    检测单元,用于响应于来自目标智能物流设备的数据包,检测所述中间服务器与所述目标智能物流设备之间的通信链路类型;
    执行单元,用于根据所述中间服务器与所述目标智能物流设备之间的通信链路类型,确定所述数据包在传输时所采用的目标通信协议;
    解析单元,用于基于所述目标通信协议解析所述数据包,得到解析后的数据;
    封装单元,用于按照所述中间服务器与所述物流数据服务器之间的通信链路类型所对应的通信协议对所述解析后的数据进行封装处理,生成封装后的数据包;
    发送单元,用于通过所述中间服务器与所述物流数据服务器之间的通信链路发送所述封装后的数据包至所述物流数据服务器。
  7. 根据权利要求6所述的数据处理装置,其特征在于,所述检测单元包括:
    检测子单元,用于检测接收到所述数据包的目标接收端口号;
    第一执行子单元,用于基于所述目标接收端口号,以及端口号与通信链路类型之间的对应关系,确定所述中间服务器与所述目标智能物流设备之间的通信链路类型。
  8. 根据权利要求6所述的数据处理装置,其特征在于,所述执行单元包括:
    获取子单元,用于获取所述目标智能物流设备的设备类型;
    生成子单元,用于根据所述目标智能物流设备的设备类型以及所述中间服务器与所述目标智能物流设备之间的通信链路类型,生成目标环境配置信息;
    第二执行子单元,用于基于所述目标环境配置信息,以及环境配置信息与通信协议之间的对应关系,确定所述数据包在传输时所采用的目标通信协议。
  9. 根据权利要求6所述的数据处理装置,其特征在于,所述发送单元包括:
    第二生成子单元,用于根据所述封装后的数据包,生成写入消息包;
    添加子单元,用于将所述写入消息包添加至消息发送队列中;
    发送子单元,用于通过所述中间服务器与所述物流数据服务器之间的通信链路,将所述消息发送队列中包含的写入消息包发送至所述物流数据服务器。
  10. 根据权利要求9所述的数据处理装置,其特征在于,所述发送子单元包括:
    优选级确定次子单元,用于根据写入消息包的内容,确定所述消息发送队列中的各个写入消息包的优先级;
    发送顺序确定次子单元,用于基于各个写入消息包的优先级,确定所述消息发送队列中各个写入消息包的发送顺序;
    发送子次单元用于基于所述发送顺序依次将消息发送队列中的写入消息包发送至所述物流数据服务器。
  11. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至5中任一项所述的数据处理方法。
  12. 一种计算机可读介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的数据处理方法。
PCT/CN2021/097564 2020-06-24 2021-06-01 数据处理方法、装置、电子设备及计算机可读介质 WO2021259013A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010592464.1 2020-06-24
CN202010592464.1A CN111818136B (zh) 2020-06-24 2020-06-24 数据处理方法、装置、电子设备及计算机可读介质

Publications (1)

Publication Number Publication Date
WO2021259013A1 true WO2021259013A1 (zh) 2021-12-30

Family

ID=72856513

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097564 WO2021259013A1 (zh) 2020-06-24 2021-06-01 数据处理方法、装置、电子设备及计算机可读介质

Country Status (2)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114755993A (zh) * 2022-06-13 2022-07-15 深圳市玄羽科技有限公司 应用于工业互联网的协同控制方法、系统及相关设备
CN114844795A (zh) * 2022-04-27 2022-08-02 工银科技有限公司 端到端的链路监控方法和装置
CN115190161A (zh) * 2022-06-10 2022-10-14 北京京东振世信息技术有限公司 处理物品数据的方法、装置、设备和计算机可读介质
CN115391019A (zh) * 2022-10-26 2022-11-25 小米汽车科技有限公司 数据采集方法、装置、可读存储介质与芯片
CN115396752A (zh) * 2022-07-29 2022-11-25 国电南京自动化股份有限公司 一种基于Redis的双平面采集数据方法及系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111818136B (zh) * 2020-06-24 2023-08-22 深圳中集智能科技有限公司 数据处理方法、装置、电子设备及计算机可读介质
CN112804288A (zh) * 2020-12-14 2021-05-14 国汽(北京)智能网联汽车研究院有限公司 车端数据处理方法、装置、电子设备及计算机存储介质
CN113938531B (zh) * 2021-09-23 2023-10-31 北京车和家信息技术有限公司 数据传输方法、装置、设备及介质
CN114025353A (zh) * 2021-11-04 2022-02-08 湖南三一华源机械有限公司 移动设备的数据处理方法、装置、存储介质和移动设备
CN114827188B (zh) * 2022-03-04 2024-04-16 苏州智能交通信息科技股份有限公司 一种站台设备管理方法、系统、终端及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714945A (zh) * 2009-12-02 2010-05-26 浙江中控技术股份有限公司 一种实现跨网络通信的系统及方法
CN104202245A (zh) * 2014-09-16 2014-12-10 深圳市金正方科技股份有限公司 自适应通信方式的智能传输方法及装置
US20170012941A1 (en) * 2015-05-27 2017-01-12 Elastic Beam, Inc. Methods and systems for api proxy based adaptive security
CN111818136A (zh) * 2020-06-24 2020-10-23 深圳中集智能科技有限公司 数据处理方法、装置、电子设备及计算机可读介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006562A (zh) * 2009-09-01 2011-04-06 杭州华三通信技术有限公司 一种wlan链路上数据的传输方法及装置
CN104394143A (zh) * 2014-11-24 2015-03-04 青岛海尔软件有限公司 一种物联网设备与物联网服务器通信方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714945A (zh) * 2009-12-02 2010-05-26 浙江中控技术股份有限公司 一种实现跨网络通信的系统及方法
CN104202245A (zh) * 2014-09-16 2014-12-10 深圳市金正方科技股份有限公司 自适应通信方式的智能传输方法及装置
US20170012941A1 (en) * 2015-05-27 2017-01-12 Elastic Beam, Inc. Methods and systems for api proxy based adaptive security
CN111818136A (zh) * 2020-06-24 2020-10-23 深圳中集智能科技有限公司 数据处理方法、装置、电子设备及计算机可读介质

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844795A (zh) * 2022-04-27 2022-08-02 工银科技有限公司 端到端的链路监控方法和装置
CN115190161A (zh) * 2022-06-10 2022-10-14 北京京东振世信息技术有限公司 处理物品数据的方法、装置、设备和计算机可读介质
CN115190161B (zh) * 2022-06-10 2024-04-05 北京京东振世信息技术有限公司 处理物品数据的方法、装置、设备和计算机可读介质
CN114755993A (zh) * 2022-06-13 2022-07-15 深圳市玄羽科技有限公司 应用于工业互联网的协同控制方法、系统及相关设备
CN114755993B (zh) * 2022-06-13 2022-11-22 深圳市玄羽科技有限公司 应用于工业互联网的协同控制方法、系统及相关设备
CN115396752A (zh) * 2022-07-29 2022-11-25 国电南京自动化股份有限公司 一种基于Redis的双平面采集数据方法及系统
CN115391019A (zh) * 2022-10-26 2022-11-25 小米汽车科技有限公司 数据采集方法、装置、可读存储介质与芯片
CN115391019B (zh) * 2022-10-26 2022-12-27 小米汽车科技有限公司 数据采集方法、装置、可读存储介质与芯片

Also Published As

Publication number Publication date
CN111818136B (zh) 2023-08-22
CN111818136A (zh) 2020-10-23

Similar Documents

Publication Publication Date Title
WO2021259013A1 (zh) 数据处理方法、装置、电子设备及计算机可读介质
US20120036498A1 (en) Mobile application performance management
US11294740B2 (en) Event to serverless function workflow instance mapping mechanism
CN114490268A (zh) 全链路监控方法、装置、设备、存储介质和程序产品
CN114528044B (zh) 一种接口调用方法、装置、设备及介质
CN113127050B (zh) 一种应用资源打包过程监控方法、装置、设备和介质
CN109669787B (zh) 数据传输方法及装置、存储介质、电子设备
WO2021155683A1 (zh) 日志打印方法、装置、电子设备和存储介质
CN113886336A (zh) 流量检测方法、装置、设备及介质
CN114398179B (zh) 一种跟踪标识的获取方法、装置、服务器及存储介质
CN114244821B (zh) 数据处理方法、装置、设备、电子设备和存储介质
CN115357663A (zh) 基于增量数据同步组件的数据同步方法、系统及装置
WO2017206893A1 (zh) 界面刷新同步方法、装置、终端及存储介质
US20230163998A1 (en) Data processing method, device, electronic device and computer readable medium
CN112527678A (zh) 用于测试协议的方法、装置、设备以及存储介质
CN112152879A (zh) 网络质量确定方法、装置、电子设备和可读存储介质
WO2024001240A1 (zh) 多种技术栈的任务集成方法及装置
CN116781586A (zh) 一种gRPC流量解析方法、装置、设备及介质
CN113992644B (zh) 一种基于无服务技术的物联网关系统及其数据处理方法
CN115374207A (zh) 业务处理方法及装置、电子设备和计算机可读存储介质
CN115934378A (zh) 业务数据处理方法、装置、电子设备和存储介质
CN114780361A (zh) 日志生成方法、装置、计算机系统及可读存储介质
CN113779021A (zh) 数据处理方法、装置、计算机系统及可读存储介质
US10516767B2 (en) Unifying realtime and static data for presenting over a web service
US20240129149A1 (en) Quality status loopback for online collaboration sessions

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21828941

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.05.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21828941

Country of ref document: EP

Kind code of ref document: A1