Networking communication method and system and Modbus master station equipment
By introducing Modbus service process and NAPI interfaces into the Modbus master device, the problem that the Minhong system does not support the Modbus protocol is solved, and the access and unified interface of the Modbus slave device is realized, which simplifies the development process and improves the system compatibility. Sex and practicality.
Patent Information
- Application Number
- CN202411229127.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-06
AI Technical Summary
The existing Mining Hong system does not directly support the Modbus communication protocol, resulting in the inability to directly access existing mining equipment that relies on the Modbus protocol, limiting the overall performance and potential of the system.
By introducing Modbus service process into the Modbus master device, receiving device information, creating device nodes and point information, and establishing communication connections through the NAPI interface, the Modbus slave device is connected to the Mining System, and the compatibility of the Modbus protocol is realized and Unified interface.
The Modbus slave equipment access system is realized, which simplifies the development process, reduces the cost of equipment replacement, and improves the compatibility and practicality of the system.
Smart Images

Figure CN119094268A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a networking communication method, system and Modbus master station device. Background Art
[0002] Embedded devices play a vital role in today's mining automation and intelligence. These devices are widely used in mining environments, exchanging data and controlling through a variety of communication protocols to achieve efficient and safe operations, resource management, and environmental monitoring. Among them, the Modbus protocol has become the preferred protocol for communication between most mining equipment due to its openness, simplicity, and wide application base. Modbus allows information exchange between devices through serial links, simplifies equipment integration and the construction of control systems, and reduces the cost of complexity.
[0003] However, with the in-depth development of digital mine construction, new system architectures such as the "Mine Hong" system are gradually being introduced, aiming to improve overall operational efficiency and safety levels through more advanced technologies and architectures. Among them, the Mine Hong system framework usually includes more modern data processing, equipment management and remote monitoring functions, but unfortunately, it does not directly support the existing Modbus communication protocol. This incompatibility leads to a key problem: that is, under the existing Mine Hong system framework, it is impossible to directly connect the deployed field equipment that relies on the Modbus protocol to the system, thereby limiting the overall performance and potential of the system. In addition, most mining equipment currently uses the Modbus protocol, but the Mine Hong system does not directly support this protocol, which results in many mining equipment being unable to directly connect to the Mine Hong system. Summary of the invention
[0004] In view of this, in order to solve the problems existing in the prior art, the present application provides a networking communication method, system and Modbus master station device.
[0005] In a first aspect, the present application provides a networking communication method, which is applied to a Modbus service process in a Modbus master station device integrated with a mining system, comprising:
[0006] Receiving device information of a target slave device to be connected for communication sent by an internal application in the Modbus master device;
[0007] Create a device node according to the device information and configure the location information of the device node; establish a communication connection between the internal application and the target slave station device according to the location information and device node information, so that the target slave station device can access the Mine Hong system.
[0008] In an optional implementation manner, after establishing a communication connection between the internal application and the target slave device, the method further includes:
[0009] The Modbus service process responds to the data collection request sent by the internal application to encapsulate multiple data read instructions according to the point information, and sends the data read instructions of each device point to the target slave device in sequence through the corresponding communication interface; one data read instruction corresponds to one device point.
[0010] In an optional embodiment, it also includes:
[0011] receiving slave station data fed back by each of the equipment points in response to the data read instruction, and recording the feedback status of each of the equipment points;
[0012] According to the feedback, the working status of each of the equipment points is determined.
[0013] In an optional implementation manner, after establishing a communication connection between the internal application and the target slave device, the method further includes:
[0014] Respond to the point update request sent by the internal application, encapsulate the data write instruction according to the point update request, and send the data write instruction of the corresponding device point to the target slave station device through the corresponding communication interface, wherein the data write instruction is used to indicate the update of the point information of the corresponding device point.
[0015] In an optional implementation manner, before establishing a communication connection between the internal application and the target slave device according to the point information and the device node information, the method further includes:
[0016] Create a label table according to the device node information and the point information;
[0017] If it is determined that the label table is not empty, a communication connection is established between the internal application and the target slave device according to the device node information in the label table and the device type of the target slave device.
[0018] In an optional implementation manner, before receiving the device information of the target slave device to be connected for communication sent by the internal application in the Modbus master device, the method further includes:
[0019] The login information sent by the internal application is received, and the login information is verified, so that the internal application sends the corresponding device information of the target slave station device after the verification is passed.
[0020] In an optional embodiment, it also includes:
[0021] If the target slave device is a Modbus TCP device, the device information includes an IP address, a port number, a Modbus node number, and a device type;
[0022] If the target slave device is a Modbus RTU device or a Modbus ASCII device, the device information includes a serial port device number, a baud rate, and data bits.
[0023] In a second aspect, the present application provides a networking communication system, including a Modbus master device integrated with a Mine Hong system and multiple Modbus slave devices;
[0024] The Modbus service process is used to execute the aforementioned networking communication method so that the internal application program establishes a communication connection with the target slave device.
[0025] In a third aspect, the present application provides a Modbus master station device integrated with a mining system, including a memory and a processor, wherein the memory stores a computer program, and the processor includes a Modbus service process, and the Modbus service process is used to execute the computer program to implement the aforementioned networking communication method.
[0026] In a fourth aspect, the present application provides a computer storage medium storing a computer program, which, when executed, implements the aforementioned networking communication method.
[0027] The embodiments of the present application have the following beneficial effects:
[0028] The embodiment of the present application provides a networking communication method, including: receiving device information of a target slave device to be connected to communication sent by an internal application in a Modbus master device; creating a device node according to the device information and configuring the point information of the device node; establishing a communication connection between the internal application and the target slave device according to the point information and the device node information, so that the target slave device can access the mining system. The embodiment of the present application realizes the communication connection between the internal application and the Modbus slave device based on a Modbus service process, which provides feasibility for the Modbus slave device to access the mining system. In addition, the present embodiment can enable the internal application or cloud platform to directly access the mining system through a unified NAPI interface, thereby simplifying the development difficulty, saving equipment replacement costs, and simplifying the development process of internal applications and cloud platforms. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.
[0030] Figure 1 A schematic diagram of the structure of a networking communication system in an embodiment of the present application is shown;
[0031] Figure 2 A schematic diagram of a communication connection mode between a Modbus master device and a Modbus slave device in a network communication system in an embodiment of the present application is shown;
[0032] Figure 3 A first flow chart of the networking communication method in an embodiment of the present application is shown;
[0033] Figure 4 A second flow chart of the networking communication method in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0035] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0036] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.
[0037] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0038] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0039] Modbus protocol: a commonly used industrial communication protocol used for communication between different devices.
[0040] Mine-Hong System: A variant of the Hongmeng system specifically designed for equipment communication and management in mining environments.
[0041] Device location: refers to an independent identifier established for the device location in IoT applications and device management.
[0042] Device node: represents a redistribution point or communication endpoint, which is used to send, receive or forward information in the network. Its function is to provide a link between user programs and kernel drivers, so that users can interact with hardware devices by reading and writing device nodes. Different device types correspond to different device nodes. The device node status flag describes the status of the device. By creating a device node, you can access and control the device.
[0043] The Kuanghong system is an operating system customized based on OpenHarmony (the open source version of Hongmeng system) for the mining field. At present, most equipment in mines uses protocols for data communication, but the Kuanghong system itself does not directly support the protocol, which makes it difficult for existing equipment to access the Kuanghong system. This means that if you want to connect these devices to the Kuanghong system, you need to develop an additional compatibility mechanism. This incompatibility problem limits the flexibility of mining equipment and increases the cost of replacing new equipment.
[0044] Based on this, the embodiment of the present application provides a networking communication system; exemplary, as Figure 1As shown, the system includes a Modbus master device 100 (i.e., master device) and multiple Modbus slave devices 200 (i.e., slave devices) integrated with the Mine Hong system. Among them, the Modbus master device includes a Modbus service process, multiple NAPI (i.e., Native Application Programming Interface) interfaces and multiple communication interfaces (such as / dev / ttys0 / dev / tty232, etc.). Optionally, the communication interface includes different types of interfaces such as serial ports and Ethernet interfaces. In addition, the slave device includes but is not limited to a programmable logic controller (Programmable Logic Controller, PLC), sensors, actuators, etc.
[0045] It should be noted that this embodiment realizes seamless connection between internal applications or cloud platforms and the Kuanghong system through the NAPI interface in the Modbus master station device; and the Modbus master station device not only solves the compatibility problem by providing a unified NAPI interface, but also greatly simplifies the development process of internal applications.
[0046] It can be understood that this embodiment adds support for the Modbus protocol within the Kuanghong system. By introducing comprehensive support for the Modbus protocol, the cost investment caused by hardware updates can be significantly reduced, while also ensuring seamless communication between new and old devices; and providing a unified NAPI interface, so that the master station device can be suitable for the development of different types of local applications, thereby enabling different types of developers to easily communicate with the master station device.
[0047] Furthermore, if Figure 2 As shown, the Modbus master device builds a communication connection relationship between the internal application and the target slave device through the internal Modbus service process. Among them, the internal application is an application that does not support Modbus service, such as Node.js application.
[0048] It can be understood that this embodiment sets up a special Modbus service process inside the Mine Hong system. This process can use the standard Modbus protocol to communicate with other Modbus devices, and also provides a series of standard interfaces (NAPI) for applications within the Mine Hong system, so that the application can access the Mine Hong system through the NAPI interface.
[0049] When the mining system inside the Modbus master device is started, the Modbus service process will also start and automatically scan the available communication interfaces in the system. The internal application can establish a communication connection with the Modbus slave device by using the Modbus service; wherein, the internal application first provides the corresponding configuration information to the Modbus service process according to the device type of the Modbus slave device to be connected, so that the Modbus service process can create device nodes and point information according to the configuration information, and then actively establish a communication connection with the target slave device according to the point information.
[0050] Based on this, this embodiment implements a Modbus service process in the mining system of the Modbus master device. Externally, it uses the standard Modbus protocol to communicate with other Modbus devices; internally, it provides a variety of NAPI interfaces to transmit the necessary parameter configurations for device communication through the NAPI interface; further, based on the Modbus service process, the communication barriers between the mining system and the Modbus slave device can be broken.
[0051] For reference, Figure 3 As shown, the master station device 100 in the above networking communication system performs the networking communication process which may specifically include the following steps:
[0052] S110, receiving device information of a target slave device to be connected for communication sent by an internal application in a Modbus master device.
[0053] S120, create a device node according to the device information and configure the location information of the device node; establish a communication connection between the internal application and the target slave device according to the location information and the device node information, so that the target slave device can be connected to the Mine Hong system.
[0054] First, when the master station device starts the internal mining system, it automatically starts the internal Modbus service process.
[0055] Furthermore, the application program inside the master station device can realize data interaction with the target slave station device to be connected for communication through the Modbus service process.
[0056] Exemplarily, the internal application sends the device information of the target slave device to be connected for communication to the Modbus service process, wherein the device information corresponds to the device type of the target slave device, that is, the internal application provides corresponding configuration information, such as device type, function code, etc., to the Modbus service process according to the device type of the target slave device, so that the Modbus service process creates device nodes and point information according to the configuration information, and then actively connects to the target slave device.
[0057] It can be understood that the internal application can determine the interface type and supported communication protocol of the Modbus slave device according to the device type of the Modbus slave device; according to the interface type and communication protocol, send the corresponding device information to the Modbus service process. Among them, when the target slave device is a serial port device or an Ethernet device, the corresponding device information is different, and each information item of the specific device information to be transmitted can be set accordingly according to actual needs, and this embodiment does not limit this.
[0058] Among them, if the target slave device is an Ethernet device, such as a Modbus TCP device, the device information includes but is not limited to the IP address, port number, Modbus node number and device type; if the target slave device is a serial port device, such as a ModbusRTU device or a Modbus ASCII device, the device information includes but is not limited to the serial port device number, baud rate and data bits.
[0059] Among them, the Modbus service process can set an event listener or use the framework function to capture events sent by internal applications, especially those involving communication requests or device information; and then parse the device information sent by the application to extract key attribute parameters.
[0060] In one embodiment, before using the Modbus service, the internal application needs to verify its identity through a login interface (such as the / api / login interface), that is, before the internal application sends device information to the Modbus service process to enable the Modbus service process to communicate with the target slave device, the internal application needs to authenticate its identity.
[0061] The internal application sends login information to the Modbus service process, including but not limited to passwords and other information; the Modbus service process receives the login information sent by the internal application and verifies the login information. Furthermore, after the internal application passes the verification, it sends the corresponding device information of the target slave device to the Modbus service process.
[0062] Furthermore, after receiving the device information, the Modbus service process creates a device node and configures the position information of the device node according to the device information. For example, the Modbus service process creates a corresponding device node according to the device information. Then, according to the device type and device information, the position information of the device node is configured, wherein the position information includes each readable and writable device position on the slave device, as well as their address, data type, etc.
[0063] In some examples, the Modbus service process can save the created device nodes and the configured point information to the database or configuration file inside the master station device for subsequent use. In addition, a node management module can also be created to create, manage and update device nodes through the node management module.
[0064] Furthermore, the Modbus service process establishes a communication connection between the internal application and the target slave device based on the point information and device node information, so that the target slave device can be connected to the Mine Hong system.
[0065] For reference, a tag table is created according to the device node information and the point information; if it is determined that the tag table is not empty, a communication connection is established between the internal application and the Modbus slave device according to the device node information in the tag table and the device type of the Modbus slave device.
[0066] That is, after creating the device node, configure the point information of each device node accordingly in order to obtain all address data in the target slave device. In this process, the NAPI interface (such as / api / device / tag / add interface) can be used to send the corresponding device information of the target slave device to the Modbus service process. The Modbus server process uses this configuration information to create a tag table (i.e., tag table).
[0067] Furthermore, when the tag table is not empty, the Modbus service process actively connects to the target slave device through the corresponding communication interface according to the device node information and the device type. For example, if the device type is a TCP device, the TCP method is used to connect according to the port number in the device information, so that the internal application can directly establish communication with the Modbus slave device.
[0068] In one example, after startup, the Modbus service process can automatically search for the hardware information of all communication interfaces inside the master device, and the hardware information of each communication interface is used to indicate the device type of the Modbus slave device to which the corresponding communication interface can be physically connected; then the Modbus service process can select the target communication interface for connecting the target slave device based on the hardware information of each communication interface obtained; wherein the communication interface is a physical port on the master device used for data transmission with other devices, which can be a serial port, Ethernet interface, etc.; for example, a slave device connected to the serial port of the master device is a serial port device, and a slave device connected to the Ethernet interface is an Ethernet device.
[0069] Furthermore, the Modbus service process can read the hardware information of each communication interface inside the master station device according to query commands or APIs, etc. The hardware information includes parameter items such as interface type (serial, Ethernet, etc.), physical address, port number, transmission speed, number of stop bits, baud rate, number of data bits, stop bits, and parity check mode, wherein the hardware information acquisition method and each parameter item of the hardware information to be acquired can be set accordingly according to actual needs, and this embodiment does not limit this.
[0070] Then, according to the value of the corresponding parameter item in the hardware information, it can be determined whether a slave device is currently connected, and according to the type of the communication interface indicated in the hardware information, the device type of the slave device that the communication interface can correspond to. Furthermore, after receiving the device information of the target slave device sent by the internal application and creating the device node and point information, the Modbus service process selects a suitable target communication interface from all the internal communication interfaces to actively establish a communication connection with the target slave device. Among them, the suitable target communication interface is that there is no other slave device currently connected in communication, and the interface type of the target communication interface matches the device type of the target slave device to be connected in communication.
[0071] Furthermore, after establishing a communication connection between the internal application and the target slave device, the internal application can periodically obtain the data of each device point according to the point information of the target slave device through the Modbus service process, and then obtain the status of each device point and change the status of the device point.
[0072] For example, Figure 4 As shown, in the embodiment of the present application, the process of the internal application performing data read and write operations on the target slave device through the Modbus service process may include the following steps:
[0073] S410, the Modbus service process responds to the data collection request sent by the internal application program to encapsulate multiple data read instructions according to the point information, and sends the data read instructions of each device point to the Modbus slave device in sequence through the corresponding communication interface.
[0074] S420, receiving slave station data fed back by each device point in response to a data read instruction, and recording the feedback status of each device point; and determining the working status of each device point according to the feedback status.
[0075] It can be understood that one data read instruction corresponds to one device point, that is, the internal application can send a data read instruction to each device point of the target slave device through the Modbus service process to obtain the data of the device point, and then determine the working status of the device point according to the feedback of the device point; wherein, if the device point does not feedback the slave data according to the data read instruction, it means that the device point is invalid or in an abnormal working state, and if the device point feedbacks the relevant slave data according to the data read instruction, it is determined that the device point is valid and in a normal working state. Among them, the slave data includes the current point value of the device point; the internal application can also modify the point value of the corresponding point of the target slave device accordingly.
[0076] For example, the Modbus service process can set a timer for each device point, and then encapsulate the point information (such as Modbus address, function code, etc.) into a Modbus request packet containing a data read instruction, and send the Modbus request packet to the target slave device through the corresponding communication interface (such as / api / device / tag / status interface), and then receive the feedback information of the target slave device to collect the data or status of the corresponding device point of the target slave device.
[0077] In one example, the internal application can also update the device point information of the target slave device, that is, perform a data write operation. For example, the Modbus service process responds to the point update request sent by the internal application, encapsulates the data write instruction according to the point update request, and sends the data write instruction of the corresponding device point to the Modbus slave device through the corresponding communication interface (such as api / device / tag / set interface), and the data write instruction is used to indicate that the point information of the corresponding device point is updated.
[0078] It can be understood that the internal application sends the point value that needs to be updated for the corresponding device point to the Modbus service process, and the Modbus service process encapsulates the updated point value to obtain a Modbus request packet containing a data write instruction, and then sends the Modbus request packet to the target slave device, so that the target slave device changes the point value of the target device point accordingly.
[0079] The embodiment of the present application uses the NAPI interface and Modbus protocol of the mining system to realize the communication connection between the internal application and the Modbus slave device based on a Modbus service process, which provides feasibility for the Modbus slave device to access the mining system, that is, it can access the internal application or cloud platform through a unified NAPI interface, which simplifies the development difficulty and makes it simple and convenient to implement, thereby saving the cost of equipment replacement and simplifying the development process of internal applications and cloud platforms; it enables slave devices using the Modbus protocol to be more easily connected to the mining system designed specifically for mining scenarios, thereby improving the compatibility and practicality of the system.
[0080] The embodiment of the present application also provides a Modbus master station device integrated with a mining system, and the Modbus master station device integrated with the mining system can be, but is not limited to, an industrial computer, a gateway device, etc. Exemplarily, the Modbus master station device integrated with the mining system includes a processor and a memory, wherein the memory stores a computer program, and the processor includes a Modbus service process, and the processor runs the computer program to enable the Modbus service process to execute the networking communication method of the present application.
[0081] Among them, the processor can be regarded as an integrated circuit chip with signal processing capability at the hardware level. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
[0082] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0083] In addition, the present application also provides a computer storage medium for storing the computer program used in the above-mentioned computer device, wherein when the computer program is executed on a processor, the networking communication method of the above-mentioned embodiment is implemented.
[0084] It can be understood that the options in the networking communication method of the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.
[0085] The computer storage medium may be a non-volatile storage medium or a volatile storage medium. For example, the computer storage medium may include, but is not limited to, a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0086] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0087] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0088] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
[0089] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A networking communication method, characterized in that: The Modbus service process used in the Modbus master device integrated with the Kuanghong system includes: Receiving device information of a target slave device to be connected for communication sent by an internal application in the Modbus master device; Create a device node according to the device information and configure the location information of the device node; establish a communication connection between the internal application and the target slave station device according to the location information and device node information, so that the target slave station device can access the Mine Hong system.
2. The networking communication method according to claim 1, characterized in that: After establishing a communication connection between the internal application and the target slave device, the method further includes: The Modbus service process responds to the data collection request sent by the internal application to encapsulate multiple data read instructions according to the point information, and sends the data read instructions of each device point to the target slave device in sequence through the corresponding communication interface; one data read instruction corresponds to one device point.
3. The networking communication method according to claim 2, characterized in that: Also includes: receiving slave station data fed back by each of the equipment points in response to the data read instruction, and recording the feedback status of each of the equipment points; According to the feedback, the working status of each of the equipment points is determined.
4. The networking communication method according to claim 1, characterized in that: After establishing a communication connection between the internal application and the target slave device, the method further includes: Respond to the point update request sent by the internal application, encapsulate the data write instruction according to the point update request, and send the data write instruction of the corresponding device point to the target slave station device through the corresponding communication interface, wherein the data write instruction is used to indicate the update of the point information of the corresponding device point.
5. The networking communication method according to claim 1, characterized in that: Before establishing a communication connection between the internal application and the target slave device according to the point information and the device node information, the method further includes: Create a label table according to the device node information and the point information; If it is determined that the label table is not empty, a communication connection is established between the internal application and the target slave device according to the device node information in the label table and the device type of the target slave device.
6. The networking communication method according to claim 1, characterized in that: Before receiving the device information of the target slave device to be connected for communication sent by the internal application in the Modbus master device, the method further includes: The login information sent by the internal application is received, and the login information is verified, so that the internal application sends the corresponding device information of the target slave station device after the verification is passed.
7. The networking communication method according to claim 1, characterized in that: Also includes: If the target slave device is a Modbus TCP device, the device information includes an IP address, a port number, a Modbus node number, and a device type; If the target slave device is a Modbus RTU device or a Modbus ASCII device, the device information includes a serial port device number, a baud rate, and data bits.
8. A networking communication system, characterized in that: Including Modbus master device integrated with Kuanghong system and multiple Modbus slave devices; The Modbus service process is used to execute the networking communication method according to any one of claims 1 to 7, so that the internal application program establishes a communication connection with the target slave device.
9. A Modbus master station device integrated with a mining system, characterized in that: It comprises a memory and a processor, the memory stores a computer program, the processor comprises a Modbus service process, and the Modbus service process is used to execute the computer program to implement the networking communication method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: It stores a computer program, and when the computer program is executed, it implements the networking communication method according to any one of claims 1-7.
Citation Information
Cited By
Interaction method and device between master station equipment and slave station equipment, centralized controller, building management system and storage medium
CN120785680A
