Industrial computer-based device control method, device, apparatus, medium and product
By acquiring test parameter files and determining network channel transmission characteristics, a suitable network channel is selected for data transmission, solving the problem of unstable information transmission caused by network fluctuations in existing technologies. This enables fast and accurate data transmission in industrial equipment control systems, improving the automation level and fault diagnosis capabilities of production lines.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- VOYAH AUTOMOBILE TECH CO LTD
- Filing Date
- 2026-05-14
- Publication Date
- 2026-07-10
AI Technical Summary
Existing industrial equipment control systems are susceptible to network fluctuations, making it impossible to quickly and accurately transmit information to the vehicle under test and/or test equipment, thus affecting the automation level and fault diagnosis capabilities of the production line.
By acquiring the test parameter file associated with the vehicle under test, the network channel transmission characteristics and communication quality of the target device are determined. A network channel with communication quality that meets the preset conditions is selected for data transmission. A unified communication protocol is used for information exchange to ensure the reliability and integrity of data transmission.
It improves the stability and accuracy of data transmission, reduces transmission delay and the risk of data loss, and enhances data transmission efficiency and vehicle detection capabilities in industrial control scenarios.
Smart Images

Figure CN122363145A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a device control method, apparatus, equipment, medium and product based on an industrial control computer. Background Technology
[0002] In related technologies, industrial equipment control systems typically adopt a centralized architecture. Production lines usually consist of industrial control computers, vehicles, testing equipment, cloud domain control servers, etc., and data interaction and collaborative control between devices are achieved through complex communication networks.
[0003] In automotive manufacturing or vehicle testing scenarios, industrial control computers (ICCs) need to receive process parameters from the production management system in real time and control the actions of vehicle-related equipment based on these parameters. During this process, the ICC must collaborate with multiple communication methods to ensure the timeliness of command issuance and the integrity of data acquisition.
[0004] However, the existing system is susceptible to network fluctuations and cannot quickly and accurately transmit information to the vehicle under test and / or test equipment, which seriously affects the automation level and fault diagnosis capability of the production line. Summary of the Invention
[0005] The device control method, apparatus, equipment, medium, and product based on industrial control computer provided in this application are used to achieve the effect of quickly and accurately transmitting information to the vehicle under test and / or test equipment.
[0006] In a first aspect, embodiments of this application provide a device control method based on an industrial control computer, including:
[0007] Obtain the test parameter file associated with the vehicle under test, and determine the transmission data to be transmitted to at least one target device based on the test parameter file, wherein the target device includes the vehicle under test and / or the test device;
[0008] For each target device, determine the current network transmission characteristics of multiple network channels associated with the target device;
[0009] Determine the current communication quality of each network channel based on the aforementioned network transmission characteristics;
[0010] The transmission data is sent to the target device through a first network channel, wherein the first network channel is a network channel whose communication quality meets preset conditions.
[0011] In one possible implementation, determining the transmission data to be transmitted to at least one target device based on the test parameter file includes:
[0012] The test parameter file is parsed to obtain the parsing results;
[0013] The parsing result is encoded using a preset communication protocol to obtain the transmission data.
[0014] In one possible implementation, the communication protocol includes equipment function fields, equipment status fields, test component and function fields, equipment location and basic parameter fields, detection status code and fault code fields, workstation number, cloud domain control system identifier, and industrial control computer identifier.
[0015] In one possible implementation, the target device includes a testing device, and the method further includes:
[0016] Obtain the test results sent by the test device, wherein the test results are sent by the test device after being encoded based on the communication protocol.
[0017] In one possible implementation, obtaining the test parameter file associated with the vehicle under test includes:
[0018] Obtain the test parameter file sent by the production management system;
[0019] If the test parameter file sent by the production management system is not successfully received, a pre-stored test parameter file corresponding to the vehicle model is retrieved from the local database based on the vehicle model of the vehicle under test.
[0020] In one possible implementation, the failure to successfully receive the test parameter file includes at least one of the following situations:
[0021] The reception duration exceeds the preset duration threshold;
[0022] The received data is incomplete;
[0023] The received data is incorrect.
[0024] In one possible implementation, the network transmission characteristics include one or more of the following: transmission rate associated with the network channel, available bandwidth, latency, packet loss rate, and latency jitter.
[0025] In one possible implementation, determining the current communication quality of each network channel based on the network transmission characteristics includes:
[0026] The current communication quality of each network channel is calculated based on at least one network transmission characteristic and the weighting coefficient associated with that network transmission characteristic.
[0027] In one possible implementation, the method further includes:
[0028] Based on the network transmission characteristics, the current communication quality of each network channel is determined according to a preset time period to obtain the period measurement results.
[0029] In one possible implementation, the method further includes:
[0030] During data transmission, the existence of a second network channel is determined based on the period measurement results, and the communication quality of the second network channel is higher than that of the first network channel.
[0031] In response to the existence of a second network channel, the system switches to the second network channel to transmit data with the target device.
[0032] In one possible implementation, determining whether a second network channel exists based on the periodic measurement result includes:
[0033] Determine a first quality score associated with the first network channel, and determine a second quality score associated with the second network channel;
[0034] If the second quality score is greater than the sum of the first quality score and a preset hysteresis threshold, then it is determined that a second network channel currently exists.
[0035] In one possible implementation, the network channel includes at least one of wireless network channels and / or at least one of hardware network channels.
[0036] In one possible implementation, the method further includes:
[0037] Determine the priority information of the transmitted data;
[0038] The target network channel is determined from the plurality of network channels based on the priority information, wherein the priority information is positively correlated with the communication quality score of the network channel.
[0039] In one possible implementation, the method further includes:
[0040] Obtain feedback data sent by the target device, the feedback data including test values of various data indicators associated with the target device;
[0041] The feedback data is processed using a trend prediction algorithm to determine the parameter change trend associated with the target device.
[0042] The operating status of the target device is determined based on the trend of parameter changes and the preset trend threshold.
[0043] In one possible implementation, the step of processing the feedback data using a trend prediction algorithm to determine the parameter change trend associated with the target device includes:
[0044] The feedback data is sampled according to a preset sampling period and window length to obtain sampling results;
[0045] Based on the sampling results of this round, calculate multiple first data indicators associated with the target device;
[0046] Based on the multiple first data indicators and the multiple second data indicators associated with the previous round of sampling results, the parameter change trend of the multiple data indicators associated with the target device is determined, and the data of the current round of sampling results does not overlap with the data of the previous round of sampling results.
[0047] In one possible implementation, the method further includes:
[0048] In response to determining that the target device has malfunctioned based on the parameter change trend and the change trend threshold, the malfunction level is determined, wherein the malfunction level is determined based on the parameter change trend and the change trend threshold.
[0049] Anomaly warning operations are performed using a warning method associated with the aforementioned anomaly level.
[0050] Secondly, embodiments of this application provide a device control apparatus based on an industrial control computer, comprising:
[0051] The acquisition module is used to acquire the test parameter file associated with the vehicle under test, and determine the transmission data to be transmitted to at least one target device based on the test parameter file, wherein the target device includes the vehicle under test and / or the test device;
[0052] The determination module is used to determine the current network transmission characteristics of multiple network channels associated with each target device.
[0053] The calculation module is used to determine the current communication quality of each network channel based on the network transmission characteristics.
[0054] A communication module is used to send the transmission data to the target device through a first network channel, wherein the first network channel is a network channel whose communication quality meets preset conditions.
[0055] In one possible implementation, the acquisition module is used for:
[0056] The test parameter file is parsed to obtain the parsing results;
[0057] The parsing result is encoded using a preset communication protocol to obtain the transmission data.
[0058] In one possible implementation, the communication protocol includes equipment function fields, equipment status fields, test component and function fields, equipment location and basic parameter fields, detection status code and fault code fields, workstation number, cloud domain control system identifier, and industrial control computer identifier.
[0059] In one possible implementation, the target device includes a testing device, and the apparatus further includes:
[0060] The acquisition module is used to acquire the test results sent by the test device, wherein the test results are sent by the test device after being encoded based on the communication protocol.
[0061] In one possible implementation, the acquisition module is used for:
[0062] Obtain the test parameter file sent by the production management system;
[0063] If the test parameter file sent by the production management system is not successfully received, a pre-stored test parameter file corresponding to the vehicle model is retrieved from the local database based on the vehicle model of the vehicle under test.
[0064] In one possible implementation, the failure to successfully receive the test parameter file includes at least one of the following situations:
[0065] The reception duration exceeds the preset duration threshold;
[0066] The received data is incomplete;
[0067] The received data is incorrect.
[0068] In one possible implementation, the network transmission characteristics include one or more of the following: transmission rate associated with the network channel, available bandwidth, latency, packet loss rate, and latency jitter.
[0069] In one possible implementation, the computing module is used for:
[0070] The current communication quality of each network channel is calculated based on at least one network transmission characteristic and the weighting coefficient associated with that network transmission characteristic.
[0071] In one possible implementation, the device further includes:
[0072] The calculation module is used to determine the current communication quality of each network channel based on the network transmission characteristics according to a preset time period, and obtain the period measurement results.
[0073] In one possible implementation, the device further includes:
[0074] The determination module is used to determine, during data transmission, whether a second network channel exists based on the periodic measurement results, wherein the communication quality of the second network channel is higher than that of the first network channel;
[0075] The switching module is used to switch to the second network channel to transmit data with the target device in response to the existence of the second network channel.
[0076] In one possible implementation, the determining module is used for:
[0077] Determine a first quality score associated with the first network channel, and determine a second quality score associated with the second network channel;
[0078] If the second quality score is greater than the sum of the first quality score and a preset hysteresis threshold, then it is determined that a second network channel currently exists.
[0079] In one possible implementation, the network channel includes at least one of wireless network channels and / or at least one of hardware network channels.
[0080] In one possible implementation, the device further includes:
[0081] The determining module is used to determine the priority information of the transmitted data;
[0082] A processing module is used to determine a target network channel among the multiple network channels based on the priority information, wherein the priority information is positively correlated with the communication quality score of the network channel.
[0083] In one possible implementation, the device further includes:
[0084] The acquisition module is used to acquire feedback data sent by the target device, the feedback data including test values of various data indicators associated with the target device;
[0085] The processing module is used to process the feedback data using a trend prediction algorithm to determine the parameter change trend associated with the target device;
[0086] The determination module is used to determine the operating status of the target device based on the parameter change trend and a preset change trend threshold.
[0087] In one possible implementation, the processing module is configured to:
[0088] The feedback data is sampled according to a preset sampling period and window length to obtain sampling results;
[0089] Based on the sampling results of this round, calculate multiple first data indicators associated with the target device;
[0090] Based on the multiple first data indicators and the multiple second data indicators associated with the previous round of sampling results, the parameter change trend of the multiple data indicators associated with the target device is determined, and the data of the current round of sampling results does not overlap with the data of the previous round of sampling results.
[0091] In one possible implementation, the device further includes:
[0092] The determination module is configured to determine the anomaly level of the target device in response to determining that an anomaly has occurred based on the parameter change trend and the change trend threshold, wherein the anomaly level is determined based on the parameter change trend and the change trend threshold.
[0093] The processing module is used to perform anomaly warning operations using a warning method associated with the anomaly level.
[0094] Thirdly, embodiments of this application provide a device control device based on an industrial control computer, including: a memory and a processor;
[0095] The memory stores computer-executed instructions;
[0096] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0097] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0098] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0099] The device control method, apparatus, equipment, medium, and product based on an industrial control computer provided in this application acquires a test parameter file associated with the vehicle under test, determines the transmission data to be transmitted to at least one target device based on the test parameter file, and determines the current communication quality of each network channel based on the current network transmission characteristics of multiple network channels associated with each target device. Data transmission is performed between the target device and the first network channel whose communication quality meets preset conditions based on the test parameter file. This allows for the selection of a more suitable data transmission channel for the target device according to the current link status, improving the reliability and integrity of control command and status data transmission, thereby reducing transmission delays, data loss, and other anomalies caused by link fluctuations, and improving data transmission efficiency and vehicle detection capabilities in industrial control scenarios. Attached Figure Description
[0100] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0101] Figure 1 This is a diagram of the system architecture upon which this application is based;
[0102] Figure 2 A flowchart illustrating the equipment control method based on an industrial computer provided in an embodiment of this application;
[0103] Figure 3 A flowchart illustrating a device control method based on an industrial computer, provided in yet another embodiment of this application;
[0104] Figure 4 A flowchart illustrating a device control method based on an industrial computer, provided in yet another embodiment of this application;
[0105] Figure 5 A flowchart illustrating a device control method based on an industrial computer, provided in yet another embodiment of this application;
[0106] Figure 6 A flowchart illustrating a device control method based on an industrial computer, provided in yet another embodiment of this application;
[0107] Figure 7 This is a schematic diagram of the structure of an industrial computer-based equipment control device provided in an embodiment of this application;
[0108] Figure 8 This is a schematic diagram of the structure of an industrial computer-based device control equipment provided in an embodiment of this application.
[0109] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation
[0110] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0111] First, let me explain the terms used in this application:
[0112] Industrial PC (IPC): Also known as an industrial control computer, it is the core control and data processing hub of the entire production line, essentially the industrial brain of the production line. It is specifically designed for the harsh working conditions of automobile manufacturing, including but not limited to high temperatures, dust, strong vibrations, and strong electromagnetic interference. It is responsible for real-time data acquisition and monitoring, controlling production line equipment, performing quality checks, and coordinating production processes.
[0113] Cloud Domain Controller System: The cloud-based brain of intelligent connected vehicles and production lines. It brings some or all of the functions of the vehicle domain controller to the cloud and realizes vehicle-cloud-production line collaboration through wired and / or wireless communication methods. It is a product of the integration of intelligent vehicle electronic and electrical architecture and cloud platform.
[0114] In collaborative scenarios between industrial control and vehicle testing, an industrial control computer (ICC) typically serves as the core of on-site control, forming a continuously operating test and control chain around the vehicle under test, testing equipment, and the upper-level management system. This type of scenario is widely used in applications such as vehicle off-line testing, component performance verification, automated production line workstation integration, and online diagnostics of vehicle systems.
[0115] In practical deployments, the connection between the industrial control computer (ICS) and the target device is usually not a single connection. Instead, it may involve wired links, local area network (LAN) links, wireless links, or dedicated industrial network links simultaneously. These different links exhibit significant differences in bandwidth, latency, stability, and instantaneous availability. Especially in vehicle inspection and automated production environments, the presence of electromagnetic interference, frequent equipment start-ups and shutdowns, large network load fluctuations, and stringent testing cycle requirements necessitate that the ICS not only transmit test parameters and control data but also ensure the continuity, timeliness, and accuracy of data transmission under complex network conditions.
[0116] In related technologies, the industrial control computer typically reads the pre-configured test process or parameter file, and then sends instruction data to the vehicle under test or test equipment according to a fixed communication method. The equipment then performs corresponding actions based on the received data and returns status information.
[0117] However, fixed communication methods lack adaptability to link fluctuations. Once the default channel experiences problems such as increased latency, jitter, instantaneous congestion, or packet loss, the industrial control computer continues to use the same channel to transmit critical test data, resulting in untimely arrival of control commands, out-of-order execution of test steps, and even distortion of test results.
[0118] In solving the aforementioned technical problems, the inventors discovered that after the industrial control computer obtains the test parameter file associated with the vehicle under test, it can determine the current network transmission characteristics of multiple network channels associated with each target device, and determine the current communication quality of each network channel based on these characteristics. The first network channel, whose communication quality meets preset conditions, is used to transmit data with the target device based on the test parameter file. By dynamically judging the correlation between network transmission characteristics and communication quality, the industrial control computer can select the network channel that meets the current transmission requirements to perform data interaction in a multi-channel environment. This improves the stability of test data transmission in industrial settings with fluctuating link conditions and reduces the risk of transmission delays and data loss caused by poor channel quality.
[0119] Figure 1 This is a system architecture diagram on which this application is based, such as Figure 1 As shown, the system architecture upon which this application is based includes at least an industrial control computer 11, a vehicle under test 12, a testing device 13, and a production management system 14. The industrial control computer 11 is communicatively connected to the vehicle under test 12, the testing device 13, and the production management system 14, thus enabling it to interact with each of these components.
[0120] Based on the above system architecture, the industrial control computer 11 can obtain the test parameter file issued by the production management system 14. It then determines the target network channel associated with each vehicle under test 12 and test equipment 13 based on the communication quality of at least one network channel associated with each vehicle under test 12 and test equipment 13, and interacts with the vehicle under test 12 and test equipment 13 based on the target network channel and the test parameter file.
[0121] Figure 2 This is a flowchart illustrating the equipment control method based on an industrial computer provided in an embodiment of this application, as shown below. Figure 2 As shown, the method includes:
[0122] Step 201: Obtain the test parameter file associated with the vehicle under test, and determine the transmission data to be transmitted to at least one target device based on the test parameter file. The target devices include the vehicle under test and / or the test equipment.
[0123] The execution entity in this embodiment is an industrial computer-based equipment control device, which can be coupled within the industrial computer. The industrial computer can be deployed in comprehensive diagnostic environments such as vehicle inspection stations, automated production line sites, and bench testing systems, serving as the core of on-site control and establishing data interaction relationships with the production management system, the vehicle under test, and the testing equipment.
[0124] In this embodiment, to perform the test operation on the vehicle under test, a test parameter file can first be obtained. The test parameter file can be understood as a data carrier corresponding to the current vehicle under test and the current test task, used to describe the test process, execution order, control parameters, threshold conditions, timeout rules, device mapping relationships, and result acquisition requirements.
[0125] The test parameter file can be issued by the production management system, or it can be stored in the local storage path in advance. This application does not impose any restrictions on this.
[0126] Furthermore, after obtaining the test parameter file, transmission data can be sent to the target device based on the test parameter file.
[0127] Optionally, the transmitted data can be understood as data content that can be recognized and executed by the target device after the industrial control computer parses, reassembles, and encapsulates the test parameter file. This data content can be control commands, status query messages, sampling trigger messages, result confirmation messages, or heartbeat maintenance messages. The target device can be understood as the execution object or feedback object that needs to interact with the industrial control computer in this test task. It can be the electronic control unit, gateway, domain controller, or vehicle communication interface on the vehicle under test, or the sensor acquisition unit, actuator controller, dynamometer, diagnostic instrument, calibration device, or industrial acquisition terminal in the external test equipment.
[0128] In one possible embodiment, during the task issuance phase, the upper-level test management system generates a structured test parameter file associated with the vehicle under test based on the vehicle identification number, vehicle model configuration, test items, and workstation type, and sends it to the industrial control computer via a preset transmission method. Upon receiving the task notification, the industrial control computer can verify the integrity of the test parameter file based on the task number, vehicle number, and timestamp, and save it to a local cache directory for later execution.
[0129] In another possible embodiment, when the remote connection between the industrial control computer and the upper management system is temporarily interrupted, the industrial control computer can read the historical test parameter file that matches the current vehicle type from the local preset test template library, and then combine it with the vehicle information obtained from the on-site scan or the test task information selected manually to generate the currently executable test parameter file, thereby avoiding the test process from being interrupted due to file reception failure.
[0130] Step 202: For each target device, determine the current network transmission characteristics of the multiple network channels associated with the target device.
[0131] In this embodiment, a network channel can be understood as an actual communication path between an industrial control computer and a target device that can be used for data transmission and reception. A network channel includes at least one wireless network channel and / or at least one hardware network channel. Multiple network channels indicate that the same target device is not limited to communicating with the industrial control computer through a single fixed path, but may simultaneously possess industrial Ethernet links, ordinary local area network links, 5G (Fifth Generation) links, Wi-Fi (Wireless Fidelity) links, serial port links, CAN gateway links, dedicated industrial bus links, or other proprietary wireless and wired links. This application does not impose any limitations on this.
[0132] Furthermore, to ensure the real-time performance and integrity of data transmission, before data transmission occurs between the industrial control computer and the target device, the current network transmission characteristics of multiple network channels associated with each target device can be determined. These network transmission characteristics include, but are not limited to, one or more of the following: transmission rate, available bandwidth, latency, packet loss rate, and latency jitter associated with the network channel.
[0133] Optionally, the industrial control computer can determine network transmission characteristics using either an active or passive method. Active probing may include sending probe packets, handshake requests, heartbeat messages, or short frame test packets to the corresponding target device or intermediate communication node, and calculating latency, packet loss rate, and connection stability based on return packet time, response success rate, and error count. Passive statistical methods may include reading the interface status provided by the network card driver, collecting link statistics fed back by the switch or routing module, calculating the application layer transmit / receive buffer length, analyzing retransmission counts, monitoring protocol stack error logs, and reading the received signal strength indicator value of the wireless module. This application does not impose any limitations on this.
[0134] Step 203: Determine the current communication quality of each network channel based on network transmission characteristics.
[0135] In this embodiment, communication quality can be understood as a comprehensive evaluation result of whether a certain network channel is suitable for carrying the data to be transmitted. This result can be expressed as a quantitative score, a classification level, or a judgment mark of whether it meets the requirements.
[0136] Optionally, the industrial control computer can establish a communication quality assessment model to standardize the acquired network transmission characteristics. For example, for bandwidth indicators, the actual bandwidth can be compared with the minimum bandwidth requirement corresponding to the current data packet length, sending frequency, and allowed completion time to form a bandwidth satisfaction level; for latency indicators, the measured average round-trip time or one-way estimated latency can be mapped to a latency score; for jitter indicators, stability can be calculated based on the time fluctuation of several consecutive probe results; for packet loss rate and bit error rate, reliability scores can be calculated based on the proportion of failed transmissions in the sampling window.
[0137] As a feasible approach, industrial control computers can set weights for various indicators according to the service type of the data to be transmitted, thereby obtaining a comprehensive communication quality value for a particular network channel. For example, when the transmitted data is a vehicle action trigger command or a braking test synchronization command, the weights for latency and jitter can be higher than those for bandwidth; when the transmitted data is a batch upload of detection results or log feedback, the weights for bandwidth and continuous stability can be increased accordingly.
[0138] As another feasible approach, weights can be assigned to each network transmission characteristic, and each network transmission characteristic can be converted to a unified dimension range through normalization. Based on the normalization results and weights, a weighted calculation can be performed to obtain the communication quality.
[0139] Step 204: Send transmission data to the target device through the first network channel, wherein the first network channel is a network channel whose communication quality meets preset conditions.
[0140] In this embodiment, the first network channel can be understood as the execution channel ultimately selected by the industrial control computer from multiple candidate network channels based on communication quality results and the service requirements of the data to be transmitted.
[0141] Optionally, the industrial control computer can send the corresponding transmission data to the target device via the first network channel according to the step sequence, time constraints, target object and data content defined in the test parameter file.
[0142] As an feasible approach, the industrial control computer can filter out the network channels whose communication quality meets the preset conditions from multiple network channels corresponding to the target device, and determine the first network channel according to the preset selection strategy.
[0143] For example, if multiple channels meet the criteria, the industrial control computer (ICC) can select the channel with the highest overall score as the primary network channel. If the scores of multiple channels are close, the ICC can further consider factors such as service priority, target device protocol compatibility, historical stability, and current load. For instance, for high-priority action control messages, the ICC can prioritize channels with low latency and low jitter; for large-volume status feedback data, the ICC can prioritize channels with high bandwidth and strong continuous online capability. When the target device is a vehicle under test and requires strong real-time actions, the primary network channel can be the vehicle communication link with the lowest latency and highest continuous success rate; when the target device is a test device and requires uploading large-scale sampling data, the primary network channel can be the industrial Ethernet link with the highest throughput.
[0144] The device control method based on an industrial control computer provided in this application obtains a test parameter file associated with the vehicle under test, determines the transmission data to be transmitted to at least one target device based on the test parameter file, and determines the current communication quality of each network channel based on the current network transmission characteristics of multiple network channels associated with each target device. Data transmission is performed between the target device and the first network channel whose communication quality meets preset conditions based on the test parameter file. This method can select a more suitable data transmission channel for the target device according to the current link status, improving the reliability and integrity of control command and status data transmission, thereby reducing abnormal problems such as transmission delay and data loss caused by link fluctuations, and improving data transmission efficiency and vehicle detection capabilities in industrial control scenarios.
[0145] Figure 3 This is a flowchart illustrating a device control method based on an industrial control computer, provided as another embodiment of this application. Based on any of the above embodiments, as follows... Figure 3 As shown, step 201 includes:
[0146] Step 301: Parse the test parameter file to obtain the parsing results.
[0147] Step 302: Encode the parsing results using a preset communication protocol to obtain the transmission data.
[0148] In related technologies, industrial control computers often use different communication protocols when communicating with different target devices. The use of multiple different communication protocols often leads to non-standardized information exchange between the industrial control computer, the devices, and the cloud domain control server, making it difficult to guarantee the integrity and real-time performance of device function commands, status feedback, fault codes, and test data.
[0149] Therefore, in order to solve the above-mentioned technical problems, a unified communication protocol can be pre-set. During the information exchange process, the industrial control computer, the target device, and the cloud domain control system can all use this communication protocol to exchange information.
[0150] The communication protocol includes equipment function fields, equipment status fields, test component and function fields, equipment location and basic parameter fields, detection status code and fault code fields, workstation number, cloud domain control system identifier, and industrial control computer identifier.
[0151] Optionally, the test parameter file is used to carry the test task information, control commands, status query conditions, and parameters related to interaction with the target device for the vehicle under test. Its file format can be XML (eXtensible Markup Language), JSON, or other structured description files. The parsing operation is used to extract the meaning of fields according to the syntax rules of the file, restoring the test process, device action parameters, threshold parameters, status identifiers, and device association information in the file into structured parsing results that can be used for subsequent processing.
[0152] Furthermore, after completing the parsing operation of the test parameter file, the parsing results can be mapped and encoded based on the unified communication protocol to form the transmission data to be sent.
[0153] The device control method based on an industrial control computer provided in this application allows control information in a test parameter file to be accurately extracted and then converted into data packets that conform to communication protocol requirements, thereby enhancing data compatibility and transmission reliability between the industrial control computer and the target device. Because the encoded transmitted data has a clear field structure and verification mechanism, the target device can more stably complete parsing and execution, thus improving the accuracy, real-time performance, and adaptability of the vehicle detection and industrial control collaborative control process.
[0154] Optionally, based on any of the above embodiments, the target device includes a testing device, and the method further includes:
[0155] Obtain the test results sent by the test device. The test results are sent by the test device after being encoded based on the communication protocol.
[0156] In this embodiment, the target device includes testing equipment. The testing equipment can be a detection instrument, data acquisition terminal, calibration device, actuator, or other device that performs test feedback functions and is installed in the industrial control computer's control link. It establishes a data interaction relationship with the industrial control computer via Ethernet, industrial bus, wireless LAN, or a dedicated communication link. This application does not impose any limitations on this.
[0157] The testing equipment can also interact with the industrial control computer based on this unified communication protocol. Therefore, the testing equipment can encode the test results based on this communication protocol and feed the encoded test results back to the testing equipment.
[0158] The device control method based on an industrial control computer provided in this application includes the test device within the scope of the target device and enables it to output test results according to a unified communication protocol. The industrial control computer can obtain feedback information in a timely manner after issuing the instruction, thereby forming a closed-loop control from data transmission, device execution to result feedback.
[0159] Figure 4 This is a flowchart illustrating a device control method based on an industrial control computer, provided as another embodiment of this application. Based on any of the above embodiments, as follows... Figure 4 As shown, step 201 includes:
[0160] Step 401: Obtain the test parameter file sent by the production management system.
[0161] Step 402: In response to the failure to successfully receive the test parameter file sent by the production management system, retrieve the pre-stored test parameter file corresponding to the vehicle model from the local database based on the vehicle model of the vehicle under test.
[0162] Step 403: In response to successfully receiving the test parameter file sent by the production management system, perform a parsing operation on the test parameter file to obtain the parsing result.
[0163] In this embodiment, the test parameter file can be issued by the production management system. The production management system is used to generate a test parameter file corresponding to the vehicle under test based on the vehicle production plan, vehicle model configuration, and test process requirements, and then send it to the industrial control computer via the network.
[0164] Optionally, the industrial control computer can monitor the receiving status, timeout status, and file verification status. When a failed reception is detected, it indicates that the remote file transmission has been interrupted, packet lost, or the system response is abnormal. In this case, the industrial control computer will no longer wait for the remote result, but will instead read the vehicle model of the vehicle under test and retrieve the corresponding pre-stored test parameter file from the local database. This vehicle model can come from the vehicle identification code parsing result, manually entered information, or information sent from the host computer. The retrieved pre-stored test parameter file corresponds one-to-one with the test items, control parameters, and equipment linkage relationships of the current vehicle model, thereby ensuring that executable test parameter content can still be obtained when the remote file is unavailable.
[0165] Conversely, once the test parameter file has been successfully received, subsequent file parsing and encoding operations can continue.
[0166] The equipment control method based on an industrial control computer provided in this application prioritizes the use of real-time test parameter files issued by the production management system under normal network conditions, thus ensuring that the test content is consistent with the production status. In the event of remote reception failure, it automatically switches to the corresponding vehicle model file in the local database to maintain continuous execution of the test task. This method avoids test interruptions due to network fluctuations, reduces the risk of workstation stagnation caused by missing parameter files, and ensures that the test process for the vehicle under test can be stably started and continuously run under different communication conditions.
[0167] Optionally, based on any of the above embodiments, failure to successfully receive the test parameter file includes at least one of the following situations:
[0168] The reception time exceeds the preset time threshold.
[0169] The received data is incomplete.
[0170] The received data is incorrect.
[0171] In this embodiment, after establishing a communication connection with the production management system, the industrial control computer will continuously receive test parameter files from the system and synchronously record the start time and current reception duration.
[0172] Optionally, when the cumulative reception time reaches a preset time threshold and the file has not yet arrived completely, the industrial control computer will determine that the file has not been successfully received and terminate the current reception session to avoid the test task being blocked for a long time due to link congestion or network jitter.
[0173] Alternatively, if the total file length is found to be inconsistent with the message declaration length during the receiving process, or if some fields are missing or some paragraphs are not received after parsing, the industrial control computer will also determine that the reception was unsuccessful.
[0174] Alternatively, if the file has been successfully received but an anomaly occurs during integrity verification, protocol parsing, or field consistency checks, the industrial control computer will also determine that the file was not successfully received and will retrieve the pre-stored test parameter file for the corresponding vehicle model from the local database to ensure that subsequent test control can continue to be executed.
[0175] The equipment control method based on industrial control computer provided in this application can reduce the impact of unstable transmission of test parameter files on vehicle testing and equipment debugging by setting a judgment mechanism in advance, thereby improving the continuity of test tasks and the accuracy of control data, and enhancing the operational reliability in multi-network environments in industrial sites.
[0176] Furthermore, based on any of the above embodiments, step 202 includes:
[0177] The current communication quality of each network channel is calculated based on at least one network transmission characteristic and the weighting coefficient associated with that characteristic.
[0178] In this embodiment, network transmission characteristics are used to characterize the network channel's ability and stability to carry data transmission at the current moment. Network transmission characteristics include one or more of the following associated with the network channel: transmission rate, available bandwidth, latency, packet loss rate, and latency jitter.
[0179] Among them, transmission rate is used to characterize the amount of data actually transmitted per unit time, available bandwidth is used to characterize the transmission resources that the network channel can still allocate to test data under the current load conditions, latency is used to characterize the time required for data to complete a round trip or one-way transmission from the sending end to the receiving end, packet loss rate is used to characterize the proportion of data frames or data packets lost during transmission, and latency jitter is used to characterize the degree of fluctuation in continuous transmission latency.
[0180] Optionally, the industrial control computer collects the corresponding network transmission characteristics for each network channel and converts these characteristics into evaluation parameters with unified dimensions to eliminate numerical scale differences between different characteristics. Weighting coefficients characterize the impact of each network transmission characteristic on communication quality. Their values can be preset based on the real-time requirements of the industrial control task, the type of target device, and the historical performance of the link, and stored in a local configuration table. When calculating communication quality, the industrial control computer multiplies each evaluation parameter by its corresponding weighting coefficient and then sums the results to obtain a communication quality score characterizing the availability of that network channel.
[0181] The device control method based on an industrial control computer provided in this application improves the accuracy and consistency of communication quality judgment by uniformly and quantitatively evaluating multiple network channels, thereby improving the accuracy and consistency of communication quality judgment under conditions of link fluctuation, network congestion, or strong interference in industrial sites. This enables the selection of network channels more suitable for current business needs, reducing the probability of control data delay, packet loss, and out-of-order transmission.
[0182] Optionally, based on any of the above embodiments, the method further includes:
[0183] Based on the network transmission characteristics, the current communication quality of each network channel is determined according to a preset time period, and the period measurement results are obtained.
[0184] In this embodiment, the industrial control computer can poll and collect data from each network channel according to a preset time period. The preset time period can be set to a fixed interval based on the real-time requirements of the test task, or it can be adjusted based on the current data load, device response status, or network fluctuation amplitude. When the period arrives, the industrial control computer obtains transmission characteristics such as transmission rate, available bandwidth, latency, packet loss rate, and latency jitter from the link layer, transport layer, or application layer statistics of the corresponding channel, and inputs the collected characteristics into the communication quality calculation model to obtain the communication quality value of the network channel in the current period.
[0185] Optionally, after completing multiple measurement cycles, the industrial control computer can cache the communication quality results corresponding to each cycle to the local storage unit and associate them according to the channel identifier and timestamp for subsequent use in channel selection, channel switching, or anomaly alarms. If the communication quality of a network channel remains below the threshold for several consecutive cycles, the channel can be marked as a low-quality channel. If its communication quality recovers to above the threshold, it can be reinstated into the set of available channels. This cycle measurement mechanism transforms communication quality assessment from static judgment to continuous updating, thereby enabling timely reflection of fluctuations in the industrial field network environment.
[0186] The device control method based on an industrial control computer provided in this application continuously acquires channel status according to a preset time period and forms periodic measurement results. This enables the industrial control computer to determine the availability of each channel based on the latest network transmission characteristics, thereby providing a basis for subsequent data transmission channel selection. Since the periodic measurement results can reflect the time-varying trend of network quality, anomalies can be detected in the early stages of link degradation, preventing critical control data from continuing to be transmitted through low-quality channels.
[0187] Figure 5 This is a flowchart illustrating a device control method based on an industrial control computer, provided as another embodiment of this application. Based on any of the above embodiments, as follows... Figure 5 As shown, the method also includes:
[0188] Step 501: During data transmission, determine whether a second network channel exists based on the periodic measurement results. The communication quality of the second network channel is higher than that of the first network channel.
[0189] Step 502: In response to the existence of a second network channel, switch to the second network channel to transmit data with the target device.
[0190] In this embodiment, when the industrial control computer continuously sends or receives data through the first network channel, it samples the network transmission characteristics at preset time intervals and calculates the communication quality of each channel based on the sampling results. When the overall communication quality of another channel is detected to be higher than that of the current first network channel, it is determined that a second network channel exists. The communication quality can be comprehensively determined by parameters such as latency, packet loss rate, jitter, available bandwidth, and transmission rate. If the communication quality of the second network channel is higher than that of the first network channel, it indicates that this channel is more suitable for carrying data interaction with the target device at the current moment.
[0191] Optionally, the second network channel can be a wired link, wireless link, or industrial private network link established in parallel with the first network channel, and its communication quality is higher than that of the first network channel. When the existence of a second network channel is confirmed, in order to ensure data transmission quality and efficiency, data can be transmitted to the target device via the second network channel.
[0192] As one feasible approach, during data transmission, the industrial control computer (ICC) can buffer the data to be sent in a transmission queue. After determining that the second network channel meets the switching conditions, it establishes or reuses the communication session corresponding to the second network channel, switching the subsequent data transmission path to that channel. To avoid data interruption during switching, the ICC can perform retransmission confirmation for sent but unacknowledged data and maintain the session state for data that has not been fully transmitted, thus enabling the target device to continue receiving data on the new channel. If the second network channel is already in a stable connectivity state before switching, the ICC directly maps subsequent packets to the communication interface corresponding to that channel to reduce switching latency and lower the risk of packet loss.
[0193] The device control method based on an industrial control computer provided in this application embodiment enables the industrial control computer to dynamically identify a better communication link based on periodic measurement results during data transmission, and to complete the switch in a timely manner when its communication quality is higher than that of the first network channel, thereby improving the continuity, stability and anti-interference capability of data transmission to the target device.
[0194] Furthermore, based on any of the above embodiments, step 501 includes:
[0195] Determine the first quality score associated with the first network channel, and determine the second quality score associated with the second network channel.
[0196] If the second quality score is greater than the sum of the first quality score and a preset hysteresis threshold, then it is determined that a second network channel exists.
[0197] In this embodiment, the first quality score characterizes the overall communication quality of the first network channel currently used for data transmission at the time of periodic measurement, and the second quality score characterizes the overall communication quality of the candidate network channels. The quality score can be calculated by weighting bandwidth, latency, packet loss rate, and latency jitter after normalization. The weights used can be pre-configured based on the real-time and reliability requirements of industrial control data. The hysteresis threshold is used to set the channel switching threshold; its value can be set to a fixed constant or modified by combining historical fluctuation amplitude and switching frequency to reduce the impact of short-term jitter on the judgment result.
[0198] Optionally, the industrial control computer continuously collects the transmission characteristics of each network channel within a preset period, maps the corresponding characteristics to quality scores, and then compares them. When the quality score of the second network channel is only slightly higher than that of the first network channel, if it does not exceed the sum of the first quality score and the hysteresis threshold, the original channel judgment is maintained. When the second quality score is significantly higher than the first quality score and meets the threshold condition, it is confirmed that there is a usable second network channel. This judgment result can be used as the basis for subsequent network switching and output to the data transmission control module for selecting a better channel to carry test parameters, control data, or test results back.
[0199] The equipment control method based on an industrial control computer provided in this application, by introducing quality score comparison and hysteresis threshold constraints, can prevent frequent switching during network channel identification due to instantaneous network fluctuations, thereby improving the stability and continuity of multi-link transmission in industrial settings. This method can maintain high link utilization efficiency and reduce the probability of control command delays, data retransmissions, and task interruptions when the vehicle under test and the test equipment communicate concurrently, thus improving the reliability of equipment control and the accuracy of test results.
[0200] Furthermore, based on any of the above embodiments, the method further includes:
[0201] Determine the priority information for transmitted data.
[0202] The target network channel is determined from multiple network channels based on priority information, where the priority information is positively correlated with the communication quality score of the network channel.
[0203] In this embodiment, the priority information of the transmitted data is used to characterize the timeliness requirements and control importance of the transmitted data in the current test task. After parsing the test parameter file and generating the data to be sent, the industrial control computer can mark the priority of the data according to the device type, functional attributes and task stage.
[0204] For example, data involving critical status confirmations with high real-time requirements, such as emergency stops and fault resets, can be set to higher priority; data such as log feedback, statistical reporting, or non-real-time synchronized data can be set to lower priority. The priority information can be determined by the task scheduling module built into the industrial control computer, or it can be generated by mapping together a preset rule table, device identifier, and functional fields in the communication protocol. In practical applications, this priority rule can also be extended according to field business needs; this embodiment does not limit this.
[0205] Optionally, after determining the priority information, the industrial control computer selects a target network channel from multiple network channels that matches that priority. These multiple network channels can correspond to wired links, wireless links, or industrial private network links.
[0206] As one feasible approach, the industrial control computer (ICC) can first obtain the communication quality score of each network channel. This score is calculated based on transmission characteristics such as bandwidth, latency, packet loss rate, and jitter. Priority information is positively correlated with the communication quality score, meaning that higher-priority data transmissions require a higher communication quality score from the target network channel. The ICC will prioritize channels with higher scores that meet the threshold conditions to carry the data. Lower-priority data can be allocated to channels that meet basic communication requirements, thus reducing the occupancy of high-quality links.
[0207] The device control method based on an industrial control computer provided in this application improves data scheduling efficiency under multi-channel conditions by prioritizing the allocation of critical transmission data to network channels with higher communication quality, thereby ensuring more stable transmission of time-sensitive and reliable data, while making reasonable use of other available links for low-priority data.
[0208] Figure 6 This is a flowchart illustrating a device control method based on an industrial control computer, provided as another embodiment of this application. Based on any of the above embodiments, as follows... Figure 6 As shown, the method also includes:
[0209] Step 601: Obtain feedback data sent by the target device. The feedback data includes test values of various data indicators associated with the target device.
[0210] Step 602: Process the feedback data using a trend prediction algorithm to determine the parameter change trend associated with the target device.
[0211] Step 603: Determine the operating status of the target device based on the parameter change trend and the preset change trend threshold.
[0212] In this embodiment, feedback data can be actively uploaded by the target device after completing testing, control, or operational monitoring, or it can be requested by the industrial control computer from the target device within a preset period. The test values of various data indicators may include temperature, pressure, rotational speed, current, vibration amplitude, displacement, communication latency, or load rate, etc., and each test value corresponds to the same timestamp or the same sampling window, so as to form a data set that can be used for time series analysis.
[0213] Optionally, the industrial control computer can acquire feedback data sent by the target device. The trend prediction algorithm can employ a time series prediction model, a regression prediction model, a sliding window statistical model, or a neural network prediction model. After the industrial control computer inputs the test values of the target device at multiple consecutive sampling times into the prediction model, the model can output the slope, growth rate, fluctuation amplitude, or predicted values for short-term future intervals of each data indicator, and summarize them into the parameter change trend associated with the target device. This parameter change trend can be the direction of change of a single indicator or the comprehensive change trend of multiple weighted indicators, thereby reflecting whether the current operating parameters of the target device are in a state of continuous deviation, accelerated deterioration, or stable convergence.
[0214] Furthermore, after obtaining the parameter change trend, the industrial control computer compares it with a preset trend threshold, which can be preset based on equipment type, operating condition range, and historical operating samples. If the absolute value of the trend exceeds the threshold, or if it shows a unidirectional deterioration and reaches the threshold condition within multiple consecutive sampling periods, the target equipment can be determined to be in a warning or abnormal operating state. Conversely, if the trend remains within the threshold range, the target equipment can be determined to be in a normal operating state. This operating state can be further written into the equipment status table as the basis for subsequent alarm, current limiting, shutdown protection, or data transmission rescheduling strategies.
[0215] As one feasible approach, the industrial control computer can also send the received feedback data to a cloud domain control system, where the feedback data can be analyzed and subsequent early warning operations can be performed. This application does not limit this approach.
[0216] The equipment control method based on an industrial control computer provided in this application calculates the trend prediction result of the target equipment based on feedback data and uses the trend prediction result to identify potential anomalies in advance, thereby avoiding misjudgment caused by relying solely on instantaneous test values.
[0217] Furthermore, based on any of the above embodiments, step 602 includes:
[0218] The feedback data is sampled according to the preset sampling period and window length to obtain the sampling results.
[0219] Based on the sampling results of this round, several primary data indicators associated with the target device are calculated.
[0220] Based on multiple primary data indicators and multiple secondary data indicators associated with the previous round of sampling results, the parameter change trends of multiple data indicators associated with the target device are determined. The data in this round of sampling results do not overlap with those in the previous round of sampling results.
[0221] In this embodiment, feedback data can be sampled according to a preset sampling period and window length to obtain sampling results. The sampling period defines the time interval for extracting feedback data, and the window length defines the data range covered by a single round of sampling. Together, they ensure that each round of sampling corresponds to a relatively independent observation interval. The sampling results can be extracted from the feedback data stream by an industrial control computer based on the arrival timestamp, data frame sequence number, or buffer index to ensure that sampling data from different rounds do not overlap.
[0222] Furthermore, after obtaining the sampling results of this round, the industrial control computer performs normalization, noise reduction, or outlier removal on various test values, and then generates the corresponding first data index according to the preset index calculation rules. The second data index associated with the sampling results of the previous round is generated according to the same or corresponding calculation rules as this round, to ensure the comparability of the two rounds of indicators.
[0223] Optionally, after obtaining multiple first data indicators and multiple second data indicators, the industrial control computer can determine the parameter change trend of each data indicator based on a preset algorithm. The preset algorithm includes, but is not limited to, difference comparison, ratio comparison, weighted fitting, or curve slope fitting.
[0224] For example, for indicators reflecting temperature, rotational speed, or pressure, the difference between the current and previous indicators can be used to determine whether the trend is upward, downward, or stable; for indicators reflecting jitter or dispersion, the change in fluctuation amplitude can be used to determine whether the target equipment is operating smoothly.
[0225] Since the data from this round of sampling does not overlap with the data from the previous round, the calculation of indicators in adjacent rounds will not be affected by duplicate samples, which helps to improve the independence and accuracy of trend judgment.
[0226] The equipment control method based on an industrial control computer provided in this application continuously receives feedback data from the target equipment and enters a new observation window according to a preset sampling period. After sampling the data in the current window, a first data index is calculated, and then the second data index from the previous window is combined to output the parameter change trend. This allows for real-time acquisition of the evolution patterns of key parameters of the target equipment, providing a basis for subsequent operational status determination, communication strategy adjustment, or fault early warning.
[0227] Furthermore, based on any of the above embodiments, the method further includes:
[0228] In response to the determination that an anomaly has occurred in the target device based on the parameter change trend and the change trend threshold, the anomaly level is determined, and the anomaly level is determined based on the parameter change trend and the change trend threshold.
[0229] Anomaly warning operations are performed using a warning method that is associated with the anomaly level.
[0230] In this embodiment, when determining the anomaly level, the industrial control computer can comprehensively evaluate the deviation of the parameter change trend from the threshold, the duration, and the rate of change to generate corresponding anomaly level information.
[0231] The anomaly level can be represented as general anomaly, serious anomaly, or emergency anomaly. The higher the level, the greater the deviation of the target equipment from its normal state and the higher the potential risk.
[0232] Optionally, when using an alert method associated with an anomaly level for anomaly alert operation, the industrial control computer can pre-establish a mapping relationship between the alert method and the level, and invoke the corresponding alert strategy after an anomaly occurs. For lower-level anomalies, maintenance personnel can be alerted through interface prompts, log recording, or message push notifications; for higher-level anomalies, timely control of fault risks can be achieved through audible and visual alarms, reporting to the upper-level management system, issuing linkage control commands, or triggering shutdown protection. The alert module can be integrated into the industrial control computer software, or it can be linked with a cloud domain control system to achieve remote alarm. In practical applications, other models of the alert module can also be selected, and this application embodiment does not limit this.
[0233] The equipment control method based on an industrial control computer provided in this application further subdivides the abnormal detection results into different levels and matches them with different intensities of early warning methods. This enables the industrial control computer to promptly remind users when the target equipment deviates slightly and to quickly take linkage control measures when the abnormality is significant, thereby improving the pertinence and timeliness of fault response.
[0234] Figure 7 This is a schematic diagram of the structure of the equipment control device based on an industrial computer provided in the embodiments of this application, such as... Figure 7As shown, the device includes: an acquisition module 71, a determination module 72, a calculation module 73, and a communication module 74. The acquisition module 71 is used to acquire a test parameter file associated with the vehicle under test, and determine the transmission data to be transmitted to at least one target device based on the test parameter file. The target devices include the vehicle under test and / or the test equipment. The determination module 72 is used to determine the current network transmission characteristics of multiple network channels associated with each target device. The calculation module 73 is used to determine the current communication quality of each network channel based on the network transmission characteristics. The communication module 74 is used to send transmission data to the target devices through a first network channel, wherein the first network channel is a network channel whose communication quality meets preset conditions.
[0235] Based on any of the above embodiments, the acquisition module is used to: parse the test parameter file to obtain the parsing result; and encode the parsing result using a preset communication protocol to obtain transmission data.
[0236] Based on any of the above embodiments, the communication protocol includes equipment function fields, equipment status fields, test component and function fields, equipment location and basic parameter fields, detection status code and fault code fields, workstation number, cloud domain control system identifier, and industrial control computer identifier.
[0237] Based on any of the above embodiments, the target device includes a test device, and the apparatus further includes: an acquisition module, used to acquire test results sent by the test device, wherein the test results are sent by the test device after being encoded based on a communication protocol.
[0238] Based on any of the above embodiments, the acquisition module is configured to: acquire a test parameter file sent by the production management system; and, in response to failure to successfully receive the test parameter file sent by the production management system, acquire a pre-stored test parameter file corresponding to the vehicle model from the local database based on the vehicle model of the vehicle under test.
[0239] Based on any of the above embodiments, failure to successfully receive the test parameter file includes at least one of the following situations: the reception time exceeds a preset time threshold; the received data is incomplete; or the received data is incorrect.
[0240] Based on any of the above embodiments, the network transmission characteristics include one or more of the following: transmission rate associated with the network channel, available bandwidth, latency, packet loss rate, and latency jitter.
[0241] Based on any of the above embodiments, the calculation module is used to: calculate the current communication quality of each network channel based on at least one network transmission characteristic and the weighting coefficient associated with the network transmission characteristic.
[0242] Based on any of the above embodiments, the device further includes: a calculation module, used to determine the current communication quality of each network channel based on network transmission characteristics according to a preset time period, and obtain period measurement results.
[0243] Based on any of the above embodiments, the apparatus further includes: a determining module, configured to determine, during data transmission, the existence of a second network channel based on periodic measurement results, wherein the communication quality of the second network channel is higher than that of the first network channel; and a switching module, configured to switch to the second network channel for data transmission with the target device in response to the existence of the second network channel.
[0244] Based on any of the above embodiments, a determining module is configured to: determine a first quality score associated with a first network channel, and determine a second quality score associated with a second network channel. In response to the second quality score being greater than the sum of the first quality score and a preset hysteresis threshold, it is determined that a second network channel currently exists.
[0245] Based on any of the above embodiments, the network channel includes at least one of wireless network channels, and / or at least one of hardware network channels.
[0246] Based on any of the above embodiments, the apparatus further includes: a determining module, configured to determine priority information of the transmitted data; and a processing module, configured to determine a target network channel among multiple network channels based on the priority information, wherein the priority information is positively correlated with the communication quality score of the network channel.
[0247] Based on any of the above embodiments, the apparatus further includes: an acquisition module, configured to acquire feedback data sent by the target device, the feedback data including test values of various data indicators associated with the target device; a processing module, configured to process the feedback data using a trend prediction algorithm to determine the parameter change trend associated with the target device; and a determination module, configured to determine the operating status of the target device based on the parameter change trend and a preset change trend threshold.
[0248] Based on any of the above embodiments, the processing module is configured to: sample the feedback data according to a preset sampling period and window length to obtain sampling results; calculate multiple first data indicators associated with the target device based on the current sampling results; and determine the parameter change trends of multiple data indicators associated with the target device based on the multiple first data indicators and multiple second data indicators associated with the previous sampling results, wherein the data in the current sampling results do not overlap with the data in the previous sampling results.
[0249] Based on any of the above embodiments, the device further includes: a determining module, configured to determine the anomaly level of the target device in response to determining that an anomaly has occurred based on a parameter change trend and a change trend threshold, wherein the anomaly level is determined based on the parameter change trend and the change trend threshold; and a processing module, configured to perform an anomaly warning operation using a warning method associated with the anomaly level.
[0250] The equipment control device based on an industrial control computer provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0251] Figure 8 This is a schematic diagram of the structure of a computer-based device control system provided in an embodiment of this application. Figure 8 As shown, the electronic device 80 provided in this embodiment includes at least one processor 801 and a memory 802. Optionally, the device 80 further includes a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus 804.
[0252] In a specific implementation, at least one processor 801 executes computer execution instructions stored in memory 802, causing at least one processor 801 to perform the above-described method.
[0253] The specific implementation process of processor 801 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0254] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0255] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0256] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0257] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0258] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0259] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0260] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0261] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0262] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0263] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0264] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0265] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0266] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A device control method based on an industrial control computer, characterized in that, include: Obtain the test parameter file associated with the vehicle under test, and determine the transmission data to be transmitted to at least one target device based on the test parameter file, wherein the target device includes the vehicle under test and / or the test device; For each target device, determine the current network transmission characteristics of multiple network channels associated with the target device; Determine the current communication quality of each network channel based on the aforementioned network transmission characteristics; The transmission data is sent to the target device through a first network channel, wherein the first network channel is a network channel whose communication quality meets preset conditions.
2. The method according to claim 1, characterized in that, The step of determining the transmission data to be transmitted to at least one target device based on the test parameter file includes: The test parameter file is parsed to obtain the parsing results; The parsing result is encoded using a preset communication protocol to obtain the transmission data.
3. The method according to claim 2, characterized in that, The communication protocol includes equipment function fields, equipment status fields, test component and function fields, equipment location and basic parameter fields, detection status code and fault code fields, workstation number, cloud domain control system identifier, and industrial control computer identifier.
4. The method according to claim 2, characterized in that, The target device includes a testing device, and the method further includes: Obtain the test results sent by the test device, wherein the test results are sent by the test device after being encoded based on the communication protocol.
5. The method according to claim 1, characterized in that, The process of obtaining the test parameter file associated with the vehicle under test includes: Obtain the test parameter file sent by the production management system; If the test parameter file sent by the production management system is not successfully received, a pre-stored test parameter file corresponding to the vehicle model is retrieved from the local database based on the vehicle model of the vehicle under test.
6. The method according to claim 5, characterized in that, The failure to successfully receive the test parameter file includes at least one of the following situations: The reception duration exceeds the preset duration threshold; The received data is incomplete; The received data is incorrect.
7. The method according to claim 1, characterized in that, The network transmission characteristics include one or more of the following: transmission rate associated with the network channel, available bandwidth, latency, packet loss rate, and latency jitter.
8. The method according to claim 7, characterized in that, Determining the current communication quality of each network channel based on the network transmission characteristics includes: The current communication quality of each network channel is calculated based on at least one network transmission characteristic and the weighting coefficient associated with that network transmission characteristic.
9. The method according to claim 1, characterized in that, The method further includes: Based on the network transmission characteristics, the current communication quality of each network channel is determined according to a preset time period to obtain the period measurement results.
10. The method according to claim 9, characterized in that, The method further includes: During data transmission, the existence of a second network channel is determined based on the period measurement results, and the communication quality of the second network channel is higher than that of the first network channel. In response to the existence of a second network channel, the system switches to the second network channel to transmit data with the target device.
11. The method according to claim 10, characterized in that, The step of determining whether a second network channel exists based on the period measurement results includes: Determine a first quality score associated with the first network channel, and determine a second quality score associated with the second network channel; If the second quality score is greater than the sum of the first quality score and a preset hysteresis threshold, then it is determined that a second network channel currently exists.
12. The method according to any one of claims 1-10, characterized in that, The network channel includes at least one of wireless network channels and / or at least one of hardware network channels.
13. The method according to any one of claims 1-10, characterized in that, The method further includes: Determine the priority information of the transmitted data; The target network channel is determined from the plurality of network channels based on the priority information, wherein the priority information is positively correlated with the communication quality score of the network channel.
14. The method according to any one of claims 1-10, characterized in that, The method further includes: Obtain feedback data sent by the target device, the feedback data including test values of various data indicators associated with the target device; The feedback data is processed using a trend prediction algorithm to determine the parameter change trend associated with the target device. The operating status of the target device is determined based on the trend of parameter changes and the preset trend threshold.
15. The method according to claim 14, characterized in that, The step of processing the feedback data using a trend prediction algorithm to determine the parameter change trend associated with the target device includes: The feedback data is sampled according to a preset sampling period and window length to obtain sampling results; Based on the sampling results of this round, calculate multiple first data indicators associated with the target device; Based on the multiple first data indicators and the multiple second data indicators associated with the previous round of sampling results, the parameter change trend of the multiple data indicators associated with the target device is determined, and the data of the current round of sampling results does not overlap with the data of the previous round of sampling results.
16. The method according to claim 15, characterized in that, The method further includes: In response to determining that the target device has malfunctioned based on the parameter change trend and the change trend threshold, the malfunction level is determined, wherein the malfunction level is determined based on the parameter change trend and the change trend threshold. Anomaly warning operations are performed using a warning method associated with the aforementioned anomaly level.
17. A device control system based on an industrial computer, characterized in that, include: The acquisition module is used to acquire the test parameter file associated with the vehicle under test, and determine the transmission data to be transmitted to at least one target device based on the test parameter file, wherein the target device includes the vehicle under test and / or the test device; The determination module is used to determine the current network transmission characteristics of multiple network channels associated with each target device. The calculation module is used to determine the current communication quality of each network channel based on the network transmission characteristics. A communication module is used to send the transmission data to the target device through a first network channel, wherein the first network channel is a network channel whose communication quality meets preset conditions.
18. A device control system based on an industrial computer, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-16.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-16.
20. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-16.