Method and device for identifying physical position of photovoltaic power generation system
By resetting and monitoring the equipment in the photovoltaic power generation system, the relative physical location of the equipment is solved, and the problem that some equipment does not support MAC address reading is achieved, and the accurate identification of all equipment locations and the determination of network structure is achieved.
Patent Information
- Application Number
- CN202411933588.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-11
AI Technical Summary
In existing photovoltaic power generation systems, some devices do not support reading the MAC address of the next device directly connected to it, resulting in the inability to determine the relative physical location of the device.
By resetting the random target equipment in the photovoltaic power generation system, the network status switching information of each device is obtained, and the direct connection equipment of the random target equipment is determined based on this information, and its relative physical location is recorded. Repeat any device except the device that has determined the relative physical position as the new random target device, and repeat the above steps until the relative physical position of all devices is determined.
Without the need for each device to support reading the MAC address of the directly connected device, the relative physical locations of all devices in the photovoltaic power generation system can be accurately determined and the networking architecture can be determined based on these locations.
Smart Images

Figure CN119814577A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of photovoltaic power generation systems, and in particular, relates to a method and device for identifying the physical position of a photovoltaic power generation system. Background Art
[0002] At present, the method of determining the relative physical location of a device usually depends on the functional characteristics of the device. For example, network communication chips (such as Ethernet chips) produced by some manufacturers support reading the MAC address of the next network communication chip directly connected to it. Because the MAC address is bound to the physical location of the device, the relative physical location of the device can be determined by analyzing the MAC address. However, not all network communication chips support this function, and the above method may have the problem of being unable to determine the relative physical location of each device. Summary of the invention
[0003] The embodiments of the present application provide a method and device for identifying the physical position of a photovoltaic power generation system, which can solve the technical problem that the existing method for determining the relative physical position of a device usually relies on the functional characteristics of the device, and some devices that do not support the functional characteristics cannot determine the relative physical position of the device.
[0004] In a first aspect, an embodiment of the present application provides a method for identifying a physical location of a photovoltaic power generation system, comprising:
[0005] After resetting the random target device in the photovoltaic power generation system, obtaining network status switching information of each device in the photovoltaic power generation system;
[0006] Determine a directly connected device of the random target device according to the network state switching information, and use the relative physical position of the random target device and the directly connected device as the relative physical position of the random target device;
[0007] Any device in the photovoltaic power generation system other than the device whose relative physical position has been determined is taken as the random target device, and the above steps are repeated until the relative physical position of each device in the photovoltaic power generation system is determined.
[0008] In a possible implementation manner of the first aspect, determining the directly connected device of the random target device according to the network state switching information includes:
[0009] The device corresponding to the port that meets the preset condition is used as the directly connected device; wherein the preset condition is that the network state switching information of the port within a preset time period is connected state, unplugged state and connected state in sequence.
[0010] In a possible implementation manner of the first aspect, the method further includes:
[0011] Determining and identifying the relative physical locations of all devices in the photovoltaic power generation system according to the number of devices in the photovoltaic power generation system;
[0012] Alternatively, after all devices in the photovoltaic power generation system are reset and no new relative physical positions are identified, it is determined that the relative physical positions of all devices in the photovoltaic power generation system are identified.
[0013] In a possible implementation manner of the first aspect, the method further includes:
[0014] Determine the network architecture based on the relative physical locations of each device.
[0015] In a possible implementation manner of the first aspect, determining the networking architecture according to the relative physical positions of the devices includes:
[0016] When it is determined based on the relative physical positions of the devices that there is one and only one link, the networking architecture is determined to be a serial networking architecture.
[0017] In a possible implementation manner of the first aspect, determining the networking architecture according to the relative physical positions of the devices includes:
[0018] When multiple links are determined based on the relative physical locations of the devices, the port status of the devices at both ends of each link is obtained;
[0019] If both ports of a device at one end of each link are in an access state, and one port of a device at the other end is in an access state, then it is determined that the networking architecture is a parallel networking architecture.
[0020] In a possible implementation manner of the first aspect, determining the networking architecture according to the relative physical positions of the devices includes:
[0021] When it is determined that there is a loop based on the relative physical positions of the devices, the networking architecture is determined to be a ring network architecture.
[0022] In a possible implementation manner of the first aspect, determining the networking architecture according to the relative physical positions of the devices includes:
[0023] When only one device among all the devices is in the connected state and all the devices in the photovoltaic power generation system communicate with each other normally, it is determined that the networking architecture is a star topology architecture.
[0024] In a second aspect, an embodiment of the present application provides a physical position identification device for a photovoltaic power generation system, comprising:
[0025] A reset module, used to obtain network status switching information of each device in the photovoltaic power generation system after resetting a random target device in the photovoltaic power generation system;
[0026] A position determination module, used to determine a directly connected device of the random target device according to the network state switching information, and use the relative physical position of the random target device and the directly connected device as the relative physical position of the random target device;
[0027] The loop module is used to take any device in the photovoltaic power generation system except the device whose relative physical position has been determined as the random target device, and repeatedly execute the above steps until the relative physical position of each device in the photovoltaic power generation system is determined.
[0028] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for identifying the physical position of a photovoltaic power generation system described in any one of the first aspects above is implemented.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the physical position identification method of the photovoltaic power generation system described in any one of the first aspects above is implemented.
[0030] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device executes the method for identifying the physical location of a photovoltaic power generation system described in any one of the first aspects above.
[0031] In the embodiment of the present application, after resetting the random target device in the photovoltaic power generation system, the network state switching information of each device in the photovoltaic power generation system is obtained, and the directly connected device of the random target device is determined according to the network state switching information, and the relative physical position of the random target device and the directly connected device is used as the relative physical position of the random target device, and any device in the photovoltaic power generation system other than the device whose relative physical position has been determined is used as the random target device, and the above steps are repeated until the relative physical position of each device in the photovoltaic power generation system is determined. Among them, since during the resetting of the random target device, only the directly connected device will detect the change of the network state, therefore, by detecting the switching of the network state, it is possible to determine which devices are directly connected to the random target device, and the relative physical position of the random target device and its directly connected device is recorded, and by using any device other than the device whose relative physical position has been determined as the new random target device, and repeating the above steps, the entire network can be recursively traversed, thereby determining the relative physical position of all devices, and it is not necessary for each device to support reading the MAC address of the next device directly connected to it, so that the relative physical position of all devices can be effectively and accurately determined.
[0032] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be 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 any creative work.
[0034] Figure 1 is a schematic flow chart of a method for identifying a physical position of a photovoltaic power generation system provided in an embodiment of the present application;
[0035] Figure 2 is a schematic flow chart of a method for identifying a physical position of a photovoltaic power generation system provided in another embodiment of the present application;
[0036] Figures 3-1 to 3-3 This is a schematic diagram of a networking architecture provided by an embodiment of the present application;
[0037] Figures 4-1 to 4-4 This is a schematic diagram of a networking architecture provided by another embodiment of the present application;
[0038] Figures 5-1 to 5-3 This is a schematic diagram of a networking architecture provided by yet another embodiment of the present application;
[0039] Figures 6-1 to 6-2is a schematic diagram of a networking architecture provided by another embodiment of the present application;
[0040] Figure 7 is a schematic diagram of the structure of a physical position identification device for a photovoltaic power generation system provided in an embodiment of the present application;
[0041] Figure 8 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0043] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0044] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0045] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0046] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0047] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0048] Figure 1 A schematic flow chart of a method for identifying a physical position of a photovoltaic power generation system provided in an embodiment of the present application is shown.
[0049] S101, after resetting a random target device in the photovoltaic power generation system, obtaining network status switching information of each device in the photovoltaic power generation system.
[0050] The equipment in the photovoltaic power generation system includes but is not limited to: photovoltaic inverters, energy storage inverters, photovoltaic storage inverters, energy storage converters, AC charging piles, DC charging piles, energy storage batteries, data collectors, intelligent power distribution cabinets, etc. The various devices in the system are connected to the same local area network through network cables, and the devices contain network communication chips (such as Ethernet chips) to achieve network communication.
[0051] The random target device mentioned above refers to any device in the photovoltaic power generation system.
[0052] The above reset includes resetting the device or resetting the Ethernet chip of the device. In addition to resetting the random target device, the network communication link of the random target device can also be disconnected through a controllable switch.
[0053] The network status switching information indicates the change in the status of the device's port (also known as an interface or socket), which can be detected by a network monitoring tool. The network status switching information may include an access status and an unplugged status. The access status indicates that the device is connected to the network normally, such as when a network cable is plugged into the device port. The unplugged status indicates that the communication between the device and the network is interrupted, such as when a network cable is unplugged from the device port.
[0054] S102: Determine a directly connected device of the random target device according to the network state switching information, and use the relative physical position of the random target device and the directly connected device as the relative physical position of the random target device.
[0055] Directly connected devices refer to those devices that are directly connected to random target devices through physical connections (such as network cables). Directly connected devices can communicate with random target devices directly over the network without going through other intermediate devices. Directly connected devices may include network switches.
[0056] The relative physical position describes the relative layout of two or more devices in space, including the positional relationship of the devices. The relative physical position of the random target device and the directly connected device in the above text indicates the position of the random target device relative to the directly connected device in physical space. In the network topology, the random target device and the directly connected device form a connection pair, and the connection between them can be a link in a serial networking architecture or a branch in a parallel networking architecture.
[0057] The relative physical position of the random target device and the directly connected device is taken as the relative physical position of the random target device. For example, the directly connected device (such as a data collector) of the random target device (such as a photovoltaic inverter) is determined, and then the relative physical position between the photovoltaic inverter and the data collector is determined, and the relative physical position is regarded as the relative physical position of the photovoltaic inverter.
[0058] In an optional embodiment, determining a directly connected device of the random target device according to the network status switching information includes: using a device corresponding to a port that meets a preset condition as the directly connected device.
[0059] The above preset condition is that the network status switching information of the port in the preset period is connected state, unplugged state and connected state in sequence. Because when the random target device is reset, only the device directly connected to it will show this specific state change. Therefore, the device corresponding to the port that meets the preset condition is used as the direct connection device of the random target device.
[0060] In the embodiment of the present application, a network monitoring tool is used to continuously monitor the network port status of all devices in the photovoltaic power generation system. A reset operation is performed on a random target device, and the port network status changes (i.e., network status switching information) of each device are recorded. Ports whose network status is displayed as "connected state", "unplugged state" and "connected state" in a preset time period are identified. The devices corresponding to the ports that meet the above state switching sequence are identified as directly connected devices.
[0061] S103, taking any device in the photovoltaic power generation system except the device whose relative physical position has been determined as the random target device, and repeating the above steps until the relative physical position of each device in the photovoltaic power generation system is determined.
[0062] In the embodiment of the present application, after the relative physical position of the random target device (assuming device A) is determined, any device other than device A (assuming device B) is used as the random target device again, and after device B is reset, the network status switching information of each device in the photovoltaic power generation system is obtained again, and then, according to the network status switching information, the directly connected device of device B (device C) is determined, and the relative physical position of device B and device C is used as the relative physical position of device B. After that, the above steps are repeated, and any device other than device A and device B (assuming device D) is used as the random target device again, and device D is reset, etc., until the relative physical positions of all devices in the photovoltaic power generation system are determined.
[0063] In an optional embodiment, in the step of using any device other than the device whose relative physical position has been determined in the photovoltaic power generation system as the random target device, the arbitrary device may be a currently determined directly connected device. For ease of understanding, the above example is used for explanation. When the relative physical position of the random target device (assuming device A) is determined, the directly connected device of device A here is device F. Any device other than device A (which may be device F) is used as a random target device again.
[0064] In an optional embodiment, the method for determining the relative physical positions of all devices in a photovoltaic power generation system includes:
[0065] Determining and identifying the relative physical locations of all devices in the photovoltaic power generation system according to the number of devices in the photovoltaic power generation system;
[0066] Alternatively, after all devices in the photovoltaic power generation system are reset and no new relative physical positions are identified, it is determined that the relative physical positions of all devices in the photovoltaic power generation system are identified.
[0067] In an embodiment of the present application, it is assumed that the number n of devices in the photovoltaic power generation system is known in advance, and the steps of obtaining network status switching information of each device in the photovoltaic power generation system after resetting the random target device in the photovoltaic power generation system are repeatedly performed, determining the directly connected device of the random target device according to the network status switching information, and taking the relative physical position of the random target device and the directly connected device as the relative physical position of the random target device, and resetting any device in the photovoltaic power generation system except the device whose relative physical position has been determined as the random target device again, until n relative physical positions are determined, which indicates that the relative physical positions of all devices in the photovoltaic power generation system are determined.
[0068] Alternatively, without knowing the number n of devices in the photovoltaic power generation system in advance, the relative physical positions of all devices in the photovoltaic power generation system are determined until each device in the photovoltaic power generation system is reset and no new relative physical positions are identified.
[0069] In an embodiment of the present application, after resetting the random target device in the photovoltaic power generation system, the network state switching information of each device in the photovoltaic power generation system is obtained, and the directly connected device of the random target device is determined according to the network state switching information, and the relative physical position of the random target device and the directly connected device is used as the relative physical position of the random target device, and any device in the photovoltaic power generation system other than the device whose relative physical position has been determined is used as the random target device, and the above steps are repeated until the relative physical position of each device in the photovoltaic power generation system is determined. Among them, since during the resetting of the random target device, only the directly connected device will detect the change of the network state, therefore, by detecting the switching of the network state, it is possible to determine which devices are directly connected to the random target device, and the relative physical position of the random target device and its directly connected device is recorded, and by using any device other than the device whose relative physical position has been determined as the new random target device, and repeating the above steps, the entire network can be recursively traversed, thereby determining the relative physical position of all devices, and it is not necessary for each device to support reading the MAC address of the next device directly connected to it, so that the relative physical position of all devices can be effectively and accurately determined.
[0070] In the prior art, the devices in the photovoltaic power generation system may be connected in a linear sequence through network cables to form a serial network architecture, or they may be connected through network switch devices to form a parallel network architecture. In various complex situations, it becomes more difficult to identify the network architecture and the relative physical location of the devices. In order to solve this problem, Figure 2 A schematic flow chart of a method for identifying the physical position of a photovoltaic power generation system provided in another embodiment of the present application is shown.
[0071] S201, after resetting a random target device in the photovoltaic power generation system, obtaining network status switching information of each device in the photovoltaic power generation system.
[0072] The relevant description of S201 refers to the relevant description of S101 in the previous embodiment, which will not be repeated here.
[0073] S202: Determine a directly connected device of the random target device according to the network state switching information, and use the relative physical position of the random target device and the directly connected device as the relative physical position of the random target device.
[0074] The relevant description of S202 refers to the relevant description of S102 in the previous embodiment, which will not be repeated here.
[0075] S203, taking any device in the photovoltaic power generation system except the device whose relative physical position has been determined as the random target device, and repeating the above steps until the relative physical position of each device in the photovoltaic power generation system is determined.
[0076] The relevant description of S203 refers to the relevant description of S103 in the previous embodiment, which will not be repeated here.
[0077] S204: Determine a network architecture according to the relative physical locations of the devices.
[0078] The network architecture refers to the organization and connection mode of devices (nodes) in the network, which can also be called the network topology architecture, including but not limited to: serial network architecture, parallel network architecture, ring network architecture, and star topology architecture.
[0079] In the embodiments of the present application, the physical layout (i.e., relative physical location) of the devices generally corresponds to their logical connection mode (network architecture). Therefore, after determining the relative physical locations of all devices, the network architecture of the entire group of devices can be determined based on the relative physical locations.
[0080] In the embodiment of the present application, there are four main situations in which the network architecture is determined based on the relative physical positions of the devices. Specifically:
[0081] In case one, when it is determined based on the relative physical positions of the devices that there is only one link, the networking architecture is determined to be a serial networking architecture.
[0082] Among them, the serial networking architecture usually refers to the devices in the network being connected in a linear order to form a chain structure. In this architecture, each device is usually directly connected only to the previous and next devices, and data is transmitted sequentially between devices.
[0083] For situation 1, in order to facilitate understanding of the determination method of relative physical position and networking architecture, it is explained here in conjunction with Figure 3. As shown in Figure 3, taking 5 devices as an example, after the photovoltaic power generation system completes networking, it is identified that there are 5 devices in the photovoltaic power generation system, and the network status of all devices can be monitored, and they are all connected. Device 1 is selected as the control unit, which will be responsible for monitoring and initiating reset instructions. Device 3 is selected as the first device to be reset, and a reset instruction is issued to device 3. Device 1 reads the network status switching information of all devices in the system. During this process, the network status switching information of device 1 and device 4 changes from connected state to unplugged state in a short time, and then quickly recovers to connected state, that is, device 1 and device 4 are devices directly connected to device 3. After that, continue to reset device 1 and device 5 respectively. When resetting device 1, device 1 reads the network status switching information of device 2, which changes from connected state to unplugged state in a short time, and then quickly recovers to connected state, then it can be determined that device 1 and device 2 are directly connected. When resetting device 5, device 1 reads the network status switching information of device 4, which changes from connected state to unplugged state in a short time, and then quickly recovers to connected state, so it can be determined that device 5 is directly connected to device 4. After analysis, the relative physical positions of all devices have been obtained, there is only one serial networking link in the local area network, and the networking architecture is a serial networking architecture.
[0084] In the second case, when it is determined that there are multiple links based on the relative physical positions of each device, the port status of the devices at both ends of each link is obtained; if both ports of the device at one end of each link are in the access state, and one port of the device at the other end is in the access state, then the networking architecture is determined to be a parallel networking architecture.
[0085] For situation 2, in order to facilitate understanding of the determination method of relative physical location and network architecture, Figures 4-1 to 4-4 For explanation. Figure 4-1 As shown, taking 5 devices as an example, after the photovoltaic power generation system completes networking, it is identified that there are 5 devices in the photovoltaic power generation system, and the network status of all devices can be monitored, and they are all connected. Device 1 is selected as the control unit, which will be responsible for monitoring and initiating reset instructions. Device 3 is selected as the first device to be reset, and a reset instruction is issued to device 3. Device 1 reads the network status switching information of all devices in the system. During this process, the network status switching information of device 1 and device 4 changes from connected state to unplugged state in a short time, and then quickly recovers to connected state, that is, device 1 and device 4 are devices directly connected to device 3 (such as Figure 4-2). After that, continue to reset device 1 and device 5 respectively. When resetting device 1 and device 5, no network status switching information is found to meet the preset conditions. When resetting device 2, it is observed that the network status switching information of device 4 changes from connected state to unplugged state in a short time, and then quickly recovers to connected state. The relative physical locations of the five known devices are as follows Figure 4-3 As shown. At this time, it is found that there are two serial networking links in the local area network, and the port status of the devices at both ends of each link is further read. Taking device 1 and device 2 as an example, it is read that the two port states of device 1 and device 2 are both connected, while only one of the ports of device 4 and device 5 is connected. It can be concluded that device 1 and device 2 are not only connected to the devices in the photovoltaic power generation system, but also connected to the network switch. The relative physical position relationship of the entire photovoltaic power generation system is as follows: Figure 4-4 As shown. After analysis, the network status switching information of all devices has been obtained. There are two serial networking links in the local area network, which is a parallel networking architecture. In particular, if the network switch is a device such as a data collector that can communicate, the network communication chip of each port of the data collector can be reset in turn to further obtain the relative physical position and networking architecture of each device in the photovoltaic power generation system.
[0086] The network switch mentioned above includes a router with a switch function.
[0087] In case three, when it is determined that there is a loop based on the relative physical positions of the devices, the network architecture is determined to be a ring network architecture.
[0088] For situation 3, in order to facilitate understanding of the determination method of relative physical location and network architecture, Figures 5-1 to 5-3 For explanation. Figure 5-1 As shown, taking 5 devices as an example, after the photovoltaic power generation system completes networking, it is identified that there are 5 devices in the photovoltaic power generation system, and the network status of all devices can be monitored, and they are all connected. Device 1 is selected as the control unit, which will be responsible for monitoring and initiating reset instructions. Device 3 is selected as the first device to be reset, and a reset instruction is issued to device 3. Device 1 reads the network status switching information of all devices in the system. During this process, the network status switching information of device 1, device 4 and device 5 changes from connected state to unplugged state in a short time, and then quickly recovers to connected state, that is, device 1, device 4 and device 5 are devices directly connected to device 3 (such as Figure 5-2 After that, reset device 1 and observe that the network status switching information of device 2 changes from connected state to unplugged state in a short time, and then quickly recovers to connected state. Continue to reset device 2 and observe that the network status switching information of device 4 changes from connected state to unplugged state in a short time, and then quickly recovers to connected state. The relative physical locations of the five known devices are as follows: Figure 5-3 After analysis, the network status switching information of all devices has been obtained, and the local area network has a ring network architecture.
[0089] In case 4, when only one device among all devices is in the connected state and all devices in the photovoltaic power generation system communicate with each other normally, it is determined that the networking architecture is a star topology architecture.
[0090] For situation 4, in order to facilitate understanding of the determination method of relative physical location and network architecture, Figures 6-1 to 6-2 For explanation. Figure 6-1 As shown, taking 5 devices as an example, after the photovoltaic power generation system completes networking, it is identified that there are 5 devices in the photovoltaic power generation system, and the network status of all devices can be monitored, and they are all connected. Device 1 is selected as the control unit, which will be responsible for monitoring and initiating reset instructions. Device 3 is selected as the first device to be reset, and a reset instruction is issued to device 3. Device 1 reads the network status switching information of all devices in the system. During this process, the network status switching information of other devices has not changed. The remaining devices in the photovoltaic power generation system are reset in turn, and it is found that when resetting device 1, device 2, device 4 and device 5, the network status switching information of the devices has not changed. After analysis, the network status switching information of all devices has been obtained, and all devices have only one port in the connected state, and all devices in the photovoltaic power generation system communicate with each other normally. Then, each device in the photovoltaic power generation system is separately connected to the network switch and networked through the network switch. The relative physical position and networking architecture of the photovoltaic power generation system are shown in the figure. Figure 6-2 , which is a star topology architecture.
[0091] It should be noted that the above-described directly connected devices may include network switches. However, network switches are not devices in the photovoltaic power generation system and do not directly affect the functions of the photovoltaic power generation system. Therefore, what needs to be determined in the above is that all devices in the photovoltaic power generation system communicate with each other normally, and there is no need to determine whether the network switch communicates normally.
[0092] Optionally, the above-mentioned method for identifying the physical location and network architecture of the photovoltaic power generation system needs to be initiated by a control unit, which can be any device in the photovoltaic power generation system or a mobile phone app, and can adopt an automatic initiation mode. The control unit reads the port status of all devices. In the initialization state, except for the devices at both ends, the ports of each device are in the connected state.
[0093] Among them, in the automatic initiation mode, in addition to initiating identification at a preset time interval, it can also be set to be automatically initiated by the photovoltaic power generation system after the photovoltaic power generation system recognizes that the networking is completed.
[0094] Among them, as mentioned above, after selecting the control unit, it is also necessary to select a random target device as the first device to be reset, and starting from the first device to be reset, control the on and off of the device's network communication, such as making it reset its own network communication chip in some way, including but not limited to controlling the power supply of the network communication chip through the I / O port to reset it, interacting with the network communication chip through software to reset or reinitialize it, resetting the relevant power supply of the device or circuit where the network communication chip is located, etc.
[0095] Optionally, the device has one or more ports for connecting to other devices, which can be controlled by one switch chip or multiple Ethernet chips. If the device has multiple Ethernet chips, each Ethernet chip needs to be reset separately.
[0096] In summary, in the embodiment of the present application, after resetting the random target device in the photovoltaic power generation system, the network state switching information of each device in the photovoltaic power generation system is obtained, and the direct-connected device of the random target device is determined according to the network state switching information, and the relative physical position of the random target device and the direct-connected device is used as the relative physical position of the random target device, and any device in the photovoltaic power generation system other than the device whose relative physical position has been determined is used as the random target device, and the above steps are repeated until the relative physical position of each device in the photovoltaic power generation system is determined. Among them, since during the resetting of the random target device, only the direct-connected device will detect the change of the network state, therefore, by detecting the switching of the network state, it is possible to determine which devices are directly connected to the random target device, and the relative physical position of the random target device and its directly connected device is recorded, and by using any device other than the device whose relative physical position has been determined as the new random target device, and repeating the above steps, the entire network can be recursively traversed, thereby determining the relative physical position of all devices, and it is not necessary for each device to support reading the MAC address of the next device directly connected to it, so that the relative physical position of all devices can be effectively and accurately determined. Furthermore, after determining the relative physical positions of all devices, the networking architecture of the entire group of devices can be determined based on the relative physical positions. The solution of the present application does not limit the network communication chip to have the function of reading the MAC address of the adjacent connected device, does not limit all devices to use the same model of network communication chip, supports Ethernet chips and switch chips at the same time, and does not introduce additional information bound to the device, and does not introduce additional auxiliary devices or physical interfaces. The relative physical positions and networking architecture of all devices can be effectively and accurately determined.
[0097] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0098] Corresponding to the physical location identification method of the photovoltaic power generation system described in the above embodiment, Figure 7 A structural block diagram of a physical position identification device for a photovoltaic power generation system provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0099] Reference Figure 7 , the physical position identification device of the photovoltaic power generation system includes:
[0100] A reset module, used to obtain network status switching information of each device in the photovoltaic power generation system after resetting a random target device in the photovoltaic power generation system;
[0101] A position determination module, used to determine a directly connected device of the random target device according to the network state switching information, and use the relative physical position of the random target device and the directly connected device as the relative physical position of the random target device;
[0102] The loop module is used to take any device in the photovoltaic power generation system except the device whose relative physical position has been determined as the random target device, and repeatedly execute the above steps until the relative physical position of each device in the photovoltaic power generation system is determined.
[0103] In a possible implementation, the location determination module is used to:
[0104] The device corresponding to the port that meets the preset condition is used as the directly connected device; wherein the preset condition is that the network state switching information of the port within a preset time period is connected state, unplugged state and connected state in sequence.
[0105] In a possible implementation, the location determination module is used to:
[0106] Determining and identifying the relative physical locations of all devices in the photovoltaic power generation system according to the number of devices in the photovoltaic power generation system;
[0107] Alternatively, after all devices in the photovoltaic power generation system are reset and no new relative physical positions are identified, it is determined that the relative physical positions of all devices in the photovoltaic power generation system are identified.
[0108] In a possible implementation, the physical location identification device of the photovoltaic power generation system further includes an architecture determination module, which is used to:
[0109] Determine the network architecture based on the relative physical locations of each device.
[0110] In a possible implementation, the architecture determination module is used to:
[0111] When it is determined based on the relative physical positions of the devices that there is one and only one link, the networking architecture is determined to be a serial networking architecture.
[0112] In a possible implementation, the architecture determination module is used to:
[0113] When multiple links are determined based on the relative physical locations of the devices, the port status of the devices at both ends of each link is obtained;
[0114] If both ports of a device at one end of each link are in an access state, and one port of a device at the other end is in an access state, then it is determined that the networking architecture is a parallel networking architecture.
[0115] In a possible implementation, the architecture determination module is used to:
[0116] When it is determined that there is a loop based on the relative physical positions of the devices, the networking architecture is determined to be a ring network architecture.
[0117] In a possible implementation, the architecture determination module is used to:
[0118] When only one device among all the devices is in the connected state and all the devices in the photovoltaic power generation system communicate with each other normally, it is determined that the networking architecture is a star topology architecture.
[0119] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0120] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0121] An embodiment of the present application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.
[0122] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0123] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device can implement the steps in the above-mentioned method embodiments when executing the computer device.
[0124] Figure 8 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Figure 8 As shown, the computer device of this embodiment includes: at least one processor 20 ( Figure 8 Only one is shown), a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, wherein the processor 20 implements the steps in any of the above-mentioned embodiments of the method for identifying the physical position of the photovoltaic power generation system when executing the computer program 22.
[0125] The computer device may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Figure 8 It is only an example of a computer device and does not constitute a limitation of the computer device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0126] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0127] In some embodiments, the memory 21 may be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 21 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory 21 may also include both an internal storage unit of the computer device and an external storage device. The memory 21 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 21 may also be used to temporarily store data that has been output or is to be output.
[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / computer device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0129] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0130] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0131] In the embodiments provided in the present application, it should be understood that the disclosed apparatus / computer equipment and methods can be implemented in other ways. For example, the apparatus / computer equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which can be electrical, mechanical or other forms.
[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for identifying the physical location of a photovoltaic power generation system, characterized in that: include: After resetting the random target device in the photovoltaic power generation system, obtaining network status switching information of each device in the photovoltaic power generation system; Determine a directly connected device of the random target device according to the network state switching information, and use the relative physical position of the random target device and the directly connected device as the relative physical position of the random target device; Any device in the photovoltaic power generation system other than the device whose relative physical position has been determined is taken as the random target device, and the above steps are repeated until the relative physical position of each device in the photovoltaic power generation system is determined.
2. The method for identifying the physical position of a photovoltaic power generation system according to claim 1, characterized in that: The determining, according to the network state switching information, a directly connected device of the random target device comprises: The device corresponding to the port that meets the preset condition is used as the directly connected device; wherein the preset condition is that the network state switching information of the port within a preset time period is connected state, unplugged state and connected state in sequence.
3. The method for identifying the physical location of a photovoltaic power generation system according to claim 1, characterized in that: The method further comprises: Determining and identifying the relative physical locations of all devices in the photovoltaic power generation system according to the number of devices in the photovoltaic power generation system; Alternatively, after all devices in the photovoltaic power generation system are reset and no new relative physical positions are identified, it is determined that the relative physical positions of all devices in the photovoltaic power generation system are identified.
4. The method for identifying the physical location of a photovoltaic power generation system according to claim 1, wherein: The method further comprises: Determine the network architecture based on the relative physical locations of each device.
5. The method for identifying the physical position of a photovoltaic power generation system according to claim 4, characterized in that: Determining the networking architecture according to the relative physical positions of the devices includes: When it is determined based on the relative physical positions of the devices that there is one and only one link, the networking architecture is determined to be a serial networking architecture.
6. The method for identifying the physical position of a photovoltaic power generation system according to claim 4, characterized in that: Determining the networking architecture according to the relative physical positions of the devices includes: When multiple links are determined based on the relative physical locations of the devices, the port status of the devices at both ends of each link is obtained; If both ports of a device at one end of each link are in an access state, and one port of a device at the other end is in an access state, then it is determined that the networking architecture is a parallel networking architecture.
7. The method for identifying the physical position of a photovoltaic power generation system according to claim 4, characterized in that: Determining the networking architecture according to the relative physical positions of the devices includes: When it is determined that there is a loop according to the relative physical positions of the devices, the networking architecture is determined to be a ring network architecture.
8. The method for identifying the physical position of a photovoltaic power generation system according to claim 4, characterized in that: Determining the networking architecture according to the relative physical positions of the devices includes: When only one device among all devices is in the connected state and all devices in the photovoltaic power generation system communicate with each other normally, it is determined that the networking architecture is a star topology architecture.
9. A physical location identification device for a photovoltaic power generation system, characterized in that: include: A reset module, used to obtain network status switching information of each device in the photovoltaic power generation system after resetting a random target device in the photovoltaic power generation system; A position determination module, used to determine a directly connected device of the random target device according to the network state switching information, and use the relative physical position of the random target device and the directly connected device as the relative physical position of the random target device; The loop module is used to take any device in the photovoltaic power generation system except the device whose relative physical position has been determined as the random target device, and repeatedly execute the above steps until the relative physical position of each device in the photovoltaic power generation system is determined.
10. A computer program product, characterized in that A computer program product, when the computer program product is run on a computer device, causes the computer device to execute the method according to any one of claims 1 to 8.