Wireless debugging method and device of PLC (Programmable Logic Controller) and computer equipment

By establishing a point-to-point interface connection between the computer equipment and the PLC controller and the WiFi network connection to the host computer during PLC debugging, the problem of low PLC debugging efficiency and accuracy is solved, and efficient wireless debugging is achieved.

CN120017649APending Publication Date: 2025-05-16SHENZHEN HUICHEN AUTOMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510242092.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

During the PLC debugging process, the existing technology is less efficient and accurate, and requires complex configurations and multiple integrated communication interfaces for data transmission.

Method used

By obtaining the target site and target baud rate of the target PLC controller, establishing a point-to-point interface connection relationship between the computer device and the PLC controller, and establishing a WiFi network connection relationship between the computer device and the host computer based on the preset WiFi configuration information, thereby realizing wireless debugging of the PLC controller.

Benefits of technology

It improves the wireless debugging efficiency and accuracy of PLC controllers, simplifies the debugging process, and reduces the complex configuration and data transmission requirements for PLC controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017649A_ABST
    Figure CN120017649A_ABST
Patent Text Reader

Abstract

The invention relates to a wireless debugging method and device for a PLC (Programmable Logic Controller) and computer equipment. The method comprises the following steps: acquiring a target site and a target baud rate of a target PLC controller, and establishing a point-to-point interface connection relationship between computer equipment and the target PLC controller based on the target site and the target baud rate through a preset serial port communication protocol; according to a target IP address corresponding to preset WiFi configuration information, determining a target upper computer responding to the target IP address, and establishing a WiFi network connection relationship between the computer equipment and the target upper computer based on the target IP address; and based on the point-to-point interface connection relationship between the computer equipment and the target PLC controller and the WiFi network connection relationship between the computer equipment and the target upper computer, receiving monitoring information from the target PLC controller and sending the monitoring information to the target upper computer, and receiving control information from the target upper computer and sending the control information to the target PLC controller. By adopting the method, the wireless debugging efficiency and accuracy of the PLC can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of PLC debugging, and in particular to a wireless debugging method, device and computer equipment for a PLC controller. Background Art

[0002] In the field of PLC debugging technology, wireless communication technology can be used to realize debugging functions such as remote monitoring, program modification, parameter adjustment and troubleshooting of PLC controllers.

[0003] However, during the debugging process, on the one hand, it is necessary to use configuration software, cloud platforms and other tools for complex configuration, and on the other hand, it is necessary to use more integrated communication interfaces for targeted data transmission, which reduces the efficiency and accuracy of debugging the PLC controller. Summary of the invention

[0004] Based on this, it is necessary to provide a wireless debugging method, device, computer equipment and computer-readable storage medium for a PLC controller to address the above technical problems, so as to improve the efficiency and accuracy of wireless debugging of the PLC controller.

[0005] In a first aspect, the present application provides a wireless debugging method for a PLC controller, comprising: Acquire a target site and a target baud rate of a target PLC controller, and establish a point-to-point interface connection relationship between the computer device and the target PLC controller based on the target site and the target baud rate through a preset serial communication protocol; According to the target IP address corresponding to the preset WiFi configuration information, determine the target host computer that responds to the target IP address, and establish a WiFi network connection relationship between the computer device and the target host computer based on the target IP address; Based on the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer, monitoring information from the target PLC controller is received and sent to the target host computer, and control information from the target host computer is received and sent to the target PLC controller.

[0006] In a second aspect, the present application also provides a wireless debugging device for a PLC controller, comprising: A first connection module is used to obtain a target site and a target baud rate of a target PLC controller, and to establish a point-to-point interface connection relationship between the computer device and the target PLC controller based on the target site and the target baud rate through a preset serial communication protocol; A second connection module is used to determine a target host computer corresponding to the target IP address according to the preset WiFi configuration information, and establish a WiFi network connection relationship between the computer device and the target host computer based on the target IP address; A debugging module is used to receive monitoring information from the target PLC controller and send it to the target host computer, and receive control information from the target host computer and send it to the target PLC controller based on the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer.

[0007] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above steps when executing the computer program.

[0008] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above steps when executed by a processor.

[0009] The wireless debugging method, device, computer equipment and computer-readable storage medium of the above-mentioned PLC controller, on the one hand, establish a point-to-point interface connection relationship between the computer equipment and the target PLC controller in a preset serial communication protocol through the target site and target baud rate of the target PLC controller, and on the other hand, locate the target host computer through the target IP address of the computer equipment to establish a WiFi network connection relationship between the computer equipment and the target host computer, so that based on the communication connection relationship established between the computer equipment and the target PLC controller and the target host computer respectively, the computer equipment acts as an intermediate device to participate in the data transmission process between the target PLC controller and the target host computer, thereby efficiently realizing the wireless monitoring and control of the target PLC controller by the target host computer, thereby improving the efficiency and flexibility of wireless debugging of the target PLC controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0011] Figure 1 A schematic diagram of a flow chart of a wireless debugging method for a PLC controller in one embodiment; Figure 2It is a structural block diagram of a wireless debugging device for a PLC controller in one embodiment. DETAILED DESCRIPTION

[0012] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0013] In one embodiment, Figure 1 As shown, a wireless debugging method for a PLC controller is provided, which is applied to a computer device, and the computer device includes one of a server and a terminal; this embodiment uses the method applied to a server as an example, and it can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps S101 to S103.

[0014] Step S101, obtaining a target site and a target baud rate of a target PLC controller, and establishing a point-to-point interface connection relationship between a computer device and a target PLC controller based on the target site and the target baud rate through a preset serial communication protocol.

[0015] Among them, the PLC controller (Programmable Logic Controller) refers to a digital industrial control device used to control various machines or system equipment in the field of industrial automation; the target PLC controller refers to the selected PLC controller to be debugged.

[0016] The target site indicates the unique identifier of the target PLC controller in the network, which is expressed in the form of a number or address (such as a site number); the target baud rate indicates the data transmission rate of the target PLC controller, that is, the number of bits transmitted per second.

[0017] Among them, the serial communication protocol represents the rules and standards for transmitting data through a serial interface. It specifies the data frame structure, error checking method, synchronization mechanism, etc. to ensure that data can be exchanged accurately and reliably between devices.

[0018] Among them, the point-to-point interface connection relationship represents a direct communication channel established between the computer device and the target PLC controller through the serial interface, which is a one-to-one physical connection form.

[0019] Exemplarily, according to the hardware characteristics and working environment of the target controller, the target site and target baud rate of the target PLC controller are determined, the sender or receiver of data is determined based on the target site of the target PLC controller, and the data transmission rate of the serial communication is determined based on the target baud rate; further, according to the preset serial communication protocol, on the basis of the determined data sender, data receiver, and data transmission rate of the serial communication, it is further determined that the computer device and the target PLC controller logically comply with the same protocol and parameter settings, such as a data transmission protocol commonly used in the industry or a protocol customized by the equipment manufacturer, and parameter settings such as data bit length, number of stop bits, and parity check mode; further, a handshake signal or initialization frame is sent to the target PLC controller by the computer device, and after confirming that the target PLC controller can respond normally, the communication status of the computer device and the target PLC controller is marked as connected to establish a point-to-point interface connection relationship between the computer device and the target PLC controller.

[0020] Step S102, according to the target IP address corresponding to the preset WiFi configuration information, determine the target host computer that responds to the target IP address, and establish a WiFi network connection relationship between the computer device and the target host computer based on the target IP address.

[0021] The WiFi configuration information may represent the basic parameters for accessing the WiFi network (such as SSID, password, etc.), or the advanced parameters for network communication (such as IP address, subnet mask, gateway, etc.) Among them, the target IP address represents the logical address used to identify the computer device in the WiFi network, so as to locate the target host computer according to the response of the target host computer to the target IP address; the target host computer represents the computing terminal or server used to monitor, operate or manage the target PLC controller.

[0022] The WiFi network connection relationship indicates a logical communication link established between the computer device and the target host computer through a wireless network, so that the computer device can exchange data with the target host computer wirelessly.

[0023] Exemplarily, first, the computer device searches for and joins the WiFi network to obtain WiFi configuration information corresponding to the WiFi network; if the target IP address of the computer device is a statically set IP address, the target IP address of the computer device can be directly searched and identified in the WiFi configuration information; if the target IP address of the computer device is a dynamically set IP address, the target IP address can be obtained in the WiFi configuration information through a network discovery protocol (such as DNS resolution or broadcast request); further, the target host computer is located through the communication path between the target IP address of the computer device and the IP address of the target host computer, and then the computer device sends a handshake request to the target host computer according to the TCP / IP protocol. After confirming that the target host computer can respond normally, the communication status of the computer device and the target host computer is marked as connected to establish a WiFi network connection relationship between the computer device and the target host computer.

[0024] Step S103, based on the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer, monitoring information from the target PLC controller is received and sent to the target host computer, and control information from the target host computer is received and sent to the target PLC controller.

[0025] Among them, the monitoring information represents the operating status data collected from the target PLC controller, which is used to reflect the real-time working status of the target PLC controller and various status parameters, such as the current working mode of the target PLC controller (such as running, stopping or fault, etc.), input / output signal status (such as digital switch status, analog value, etc.), fault information (such as over-limit alarm, communication fault alarm, equipment operation abnormality code, etc.).

[0026] Among them, the control information represents the instructions or configuration parameters sent to the target PLC controller, which are used to adjust the operating status or function settings of the target PLC controller, such as operation instructions (such as start, stop, reset, etc.), modify the set values ​​inside the PLC (such as speed, timer value, proportional coefficient, etc.), and fault handling instructions (such as clearing alarms, enabling backup processes, etc.).

[0027] Exemplarily, based on the established point-to-point interface connection relationship and WiFi network connection relationship, the functions of sending and receiving monitoring information and control information are realized. In this process, the computer device plays the role of an intermediate bridge, one end of which communicates and interacts with the target PLC controller through the serial port communication protocol, and the other end communicates and interacts with the target host computer through the WiFi network; wherein, first, the computer device receives the monitoring information sent by the target PLC controller in real time through the communication serial port, and then sends the monitoring information to the target host computer through the WiFi network, so as to realize the target host computer to effectively monitor the target PLC controller based on wireless means; secondly, the computer device receives the control information from the target host computer through the WiFi network, and then sends the control information to the target PLC controller through the communication serial port, so as to realize the target host computer to effectively control the target PLC controller based on wireless means.

[0028] In the wireless debugging method of the above-mentioned PLC controller, on the one hand, a point-to-point interface connection relationship between the computer device and the target PLC controller is established in the preset serial communication protocol through the target site and target baud rate of the target PLC controller, and on the other hand, the target host computer is located through the target IP address of the computer device to establish a WiFi network connection relationship between the computer device and the target host computer, thereby based on the communication connection relationship established between the computer device and the target PLC controller and the target host computer respectively, the computer device acts as an intermediate device to participate in the data transmission process between the target PLC controller and the target host computer, thereby efficiently realizing the wireless monitoring and control of the target PLC controller by the target host computer, thereby improving the efficiency and flexibility of wireless debugging of the target PLC controller.

[0029] In an exemplary embodiment, after establishing a point-to-point interface connection relationship between the computer device and the target PLC controller based on the target site and the target baud rate through a preset serial communication protocol, the method further includes steps S201 to S203.

[0030] Step S201: continuously sending request messages generated based on a preset serial port communication protocol to a target PLC controller according to a preset sending frequency.

[0031] Among them, the request message represents a data packet generated by a computer device according to a preset serial port communication protocol and sent to a target PLC controller, which is used to request the target PLC controller to respond; the request message may include a request instruction code, a target site address, a check code and other information, wherein the request instruction code is used to indicate the operation that the target PLC controller needs to perform or the type of information returned, the target site address is used to uniquely identify the address information of the target PLC controller, and the check code is used for error detection to ensure that no error occurs during the transmission of the request message.

[0032] Exemplarily, at a preset sending frequency, the computer device continuously sends a request message generated based on a preset serial communication protocol to the target PLC controller for real-time verification of the point-to-point interface connection relationship. The computer device constructs the request message according to the rules of the preset serial communication protocol, and the content of the request message may include information such as a request instruction code, a target site address, and a check bit to ensure that the request message can be correctly identified and responded to by the target PLC controller.

[0033] Exemplarily, the frequency of sending the request message may be set according to the real-time requirements of the communication and the processing capability of the target PLC controller, such as sending once per second or more frequently to ensure that the communication data can be detected quickly.

[0034] Optionally, a heartbeat packet can be used as a request message to be sent from a computer device to a target PLC controller; wherein, a heartbeat packet represents a special data packet with a small size and simple structure, which is regularly sent between a computer device and a target PLC controller to detect whether the communication link is normal; the heartbeat packet only contains necessary information, such as a target site address, a checksum and a specific instruction code, so as to achieve real-time and stability of communication through a lower network load.

[0035] Step S202: If a correct response message is received from the target PLC controller based on the request message, it indicates that the point-to-point interface connection relationship between the computer device and the target PLC controller is in a normal communication state.

[0036] Among them, the normal response message indicates that the target PLC controller correctly generates and sends a response message to the computer device based on the request message. It is used to indicate the correct response of the target PLC controller based on the request message, and can clearly indicate that the communication status between the target PLC controller and the computer device is normal; the response message may include a response status code, a data field, a check code and other information, wherein the response status code is used to indicate the execution result of the request (such as success, failure, etc.), the data field indicates the data that needs to be returned by the request message, and the check code is used to check whether an error occurs in the transmission process of the response message.

[0037] The normal communication state indicates that the point-to-point interface connection relationship between the computer device and the target PLC controller operates normally, and data can be transmitted and received normally.

[0038] Exemplarily, after receiving the request message, the target PLC controller parses the request message according to the requirements of the preset serial port communication protocol. If the content of the request message meets the protocol requirements, the target PLC controller will generate a corresponding response message and return it to the computer device; after receiving the response message, the computer device parses the response message according to the requirements of the preset serial port communication protocol. If the content of the response message meets the protocol requirements and matches the request message, the response message is regarded as a correct response message, indicating that the point-to-point interface connection relationship between the computer device and the target PLC controller is in a normal communication state.

[0039] Optionally, the parsing process of the response message may indicate judging whether the physical connection between the computer device and the target PLC controller is normal according to the content of the response message, for example, judging whether the serial port cable and the hardware interface are working properly; it may also indicate judging whether the communication parameters between the computer device and the target PLC controller match according to the content of the response message, for example, judging whether the communication parameters such as the baud rate, data bit, stop bit, and check mode are set consistently; it may also indicate judging whether the protocol interaction between the computer device and the target PLC controller is successful according to the content of the response message, for example, judging whether both parties follow the same serial port communication protocol and whether the data packet format is correct. If any of the above judgment conditions indicates that the communication status between the computer device and the target PLC controller is normal, the response message is comprehensively regarded as a correct response message, and the point-to-point interface connection relationship between the computer device and the target PLC controller is determined to be a normal communication status.

[0040] Step S203, if no correct response message is detected from the target PLC controller based on the request message, it indicates that the point-to-point interface connection relationship between the computer device and the target PLC controller is in an abnormal communication state, and the point-to-point interface connection relationship between the computer device and the target PLC controller is reestablished.

[0041] Among them, the abnormal communication state indicates that the point-to-point interface connection relationship between the computer device and the target PLC controller is abnormal and data transmission cannot be performed normally.

[0042] Exemplarily, failure to detect a correct response message returned by the target PLC controller based on the request message may indicate that no response message returned by the target PLC controller based on the request message has been received, or may indicate that a response message returned by the target PLC controller based on the request message has been received but the response message has been parsed and determined to be an abnormal response message; wherein, the abnormal response message indicates a response message erroneously generated by the target PLC controller based on the request message and sent to the computer device, which reflects an erroneous response of the target PLC controller based on the request message.

[0043] Exemplarily, if, based on the analysis of the content of the response message, it is determined that the physical connection between the computer device and the target PLC controller fails, such as the serial port cable is loose, damaged, or the interface fails, the response message is taken as an abnormal response message, and the point-to-point interface connection relationship between the computer device and the target PLC controller is judged to be an abnormal communication state; if, based on the analysis of the content of the response message, it is determined that any key communication parameter of the computer device and the target PLC controller does not match, the response message is taken as an abnormal response message, and the point-to-point interface connection relationship between the computer device and the target PLC controller is judged to be an abnormal communication state; if, based on the analysis of the content of the response message, it is determined that the target PLC controller is in an abnormal state or is closed, the response message is taken as an abnormal response message, and the point-to-point interface connection relationship between the computer device and the target PLC controller is judged to be an abnormal communication state; if, based on the analysis of the content of the response message, it is determined that external environmental factors such as electromagnetic interference affect the communication quality, the response message is taken as an abnormal response message, and the point-to-point interface connection relationship between the computer device and the target PLC controller is judged to be an abnormal communication state.

[0044] Exemplarily, if the point-to-point interface connection relationship between the computer device and the target PLC controller is in an abnormal communication state, the point-to-point interface connection relationship between the computer device and the target PLC controller is re-established, and the computer device continues to send request messages to the target PLC controller until a correct response message is detected, thereby obtaining a point-to-point interface connection relationship between the computer device and the target PLC controller in a normal communication state.

[0045] In this embodiment, request messages are continuously sent to the target PLC controller at a preset sending frequency, and then the communication status of the point-to-point interface connection relationship between the computer device and the target PLC controller is determined in real time and scenario-appropriately through effective detection of the correct response messages; further, communication anomalies can be dynamically and efficiently detected and repaired to ensure the stability and reliability of the connection between the computer device and the target PLC controller.

[0046] In an exemplary embodiment, according to the target IP address corresponding to the preset WiFi configuration information, a target host computer responsive to the target IP address is determined, and a WiFi network connection relationship between the computer device and the target host computer is established based on the target IP address, including one of step S301 and step S302.

[0047] Step S301, connect to the target network server corresponding to the WiFi configuration information, obtain the target IP address dynamically allocated to the computer device in the target network server, and establish a WiFi network connection relationship between the computer device and the target host computer according to the target host computer connected to the target IP address.

[0048] Among them, the target network server refers to the server used to manage network resources and dynamically allocate IP addresses in the wireless local area network to which the computer device accesses through the Station mode; the Station mode refers to a working mode of the WiFi device, in which the WiFi device, as a client in the wireless network, is connected to the existing wireless local area network.

[0049] Exemplarily, according to the WiFi configuration information, the SSID (network name), password, encryption protocol type (such as WPA2) and other information of the target network server are obtained. Based on the above information, in the Station mode of the computer device, the computer device accesses the target network server as a client; after accessing the target network server, the computer device obtains an IP address dynamically allocated by the target network server, and uses the IP address as the target IP address of the computer device; further, the computer device uses its own target IP address and the IP address of the target host computer specified in the WiFi configuration information to establish a communication path between the target IP address of the computer device and the IP address of the target host computer; further, the computer device sends a handshake request to the target host computer, and after determining that the target host computer responds normally, the WiFi network connection relationship between the computer device and the target host computer is formally determined.

[0050] Step S302, generate a wireless hotspot signal according to the WiFi configuration information, determine the target IP address corresponding to the computer device according to the wireless hotspot signal, and establish a WiFi network connection relationship between the computer device and the target host computer according to the target host computer connected to the target IP address.

[0051] Among them, the wireless hotspot signal represents the WiFi signal generated by the computer device through the SoftAP mode, which is used to create a local area network environment for the target host computer; the SoftAP mode represents a working mode of the WiFi device, in which the WiFi device creates an independent wireless local area network for other WiFi devices to connect.

[0052] Exemplarily, in the SoftAP mode of the computer device, the computer device generates a wireless hotspot signal based on the WiFi configuration information. The wireless hotspot signal may include information such as SSID (wireless hotspot name), password, and encryption method (such as WPA2). Based on the above information, the computer device acts as a wireless hotspot provider to create an independent wireless local area network and obtain the target IP address of the computer device; further, after the computer device detects that the target host computer is connected to the wireless local area network, the computer device establishes a communication path between the target IP address of the computer device and the IP address of the target host computer through its own target IP address and the IP address of the target host computer determined in the wireless local area network; further, the computer device sends a handshake request to the target host computer, and after determining that the target host computer responds normally, the WiFi network connection relationship between the computer device and the target host computer is formally determined.

[0053] In this embodiment, according to the data processing flow of the computer device in two different working modes of Station mode and SoftAP mode, the WiFi network connection relationship between the computer device and the target host computer is determined in a diverse and efficient manner, thereby improving the versatility and applicability of building the device WiFi network connection.

[0054] In an exemplary embodiment, based on the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer, monitoring information from the target PLC controller is received and sent to the target host computer, and control information from the target host computer is received and sent to the target PLC controller, including steps S401 to S404.

[0055] Step S401, receiving first point-to-point interface data from a target PLC controller, wherein the first point-to-point interface data is a data representation form determined by monitoring information based on a point-to-point interface connection relationship between a computer device and the target PLC controller.

[0056] Exemplarily, the computer device monitors the point-to-point interface corresponding to the target PLC controller to receive the first point-to-point interface data sent by the target PLC controller through the point-to-point interface, wherein the point-to-point interface data represents the communication port used to establish a physical communication connection directly between the computer device and the target PLC controller, and bidirectional transmission of data between the computer device and the target PLC controller is realized through this point-to-point interface. The data format of the first point-to-point interface data is the communication protocol format applicable to the preset serial communication protocol, that is, based on the frame structure, transmission rate, verification method and other information of the data specified by the serial communication protocol, the first point-to-point interface data corresponding to the monitoring information is generated to realize the stable transmission and correct parsing of the monitoring information in the point-to-point interface connection relationship between the computer device and the target PLC controller.

[0057] Step S402, converting the first point-to-point interface data into first target communication protocol data and sending it to the target host computer, wherein the first target communication protocol data is a data representation form determined by the monitoring information based on the WiFi network connection relationship between the computer device and the target host computer.

[0058] Exemplarily, after the computer device receives the first point-to-point interface data, the computer device parses the first point-to-point interface data based on the serial communication protocol requirements of the target PLC controller to determine the specific content of the monitoring information in the original format; then, according to the communication protocol requirements of the target host computer, the original content of the monitoring information in the original format is reorganized and encapsulated into the first target communication protocol data that meets the communication protocol requirements of the target host computer to be sent to the target host computer. The first target communication protocol data represents the monitoring information in the protocol format in the WiFi network connection relationship, so that the monitoring information can be stably transmitted and correctly parsed in the WiFi network connection relationship between the computer device and the target host computer, and the first target communication protocol data includes not only the original content of the monitoring information, but also additional metadata, such as data source identification (target PLC controller address), timestamp or status code, etc., to help the target host computer accurately understand the context and meaning of the data after receiving it.

[0059] Step S403, receiving second target communication protocol data returned from the target host computer based on the first target communication protocol data, wherein the second target communication protocol data is control information obtained by the target host computer in response to the first target communication protocol data, and is a data representation form determined by the control information based on the WiFi network connection relationship between the computer device and the target host computer.

[0060] Exemplarily, after receiving the first target communication protocol data, the target host computer parses and processes the first target communication protocol data to obtain control information for the monitoring information, such as a control instruction or an operation request for adjusting parameters, and encapsulates the control information into the second target communication protocol data represented by the protocol format in the WiFi network connection relationship to send it to the computer device. The second target communication protocol data represents the monitoring information in the protocol format in the WiFi network connection relationship, so that the control information can be stably transmitted and correctly parsed in the WiFi network connection relationship between the computer device and the target host computer.

[0061] Step S404, converting the second target communication protocol data into second point-to-point interface data and sending it to the target PLC controller, wherein the second point-to-point interface data is a data representation form determined by the control information based on the point-to-point interface connection relationship between the computer device and the target PLC controller.

[0062] Exemplarily, after the computer device receives the second target communication protocol data, the computer device parses the second target communication protocol data based on the communication protocol requirements of the target host computer to determine the specific content of the control information in the original format; then, according to the serial communication protocol requirements of the target PLC controller, the original content of the control information in the original format is reorganized and encapsulated into the second point-to-point interface data that meets the serial communication protocol requirements of the target PLC controller to be sent to the target PLC controller through the point-to-point interface. The data format of the second point-to-point interface data is the communication protocol format applicable to the preset serial communication protocol, that is, based on the frame structure, transmission rate, verification method and other information of the data specified by the serial communication protocol, the second point-to-point interface data corresponding to the control information is generated to achieve stable transmission and correct parsing of the control information in the point-to-point interface connection relationship between the computer device and the target PLC controller.

[0063] In this embodiment, based on the point-to-point interface connection relationship between the computer device and the target PLC controller, and the WiFi network connection relationship between the computer device and the target host computer, efficient and accurate data analysis, data conversion, data transmission and other processes are implemented for the monitoring information and control information in different communication links, thereby ensuring that the monitoring information and control information are accurately transmitted and adapted in the cross-protocol communication links.

[0064] In an exemplary embodiment, converting the first point-to-point interface data into the first target communication protocol data and sending the data to the target host computer includes steps S501 to S503.

[0065] Step S501: parse a data frame of first point-to-point interface data to extract key information from the first point-to-point interface data.

[0066] Exemplarily, first, the data frame structure of the first point-to-point interface data is decomposed, and the identifiers of the frame header and the frame tail are matched with the protocol standard to confirm the legitimacy of the data frame; secondly, the function code is extracted from the data frame, and the operation purpose of the data frame is determined by the function code, such as reading the internal register of the PLC, obtaining the input and output status, or obtaining alarm information; thirdly, the data domain part of the data frame is parsed to extract key information, such as real-time operating parameters, status flags, or specific measurement values.

[0067] Step S502: based on the data format corresponding to the S7 communication protocol, convert the key information into each reconstructed data frame corresponding to the data format, and construct the first S7 protocol data based on each reconstructed data frame.

[0068] Among them, the S7 communication protocol represents a standardized communication rule, which is used to define the frame structure and transmission method of data to ensure the interconnection between devices; the first S7 protocol data represents the specific data packet generated by the monitoring information following the S7 communication protocol.

[0069] Exemplarily, according to the requirements of the S7 communication protocol, the type and structure of each data frame of the first S7 protocol data are determined. For example, if the key information includes a specific sensor value, the S7 communication protocol standard is retrieved to assign the key information to the corresponding fields specified by the protocol, such as the address, data length, and content fields, and then these fields are encapsulated into corresponding reconstructed data frames in the order and format defined by the S7 communication protocol.

[0070] Furthermore, after completing the reconstruction of a single data frame, multiple reconstructed data frames are assembled into a complete communication data packet according to the logic of the S7 communication protocol, namely, the first S7 protocol data. This process includes filling in necessary meta-information (such as checksum, data identifier, etc.) and dynamically adjusting the data frame length to meet the frame structure requirements of the S7 communication protocol.

[0071] Step S503: encapsulate the first S7 protocol data based on the COTP function package to obtain COTP data, and use the COTP data as the first target communication protocol data and send it to the target host computer.

[0072] Among them, the COTP function package represents a set of encapsulation rules or protocol operation templates used to implement the COTP (Connection Oriented Transport Protocol) communication function, which defines how to encapsulate data from higher-layer protocols (such as the S7 communication protocol) into COTP protocol data packets; COTP data represents specific data packets encapsulated according to the COTP protocol specification.

[0073] Exemplarily, first, the encapsulation template of the COTP protocol, i.e., the COTP function package, is loaded. The encapsulation template defines the basic structure of COTP data, including a COTP header, a length field, and a payload area. The COTP header is the beginning part of the COTP data, which is used to distinguish different communication sessions, specify the type of data packet, etc. The length field is used to indicate the total length of the COTP data or the length of a specific part; the payload area is the main part of the COTP data, which is used to carry the actual data content transmitted by the upper layer protocol (such as the S7 communication protocol).

[0074] Furthermore, the first S7 protocol data is input as the payload area of ​​the COTP function packet, and specific COTP parameters such as the COTP header and length field are set for the COTP function packet according to the COTP protocol requirements, thereby obtaining encapsulated COTP data; after the encapsulation is completed, the computer device sends the COTP data to the target host computer through the TCP / IP protocol stack.

[0075] In this embodiment, first, through data frame parsing, key information is separated from the first point-to-point interface data, so that the data in the specified protocol format is converted into a more general and easier to operate form; secondly, the key information is converted into the first S7 protocol data based on the data format corresponding to the S7 communication protocol, and then the first S7 protocol data is encapsulated based on the COTP function package to obtain COTP data as the first target communication protocol data, thereby realizing cross-protocol and cross-network communication between the computer device and the target host computer, ensuring seamless switching of monitoring information between different communication protocols.

[0076] In an exemplary embodiment, converting the second target communication protocol data into second point-to-point interface data and sending the second point-to-point interface data to the target PLC controller includes steps S601 to S603.

[0077] Step S601: decapsulate the second target communication protocol data based on the COTP function package to obtain second S7 protocol data corresponding to the second target communication protocol data.

[0078] The second S7 protocol data represents a specific data packet generated by the control information in accordance with the S7 communication protocol.

[0079] Exemplarily, the computer device decapsulates the received second target communication protocol data through the COTP function package to obtain the S7 communication protocol data corresponding to the second target communication protocol data, that is, strips the COTP protocol header and other transmission control information from the second target communication protocol data, extracts the content carried in the payload area and converts it into the second S7 protocol data, so that the data returns to the data state of a higher-layer protocol.

[0080] Step S602: parse the data frame of the second S7 protocol data to extract key information from the second S7 protocol data.

[0081] Exemplarily, first, according to the standard definition of the S7 communication protocol, the data frame structure of the second S7 protocol data is decomposed, and the identifiers of the frame header and frame footer are matched with the protocol standard to confirm the legitimacy of the data frame; secondly, in the data frame, the command field is extracted, and the operation purpose of the data frame is determined by the command field, such as reading the internal register of the PLC, adjusting the input and output status, etc.; thirdly, the data domain part of the data frame is parsed to extract key information of the second S7 protocol data, such as the adjustment value of the real-time operating parameters, the adjustment value of the input and output status, and other information.

[0082] Step S603, based on the data format corresponding to the PPI communication protocol, convert the key information into each reconstructed data frame corresponding to the data format, construct point-to-point interface data based on each reconstructed data frame, and use the point-to-point interface data as the second point-to-point interface data and send it to the target PLC controller.

[0083] Among them, the PPI communication protocol (Point-to-Point Interface Protocol) represents a serial communication protocol designed for point-to-point communication.

[0084] Exemplarily, first, according to the standard of the PPI communication protocol, the type and structure of each data frame of the second point-to-point interface data are determined. For example, the data frame of the second point-to-point interface data may include fields such as site address, function code, data domain and check code.

[0085] Furthermore, based on the corresponding requirements of the PPI communication protocol, the key information of the second S7 protocol data is mapped to the fields in the data frame of the second point-to-point interface data. For example, the register address, data value and operation type in the key information are respectively mapped to the function code and data field in the data frame, and then the key information is encapsulated one by one into multiple independent reconstructed data frames in the order and format defined by the PPI communication protocol; further, after completing the reconstruction of a single data frame, the multiple reconstructed data frames are assembled into a complete data communication data packet according to the logic of the PPI communication protocol, namely, the second point-to-point interface data.

[0086] In this embodiment, first, the second target communication protocol data is decapsulated based on the COTP function package to obtain the second S7 protocol data, and the key information is separated from the second S7 protocol data through data frame parsing, so that the data in the specified protocol format is converted into a more general and easier to operate form; secondly, the key information is converted into point-to-point interface data based on the data format corresponding to the PPI communication protocol as the second point-to-point interface data, thereby realizing cross-protocol and cross-network communication between the computer device and the target PLC controller, ensuring seamless switching of control information between different communication protocols.

[0087] In an exemplary embodiment, the method further includes step S701 to step S702.

[0088] Step S701, obtaining a reset request according to an input unit of a computer device; wherein the input unit includes a configuration webpage of a target IP address and a function key of the computer device.

[0089] The reset request is used to request to trigger the computer device to perform a reset operation within a specific range, which can define parameters such as the range, method and trigger source of the reset operation.

[0090] Among them, the configuration web page refers to a graphical user interface (GUI) based on a web browser provided by the computer device, through which the user can remotely access the computer device and perform related operations, such as sending a reset request, configuring parameters or monitoring device status.

[0091] Exemplarily, the computer device may run an HTTP server in the background to continuously monitor the HTTP request content entered by the user through the configuration web page; when the user submits the HTTP request content on the configuration web page, the HTTP request content is parsed to extract specific parameters of the reset operation, thereby generating a corresponding reset request.

[0092] Exemplarily, a computer device may continuously monitor the state changes of physical function keys of the computer device through an embedded hardware module; when a user interaction with the physical function keys is detected, specific parameters of the reset operation are analyzed based on the state changes of the physical function keys, thereby generating a corresponding reset request, such as detecting whether the physical function key is long pressed or short pressed to distinguish the reset type. Step S702, based on the reset request, reset at least one of the network connection status, network configuration information, and debugging data of the computer device; wherein the network connection status includes at least one of the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer, the network configuration information includes at least one of the WiFi configuration information and the target IP address, and the debugging data includes at least one of the monitoring information and the control information.

[0093] Exemplarily, resetting the network connection status includes reinitializing the point-to-point interface connection relationship between the computer device and the target PLC controller, and reinitializing the WiFi network connection relationship between the computer device and the target host computer; wherein, reinitializing the point-to-point interface connection relationship involves reconfiguration of serial port communication, such as resetting the baud rate, data bits, stop bits, and check mode, etc.; reinitializing the WiFi network connection relationship involves reconfiguration of the WiFi network, such as disconnecting the current WiFi connection, clearing the network cache, and reloading WiFi configuration information, etc.

[0094] Exemplarily, resetting the network configuration information means reconfiguring the network settings of the computer device, such as restoring the WiFi configuration information (such as SSID, password) to the default value or user-specified value, and restoring the target IP address to a static address or a dynamically allocated mode.

[0095] Exemplarily, resetting the debugging data may represent a cleanup operation on the monitoring information and control information stored during the operation of the computer device, including clearing the stored monitoring information and control information, releasing memory space, reinitializing the data acquisition module, clearing the unsent control instruction queue, etc.

[0096] In this embodiment, through the reset mechanism corresponding to the computer device, the network connection status, network configuration information, and debugging data of the computer device can be flexibly reset, thereby ensuring the smooth progress of the debugging task and improving the stability and maintainability of the computer device.

[0097] In an exemplary embodiment, the computer device also includes a main control chip, a serial communication and power supply interface, and an LED status indicator light; wherein the main control chip is used for software control and data processing, realizing communication gateway functions, and realizing network site functions, the serial communication and power supply interface is used to provide an interface for serial port communication and a power supply interface for the computer device, and the LED status indicator light is used to indicate the serial port communication status, WiFi connection status, power supply working status, and main control chip working status.

[0098] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0099] Based on the same inventive concept, the embodiment of the present application also provides a wireless debugging device for a PLC controller for implementing the wireless debugging method for a PLC controller involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the wireless debugging device for one or more PLC controllers provided below can refer to the limitations of the wireless debugging method for a PLC controller above, and will not be repeated here.

[0100] In an exemplary embodiment, Figure 2 As shown, a wireless debugging device for a PLC controller is provided, comprising: a first connection module 201, a second connection module 202 and a debugging module 203, wherein: The first connection module 201 is used to obtain a target site and a target baud rate of a target PLC controller, and to establish a point-to-point interface connection relationship between the computer device and the target PLC controller based on the target site and the target baud rate through a preset serial communication protocol; The second connection module 202 is used to determine a target host computer corresponding to the target IP address according to the target IP address corresponding to the preset WiFi configuration information, and establish a WiFi network connection relationship between the computer device and the target host computer based on the target IP address; The debugging module 203 is used to receive monitoring information from the target PLC controller and send it to the target host computer, and receive control information from the target host computer and send it to the target PLC controller based on the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer.

[0101] In an exemplary embodiment, the first connection module 201 is also used to: continuously send request messages generated based on a preset serial port communication protocol to the target PLC controller according to a preset sending frequency; if a correct response message returned by the target PLC controller based on the request message is received, it indicates that the point-to-point interface connection relationship between the computer device and the target PLC controller is in a normal communication state; if no correct response message returned by the target PLC controller based on the request message is detected, it indicates that the point-to-point interface connection relationship between the computer device and the target PLC controller is in an abnormal communication state, and the point-to-point interface connection relationship between the computer device and the target PLC controller is re-established.

[0102] In an exemplary embodiment, the second connection module 202 is also used to: connect to the target network server corresponding to the WiFi configuration information, obtain the target IP address dynamically assigned to the computer device in the target network server, and establish a WiFi network connection relationship between the computer device and the target host computer based on the target host computer connected to the target IP address; generate a wireless hotspot signal according to the WiFi configuration information, determine the target IP address corresponding to the computer device according to the wireless hotspot signal, and establish a WiFi network connection relationship between the computer device and the target host computer based on the target host computer connected to the target IP address.

[0103] In an exemplary embodiment, the debugging module 203 is also used to: receive first point-to-point interface data from the target PLC controller, wherein the first point-to-point interface data is a data representation form determined by the monitoring information based on the point-to-point interface connection relationship between the computer device and the target PLC controller; convert the first point-to-point interface data into first target communication protocol data and send it to the target host computer, wherein the first target communication protocol data is a data representation form determined by the monitoring information based on the WiFi network connection relationship between the computer device and the target host computer; receive second target communication protocol data returned from the target host computer based on the first target communication protocol data, wherein the second target communication protocol data is control information obtained by the target host computer in response to the first target communication protocol data, and is a data representation form determined by the control information based on the WiFi network connection relationship between the computer device and the target host computer; convert the second target communication protocol data into second point-to-point interface data and send it to the target PLC controller, wherein the second point-to-point interface data is a data representation form determined by the control information based on the point-to-point interface connection relationship between the computer device and the target PLC controller.

[0104] In an exemplary embodiment, the debugging module 203 is also used to: parse the data frame of the first point-to-point interface data to extract key information from the first point-to-point interface data; based on the data format corresponding to the S7 communication protocol, convert the key information into each reconstructed data frame corresponding to the data format, and construct the first S7 protocol data based on each reconstructed data frame; encapsulate the first S7 protocol data based on the COTP function package to obtain COTP data, and use the COTP data as the first target communication protocol data and send it to the target host computer.

[0105] In an exemplary embodiment, the debugging module 203 is also used to: decapsulate the second target communication protocol data based on the COTP function package to obtain the second S7 protocol data corresponding to the second target communication protocol data; parse the data frame of the second S7 protocol data to extract key information in the second S7 protocol data; based on the data format corresponding to the PPI communication protocol, convert the key information into each reconstructed data frame corresponding to the data format, construct point-to-point interface data based on each reconstructed data frame, and use the point-to-point interface data as the second point-to-point interface data and send it to the target PLC controller.

[0106] In an exemplary embodiment, the apparatus further includes a multiplexing module, which is used to: obtain a reset request according to an input unit of a computer device; wherein the input unit includes a configuration webpage of a target IP address and a function key of the computer device; based on the reset request, reset at least one of a network connection status, network configuration information, and debugging data of the computer device; wherein the network connection status includes at least one of a point-to-point interface connection relationship between the computer device and a target PLC controller and a WiFi network connection relationship between the computer device and a target host computer, the network configuration information includes at least one of WiFi configuration information and a target IP address, and the debugging data includes at least one of monitoring information and control information.

[0107] Each module in the wireless debugging device of the PLC controller can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0108] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in any of the above embodiments when executing the computer program.

[0109] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in any of the above embodiments are implemented.

[0110] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0111] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0112] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A wireless debugging method for a PLC controller, characterized in that: Applied to a computer device, the method comprises: Acquire a target site and a target baud rate of a target PLC controller, and establish a point-to-point interface connection relationship between the computer device and the target PLC controller based on the target site and the target baud rate through a preset serial communication protocol; According to the target IP address corresponding to the preset WiFi configuration information, determine the target host computer that responds to the target IP address, and establish a WiFi network connection relationship between the computer device and the target host computer based on the target IP address; Based on the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer, monitoring information from the target PLC controller is received and sent to the target host computer, and control information from the target host computer is received and sent to the target PLC controller.

2. The method according to claim 1, characterized in that After establishing a point-to-point interface connection relationship between the computer device and the target PLC controller based on the target site and the target baud rate through a preset serial communication protocol, the method further includes: Continuously sending request messages generated based on the preset serial port communication protocol to the target PLC controller according to a preset sending frequency; If a correct response message returned by the target PLC controller based on the request message is received, it indicates that the point-to-point interface connection relationship between the computer device and the target PLC controller is in a normal communication state; If no correct response message is detected from the target PLC controller based on the request message, it indicates that the point-to-point interface connection relationship between the computer device and the target PLC controller is in an abnormal communication state, and the point-to-point interface connection relationship between the computer device and the target PLC controller is reestablished.

3. The method according to claim 1, characterized in that The step of determining a target host computer corresponding to the target IP address according to the preset WiFi configuration information, and establishing a WiFi network connection relationship between the computer device and the target host computer based on the target IP address, includes one of the following two steps: Connecting to a target network server corresponding to the WiFi configuration information, obtaining a target IP address dynamically allocated to the computer device in the target network server, and establishing a WiFi network connection relationship between the computer device and the target host computer according to a target host computer connected to the target IP address; A wireless hotspot signal is generated according to the WiFi configuration information, a target IP address corresponding to the computer device is determined according to the wireless hotspot signal, and a WiFi network connection relationship between the computer device and the target host computer is established according to a target host computer connected to the target IP address.

4. The method according to claim 1, characterized in that: Based on the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer, the monitoring information from the target PLC controller is received and sent to the target host computer, and the control information from the target host computer is received and sent to the target PLC controller, including: Receiving first point-to-point interface data from the target PLC controller, wherein the first point-to-point interface data is a data representation form of the monitoring information determined based on a point-to-point interface connection relationship between the computer device and the target PLC controller; Convert the first point-to-point interface data into first target communication protocol data and send the data to the target host computer, wherein the first target communication protocol data is a data representation form of the monitoring information determined based on the WiFi network connection relationship between the computer device and the target host computer; Receiving second target communication protocol data returned from the target host computer based on the first target communication protocol data, wherein the second target communication protocol data is control information obtained by the target host computer in response to the first target communication protocol data, and is a data representation form determined by the control information based on the WiFi network connection relationship between the computer device and the target host computer; The second target communication protocol data is converted into second point-to-point interface data and sent to the target PLC controller, wherein the second point-to-point interface data is a data representation of the control information determined based on the point-to-point interface connection relationship between the computer device and the target PLC controller.

5. The method according to claim 4, characterized in that The step of converting the first point-to-point interface data into first target communication protocol data and sending the data to the target host computer includes: Parsing a data frame of the first point-to-point interface data to extract key information from the first point-to-point interface data; Based on a data format corresponding to the S7 communication protocol, converting the key information into each reconstructed data frame corresponding to the data format, and constructing first S7 protocol data based on each reconstructed data frame; The first S7 protocol data is encapsulated based on the COTP function package to obtain COTP data, and the COTP data is used as the first target communication protocol data and sent to the target host computer.

6. The method according to claim 4, characterized in that The converting the second target communication protocol data into second point-to-point interface data and sending the data to the target PLC controller comprises: Decapsulating the second target communication protocol data based on the COTP function package to obtain second S7 protocol data corresponding to the second target communication protocol data; Parsing the data frame of the second S7 protocol data to extract key information from the second S7 protocol data; Based on the data format corresponding to the PPI communication protocol, the key information is converted into reconstructed data frames corresponding to the data format, point-to-point interface data is constructed based on the reconstructed data frames, and the point-to-point interface data is used as the second point-to-point interface data and sent to the target PLC controller.

7. The method according to claim 1, characterized in that The method further comprises: Obtaining a reset request according to an input unit of the computer device; wherein the input unit includes a configuration webpage of the target IP address and a function key of the computer device; Based on the reset request, at least one of the network connection status, network configuration information, and debugging data of the computer device is reset; wherein the network connection status includes at least one of a point-to-point interface connection relationship between the computer device and the target PLC controller and a WiFi network connection relationship between the computer device and the target host computer; the network configuration information includes at least one of WiFi configuration information and a target IP address; and the debugging data includes at least one of monitoring information and control information.

8. A wireless debugging device for a PLC controller, characterized in that: The device comprises: A first connection module is used to obtain a target site and a target baud rate of a target PLC controller, and to establish a point-to-point interface connection relationship between the computer device and the target PLC controller based on the target site and the target baud rate through a preset serial communication protocol; A second connection module is used to determine a target host computer corresponding to the target IP address according to the preset WiFi configuration information, and establish a WiFi network connection relationship between the computer device and the target host computer based on the target IP address; A debugging module is used to receive monitoring information from the target PLC controller and send it to the target host computer, and receive control information from the target host computer and send it to the target PLC controller based on the point-to-point interface connection relationship between the computer device and the target PLC controller and the WiFi network connection relationship between the computer device and the target host computer.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Virtual CAN bus system, message transmission method, medium and electronic equipment

    CN122120060A