New energy station acquisition monitoring system and ring network source MAC generation method thereof

By sending different states of inspection packets in the ring network, automatically detect and solve the number conflict of the collection device, automatically generate the source MAC address, solve the problem of errors and low efficiency of the artificial setting source MAC address, improve production efficiency, and improve production efficiency. And system stability.

CN119383208AActive Publication Date: 2025-01-28XJ GRP CORP +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310938766.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-27
Publication Date
2025-01-28
Estimated Expiration
2043-07-27

AI Technical Summary

Technical Problem

The source MAC addresses of each device in the ring network are manually tidyed to check problems that are prone to errors and inefficient.

Method used

By sending initial inspections, conflict inspections, and normal inspections to a single ring network, automatically detect and solve the number conflict of the collection device, and automatically generate the source MAC address of the collection device.

Benefits of technology

Improve the automation and setting efficiency of the MAC address of each device source in the ring network, reduce artificial errors, and improve production efficiency and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383208A_ABST
    Figure CN119383208A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of network communication, and particularly relates to a new energy station acquisition monitoring system and a ring network source MAC generation method thereof. The method comprises the following specific steps: a monitoring device sends an initial inspection message, acquisition devices add respective serial numbers to the initial inspection message, the monitoring device detects serial number conflicts after recovering the initial inspection message, a conflict inspection message is sent, all the acquisition devices clear the serial numbers, the monitoring device recovers the conflict inspection message, and the above steps are repeated. And when no serial number conflict is detected in the initial inspection message, the monitoring device sends a normal inspection message, the acquisition device without the serial number selects an unused serial number, the acquisition device generates an own source MAC address according to the own serial number and enters a normal working mode, so that the data acquired by the acquisition device is uploaded to the monitoring device, and the monitoring device sends the normal inspection message to the monitoring device. And a control command issued by the monitoring device is responded, so that the production efficiency is improved, and the possibility of errors is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of network communication, and in particular relates to a new energy station acquisition monitoring system and a ring network source MAC generation method thereof. Background Art

[0002] A large number of terminal collection devices are used in scenarios such as fan status monitoring in new energy stations and air composition detection in coal mine tunnels. There are many devices on site and they are widely distributed, which determines that ring network communication is adopted between the collection devices and the monitoring devices. The schematic topology diagram of the new energy station network is as follows: Figure 1 As shown, the collection devices 1, 2, and 3 send the collected fan status to the monitoring device for processing through the ring network switch.

[0003] The source MAC address of each device in the ring network must be unique, and users must set the source MAC address of each device before the device is put into operation. Currently, the source MAC address of each device is set manually. This method of manual setting is inevitably repeated, and problems found after commissioning need to be checked one by one. For large ring networks (more than 100 devices, and the distance between devices is greater than 2 kilometers), the troubleshooting efficiency is extremely low. Summary of the invention

[0004] The purpose of the present invention is to provide a new energy station acquisition monitoring system and a ring network source MAC generation method thereof, so as to solve the problem that manual setting and troubleshooting of the source MAC addresses of various devices in the ring network are prone to errors and low efficiency.

[0005] In order to solve the above technical problems, the present invention provides a method for automatically generating a ring network source MAC, comprising the following steps:

[0006] 1) The monitoring device sends an initial inspection message to the ring network. The collection devices in the ring network receive and transmit the initial inspection message in turn. The collection devices that have been assigned numbers add their own numbers to the initial inspection message and send it to the monitoring device. The monitoring device determines whether there is a conflict in the numbers of each collection device based on the recovered initial inspection message. If there is a conflict, step 2) is executed; if there is no conflict, step 3) is executed;

[0007] 2) The monitoring device sends a conflict inspection message to the ring network, and the collection devices receive and transmit the conflict inspection messages in turn. After receiving the conflict inspection message, each collection device clears its own number; after the monitoring device recovers the conflict inspection message, it executes step 1);

[0008] 3) The monitoring device sends normal inspection messages to the ring network, and the collection devices receive and transmit the normal inspection messages in turn. After receiving the normal inspection message, the numbered collection device adds its own number to the normal inspection message; after receiving the normal inspection message, the unnumbered collection device selects an unused number as its own number, and adds this number to the normal inspection message, and finally sends the normal inspection message with each collection device number added to it to the monitoring device; each collection device generates its own source MAC address according to its own number.

[0009] Its beneficial effects are: in order to solve the problem that manual setting and troubleshooting of the source MAC addresses of each device in the ring network is prone to errors and inefficiency, the present invention automatically detects collection devices with conflicting numbers by sending messages of different states to the unidirectional ring network, and renumbers the devices, so that the collection device generates its own source MAC address according to its own number and enters a normal working mode, thereby sending its own collected data to the monitoring device and responding to the control commands issued by the monitoring device, thereby improving production efficiency and reducing the possibility of errors.

[0010] Furthermore, in step 1), the monitoring device starts timing from the time when the initial inspection message is sent. If the initial inspection message is not received within the specified time, the monitoring device continues to maintain the initial inspection state and sends the initial inspection message.

[0011] Its beneficial effects are: preventing the collection devices in the ring network from being disconnected or some collection devices from powering on slowly, causing the monitoring device to be unable to normally recover the initial inspection message, so that each collection device cannot work normally, which can effectively improve production efficiency and reduce error rates.

[0012] Furthermore, in step 2), the monitoring device starts timing from the time when the conflict inspection message is sent. If the conflict inspection message is not received within the specified time, the monitoring device continues to maintain the conflict inspection state and sends the conflict inspection message.

[0013] The beneficial effect is to prevent the situation in which the collection devices in the ring network are disconnected or some collection devices are powered on slowly, resulting in the monitoring device being unable to normally recover conflicting inspection messages, so that each collection device cannot work normally, thereby improving production efficiency and reducing the possibility of errors.

[0014] Furthermore, in step 3), the monitoring device starts timing from the time when the normal inspection message is sent. If the normal inspection message is not received within the specified time, the monitoring device switches to the initial inspection state and sends the initial inspection message.

[0015] The beneficial effect is to prevent the situation in the ring network where the collection devices are disconnected or some collection devices are powered on slowly, resulting in the monitoring device being unable to normally recover normal inspection messages, so that each collection device cannot work normally.

[0016] In order to solve the above technical problems, the present invention also provides a new energy station acquisition monitoring system, which includes a monitoring device and multiple acquisition devices, the multiple acquisition devices are sequentially connected to form a ring network, and are connected to the monitoring device through a ring network switching device; the system is characterized in that the following method is used to generate the source MAC address of each device:

[0017] 1) The monitoring device sends an initial inspection message to the ring network. The collection devices in the ring network receive and transmit the initial inspection message in turn. The collection devices that have been assigned numbers add their own numbers to the initial inspection message and send it to the monitoring device. The monitoring device determines whether there is a conflict in the numbers of each collection device based on the recovered initial inspection message. If there is a conflict, step 2) is executed; if there is no conflict, step 3) is executed;

[0018] 2) The monitoring device sends a conflict inspection message to the ring network, and the collection devices receive and transmit the conflict inspection messages in turn. After receiving the conflict inspection message, each collection device clears its own number; after the monitoring device recovers the conflict inspection message, it executes step 1);

[0019] 3) The monitoring device sends normal inspection messages to the ring network, and the collection devices receive and transmit the normal inspection messages in turn. After receiving the normal inspection message, the numbered collection device adds its own number to the normal inspection message; after receiving the normal inspection message, the unnumbered collection device selects an unused number as its own number, and adds this number to the normal inspection message, and finally sends the normal inspection message with each collection device number added to it to the monitoring device; each collection device generates its own source MAC address according to its own number.

[0020] Its beneficial effects are: in order to solve the problem that manual setting and troubleshooting of the source MAC addresses of each device in the ring network is prone to errors and inefficiency, the present invention, based on the above system, automatically detects collection devices with conflicting numbers by sending messages of different states to the unidirectional ring network, and renumbers the devices, so that the collection device generates its own source MAC address according to its own number and enters a normal working mode, thereby sending its own collected data to the monitoring device and responding to the control commands issued by the monitoring device, thereby improving production efficiency and reducing the possibility of errors.

[0021] Furthermore, in step 1), the monitoring device starts timing from the time when the initial inspection message is sent. If the initial inspection message is not received within the specified time, the monitoring device continues to maintain the initial inspection state and sends the initial inspection message.

[0022] The beneficial effects are: preventing the collection devices in the ring network from being disconnected or some collection devices from powering on slowly, causing the monitoring device to be unable to normally recover the initial inspection message, so that each collection device cannot work normally, and can reduce the error rate.

[0023] Furthermore, in step 2), the monitoring device starts timing from the time when the conflict inspection message is sent. If the conflict inspection message is not received within the specified time, the monitoring device continues to maintain the conflict inspection state and sends the conflict inspection message.

[0024] Its beneficial effects are: preventing the situation in the ring network where the collection devices are disconnected or some collection devices are powered on slowly, resulting in the monitoring device being unable to normally recover conflicting inspection messages, so that each collection device cannot work normally, thereby reducing the possibility of errors and ensuring the stable operation of the system.

[0025] Furthermore, in step 3), the monitoring device starts timing from the time when the normal inspection message is sent. If the normal inspection message is not received within the specified time, the monitoring device switches to the initial inspection state and sends the initial inspection message.

[0026] The beneficial effect is to prevent the collection devices in the ring network from being disconnected or some collection devices from powering on slowly, which causes the monitoring device to be unable to normally recover normal inspection messages, so that each collection device cannot work normally, thereby ensuring the stable operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a schematic topology diagram of a new energy station ring network system of the prior art of the present invention;

[0028] Figure 2 It is a schematic diagram of switching between inspection states of the monitoring device of the present invention;

[0029] Figure 3 It is a flow chart of switching between inspection states of the monitoring device of the present invention;

[0030] Figure 4 It is a flow chart of inspection of the monitoring device of the present invention. DETAILED DESCRIPTION

[0031] The basic concept of the present invention is: the monitoring device sends an initial inspection message, the collection device adds its own number to the initial inspection message, and finally reports it to the monitoring device; if the monitoring device detects a number conflict from the received initial inspection message, it sends a conflict inspection message, the collection device clears its own number after receiving the conflict inspection message, and reports the conflict inspection message to the monitoring device; after receiving the conflict inspection message, the monitoring device sends the initial inspection message again, repeating the above steps until no number conflict is detected from the initial inspection message, the monitoring device sends a normal inspection message, the collection device without a number selects an unused number and the collection device with a number both add their own number to the initial inspection message, and the monitoring device generates its own source MAC address after receiving the normal inspection message to enter the normal working mode. Based on this concept, a new energy station ring network system and a ring network source MAC automatic generation method of the present invention can be realized.

[0032] The present invention will be described in detail below with reference to the accompanying drawings and method embodiments.

[0033] System Example:

[0034] A new energy station ring network system of the present invention includes a monitoring device and multiple collection devices, the multiple collection devices are serially connected to form a ring network, and the monitoring device is connected to the ring network through a ring network switching device; wherein the monitoring device is used to send various messages to the ring network and recover the sent messages, and the collection device is used to perform related operations according to the received messages.

[0035] Based on the above system, a ring network source MAC automatic generation method is adopted to automatically detect the number of each acquisition device and automatically generate the ring network source MAC, so as to solve the problem that the source MAC address of each device in the ring network is prone to error and low efficiency when it is manually set and checked. The specific implementation steps are as follows (wherein, the switching between the inspection states of the monitoring device is as follows Figure 2 and Figure 3 As shown, the inspection flow chart of the monitoring device of the present invention is as follows Figure 4 shown):

[0036] Step 1: The monitoring device sends and receives an initial inspection message to the collection device to detect whether there is a number conflict in the collection device.

[0037] After power-on, the monitoring device switches to the initial inspection state, such as Figure 2As shown in process 1, the initial inspection message is sent to the ring network through the ring network switch. After receiving the initial inspection message, the collection device in the ring network determines whether it has been assigned a number. If it has been assigned a number, the number is added to the end of the initial inspection message and the initial inspection message is sent to the next collection device; if the number has not been assigned, the initial inspection message is only forwarded; finally, the initial inspection message is input into the monitoring device through the ring network switch to determine whether there is a conflict in the number of the collection device in the initial inspection message. If there is a conflict, execute step 2; if there is no conflict, execute step 3.

[0038] Step 2: The monitoring device sends and receives conflict inspection messages to the collection device, and all collection devices in the ring network clear their own numbers.

[0039] After the monitoring device determines that there is a conflict in the number in the initial inspection message, it switches to the conflict inspection state, such as Figure 2 As shown in process 3 in the figure, the conflict inspection message is sent to the ring network through the ring network switch. After receiving the conflict inspection message, the collection device clears its own number and sends the conflict inspection message to the next collection device. Finally, the conflict inspection message is input into the monitoring device through the ring network switch, and step 1 is executed again, such as Figure 2 This is shown in process 7.

[0040] Step 3: The monitoring device sends and receives normal inspection messages to the collection device, and each collection device sends a service message through the ring network switch.

[0041] After the monitoring device determines that there is no conflict in the number in the initial inspection message, it switches to the normal inspection state, such as Figure 2 As shown in process 2, the normal inspection message is sent to the ring network through the ring network switch. After receiving the normal inspection message, if the collection device does not have a number, it selects an unused number as its own number, and adds this number to the end of the normal inspection message to indicate that the number has been used and forwarded to the next collection device; if it already has a number, it adds the number to the end of the normal inspection message and sends the message to the next collection device; finally, the normal inspection message is input into the monitoring device through the ring network switch; after receiving the normal inspection message, the collection device generates its own source MAC address according to the number, enters the normal working mode, sends the collected data to the monitoring device, and responds to the control command issued by the monitoring device.

[0042] Among them, after the monitoring device switches to the initial inspection state and sends the initial inspection message, if it does not receive the initial inspection message within 10s, it will continue to maintain the initial inspection state and send the initial inspection message. Figure 2As shown in process 4; if the monitoring device switches to the conflict inspection state and sends the conflict inspection message and does not receive the conflict inspection message within 10s, the current conflict inspection state is maintained and the conflict inspection message is sent, such as Figure 2 As shown in process 8; the monitoring device switches to the normal inspection state and sends a normal inspection message. If no normal inspection message is received within 10 seconds, it switches to the initial inspection state, such as Figure 2 As shown in process 6, the initial inspection message is sent; after the monitoring device switches to the normal inspection state and sends the normal inspection message, the normal inspection message is recovered, the current normal inspection state is maintained, and the normal inspection message is sent, such as Figure 2 This is shown in process 5.

[0043] In this embodiment, if the monitoring device does not receive the inspection message within 10 seconds after sending the corresponding message in each state, it switches or maintains the current state. The time is not limited to 10 seconds, and the time can also be set according to the specific situation.

[0044] The present invention automatically detects collection devices with conflicting numbers by sending messages of different states to a unidirectional ring network, and renumbers these devices, so that the collection devices can operate normally, send the data collected by themselves to a monitoring device, and respond to control commands issued by the monitoring device, thereby solving various hidden dangers and inconveniences in manual allocation of source MAC in a ring network, improving production efficiency, and reducing the possibility of errors.

[0045] Method Example:

[0046] A method for automatically generating a ring network source MAC in the present invention automatically detects a collection device with a conflicting number by sending messages of different states to a unidirectional ring network, and renumbers the device so that the collection device generates its own source MAC address according to its own number and enters a normal working mode, thereby sending its own collected data to a monitoring device. The method has been described in detail in the system embodiment and will not be repeated here.

Claims

1. A method for automatically generating a ring network source MAC, characterized in that: The steps include: 1) The monitoring device sends an initial inspection message to the ring network. The collection devices in the ring network receive and transmit the initial inspection message in turn. The collection devices that have been assigned numbers add their own numbers to the initial inspection message and send it to the monitoring device. The monitoring device determines whether there is a conflict in the numbers of each collection device based on the recovered initial inspection message. If there is a conflict, step 2) is executed; If there is no conflict, go to step 3); 2) The monitoring device sends a conflict inspection message to the ring network, and the collection devices receive and transmit the conflict inspection message in turn. After receiving the conflict inspection message, each collection device clears its own number; After the monitoring device receives the conflict inspection message, it executes step 1); 3) The monitoring device sends a normal inspection message to the ring network, and the collection devices receive and transmit the normal inspection message in turn. After receiving the normal inspection message, the numbered collection device adds its own number to the normal inspection message; after receiving the normal inspection message, the collection device without a number selects an unused number as its own number and adds this number to the normal inspection message. Finally, the normal inspection message with each collection device number added is sent to the monitoring device; Each collection device generates its own source MAC address according to its own number.

2. The method for automatically generating a ring network source MAC according to claim 1, characterized in that: In step 1), the monitoring device starts timing from sending the initial inspection message. If the initial inspection message is not received within the specified time, the monitoring device continues to maintain the initial inspection state and sends the initial inspection message.

3. The method for automatically generating a ring network source MAC according to claim 1, characterized in that: In step 2), the monitoring device starts timing from the time when the conflict inspection message is sent. If the conflict inspection message is not received within the specified time, the monitoring device continues to maintain the conflict inspection state and sends the conflict inspection message.

4. The method for automatically generating a ring network source MAC according to claim 1, characterized in that: In step 3), the monitoring device starts timing from the time when a normal inspection message is sent. If no normal inspection message is received within the specified time, the monitoring device switches to the initial inspection state and sends an initial inspection message.

5. A new energy station acquisition monitoring system, the system includes a monitoring device and multiple acquisition devices, the multiple acquisition devices are sequentially connected to form a ring network, and are connected to the monitoring device through a ring network switching device; characterized in that: The system is used to generate the source MAC address of each device using the following method: 1) The monitoring device sends an initial inspection message to the ring network. The collection devices in the ring network receive and transmit the initial inspection message in turn. The collection devices that have been assigned numbers add their own numbers to the initial inspection message and send it to the monitoring device. The monitoring device determines whether there is a conflict in the numbers of each collection device based on the recovered initial inspection message. If there is a conflict, step 2) is executed; If there is no conflict, go to step 3); 2) The monitoring device sends a conflict inspection message to the ring network, and the collection devices receive and transmit the conflict inspection message in turn. After receiving the conflict inspection message, each collection device clears its own number; After the monitoring device receives the conflict inspection message, it executes step 1); 3) The monitoring device sends a normal inspection message to the ring network, and the collection devices receive and transmit the normal inspection message in turn. After receiving the normal inspection message, the numbered collection device adds its own number to the normal inspection message; after receiving the normal inspection message, the collection device without a number selects an unused number as its own number and adds this number to the normal inspection message. Finally, the normal inspection message with each collection device number added is sent to the monitoring device; Each collection device generates its own source MAC address according to its own number.

6. The new energy station acquisition monitoring system according to claim 5 is characterized in that: In step 1), the monitoring device starts timing from sending the initial inspection message. If the initial inspection message is not received within the specified time, the monitoring device continues to maintain the initial inspection state and sends the initial inspection message.

7. The new energy station acquisition monitoring system according to claim 5 is characterized in that: In step 2), the monitoring device starts timing from the time when the conflict inspection message is sent. If the conflict inspection message is not received within the specified time, the monitoring device continues to maintain the conflict inspection state and sends the conflict inspection message.

8. The new energy station acquisition monitoring system according to claim 5 is characterized in that: In step 3), the monitoring device starts timing from the time when a normal inspection message is sent. If no normal inspection message is received within the specified time, the monitoring device switches to the initial inspection state and sends an initial inspection message.

Citation Information

Patent Citations

  • Automatic numbering system for localized distributed protection management host and numbering method thereof

    CN108667661A

  • MAC address maintenance method and related equipment

    CN110971720A

  • New energy station panoramic monitoring system, communication configuration method and test point alignment method

    CN115622240A

  • Mac address forwarding table updating method and device of ring network node

    WO2017124725A1

  • Method of processing hash collision, device, switch apparatus, and data storage medium

    WO2018036457A1