Data transmission method, system, electronic device and storage medium
By receiving and forwarding data from construction machinery in networked devices and using data forwarding rules for data transmission, the problem of low data transmission security of construction machinery and industrial Internet platforms is solved, and the security of data transmission and management cost reduction is achieved.
Patent Information
- Application Number
- CN202411238559.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-05
AI Technical Summary
In the prior art, the data transmission process of engineering machinery and industrial Internet platforms is relatively safe, resulting in an increase in the risk of data leakage in core business.
By implementing the data transmission method in the networked device, the mechanical end data of the engineering machinery is received and forwarded to the industrial Internet platform in a preset format, the data forwarding rules and data frame text in the platform end data are received, and the data frame is transferred according to the rules. The text is forwarded to the construction machinery, avoiding the analysis of the specific content of the business agreement and improving the security of data transmission.
This method improves the security of the data transmission process of engineering machinery and industrial Internet platforms, reduces the risk of data leakage, and simplifies the hardware and software version management of networked devices, reducing R&D and business management costs.
Smart Images

Figure CN118784684B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a data transmission method, system, electronic device and storage medium. Background Art
[0002] Under the trend of digitalization and intelligent development, the application of industrial Internet in the field of engineering equipment has developed rapidly. The mainstream architecture of the industrial Internet platform for engineering machinery includes perception layer, data link layer and platform layer. The data link layer includes networking devices (i.e., engineering machinery networking devices), data (i.e., cloud data) interface between the networking devices and the electrical system of engineering machinery, and data interface between the networking devices and the platform.
[0003] Affected by the characteristics of existing transmission technology, construction machinery manufacturers need to open the communication protocol of the electrical system to the manufacturers of networked devices so that networked devices can realize data transmission between the industrial Internet platform and construction machinery. However, the above method will lead to the leakage of core business data related to construction machinery, and the security is relatively low.
[0004] Therefore, how to improve the security of the data transmission process between construction machinery and the industrial Internet platform is a technical problem that technical personnel in this field currently need to solve. Summary of the invention
[0005] The purpose of this application is to provide a data transmission method, system, electronic device and storage medium, which can improve the security of the data transmission process between construction machinery and industrial Internet platform.
[0006] In order to solve the above technical problems, the present application provides a data transmission method, which is applied to a networking device, wherein the networking device is connected to a construction machine and an industrial Internet platform respectively, and the data transmission method comprises:
[0007] Receiving mechanical end data transmitted by the engineering machinery;
[0008] Forwarding the machine-side data to the industrial Internet platform in a preset format;
[0009] Receiving platform-side data transmitted by the industrial Internet platform; wherein the platform-side data includes data forwarding rules and data frame text; the data forwarding rules include any one or a combination of any several of bus type, data frame format, data frame length, data frame identifier, forwarding frequency and response requirements;
[0010] The data frame body is forwarded to the engineering machinery according to the data forwarding rule.
[0011] Optionally, forwarding the data frame body to the engineering machinery according to the data forwarding rule includes:
[0012] Determine the data type of the platform-side data; wherein the data type includes a first type and a second type; the first type of platform-side data includes a data forwarding rule and at least one data frame body; the second type of platform-side data includes N data forwarding rules and N data frame bodies, the data forwarding rules correspond to the data frame bodies one by one, and N≥2;
[0013] A corresponding data forwarding operation is performed according to the data type, so as to forward the data frame body to the engineering machinery according to the data forwarding rule.
[0014] Optionally, performing a corresponding data forwarding operation according to the data type so as to forward the data frame body to the engineering machinery according to the data forwarding rule includes:
[0015] If the data type of the platform-side data is the first type, forwarding all the data frame bodies in the platform-side data to the engineering machinery according to the data forwarding rule;
[0016] If the data type of the platform-side data is the second type, a forwarding operation is performed on the i-th data frame body according to the i-th data forwarding rule, so as to forward all the data frame bodies in the platform-side data to the engineering machinery; wherein 1≤i≤N.
[0017] Optionally, forwarding the machine-side data to the industrial Internet platform in a preset format includes:
[0018] Convert the machine-side data into target data in a preset format; wherein the preset format includes a start field, a data length field, an information field, an identification field, a data body, a check information field, and an end field; the information field is used to store any one or a combination of any several of the network device information, format version information, time information, and location information, and the identification field is used to store a data frame sequence number and / or a data type of the data body;
[0019] Forward the target data to the industrial Internet platform.
[0020] Optionally, forwarding the machine-side data to the industrial Internet platform in a preset format includes:
[0021] Determining an identifier of the machine-side data;
[0022] If the identifier is a first-class identifier, all machine-side data corresponding to the first-class identifier is forwarded to the industrial Internet platform in accordance with the preset format according to a preset period;
[0023] If the identifier is a second type identifier, forwarding the machine-side data to the industrial Internet platform according to the preset format;
[0024] If the identifier is a third-category identifier, a response message is sent to the engineering machinery, and the machine-side data is forwarded to the industrial Internet platform according to the preset format.
[0025] Optionally, sending response information to the engineering machinery includes:
[0026] A response message including an identifier of the machine-side data is generated, and the response message is sent to the construction machine.
[0027] Optionally, before forwarding the machine-side data to the industrial Internet platform in a preset format, the method further includes:
[0028] Determine whether there is marking data at a preset position of the machine end data;
[0029] If so, the step of forwarding the machine-side data to the industrial Internet platform in a preset format is executed;
[0030] If not, no forwarding operation is performed on the machine-side data.
[0031] The present application also provides a data transmission system, wherein the networking device is connected to the engineering machinery and the industrial Internet platform respectively, and the data transmission system comprises:
[0032] A first data receiving module, used for receiving machine-side data transmitted by the engineering machinery;
[0033] A first data forwarding module, used for forwarding the machine-end data to the industrial Internet platform according to a preset format;
[0034] A second data receiving module is used to receive platform-side data transmitted by the industrial Internet platform; wherein the platform-side data includes data forwarding rules and data frame text; the data forwarding rules include any one or a combination of any several of bus type, data frame format, data frame length, data frame identifier, forwarding frequency and response requirements;
[0035] The second data forwarding module is used to forward the data frame body to the engineering machinery according to the data forwarding rule.
[0036] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned data transmission method are implemented.
[0037] The present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned data transmission method when calling the computer program in the memory.
[0038] After receiving the machine-side data transmitted by the construction machinery, the networking device of the present application forwards the machine-side data to the industrial Internet platform in a preset format so that the industrial Internet platform returns the corresponding platform-side data. The platform-side data returned by the industrial Internet platform includes data forwarding rules and data frame texts, and the networking device can forward the data frame texts to the construction machinery based on the data forwarding rules. In the above scheme, since the platform-side data includes data forwarding rules, the networking device does not need the manufacturer of the construction machinery to provide the specific content of the business agreement, nor does it need to parse the data frame text. It only needs to forward according to the data forwarding rules to achieve data transmission. Therefore, the present application can improve the security of the data transmission process between the construction machinery and the industrial Internet platform. The present application also provides a data transmission system, a storage medium and an electronic device, which have the above-mentioned beneficial effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;
[0041] Figure 2 A schematic diagram of a data transmission scenario provided in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of a preset format provided in an embodiment of the present application;
[0043] Figure 4 A schematic diagram of the structure of a first type of data frame provided in an embodiment of the present application;
[0044] Figure 5 A schematic diagram of the structure of a second type of data frame provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] See below Figure 1 , Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application.
[0047] Specific steps may include:
[0048] S101: receiving machine-side data transmitted by the engineering machinery;
[0049] Among them, this embodiment is applied to a networking device, which is a device that connects engineering machinery to the Internet, and is intended to achieve functions such as remote monitoring, fault warning, data analysis and optimization of engineering machinery. The networking device is connected to the engineering machinery and the industrial Internet platform respectively. The engineering machinery can transmit data to the industrial Internet platform through the networking device, and the industrial Internet platform can also transmit data to the engineering machinery through the networking device. The above-mentioned networking device can be a device built into the engineering machinery.
[0050] In the scenario in which this embodiment is applied, the engineering machinery and the networking device are connected by a first communication method, and the networking device and the industrial Internet platform are connected by a second communication method. The first communication method and the second communication method may be different or the same. The first communication method and the second communication method may be: network connection, serial port connection, etc.
[0051] The mechanical end data is the data transmitted by the engineering machinery to the networking device. The engineering machinery can transmit the mechanical end data to the networking device according to the corresponding data transmission rules. As a feasible implementation method, the engineering machinery can be connected to the networking device via a CAN (Controller Area Network) bus, and the engineering machinery can receive the mechanical end data transmitted by the engineering machinery via the CAN bus. The above-mentioned mechanical end data can be sensor data, operation logs, remote control instructions and other data.
[0052] S102: forwarding the machine-end data to the industrial Internet platform according to a preset format;
[0053] After receiving the machine-side data, the networking device can forward the machine-side data to the industrial Internet platform. The machine-side data formats of different types of construction machinery are different. This embodiment converts the machine-side data into data in a preset format, and then forwards the machine-side data to the industrial Internet platform in the preset format to ensure the accuracy and consistency of the data.
[0054] As a feasible implementation method, this embodiment can convert the machine-side data into target data in a preset format; and forward the target data to the industrial Internet platform.
[0055] The above-mentioned preset format includes a start field, a data length field, an information field, an identification field, a data body, a check information field and an end field. Among them, the start field is used to store the mark data for identifying the start of the data frame; the data length field is used to store the number of bytes contained in all the data after the start data of this data frame; the information field is used to store any one or a combination of network device information (i.e., relevant information of the network device, including but not limited to serial number, SIM card number, etc.), format version information (i.e., data format version), time information (i.e., the time when the data frame is sent) and location information (i.e., the geographical coordinates of the data frame when it is sent); the identification field is used to store the data type of the data frame sequence number and / or the data body. SIM card is a user identity card.
[0056] S103: receiving platform-side data transmitted by the industrial Internet platform;
[0057] Among them, after the networked device forwards the machine-side data to the industrial Internet platform in a preset format, the industrial Internet platform can generate corresponding platform-side data for the machine-side data, and the industrial Internet platform can send the platform-side data to the networked device.
[0058] The platform-side data includes data forwarding rules and data frame text; the data forwarding rules include any one or a combination of any one of bus type, data frame format, data frame length, data frame identifier, forwarding frequency and response requirements. As a feasible implementation, the platform-side data can be data that conforms to a preset format, and the data forwarding rules can be information in the identifier field.
[0059] The above-mentioned bus type is used to describe the forwarding network type identifier, the data frame format can be the format of the CAN data frame (such as a standard frame or an extended frame, etc.), the data frame length is the data length of the data frame to be forwarded, the data frame identifier can be a CAN identifier, and the forwarding frequency is used to describe the forwarding frequency when the data frame body is periodically forwarded data. The response requirement is used to agree whether the engineering machinery is required to respond when the networked device forwards the data frame body.
[0060] S104: forwarding the data frame body to the engineering machinery according to the data forwarding rule.
[0061] Among them, the networking device can identify the data forwarding rules and data frame body in the platform-side data. The networking device will parse the data forwarding rules, which include bus type, data frame format, length, identification, forwarding frequency and response requirements. The networking device encapsulates the data frame body into a format that meets the requirements according to the data forwarding rules and sends it to the engineering machinery through the specified bus type. Throughout the process, the networking device will ensure the integrity and accuracy of the data. If a response requirement is set in the data forwarding rule, the networking device will also wait for the response from the engineering machinery to confirm that the data has been successfully received.
[0062] After receiving the machine-side data transmitted by the construction machinery, the networking device of this embodiment forwards the machine-side data to the industrial Internet platform in a preset format so that the industrial Internet platform returns the corresponding platform-side data. The platform-side data returned by the industrial Internet platform includes data forwarding rules and data frame text. The networking device can forward the data frame text to the construction machinery based on the data forwarding rules. In the above scheme, since the platform-side data includes data forwarding rules, the networking device does not need the manufacturer of the construction machinery to provide the specific content of the business agreement, nor does it need to parse the data frame text. It only needs to forward according to the data forwarding rules to achieve data transmission. Therefore, this embodiment can improve the security of the data transmission process between the construction machinery and the industrial Internet platform.
[0063] As for Figure 1 Further introduction to the corresponding embodiment, the platform-side data sent by the industrial Internet platform may include any number of data frame bodies. If there are more than two data frame bodies, the industrial Internet platform may set a unified data forwarding rule for all data frame bodies so that all data frame bodies in the platform-side data are forwarded according to the same data forwarding rule. If there are more than two data frame bodies, the industrial Internet platform may also set a corresponding data forwarding rule for each data frame body so that the corresponding data frame body in the platform-side data is forwarded according to each data forwarding rule.
[0064] The data types of the platform-side data include a first type and a second type; the first type of platform-side data includes a data forwarding rule and at least one data frame body; the second type of platform-side data includes N data forwarding rules and N data frame bodies, and the data forwarding rules in the second type of platform-side data correspond one-to-one to the data frame body, N≥2.
[0065] This embodiment can forward the data frame body to the engineering machinery in the following manner: determine the data type of the platform-side data; perform corresponding data forwarding operations according to the data type, so as to forward the data frame body to the engineering machinery according to the data forwarding rules.
[0066] If the data type of the platform-side data is the first type, all the data frame bodies in the platform-side data are forwarded to the engineering machinery according to the data forwarding rule.
[0067] If the data type of the platform-side data is the second type, a forwarding operation is performed on the i-th data frame body according to the i-th data forwarding rule, so as to forward all the data frame bodies in the platform-side data to the engineering machinery; wherein 1≤i≤N.
[0068] In the above process, the i-th data frame body corresponds to the i-th data forwarding rule. The value of i can be set to 1 first, and the forwarding operation is performed on the first data frame body according to the first data forwarding rule, and the forwarding operation is performed on the second data frame body according to the second data forwarding rule, and so on, until the forwarding operation is performed on the N-th data frame body according to the N-th data forwarding rule, so as to forward all the data frame bodies in the platform-side data to the construction machinery.
[0069] As for Figure 1 For further introduction of the corresponding embodiment, the machine-side data sent by the engineering machinery may contain an identifier, and the networking device may determine the identifier of the machine-side data and perform a corresponding forwarding operation according to the type of the identifier, specifically in the following manner:
[0070] If the identifier is a first-class identifier, all machine-side data corresponding to the first-class identifier is forwarded to the industrial Internet platform in the preset format according to the preset period. In the above manner, all machine-side data with the first-class identifier received in the current period can be forwarded to the industrial Internet platform in the preset format according to the preset period.
[0071] If the identifier is a second type identifier, the machine-side data is forwarded to the industrial Internet platform in the preset format. In the above manner, after receiving the machine-side data, the machine-side data can be immediately forwarded to the industrial Internet platform in the preset format.
[0072] If the identifier is a third-category identifier, a response message is sent to the engineering machinery, and the machine-side data is forwarded to the industrial Internet platform in the preset format. In the above manner, after receiving the machine-side data, a response message can be sent to the engineering machinery, and the machine-side data can be forwarded to the industrial Internet platform in the preset format. Specifically, the process of the networked device sending the response message can be: generating a response message containing the identifier of the machine-side data, and sending the response message to the engineering machinery.
[0073] The above-mentioned first category identifiers, second category identifiers and third category identifiers can be categories divided according to the values of the identifiers. For example, the identifiers in the first interval are first category identifiers, the identifiers in the second interval are second category identifiers, and the identifiers in the third interval are third category identifiers. There is no intersection among the first interval, the second interval and the third interval.
[0074] As for Figure 1 Further introduction to the corresponding embodiment, before forwarding the machine-side data to the industrial Internet platform in a preset format, it can also be determined whether there is marking data at a preset position of the machine-side data; if so, the step of forwarding the machine-side data to the industrial Internet platform in a preset format is executed; if not, the forwarding operation is not performed on the machine-side data.
[0075] The process described in the above embodiment is explained below through an embodiment in actual application.
[0076] Under the existing data link technology architecture, networking devices have the following problems:
[0077] (1) Affected by the categories and models of construction machinery, the content and format of the data that needs to be transmitted to the cloud are different, and the software programs of the networking devices have different customization requirements. Therefore, it is necessary to develop a variety of networking devices with different hardware and software versions to meet the above customization and upgrade requirements. As a result, there are many software and hardware versions of networking devices and frequent upgrade iterations, so that networking device manufacturers have to invest more R&D resources and production management resources; construction machinery manufacturers also often have to face complex R&D management and business management issues, which can easily lead to confusion and errors, increasing R&D, after-sales and business management costs.
[0078] (2) Affected by the characteristics of existing transmission technology, construction machinery manufacturers need to open the communication protocol of the electrical system to networking device manufacturers in order to complete data collection and upload and the industrial Internet platform to send data to construction machinery. For construction machinery manufacturers, this leads to the low security of the company's core business data (such as unlocking vehicle data, operating data, key technical indicator data, etc.), which is prone to data leakage and causes losses.
[0079] In view of the technical problems existing in the above-mentioned related technologies, this embodiment provides a network device and a data transmission method of the network device, see Figure 2 , Figure 2 A schematic diagram of a data transmission scenario provided in an embodiment of the present application, in which construction machinery transmits data to a networked device according to transmission rule 1, the networked device transmits data to the construction machinery according to transmission rule 2, the networked device transmits data to an industrial Internet platform according to transmission rule 3, and the industrial Internet platform transmits data to the networked device according to transmission rule 4.
[0080] The bearer communication bus of the above-mentioned transmission rule 1 and transmission rule 2 may be one or more of CAN, RS232, RS485 or RS422.
[0081] In transmission rule 1, for the CAN bus system, for data that needs to be collected by the networked device, the usage range of its identifier CAN ID (also known as forwarding CAN ID) is agreed upon, and the networked device forwards the data upon detecting it within the above agreed ID range.
[0082] This embodiment can further segment the forwarded CAN ID and agree on a forwarding mechanism 1, which is a periodic forwarding mechanism. Forwarding mechanism 1 stipulates that after the networked device collects the CAN ID data in the segmented area (that is, the identifier is a first-class identifier), all the data identified by the CAN ID in the segmented area will be packaged and sent to the industrial Internet platform according to the agreed period. After collecting the CAN ID data in the segmented area, the networked device will not respond to the collected CAN ID data.
[0083] This embodiment can further segment the forwarded CAN ID and stipulate a forwarding mechanism 2, which is an instant forwarding mechanism. Forwarding mechanism 2 stipulates that after the networked device collects the CAN ID data in the segmented area (that is, the identifier is a second-class identifier), it will immediately package the collected data and send it to the industrial Internet platform. After collecting the CAN ID data in the segmented area, the networked device will not respond to the collected CAN ID data.
[0084] This embodiment can further segment the forwarded CAN ID and stipulate a forwarding mechanism 3, which is an instant forwarding mechanism. Forwarding mechanism 3 stipulates that after the networked device collects the CAN ID data in the segmented area (that is, the identifier is a third-class identifier), it will immediately package the collected data and send it to the industrial Internet platform. After collecting the CAN ID data in the segmented area, the networked device will collect and respond to each collected CAN ID data (also known as the networked device response).
[0085] In the transmission rule 1, for the CAN bus system, it also includes the agreement on the response to the data sent by the networked device (hereinafter referred to as the engineering machinery response), which stipulates the CAN ID used for the response, and the CAN ID to be responded to is stipulated in the response content as the response content and stored in a fixed position of the response content. The above content adopts a targeted response method to achieve reliable data transmission. For example, if the networked device sends multiple data frames to be responded to, the whole machine adds the CAN ID value of the data frame to be responded to in the response content. The networked device receives the response frame and parses it. When the CAN ID contained in the response content of the response data frame is consistent with the CAN ID of the data frame to be responded to, it is considered that the data frame to be responded to has been successfully received by the networked device. When the response frame containing the CAN ID of the data frame to be responded to is not received after the timeout, it is considered that the data to be responded to has failed to be sent, and the networked device then takes resending and retransmission measures to ensure reliable data delivery. The format of the above response content (i.e., the response frame) can also include an SN serial number (unique identification code of the product), and the content format of the response frame also includes the SN serial number in the content of the data frame to be responded to, so as to solve the problem of reliable transmission of multiple frames to be responded to using the same CAN ID.
[0086] In transmission rule 1, for RS232, RS485 or RS422 bus systems, for data that needs to be collected by the networked device, one or more tag data are placed in the agreed position of the data frame. After detecting the above-mentioned tag data, the networked device forwards it to the industrial Internet platform.
[0087] In the tag data, a forwarding mechanism 4 can be agreed upon, which is a periodic forwarding mechanism. Forwarding mechanism 4 stipulates that after the networked device collects the data frame with the specified tag data, it will package the frame data and send it to the industrial Internet platform according to the agreed period, and the networked device will not respond to the collected data frame.
[0088] In the tag data, a forwarding mechanism 5 can also be agreed upon, which is a periodic forwarding mechanism. The forwarding mechanism 5 stipulates that after the networked device collects the data frame with the specified tag data, it immediately sends the collected data frame to the industrial Internet platform, and the networked device will not respond to the collected data frame.
[0089] In the tag data, a forwarding mechanism 6 can also be agreed upon, which is a periodic forwarding mechanism. The forwarding mechanism 6 stipulates that after the networked device collects the data frame with the specified tag data, it immediately sends the collected data frame to the industrial Internet platform, and the networked device responds to the collected data frame.
[0090] In transmission rule 1, for RS232, RS485 or RS422 bus systems, this embodiment also includes an agreement on the response of the engineering machinery to the data sent by the networking device. In the data format of the response information sent by the engineering machinery, the data frame of the response information has an agreed mark at its specified position and a mark for whether the verification of the collected data is successful.
[0091] In transmission rule 2, for the CAN bus system, this embodiment can stipulate the use scope and data format of the CAN ID used to respond to the construction machinery in the data sent by the networking device to the construction machinery, wherein the response data format stipulates that the CAN ID being responded to is part of the response content and is stored in a fixed position in the response content.
[0092] In transmission rule 2, for RS232, RS485 or RS422 bus systems, this embodiment can stipulate the data format of the response information in the data sent by the networking device to the construction machinery, and the data frame of the response information has an agreed mark at its specified position and a mark for whether the verification of the collected data is successful.
[0093] The bearer network of the above transmission rules 3 and 4 is a 2G, 3G, 4G or 5G network in the mobile communication network. The network protocol of the above transmission rules 3 and 4 adopts the TCP / IP protocol family, which includes but is not limited to TCP and UDP protocols. TCP stands for Transmission Control Protocol, IP stands for Internet Protocol, and UDP stands for User Datagram Protocol.
[0094] See also Figure 3 , Figure 3 A schematic diagram of a preset format provided in an embodiment of the present application. Figure 3 As shown, the data format of the TCP / IP protocol of transmission rule 3 and transmission rule 4 includes but is not limited to the following: start field, data length field, information field 1, information field 2, identification field 1, identification field 2, information field 3, data body, check information field and end field.
[0095] The start field is used as the marking data for identifying the start of the data frame, and is composed of one or more bytes of data; the data length field is used for the number of bytes contained in all the data after the start data of this data frame; the information field 1 contains the relevant information of the networked device, including but not limited to the serial number, SIM card number, etc.; the information field 2 contains the relevant information of the data format, including but not limited to the version of the data format, etc.; the identification field 1 contains the sequence information of the data frame; the identification field 2 contains the data type information of the data body carried by the data frame, including but not limited to the working condition information, response information and location information, etc.; the information field 3 contains other information of the data frame, including but not limited to the time when the data frame is sent, the geographical coordinates at the time of sending, etc.; the data body contains the content of the information carried by the message vehicle; the check information field includes the check data calculated according to a certain check algorithm for all the data before the check information field, and the check algorithm includes but is not limited to the sum check, the XOR check, etc.; the end field is used as the marking data for identifying the end of the data frame, and is composed of one or more bytes of data.
[0096] In transmission rule 3, the networked device can send data to the industrial Internet platform through transparent transmission in accordance with the above-mentioned preset format, and the networked device does not need to parse the data content.
[0097] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a first type of data frame provided in an embodiment of the present application. Figure 4As shown, in transmission rule 4, the identification word includes an identification A of a data type, and the data type identified as identification A includes a control unit in the specified position of the "data text" of the data format, and the control unit specifies the forwarding rules for forwarding the data text in the data frame. The control unit includes but is not limited to the following contents: control word 1, control word 2, control word 3, control word 4, control word 5, control word 6, text 1~n. Control word 1 specifies the bus type (i.e., forwarding network type, such as CAN network or RS232, etc.) identifier; control word 2 specifies the format of the CAN data frame, such as: standard frame or extended frame, etc. (valid when the control word 1 specifies the CAN bus, otherwise the control word is a reserved field); control word 3 specifies the data frame length of the data to be forwarded; control word 4 specifies the CAN identification (ID) value of the forwarding data type (valid when the control word 1 specifies the CAN bus, otherwise the control word is a reserved field), i.e., the data frame identifier; control word 5 specifies the forwarding frequency of the periodically forwarded data specified in control word 3; control word 6 specifies whether the engineering machinery needs to respond (i.e., the response requirement) when the networked device forwards data in accordance with the above-mentioned control unit agreement; body 1~n is used to store the data frame body. When the control word 1 specifies the CAN network, the data body can contain multiple CAN data frames.
[0098] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a second type of data frame provided in an embodiment of the present application. Figure 5 As shown, in transmission rule 4, identification field 2 also includes an identifier B of a data type. The data type identified as identifier B includes a control unit in a specified position of the "data body" of the data format. The control unit only stipulates the forwarding rules of the "forwarded data body" closest to it. The control unit includes but is not limited to the following: control words 11, 21, ..., n1, control words 12, 22, ..., n2, control words 13, 23, ..., n3, control words 14, 24, ..., n4, control words 15, 25, ..., n5, control words 16, 26, ..., n6, text 1~n.
[0099] Control words 11, 21, ..., n1 specify the bus type, that is, the forwarding network type (such as CAN network or RS232, etc.) identifier; control words 12, 22, ..., n2 specify the CAN data frame format, such as: standard frame or extended frame, etc. (valid when control words 11, 21, ..., n1 specify CAN network, otherwise the control word is a reserved field); control words 13, 23, ..., n3 specify the data frame length of the data to be forwarded; control words 14, 24, ..., n4 specify the forwarding data type CAN ID value (valid when the CAN network is specified in control word 11, 21, ..., n1, otherwise the control word is a reserved field), i.e., data frame identification; control words 15, 25, ..., n5 specify the forwarding frequency of the data periodically forwarded as specified in control words 13, 23, ..., n3; control words 16, 26, ..., n6 specify whether the engineering machinery needs to respond (i.e., response requirement) when the networked device forwards data in accordance with the agreement of the above control unit; body 1~n is used to store the data frame body. When the CAN network is specified in control word 1, the data body can contain multiple CAN data frames.
[0100] In this solution, the data sent from the industrial Internet platform to the construction machinery is Figure 4 or Figure 5 The corresponding data type can be forwarded to the engineering machinery through the networking device according to the specified requirements and format, and the networking device does not need to parse the transmitted text. This solution realizes the universalization of the engineering machinery networking device by adopting the data transmission method described in transmission rules 1 to 4, that is, only one software and hardware version of the networking device can be applied to a variety of engineering machinery.
[0101] This embodiment solves the universality problem of engineering machinery networking devices. When the networking devices use the above method for data transmission, they can meet the universality requirements of engineering machinery networking devices, reduce the workload of software and hardware customization and upgrade iteration of networking devices, and reduce the research and development, after-sales management costs, and material management efficiency and costs of networking device manufacturers and engineering machinery manufacturers on networking devices. This embodiment also solves the security problem of the core business data of engineering machinery manufacturers. When using the networking devices and data transmission methods described in this article to transmit cloud data, engineering machinery manufacturers do not need to provide the specific content of the engineering machinery business agreement to the networking device manufacturers. They only need to agree on the basic structure of the business agreement, the location of relevant management parameters, the parsing method, and the forwarding mechanism of business instructions, which reduces the risk of data leakage of engineering machinery manufacturers and enhances data security.
[0102] A data transmission system provided in an embodiment of the present application is applied to a networking device, wherein the networking device is connected to an engineering machine and an industrial Internet platform respectively, and the data transmission system includes:
[0103] A first data receiving module, used for receiving machine-side data transmitted by the engineering machinery;
[0104] A first data forwarding module, used for forwarding the machine-end data to the industrial Internet platform according to a preset format;
[0105] A second data receiving module is used to receive platform-side data transmitted by the industrial Internet platform; wherein the platform-side data includes data forwarding rules and data frame text; the data forwarding rules include any one or a combination of any several of bus type, data frame format, data frame length, data frame identifier, forwarding frequency and response requirements;
[0106] The second data forwarding module is used to forward the data frame body to the engineering machinery according to the data forwarding rule.
[0107] After receiving the machine-side data transmitted by the construction machinery, the networking device of this embodiment forwards the machine-side data to the industrial Internet platform in a preset format so that the industrial Internet platform returns the corresponding platform-side data. The platform-side data returned by the industrial Internet platform includes data forwarding rules and data frame text. The networking device can forward the data frame text to the construction machinery based on the data forwarding rules. In the above scheme, since the platform-side data includes data forwarding rules, the networking device does not need the manufacturer of the construction machinery to provide the specific content of the business agreement, nor does it need to parse the data frame text. It only needs to forward according to the data forwarding rules to achieve data transmission. Therefore, this embodiment can improve the security of the data transmission process between the construction machinery and the industrial Internet platform.
[0108] Optionally, the process in which the second data forwarding module forwards the data frame text to the engineering machinery according to the data forwarding rule includes: determining the data type of the platform-side data; wherein the data type includes a first type and a second type; the first type of platform-side data includes a data forwarding rule and at least one data frame text; the second type of platform-side data includes N data forwarding rules and N data frame texts, and the data forwarding rules correspond to the data frame texts one-to-one, N≥2; performing corresponding data forwarding operations according to the data type, so as to forward the data frame text to the engineering machinery according to the data forwarding rules.
[0109] Furthermore, the second data forwarding module performs corresponding data forwarding operations according to the data type, so as to forward the data frame body to the engineering machinery according to the data forwarding rules. The process includes: if the data type of the platform-side data is the first type, then all the data frame bodies in the platform-side data are forwarded to the engineering machinery according to the data forwarding rules; if the data type of the platform-side data is the second type, then the forwarding operation is performed on the i-th data frame body according to the i-th data forwarding rule, so as to forward all the data frame bodies in the platform-side data to the engineering machinery; wherein, 1≤i≤N.
[0110] Furthermore, the process in which the first data forwarding module forwards the machine-end data to the industrial Internet platform in a preset format includes: converting the machine-end data into target data in a preset format; wherein the preset format includes a start field, a data length field, an information field, an identification field, a data body, a check information field and an end field; the information field is used to store any one or a combination of several of the networked device information, format version information, time information and location information, and the identification field is used to store the data frame sequence number and / or the data type of the data body; forwarding the target data to the industrial Internet platform.
[0111] Furthermore, the process in which the first data forwarding module forwards the machine-side data to the industrial Internet platform in a preset format includes: determining an identifier of the machine-side data; if the identifier is a first-category identifier, forwarding all machine-side data corresponding to the first-category identifier to the industrial Internet platform in the preset format according to a preset period; if the identifier is a second-category identifier, forwarding the machine-side data to the industrial Internet platform in the preset format; if the identifier is a third-category identifier, sending a response message to the construction machinery, and forwarding the machine-side data to the industrial Internet platform in the preset format.
[0112] Furthermore, the process of the first data forwarding module sending the response information to the engineering machine includes: generating the response information including the identifier of the machine-side data, and sending the response information to the engineering machine.
[0113] Furthermore, it also includes:
[0114] The judgment module is used to judge whether there is marking data at the preset position of the machine-end data; if so, the working process of the first data forwarding module is started; if not, the forwarding operation is not performed on the machine-end data.
[0115] Since the embodiments of the system part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the system part, which will not be repeated here.
[0116] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0117] The present application also provides an electronic device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the electronic device may also include various network interfaces, power supplies and other components.
[0118] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of this application.
[0119] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A data transmission method, characterized in that: Applied to a networking device, the networking device is connected to an engineering machine and an industrial Internet platform respectively, and the data transmission method includes: Receiving mechanical end data transmitted by the engineering machinery; Forwarding the machine-side data to the industrial Internet platform in a preset format; Receiving platform-side data transmitted by the industrial Internet platform; wherein the platform-side data includes data forwarding rules and data frame text; the data forwarding rules include any one or a combination of any several of bus type, data frame format, data frame length, data frame identifier, forwarding frequency and response requirements; forwarding the data frame body to the engineering machinery according to the data forwarding rule; Wherein, forwarding the data frame body to the engineering machinery according to the data forwarding rule includes: Determine the data type of the platform-side data; wherein the data type includes a first type and a second type; the first type of platform-side data includes a data forwarding rule and at least one data frame body; the second type of platform-side data includes N data forwarding rules and N data frame bodies, the data forwarding rules correspond to the data frame bodies one by one, and N≥2; A corresponding data forwarding operation is performed according to the data type, so as to forward the data frame body to the engineering machinery according to the data forwarding rule.
2. The data transmission method according to claim 1, characterized in that: Performing a corresponding data forwarding operation according to the data type so as to forward the data frame body to the engineering machinery according to the data forwarding rule includes: If the data type of the platform-side data is the first type, forwarding all the data frame bodies in the platform-side data to the engineering machinery according to the data forwarding rule; If the data type of the platform-side data is the second type, a forwarding operation is performed on the i-th data frame body according to the i-th data forwarding rule, so as to forward all the data frame bodies in the platform-side data to the engineering machinery; wherein 1≤i≤N.
3. The data transmission method according to claim 1, characterized in that: Forwarding the machine-side data to the industrial Internet platform in a preset format, including: Convert the machine-side data into target data in a preset format; wherein the preset format includes a start field, a data length field, an information field, an identification field, a data body, a check information field, and an end field; the information field is used to store any one or a combination of any several of the network device information, format version information, time information, and location information, and the identification field is used to store a data frame sequence number and / or a data type of the data body; Forward the target data to the industrial Internet platform.
4. The data transmission method according to claim 1, characterized in that: Forwarding the machine-side data to the industrial Internet platform in a preset format, including: Determining an identifier of the machine-side data; If the identifier is a first-class identifier, all machine-side data corresponding to the first-class identifier is forwarded to the industrial Internet platform in accordance with the preset format according to a preset period; If the identifier is a second type identifier, forwarding the machine-side data to the industrial Internet platform according to the preset format; If the identifier is a third-category identifier, a response message is sent to the engineering machinery, and the machine-side data is forwarded to the industrial Internet platform according to the preset format.
5. The data transmission method according to claim 4, characterized in that: Sending response information to the engineering machinery includes: A response message including an identifier of the machine-side data is generated, and the response message is sent to the construction machine.
6. The data transmission method according to claim 1, characterized in that: Before forwarding the machine-side data to the industrial Internet platform in a preset format, the method further includes: Determine whether there is marking data at a preset position of the machine end data; If so, the step of forwarding the machine-side data to the industrial Internet platform in a preset format is executed; If not, no forwarding operation is performed on the machine-side data.
7. A data transmission system, characterized in that: Applied to a networking device, the networking device is connected to the engineering machinery and the industrial Internet platform respectively, and the data transmission system includes: A first data receiving module, used for receiving machine-side data transmitted by the engineering machinery; A first data forwarding module, used for forwarding the machine-end data to the industrial Internet platform according to a preset format; A second data receiving module is used to receive platform-side data transmitted by the industrial Internet platform; wherein the platform-side data includes data forwarding rules and data frame text; the data forwarding rules include any one or a combination of any several of bus type, data frame format, data frame length, data frame identifier, forwarding frequency and response requirements; A second data forwarding module, used for forwarding the data frame body to the engineering machinery according to the data forwarding rule; Among them, the process in which the second data forwarding module forwards the data frame body to the engineering machinery according to the data forwarding rule includes: determining the data type of the platform-side data; wherein the data type includes a first type and a second type; the first type of platform-side data includes a data forwarding rule and at least one data frame body; the second type of platform-side data includes N data forwarding rules and N data frame bodies, and the data forwarding rules correspond to the data frame bodies one by one, N≥2; performing corresponding data forwarding operations according to the data type, so as to forward the data frame body to the engineering machinery according to the data forwarding rules.
8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the data transmission method according to any one of claims 1 to 6 when calling the computer program in the memory.
9. A storage medium, characterized in that: The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the steps of the data transmission method according to any one of claims 1 to 6 are implemented.
