Data processing method, data processing platform and data processing device

By encapsulating multiple protocol interfaces at the protocol layer of the data processing platform and dynamically selecting security protocols according to the device type, the problem of inconsistency in multiple protocol interfaces in the train control system is solved, and code reuse and system stability are improved.

CN120499302APending Publication Date: 2025-08-15BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510835367.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In a communication-based train control system, inconsistent interfaces and processing methods of multiple secure communication protocols lead to problems such as duplicate code, inconsistent implementation, high test complexity, and poor scalability.

Method used

It provides a data processing platform, including application layer, protocol layer and service layer. The protocol layer encapsulates multiple protocol interfaces, dynamically selects security protocols according to the device type, and processes data through the target protocol interface, reducing duplicate code, and improving consistency and scalability.

Benefits of technology

Through the unified call protocol interface, duplicate code is reduced, code maintainability and test coverage are improved, system scalability and stability are enhanced, errors caused by inconsistent implementation methods are reduced, and data processing is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499302A_ABST
    Figure CN120499302A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method, a data processing platform and a data processing device, the data processing method is applied to a protocol layer in the data processing platform, and the protocol layer comprises a plurality of protocol interfaces with different protocol types; the data processing method comprises the steps of obtaining to-be-processed data and a device type of the to-be-processed data in response to a data processing request; screening out a target protocol interface from the plurality of protocol interfaces according to the equipment type; and calling the target security protocol to process the to-be-processed data through the target protocol interface to obtain a data processing result. A plurality of protocol interfaces are packaged in a protocol layer, and a proper security protocol is dynamically selected according to the equipment type, so that processing codes are prevented from being independently written for each equipment or protocol, the writing of repeated codes is reduced, the protocol interfaces are uniformly called to complete data processing, errors caused by inconsistent implementation modes are reduced, and the data processing efficiency is improved. And the stability and the reliability of data processing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and in particular to a data processing method, a data processing platform, and a data processing device. Background Art

[0002] With the development of computer technology, the application of secure communication protocols is becoming increasingly widespread. Taking communication-based train control systems as an example, the application of secure communication protocols in communication-based train control systems can ensure the integrity and confidentiality of data transmission, preventing data tampering or eavesdropping, which is crucial to the safety of train operations.

[0003] However, since there are usually multiple security communication protocols, when a device needs to integrate multiple security communication protocols, or multiple devices need to integrate security communication protocols, the inconsistent interfaces and processing methods of different security communication protocols will lead to a large amount of duplicate code and inconsistent implementation methods in different systems and devices, which will bring complexity and uncertainty to subsequent system debugging and testing. Summary of the Invention

[0004] In view of this, embodiments of this specification provide a data processing method. One or more embodiments of this specification also relate to a data processing platform, a data processing apparatus, a computing device, a computer-readable storage medium, and a computer program product to address technical deficiencies in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a data processing method is provided, which is applied to a protocol layer in a data processing platform, wherein the protocol layer includes multiple protocol interfaces of different protocol types; the method includes: In response to a data processing request, obtaining data to be processed and a device type of the data to be processed; Filter the target protocol interface from multiple protocol interfaces according to the device type; Through the target protocol interface, the target security protocol is called to process the data to be processed to obtain the data processing result, wherein the target security protocol is the security protocol encapsulated by the target protocol interface.

[0006] According to a second aspect of an embodiment of this specification, a data processing platform is provided, including an application layer, a protocol layer, and a service layer, wherein the protocol layer is located between the application layer and the service layer, and the protocol layer includes a plurality of protocol interfaces of different protocol types; The protocol layer is used to respond to the data processing request sent by the application layer or the service layer, obtain the data to be processed and the device type of the data to be processed; based on the device type, filter out the target protocol interface from multiple protocol interfaces; through the target protocol interface, call the target security protocol to process the data to be processed and obtain the data processing result, wherein the target security protocol is the security protocol encapsulated by the target protocol interface.

[0007] According to a third aspect of an embodiment of this specification, a data processing device is provided, which is applied to a protocol layer in a data processing platform. The protocol layer includes multiple protocol interfaces of different protocol types; including: an acquisition module, configured to acquire, in response to a data processing request, data to be processed and a device type of the data to be processed; a screening module configured to screen out a target protocol interface from a plurality of protocol interfaces according to a device type; The processing module is configured to call the target security protocol through the target protocol interface to process the data to be processed and obtain a data processing result, wherein the target security protocol is a security protocol encapsulated by the target protocol interface.

[0008] According to a fourth aspect of the embodiments of this specification, a computing device is provided, including: memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the data processing method proposed in the first aspect are implemented.

[0009] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, which, when executed by a processor, implements the steps of the data processing method proposed in the first aspect above.

[0010] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the data processing method proposed in the first aspect above.

[0011] One embodiment of the present specification provides a data processing method, which is applied to the protocol layer of a data processing platform. The protocol layer includes multiple protocol interfaces of different protocol types. The method comprises: obtaining the data to be processed and the device type of the data to be processed in response to a data processing request; selecting a target protocol interface from the multiple protocol interfaces based on the device type; and calling a target security protocol through the target protocol interface to process the data to be processed and obtain a data processing result, wherein the target security protocol is the security protocol encapsulated by the target protocol interface. By encapsulating multiple protocol interfaces in the protocol layer and dynamically selecting the appropriate security protocol based on the device type, it is avoided to write separate processing code for each device or protocol, so that the common processing code can be reused, reducing the writing of duplicate code and improving the maintainability of the code, the coverage of the test, and the efficiency. The unified calling of the protocol interface to complete the data processing eliminates the need to worry about the protocol details, improves the scalability and flexibility of the system, reduces errors caused by inconsistent implementation methods, and improves the stability and reliability of data processing. When it is necessary to support new devices or security protocols, it is only necessary to add the corresponding protocol interface in the protocol layer, thereby improving the compatibility and scalability of the data processing platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is an architectural diagram of a data processing platform provided in one embodiment of this specification; Figure 2 is a flow chart of a data processing method provided by one embodiment of this specification; Figure 3 This is a flowchart of a data processing method provided by one embodiment of this specification; Figure 4 This is a structural diagram of a data processing device provided by one embodiment of this specification; Figure 5 This is a structural block diagram of a computing device provided by one embodiment of this specification. DETAILED DESCRIPTION

[0013] The following description sets forth many specific details to facilitate a thorough understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.

[0014] The terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of this specification. The singular forms "a," "the," and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0015] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0016] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0017] First, the terms involved in one or more embodiments of this specification are explained.

[0018] Communication Based Train Control (CBTC) refers to a continuous train automatic control system built through active train positioning technology that does not rely on trackside train occupancy detection equipment, continuous train-to-ground two-way data communication technology, and on-board and ground processors capable of performing safety functions.

[0019] Transmission Control Protocol (TCP): A connection-oriented, reliable, byte-stream-based transport layer communications protocol. It provides an end-to-end mechanism to ensure the in-sequence, error-free transmission of data packets. TCP ensures reliable data transmission through connection establishment, acknowledgments, retransmission mechanisms, flow control, and congestion control.

[0020] User Datagram Protocol (UDP): A connectionless, unreliable, datagram-based transport layer communication protocol. It provides a simple, best-effort data transmission service without guaranteeing packet order or reliability. UDP's primary advantages are low overhead and high efficiency, making it suitable for applications with high real-time requirements.

[0021] Remote Station Service Protocol (RSSP): A communications protocol for remote station services, primarily used in satellite communications, remote sensing control, rail transit, and other fields. It defines a standard method for data exchange between ground stations and satellites or other remote stations. RSSP has different versions, such as RSSP-1 and RSSP-2, each with improvements or optimizations in functionality and performance. In the rail transit sector, for example, RSSP can be used for secure communication between onboard equipment and ground control centers.

[0022] A security protocol is a protocol used to protect data transmission and communication security, ensuring the confidentiality, integrity, and availability of data during transmission. Security protocols are commonly used in scenarios such as network communications, data storage, and authentication to prevent data theft, tampering, and unauthorized access. For example, in the rail transit sector, security protocols can protect data transmission and communication security, ensuring the confidentiality, integrity, and availability of critical data such as train operations, signal control, and passenger information. Security protocols in the rail transit sector include, but are not limited to, RSSP-1, RSSP-2, point-to-point protocols, and no protocols.

[0023] RSSP-1: Provides a basic service protocol that supports basic data transmission, command transmission, and other operations. It is suitable for simpler remote site management and control needs. While relatively simple and easy to implement, it may have limitations in terms of security and efficiency. In the rail transit sector, for example, RSSP-1 can be used to transmit data related to train safety, such as train position, speed, and signal status.

[0024] RSSP-2: Compared to RSSP-1, RSSP-2 adds additional features, such as more efficient data compression and encrypted communications, improving system reliability and security. It is suitable for remote site management and services requiring higher security and efficiency. Its richer functionality supports more complex communication requirements, but also increases implementation complexity. For example, in the rail transit sector, RSSP-2 can be used to transmit data related to train operation and maintenance, such as equipment status, fault reports, and maintenance records.

[0025] Point-to-Point Protocol (PPP) refers to a data link layer protocol that allows two communication nodes to communicate directly with each other without forwarding information through an intermediate server or node. This communication mode has the following characteristics: Directness: The communicating parties can interact directly, reducing latency and improving efficiency. Flexibility: Connections can be established quickly and are highly adaptable. Security: Due to the reduction of intermediaries, it can theoretically provide higher security. Resource Utilization: Fully utilizing each device in the network as a potential resource provider improves the utilization rate of overall network resources. In the field of rail transportation, point-to-point communication can support a variety of key functions, such as automatic train protection, autonomous driving, automatic monitoring, and equipment status monitoring.

[0026] A Media Access Control (MAC) address is a hardware address that uniquely identifies a Network Interface Controller (NIC) on a network. Every NIC in a network device (such as a computer, router, or switch) has a globally unique MAC address.

[0027] Global Positioning System (GPS): A satellite-based navigation system consisting of a constellation of satellites in Earth orbit, ground control stations, and user devices. GPS uses signals transmitted by satellites to enable user devices to calculate their precise position, velocity, and time.

[0028] In actual applications, when a device needs to integrate multiple security protocols, or multiple devices need to support multiple security protocols, the main challenges faced include: Low code reuse rate: Due to the large differences between different security protocols, developers often need to write interfaces and processing logic for each protocol separately, resulting in a large amount of duplicate code and increasing the workload of software development and maintenance. Inconsistent implementation: Different devices or systems may have deviations in their understanding and implementation of the same security protocol, which not only affects the compatibility and interoperability of the system, but may also lead to security vulnerabilities. Difficulty in testing: Comprehensive testing in a multi-protocol environment becomes extremely complex, especially when ensuring that all safety mechanisms are working correctly. Insufficient testing and debugging may leave safety hazards and bring unacceptable risks to trains in operation. Poor scalability: Faced with constantly updated security threats and technological advances, it is difficult for existing systems to quickly adapt to new security protocols or enhance existing security measures, limiting the system's long-term development capabilities.

[0029] Therefore, it is crucial to develop a method that can efficiently manage and integrate multiple security protocols. The embodiments of this specification propose a common architecture for security protocols, that is, a data processing platform including an application layer, a protocol layer, and a service layer. The protocol layer is located between the application layer and the service layer, and the protocol layer includes multiple protocol interfaces with different protocol types; the protocol layer is used to respond to data processing requests sent by the application layer or the service layer, obtain the data to be processed and the device type of the data to be processed; according to the device type, the target protocol interface is screened out from the multiple protocol interfaces; through the target protocol interface, the target security protocol is called to process the data to be processed and obtain the data processing result, wherein the target security protocol is a security protocol encapsulated by the target protocol interface. Performing data processing through the protocol layer can reduce repeated coding, ensure the consistency of security protocol implementation, simplify the testing process, and have good scalability, so as to cope with new demands and challenges that may arise in the future.

[0030] In this specification, a data processing method is provided. This specification also involves a data processing platform, a data processing device, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.

[0031] See also Figure 1 , Figure 1 1 shows an architecture diagram of a data processing platform provided by one embodiment of the present specification. The data processing platform includes an application layer 102, a protocol layer 104, and a service layer 106. The protocol layer 104 is located between the application layer 102 and the service layer 106. The protocol layer 104 includes multiple protocol interfaces of different protocol types. The protocol layer 104 is used to respond to the data processing request sent by the application layer 102 or the service layer 106, obtain the data to be processed and the device type of the data to be processed; based on the device type, filter out the target protocol interface from multiple protocol interfaces; through the target protocol interface, call the target security protocol to process the data to be processed and obtain the data processing result, wherein the target security protocol is the security protocol encapsulated by the target protocol interface.

[0032] In an optional embodiment of the present specification, the application layer 102 and the protocol layer 104 can be deployed simultaneously in the software layer 110. The protocol layer 104 is further configured to send the data processing result to the application layer 102 when the data to be processed is data to be received; and to send the data processing result to the service layer 106 when the data to be processed is data to be sent, so that the service layer 106 can send the data processing result to an external device. Figure 1The data processing platform further includes a communication layer 108. The service layer 106 can send data processing results to the communication layer 108. The communication layer 108 can uniformly send the data processing results of multiple data to be processed to an external device based on a communication protocol. The communication protocol includes but is not limited to the TCP protocol and the UDP protocol.

[0033] It should be noted that the data processing platform proposed in the embodiments of this specification can support the application layer to obtain input data from external devices for processing, can also support the application layer to send data to external data, and can also support the encapsulation of new security protocols. When a new security protocol needs to be added, the protocol is usually integrated into the service software or application software of the security processing platform.

[0034] In practical applications, see Figure 1 The service layer 106 may include service software that can read the protocol configuration files for each security protocol from the underlying service files and send the configuration files to the protocol layer 104. The protocol layer 104 then determines, based on the configuration files, the device types that the corresponding protocol interfaces can handle. The multiple protocol interfaces in the protocol layer 104 may support security protocols of different types, such as RSSP-1, RSSP-2, and point-to-point protocols. The selection of these protocols is based on practical needs and is not limited in this specification.

[0035] Applying the solution of the embodiment of this specification, the data processing platform includes a protocol layer of a public architecture, which is located between the application layer and the service layer and supports multi-protocol encapsulation processing. In the protocol layer of the data processing platform, multiple protocol interfaces can be functionally unified, and the corresponding security protocol is selected based on the device type of the data to be processed to perform data encryption and decryption processing, so that the application layer and the service layer are not aware of the existence. By encapsulating multiple protocol interfaces in the protocol layer and dynamically selecting the appropriate security protocol according to the device type, it is avoided to write separate processing code for each device or protocol, so that the general processing code can be reused, reducing the writing of duplicate code, and improving the maintainability of the code, the coverage and efficiency of the test. The protocol interface is called uniformly to complete the data processing without having to worry about the details of the protocol, which improves the scalability and flexibility of the system, while reducing errors caused by inconsistent implementation methods and improving the stability and reliability of data processing. When new devices or security protocols need to be supported, it is only necessary to add the corresponding protocol interface in the protocol layer, thereby improving the compatibility and scalability of the data processing platform.

[0036] It is worth noting that the data processing platform provided in the embodiments of this specification is generally deployed on the server side. However, in other embodiments of this specification, the client side may have similar functions to the server side, and the data processing platform may also be deployed on the client side. In other embodiments, the data processing platform provided in the embodiments of this specification may also be deployed in a distributed manner on the client side and the server side.

[0037] The client can be a browser, an application (APP), a web application such as a Hypertext Markup Language 5 (H5) application, a lightweight application (also known as a mini-program), or a cloud application. The client can be developed based on the software development kit (SDK) of the corresponding service provided by the server, such as the Real-Time Communication (RTC) SDK. The client can be deployed in an electronic device and rely on the device or certain apps within the device to run. For example, an electronic device may have a display and support information browsing, such as a personal mobile terminal such as a mobile phone, tablet computer, or personal computer. Electronic devices are typically also equipped with various other applications, such as human-computer interaction applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, and social platform software. The server can include servers that provide various services, such as servers that provide communication services for multiple clients, servers that support background training of models used by clients, and servers that process data sent by clients. It should be noted that the server side can be implemented as a distributed server cluster consisting of multiple servers or a single server. The server can also be a server in a distributed system or a server integrated with blockchain. The server can also be a cloud server for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), big data and artificial intelligence platforms, or intelligent cloud computing servers or intelligent cloud hosts equipped with artificial intelligence technology.

[0038] See also Figure 2 , Figure 2 A flowchart of a data processing method provided by one embodiment of this specification is shown. The data processing method is applied to a protocol layer in a data processing platform. The protocol layer includes multiple protocol interfaces of different protocol types. Specifically, the method includes the following steps: Step 202: In response to the data processing request, obtain the data to be processed and the device type of the data to be processed.

[0039] It should be noted that a data processing request can be a request sent by the application layer to send data to an external device. It can also be a request sent by the service layer to send data from an external device to the application layer. It can also be a request sent by the application layer to obtain data from an external device. Data to be processed refers to the request object of a data processing request. Data to be processed can be data to be sent or data to be received. For example, if a data processing request is sent by the application layer to request sending data to an external device, the data to be processed is data to be sent. If a data processing request is sent by the service layer to request sending data from an external device to the application layer, the data to be processed is data to be received. If a data processing request is sent by the application layer to request obtaining data from an external device, the data to be processed is data to be received. Data processing requests can be requests for different scenarios, such as data processing requests in rail transit scenarios, data processing requests in e-commerce transaction scenarios, and so on. The specific selection depends on the actual situation and is not limited in the embodiments of this specification.

[0040] The device type for data to be processed refers to the specific hardware or software system that generates or will receive the data to be processed. These devices can be categorized into various types based on their function, purpose, and technical characteristics. Device types include, but are not limited to, signal control equipment, communications equipment, and safety protection equipment.

[0041] For example, in a rail transit scenario, the data to be processed includes, but is not limited to, the following: train position data (e.g., current train position, train direction), train status data (e.g., operating status, compartment temperature, and humidity), train signal data (e.g., signal light status, switch positions), and communication data (e.g., control commands and status reports between the train and the ground control center). The types of devices used for the data to be processed include, but are not limited to, the following: train position detection, track position sensing, environmental monitoring sensing, and on-board communication.

[0042] In actual applications, there are multiple ways to obtain the data to be processed and the device type of the data to be processed in response to a data processing request. The specific method is selected according to the actual situation, and the embodiments of this specification do not impose any restrictions on this. In one possible implementation of this specification, in response to a data processing request, the data to be processed carrying the device type can be obtained.

[0043] In another possible implementation of this specification, in response to a data processing request, data to be processed may be obtained, a device type of the data to be processed may be identified in real time, and the device type of the data to be processed may be obtained. That is, in response to the data processing request, obtaining the data to be processed and the device type of the data to be processed may include the following steps: Responding to a data processing request, obtaining data to be processed; The device type of the data to be processed is identified to obtain the device type of the data to be processed.

[0044] It should be noted that there are multiple ways to obtain the data to be processed, and the specific method to be selected depends on the actual situation. The embodiments of this specification do not impose any restrictions on this. In one possible implementation of this specification, the data to be processed can be received from the application layer or service layer. In another possible implementation of this specification, the data to be processed can be read from other data acquisition devices or databases.

[0045] In actual applications, there are multiple ways to identify the device type of the data to be processed and obtain the device type of the data to be processed. The specific method to be selected depends on the actual situation, and the embodiments of this specification do not impose any restrictions on this. In one possible implementation of this specification, many devices will carry a unique data source identifier (such as a device ID, MAC address, etc.) when sending data to be processed. The data source identifier of the data to be processed can be identified to determine the device type of the data to be processed. For example, the data to be processed is {"device_id":"12345","data":{"speed":80}}. By querying the device ID database, it is determined that the device type corresponding to the device ID "12345" is an on-board computer type. In another possible implementation of this specification, different device types generally use different data formats. Therefore, the data format of the data to be processed can be parsed to determine the source device type of the data that can be inferred. For example, the data to be processed is {"type":"position","value":{"latitude":37.7749,"longitude":-122.4194}}. According to the type field in the data format, it is determined that this is location data, and the device type is further confirmed to be a vehicle-mounted GPS type.

[0046] By applying the embodiments of this specification, the device type of the data to be processed can be accurately determined by performing device type identification on the data to be processed.

[0047] Step 204: Filter out a target protocol interface from the multiple protocol interfaces according to the device type.

[0048] It should be noted that since the protocol layer includes multiple protocol interfaces for each security protocol, in order to accurately process data, a target protocol interface can be selected from the multiple protocol interfaces based on the device type of the data to be processed. The target protocol interface refers to the protocol interface that matches the device type among the multiple protocol interfaces.

[0049] In actual applications, there are multiple ways to filter out a target protocol interface from multiple protocol interfaces based on the device type. The specific selection is based on the actual situation, and the embodiments of this specification do not impose any restrictions on this. In one possible implementation of this specification, the security protocols corresponding to different device types are usually different. Therefore, a mapping relationship table between device types and security protocols can be maintained. Based on the device type and the mapping relationship table, the target security protocol corresponding to the data to be processed can be filtered out from multiple security protocols, and the protocol interface corresponding to the target security protocol can be determined as the target protocol interface.

[0050] In another possible implementation of the present specification, different protocol interfaces correspond to different device configuration types. The target protocol interface may be determined based on the device configuration type and the device type. That is, the above-mentioned screening of the target protocol interface from multiple protocol interfaces based on the device type may include the following steps: Get the device configuration types corresponding to multiple protocol interfaces; Filter out target device configuration types that match the device type from the device configuration types; The protocol interface corresponding to the configuration type of the target device is determined as the target protocol interface.

[0051] It should be noted that different device types typically correspond to different security protocols. Therefore, you can set a corresponding device configuration type for the protocol interface based on the device type to which the security protocol encapsulated by the protocol interface applies. The device configuration type refers to the device type supported by the security protocol encapsulated by the protocol interface.

[0052] In actual applications, there are many ways to obtain the device configuration types corresponding to multiple protocol interfaces. The specific method to be selected depends on the actual situation. The embodiments of this specification do not impose any restrictions on this. In one possible implementation of this specification, the interface configuration information of each protocol interface can be obtained, and the device configuration type can be extracted from the interface configuration information. In another possible implementation of this specification, the device configuration type corresponding to the protocol interface can be determined based on the device type supported by the security protocol encapsulated by the protocol interface.

[0053] Furthermore, there are multiple ways to filter out a target device configuration type that matches the device type from multiple device configuration types, and the specific selection is based on actual conditions. The embodiments of this specification do not impose any restrictions on this. In one possible implementation of this specification, a device configuration type that is identical to the device type among multiple device configuration types can be determined as a target device configuration type that matches the device type. In another possible implementation of this specification, there may not be a type in the device configuration type that is exactly the same as the device type. In this case, a device configuration type that has a high degree of similarity to the device type can be determined as a target device configuration type that matches the device type.

[0054] By applying the solution of the embodiments of this specification, the target protocol interface is determined according to the device configuration types corresponding to multiple protocol interfaces and the device types of the data to be processed, so that the target protocol interface can be determined efficiently and accurately, and the accurate processing of the data to be processed can be determined.

[0055] Step 206: Call the target security protocol through the target protocol interface to process the data to be processed and obtain a data processing result, wherein the target security protocol is a security protocol encapsulated by the target protocol interface.

[0056] It should be noted that calling the target security protocol to process the data to be processed means using the target security protocol to perform operations such as encryption, decryption, authentication, and integrity checking on the data to be processed to ensure the security of the data to be processed during transmission. The data processing result refers to the output data finally obtained after being processed by the target security protocol. These output data have undergone security processing such as encryption, decryption, and authentication and can be safely transmitted and used. Since the data to be processed includes data to be sent and data to be received, when the data to be processed is data to be sent, the data processing result is the target encrypted data obtained by encrypting the data to be sent. When the data to be processed is data to be received, the data processing result is the target decrypted data obtained by decrypting the data to be received. When the target security protocol is no protocol, the data processing result is the data to be processed.

[0057] By applying the solution of the embodiments of this specification, by encapsulating multiple protocol interfaces in the protocol layer and dynamically selecting the appropriate security protocol according to the device type, it is avoided to write separate processing code for each device or protocol, so that the general processing code can be reused, reducing the writing of duplicate code, and improving the maintainability of the code, the coverage rate and efficiency of the test. The protocol interface is called uniformly to complete the data processing without having to worry about the details of the protocol, which improves the scalability and flexibility of the system, reduces the errors caused by inconsistent implementation methods, and improves the stability and reliability of data processing. When it is necessary to support new devices or security protocols, it is only necessary to add the corresponding protocol interface in the protocol layer, which improves the compatibility and scalability of the data processing platform.

[0058] In an optional embodiment of the present specification, the data to be processed includes data to be received; and the above-mentioned invoking the target security protocol through the target protocol interface to process the data to be processed and obtain the data processing result may include the following steps: Through the target protocol interface, the target security protocol is called to decrypt the received data and obtain the target decrypted data.

[0059] It should be noted that the data to be received refers to the data that the application layer is about to receive, and this data can be data sent by an external device. Taking the data to be received as communication data to be received as an example, after the protocol layer obtains the communication data to be received, if the target security protocol is the RSSP-1 protocol, the RSSP-1 protocol is called to decrypt the communication data to be received. The protocol layer obtains the target decrypted data after decryption by the RSSP-1 protocol and sends the target decrypted data to the application layer; if the target security protocol is the RSSP-2 protocol, the RSSP-2 protocol is called to decrypt the communication data to be received. The protocol layer obtains the target decrypted data after decryption by the RSSP-2 protocol and sends the target decrypted data to the application layer; if the target security protocol is the point-to-point protocol, the point-to-point protocol is called to decrypt the communication data to be received. The protocol layer obtains the target decrypted data after decryption by the point-to-point protocol and sends the target decrypted data to the application layer.

[0060] In actual applications, after obtaining the data to be received and the device type of the data to be received in response to a data processing request, if the data to be received is determined to be non-protocol based on the device type, the data to be received can be sent directly to the application layer. It is also possible to configure a non-protocol interface among multiple protocol interfaces. If the target protocol interface is selected as a non-protocol interface based on the device type, it indicates that the target security protocol is non-protocol. In this case, the data to be received can be sent directly to the application layer.

[0061] By applying the solution of the embodiments of this specification, the target security protocol is called through the target protocol interface to decrypt the received data, which can ensure that the data is not tampered with during the transmission process and ensure the integrity of the data.

[0062] In another optional embodiment of the present specification, the data to be processed includes data to be sent; and the above-mentioned invoking the target security protocol through the target protocol interface to process the data to be processed and obtain the data processing result may include the following steps: Through the target protocol interface, the target security protocol is called to encrypt the data to be sent and obtain the target encrypted data.

[0063] It should be noted that the data to be sent refers to the data that the protocol layer is about to send, and this data can be the data sent by the application layer to the external device. Taking the data to be sent as the communication data to be sent as an example, after the protocol layer obtains the communication data to be sent, if the target security protocol is the RSSP-1 protocol, the RSSP-1 protocol is called to encrypt the communication data to be sent, the protocol layer obtains the target encrypted data encrypted by the RSSP-1 protocol, and sends the target encrypted data to the external device; if the target security protocol is the RSSP-2 protocol, the RSSP-2 protocol is called to encrypt the communication data to be sent, the protocol layer obtains the target encrypted data encrypted by the RSSP-2 protocol, and sends the target encrypted data to the external device; if the target security protocol is the point-to-point protocol, the point-to-point protocol is called to encrypt the communication data to be sent, the protocol layer obtains the target encrypted data encrypted by the point-to-point protocol, and sends the target encrypted data to the external device.

[0064] In actual applications, after obtaining the data to be sent and the device type of the data to be sent in response to a data processing request, if the data to be sent is determined to be processed without a protocol based on the device type, the data to be sent can be directly sent to the external device. It is also possible to configure a no-protocol interface among multiple protocol interfaces. If, based on the device type, the target protocol interface is screened from the multiple protocol interfaces and is found to be a no-protocol interface, it indicates that the target security protocol is no-protocol. In this case, the data to be sent can be directly sent to the external device.

[0065] Furthermore, there are multiple ways for the protocol layer to send the target encrypted data or data to be sent to the external device, and the specific selection is based on the actual situation. The embodiments of this specification do not impose any restrictions on this. In one possible implementation of this specification, the protocol layer can send the target encrypted data or data to be sent to the external device through the service layer. In another possible implementation of this specification, the protocol layer can send the target encrypted data or data to be sent to the service layer, and the service layer sends the target encrypted data or data to be sent to the communication layer, and the communication layer uniformly sends the target encrypted data or data to be sent to the external device.

[0066] By applying the solution of the embodiments of this specification, the target security protocol is called through the target protocol interface to encrypt the data to be sent, which can ensure that the data is not tampered with during the transmission process and ensure the integrity of the data.

[0067] In an optional embodiment of the present specification, different security protocols generally have different protocol rules. Therefore, based on the protocol rules of the target security protocol, the target security protocol may be called to process the data to be processed. That is, the above-mentioned calling of the target security protocol through the target protocol interface to process the data to be processed and obtain the data processing result may include the following steps: Through the target protocol interface and the protocol rules of the target security protocol, the target security protocol is called to process the data to be processed and obtain the data processing result.

[0068] It should be noted that protocol rules refer to the specific specifications and requirements that define how the target security protocol is used to ensure the security and reliability of data transmission. Protocol rules include, but are not limited to, the operating principles, data formats, security mechanisms, and authentication methods of the target security protocol. The specific selection of protocol rules depends on the actual situation and is not limited in this specification.

[0069] Exemplarily, assuming that the target security protocol is the RSSP-1 protocol, the protocol rules of the target security protocol may include at least one of the following: the need to bind the UDP protocol (i.e., setting the service to establish external communication with UDP communication), the need to periodically update the protocol clock (i.e., when the decryption protocol is changed to the loading protocol, the protocol clock is automatically updated), and the need to actively perform protocol time calibration on the external device, i.e., the active call to the external device sends the protocol time calibration information. Assuming that the target security protocol is the RSSP-2 protocol, the protocol rules of the target security protocol may include at least one of the following: the need to bind the TCP protocol, and at the same time, establish TCP communication based on whether the service is currently bound to the client or the server for external communication, the need to periodically update the protocol clock (i.e., when the decryption protocol is changed to the loading protocol, the protocol clock is automatically updated), and when TCP is closed, the service is notified to close the external communication and establish TCP communication.

[0070] By applying the solution of the embodiments of this specification, the target security protocol is called to process the data to be processed through the target protocol interface and the protocol rules of the target security protocol to obtain the data processing results. The protocol rules ensure the confidentiality, integrity, authentication and availability of the data during transmission, thereby improving the security and reliability of data processing.

[0071] In an optional embodiment of this specification, the target security protocol is called to process the data to be processed through the target protocol interface and the protocol rules of the target security protocol. Before obtaining the data processing results, the protocol rules of the target security protocol can also be obtained. In actual applications, there are many ways to obtain the protocol rules of the target security protocol, and the specific selection is based on the actual situation. The embodiments of this specification do not impose any restrictions on this. In a possible implementation method of this specification, the protocol configuration file of the target security protocol can be obtained, and the protocol rules of the target security protocol can be extracted from the protocol configuration file.

[0072] In another possible implementation of the present specification, the protocol rules of the target security protocol may be obtained based on the protocol type of the target security protocol. That is, before the target security protocol is called to process the data to be processed through the target protocol interface and the protocol rules of the target security protocol and obtaining the data processing result, the following steps may be further included: Identify the target security protocol type and obtain the target protocol type; Get the protocol rules of the target security protocol based on the target protocol type.

[0073] It should be noted that type identification refers to the process of determining the specific type of the target security protocol. This ensures that subsequent processing correctly retrieves the corresponding protocol rules. The target protocol type refers to the specific protocol type of the target security protocol determined through type identification.

[0074] In actual applications, there are multiple ways to identify the type of the target security protocol and obtain the target protocol type. The specific method to be selected depends on the actual situation. The embodiments of this specification do not impose any restrictions on this. In one possible implementation of this specification, a data packet of the target security protocol can be obtained, and the target protocol type can be determined based on the data identifier in the data packet (such as the protocol version number and the protocol type field). In another possible implementation of this specification, a data packet of the target security protocol can be obtained, and the target protocol type can be determined based on the metadata field in the data packet.

[0075] Furthermore, after obtaining the target protocol type of the target security protocol, a target candidate protocol rule having the same candidate protocol type as the target protocol type can be selected from multiple candidate protocol rules included in the protocol rule library, and the target candidate protocol rule can be determined as the protocol rule of the target security protocol.

[0076] By applying the solution of the embodiments of this specification, the target security protocol is type identified to obtain the target protocol type; based on the target protocol type, the protocol rules of the target security protocol are obtained, thereby improving the accuracy of the protocol rules, thereby ensuring the confidentiality, integrity, authentication and availability of data during transmission, and improving the security and reliability of data processing.

[0077] In an optional embodiment of the present specification, the data processing platform further includes an application layer and a service layer; the above-mentioned process of invoking the target security protocol through the target protocol interface to process the data to be processed and obtaining the data processing result may further include the following steps: If the data to be processed is data to be received, the data processing result is sent to the application layer; In the case where the data to be processed is data to be sent, the data processing result is sent to the service layer, so that the service layer sends the data processing result to the external device.

[0078] In practical applications, the service layer can send data processing results to external devices in a variety of ways, depending on the specific circumstances. This specification does not impose any restrictions on this in the embodiments. In one possible implementation of this specification, the service layer can directly send the data processing results to the external device. In another possible implementation of this specification, the service layer can send the data processing results to the communication layer, which will then send the data processing results to the external device in a scheduled or batch manner.

[0079] By applying the solution of the embodiments of this specification, data transmission is performed through the protocol layer, so that the process of calling the target security protocol to process the data to be processed is imperceptible to the application layer and the service layer.

[0080] The following combined Figure 3 , taking the application of the data processing method provided in this specification in the rail transit scenario as an example, the data processing method is further explained. Figure 3 A flowchart illustrating the processing process of a data processing method provided by one embodiment of this specification is provided. This data processing method is based on multiple rail transit safety protocols (such as RSSP-1, RSSP-2, point-to-point protocol, etc.) and is applied to the protocol layer of the data processing platform. The data processing platform includes an application layer, a protocol layer, and a service layer. The protocol layer is located between the application layer and the service layer and includes multiple protocol interfaces of different protocol types. Specifically, the following steps are included: Step 302: In response to the data processing request, obtain the data to be processed, perform device type identification on the data to be processed, and obtain the device type of the data to be processed.

[0081] Step 304: Filter out a target protocol interface from the plurality of protocol interfaces according to the device type, wherein the target security protocol encapsulated by the target protocol interface is a security protocol that supports the device type.

[0082] Step 306: Acquire the protocol rules of the target security protocol, call the target security protocol through the target protocol interface and protocol rules to process the data to be processed, and obtain the data processing result.

[0083] Step 308: When the data to be processed is data to be received, the data processing result is sent to the application layer.

[0084] Step 310: When the data to be processed is data to be sent, the data processing result is sent to the service layer.

[0085] It should be noted that in the protocol layer, the following operations can be performed: setting a unified loading protocol configuration for external communications, which is specifically used to configure the security protocols used by different external devices, that is, configuring the correspondence between external devices and security protocols, or the correspondence between external devices and security protocol interfaces. Setting up a data interface in the protocol layer for processing the data from the application layer to the service layer, and encapsulating the protocol interface in the protocol layer, that is, the application layer calls the receiving and sending data streams, and the protocol layer processes them, that is, the data processing operations are encapsulated in the adaptation layer. Setting up a unified protocol interface, and encapsulating the protocol processing logic according to the protocol rules, such as protocol initialization, encryption protocol, decryption protocol, clock update and other processing, that is, there is no protocol for the application layer and service layer; setting up a unified processing flow, when receiving or sending the data stream of the corresponding external device (that is, regardless of whether the data to be processed is data to be received or data to be sent), the corresponding security protocol can be directly selected for decryption and encryption according to the data processing method.

[0086] By applying the solution of the embodiments of this specification, by encapsulating multiple protocol interfaces in the protocol layer and dynamically selecting the appropriate security protocol according to the device type, it is avoided to write separate processing code for each device or protocol, so that the general processing code can be reused, reducing the writing of duplicate code, and improving the maintainability of the code, the coverage rate and efficiency of the test. The protocol interface is called uniformly to complete the data processing without having to worry about the details of the protocol, which improves the scalability and flexibility of the system, reduces the errors caused by inconsistent implementation methods, and improves the stability and reliability of data processing. When it is necessary to support new devices or security protocols, it is only necessary to add the corresponding protocol interface in the protocol layer, which improves the compatibility and scalability of the data processing platform.

[0087] Corresponding to the above data processing method embodiment, this specification also provides a data processing device embodiment, Figure 4 FIG1 shows a schematic diagram of the structure of a data processing device provided by an embodiment of this specification. Figure 4 As shown, the device is applied to the protocol layer in the data processing platform, and the protocol layer includes multiple protocol interfaces of different protocol types; including: An acquisition module 402 is configured to acquire data to be processed and a device type of the data to be processed in response to a data processing request; The screening module 404 is configured to screen out a target protocol interface from a plurality of protocol interfaces according to a device type; The processing module 406 is configured to call the target security protocol through the target protocol interface to process the data to be processed and obtain a data processing result, wherein the target security protocol is a security protocol encapsulated by the target protocol interface.

[0088] Optionally, the processing module 406 is further configured to call the target security protocol to process the data to be processed through the target protocol interface and the protocol rules of the target security protocol to obtain a data processing result.

[0089] Optionally, the device further includes: an identification module configured to perform type identification on the target security protocol to obtain the target protocol type; and obtain protocol rules of the target security protocol according to the target protocol type.

[0090] Optionally, the screening module 404 is further configured to obtain device configuration types corresponding to multiple protocol interfaces respectively; screen out a target device configuration type that matches the device type from the device configuration types; and determine the protocol interface corresponding to the target device configuration type as the target protocol interface.

[0091] Optionally, the data to be processed includes data to be received; the processing module 406 is further configured to call the target security protocol through the target protocol interface to decrypt the data to be received and obtain target decrypted data.

[0092] Optionally, the data to be processed includes data to be sent; the processing module 406 is further configured to call the target security protocol through the target protocol interface to encrypt the data to be sent and obtain target encrypted data.

[0093] Optionally, the acquisition module 402 is further configured to acquire the data to be processed in response to the data processing request; perform device type identification on the data to be processed, and obtain the device type of the data to be processed.

[0094] Optionally, the data processing platform also includes an application layer and a service layer; the device also includes: a sending module, which is configured to send the data processing results to the application layer when the data to be processed is data to be received; and to send the data processing results to the service layer when the data to be processed is data to be sent, so that the service layer sends the data processing results to an external device.

[0095] By applying the solution of the embodiments of this specification, by encapsulating multiple protocol interfaces in the protocol layer and dynamically selecting the appropriate security protocol according to the device type, it is avoided to write separate processing code for each device or protocol, so that the general processing code can be reused, reducing the writing of duplicate code, and improving the maintainability of the code, the coverage rate and efficiency of the test. The protocol interface is called uniformly to complete the data processing without having to worry about the details of the protocol, which improves the scalability and flexibility of the system, reduces the errors caused by inconsistent implementation methods, and improves the stability and reliability of data processing. When it is necessary to support new devices or security protocols, it is only necessary to add the corresponding protocol interface in the protocol layer, which improves the compatibility and scalability of the data processing platform.

[0096] The above is a schematic diagram of a data processing device according to this embodiment. It should be noted that the technical solution of the data processing device and the technical solution of the above-mentioned data processing method are based on the same concept. For details not described in detail in the technical solution of the data processing device, please refer to the description of the technical solution of the above-mentioned data processing method.

[0097] Figure 5 5 shows a block diagram of a computing device according to an embodiment of the present disclosure. Components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and a database 550 is used to store data.

[0098] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0099] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 5 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art may add or replace other components as needed.

[0100] Computing device 500 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, personal digital assistant, laptop computer, notebook computer, netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or personal computer (PC). Computing device 500 can also be a mobile or stationary server.

[0101] The processor 520 is configured to execute computer programs / instructions, which implement the steps of the above-mentioned data processing method when executed by the processor.

[0102] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned data processing method are of the same concept. For details not described in detail in the technical scheme of the computing device, please refer to the description of the technical scheme of the above-mentioned data processing method.

[0103] An embodiment of the present specification further provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above-mentioned data processing method when executed by a processor.

[0104] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned data processing method are based on the same concept. For details not described in detail in the technical scheme of the storage medium, please refer to the description of the technical scheme of the above-mentioned data processing method.

[0105] An embodiment of the present specification further provides a computer program product, comprising a computer program / instruction, which implements the steps of the above-mentioned data processing method when executed by a processor.

[0106] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the above-mentioned data processing method are based on the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the above-mentioned data processing method.

[0107] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0108] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content of the computer-readable medium may be appropriately increased or decreased based on the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.

[0109] It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0110] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0111] The preferred embodiments disclosed above are intended only to help illustrate this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A data processing method, characterized in that: A protocol layer applied to a data processing platform, the protocol layer including a plurality of protocol interfaces of different protocol types; the method comprising: In response to a data processing request, obtaining data to be processed and a device type of the data to be processed; Filtering a target protocol interface from the plurality of protocol interfaces according to the device type; The target security protocol is called through the target protocol interface to process the data to be processed to obtain a data processing result, wherein the target security protocol is a security protocol encapsulated by the target protocol interface.

2. The method according to claim 1, characterized in that The process of calling a target security protocol to process the data to be processed through the target protocol interface to obtain a data processing result includes: The target security protocol is called to process the data to be processed through the target protocol interface and the protocol rules of the target security protocol to obtain a data processing result.

3. The method according to claim 2, characterized in that Before the target security protocol is called to process the data to be processed through the target protocol interface and the protocol rules of the target security protocol and obtaining the data processing result, the method further includes: Performing type identification on the target security protocol to obtain the target protocol type; According to the target protocol type, protocol rules of the target security protocol are acquired.

4. The method according to claim 1, wherein The step of selecting a target protocol interface from the plurality of protocol interfaces according to the device type includes: Obtaining device configuration types corresponding to the multiple protocol interfaces respectively; Filtering out a target device configuration type that matches the device type from the device configuration types; The protocol interface corresponding to the target device configuration type is determined as the target protocol interface.

5. The method according to claim 1, wherein The data to be processed includes data to be received; The process of calling a target security protocol to process the data to be processed through the target protocol interface to obtain a data processing result includes: The target security protocol is called through the target protocol interface to decrypt the data to be received and obtain target decrypted data.

6. The method according to claim 1, characterized in that The data to be processed includes data to be sent; The process of calling a target security protocol to process the data to be processed through the target protocol interface to obtain a data processing result includes: The target security protocol is called through the target protocol interface to encrypt the data to be sent to obtain target encrypted data.

7. The method according to claim 1, characterized in that The step of obtaining the data to be processed and the device type of the data to be processed in response to the data processing request includes: Responding to a data processing request, obtaining data to be processed; The device type of the data to be processed is identified to obtain the device type of the data to be processed.

8. The method according to any one of claims 1 to 7, characterized in that The data processing platform also includes an application layer and a service layer; After the target security protocol is called to process the data to be processed through the target protocol interface and a data processing result is obtained, the method further includes: In a case where the data to be processed is data to be received, sending the data processing result to the application layer; In a case where the data to be processed is data to be sent, the data processing result is sent to the service layer, so that the service layer sends the data processing result to an external device.

9. A data processing platform, characterized in that: The protocol layer comprises an application layer, a protocol layer and a service layer, wherein the protocol layer is located between the application layer and the service layer, and the protocol layer comprises a plurality of protocol interfaces of different protocol types; The protocol layer is configured to obtain the data to be processed and the device type of the data to be processed in response to a data processing request sent by the application layer or the service layer; Filtering a target protocol interface from the plurality of protocol interfaces according to the device type; The target security protocol is called through the target protocol interface to process the data to be processed to obtain a data processing result, wherein the target security protocol is a security protocol encapsulated by the target protocol interface.

10. A data processing device, characterized in that: A protocol layer applied to a data processing platform, the protocol layer including multiple protocol interfaces of different protocol types; the device comprising: an acquisition module, configured to acquire, in response to a data processing request, data to be processed and a device type of the data to be processed; a screening module, configured to screen out a target protocol interface from the plurality of protocol interfaces according to the device type; The processing module is configured to call a target security protocol through the target protocol interface to process the data to be processed and obtain a data processing result, wherein the target security protocol is a security protocol encapsulated by the target protocol interface.

11. A computing device, characterized in that include: memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer-readable storage medium, characterized in that It stores a computer program / instruction, which implements the steps of the method according to any one of claims 1 to 8 when executed by a processor.

13. A computer program product, characterized in that The method comprises a computer program / instruction which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.