[go: up one dir, main page]

WO2024240082A1 - Network distribution method and apparatus for energy storage system, and computer device - Google Patents

Network distribution method and apparatus for energy storage system, and computer device Download PDF

Info

Publication number
WO2024240082A1
WO2024240082A1 PCT/CN2024/093918 CN2024093918W WO2024240082A1 WO 2024240082 A1 WO2024240082 A1 WO 2024240082A1 CN 2024093918 W CN2024093918 W CN 2024093918W WO 2024240082 A1 WO2024240082 A1 WO 2024240082A1
Authority
WO
WIPO (PCT)
Prior art keywords
energy storage
network
distribution
wireless communication
communication module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/093918
Other languages
French (fr)
Chinese (zh)
Inventor
刘炜
谭海锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Rimsea Technology Co Ltd
Original Assignee
Guangzhou Rimsea Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Rimsea Technology Co Ltd filed Critical Guangzhou Rimsea Technology Co Ltd
Publication of WO2024240082A1 publication Critical patent/WO2024240082A1/en
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions

Definitions

  • the present disclosure relates to the technical field of Internet of Things distribution network, and in particular to a distribution network method, device, computer equipment, computer-readable storage medium and computer program product for an energy storage system.
  • IoT InoT technology, various IoT devices such as smart furniture, smart tools and smart devices have emerged one after another, and they are connected and controlled through IoT technology, allowing users to easily control these IoT devices remotely through mobile phones and other terminal devices. Now there is a demand to control energy storage systems through IoT, which requires the ability to distribute energy storage systems and connect them remotely.
  • the objectives of the present disclosure include: providing a network distribution method, apparatus, computer equipment, computer-readable storage medium and computer program product for an energy storage system that can improve the convenience of network distribution of the energy storage system.
  • the present disclosure provides a network distribution method for an energy storage system, wherein the energy storage system includes an energy storage main device and an energy storage sub-device; the method includes:
  • the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module
  • Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;
  • the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data;
  • the network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.
  • controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data includes:
  • Control the energy storage master device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution instruction to the terminal device through the first wireless communication module;
  • the network configuration information being information sent by the terminal device when receiving the network configuration instruction, the network configuration information including a network name and a network password;
  • the energy storage master device is controlled to perform network distribution according to the network distribution information.
  • controlling the energy storage master device to perform network distribution according to the network distribution information includes:
  • the third wireless communication module of the energy storage master device is controlled to establish a communication connection with the cloud server according to the network distribution information.
  • controlling the second wireless communication module of the energy storage main device to establish a connection with a corresponding energy storage sub-device according to the distribution network demand data includes:
  • the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.
  • controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data includes:
  • the second wireless communication module of the energy storage master device is controlled to broadcast a handshake request;
  • the handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device;
  • network configuration information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the network configuration information includes a network name and a network password.
  • the first wireless communication module is an NFC module
  • the second wireless communication module is a Bluetooth module.
  • controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and sending the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module includes:
  • Control the energy storage master device to switch to the network distribution mode according to the instruction to enter the network distribution mode, and control the energy storage master device to perform network distribution according to the network distribution demand data in the network distribution mode;
  • a network configuration success indication will be generated as the network configuration result information of the energy storage master device, and sent to the terminal device through the first wireless communication module.
  • controlling the energy storage master device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and sending the network distribution instruction to the terminal device through the first wireless communication module includes:
  • Control the energy storage master device to switch to the network distribution mode according to the instruction to enter the network distribution mode, and verify the device parameters of the energy storage master device according to the network distribution demand data in the network distribution mode;
  • the energy storage master device If the device parameter verification of the energy storage master device is passed, the energy storage master device is controlled to enter a network distribution state, and a network distribution instruction is sent to the terminal device through the first wireless communication module.
  • the device parameters of the energy storage sub-device included in the network distribution demand data are encrypted and transmitted parameters; and the authenticity verification of the network distribution demand data includes:
  • the decrypted device parameters of the energy storage sub-device are verified for authenticity.
  • the present disclosure also provides a distribution network device for an energy storage system, the device comprising:
  • a network distribution request module configured to obtain a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;
  • the slave network distribution module is configured to control the second wireless communication module of the energy storage master device to establish a connection with the corresponding energy storage sub-device according to the network distribution demand data if the network distribution of the energy storage master device is successful and the network distribution demand data includes the device parameters of the energy storage sub-device;
  • the network configuration feedback module is configured to obtain the network configuration result information of the energy storage sub-device, and send the network configuration result information of the energy storage sub-device to the terminal device through the first wireless communication module.
  • the present disclosure also provides a computer device.
  • the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module
  • the network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.
  • the present disclosure also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
  • the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module
  • Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;
  • the network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.
  • the present disclosure also provides a computer program product.
  • the computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
  • the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module
  • Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;
  • the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data;
  • the network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.
  • an energy storage system includes an energy storage main device and an energy storage sub-device, and an interaction between the energy storage main device and the terminal device is established through a first wireless communication module to perform network distribution of the energy storage main device. After the energy storage main device is networked, a communication connection is established between the energy storage main device and the corresponding energy storage sub-device through a second wireless communication module according to network distribution demand data, so that the energy storage sub-device can be networked by interacting with the energy storage main device.
  • the beneficial effects of the present disclosure include: the terminal device only needs to perform a network distribution operation once to perform network distribution with the energy storage main device and the corresponding energy storage sub-device, avoiding repeated operations, and greatly improving the convenience of network distribution of the energy storage system.
  • FIG1 is an application environment diagram of a first energy storage system distribution method provided by an embodiment of the present disclosure
  • FIG2 is a schematic diagram of a flow chart of a network distribution method for an energy storage system provided in an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a first flow chart of controlling the energy storage master device to perform network distribution steps according to the network distribution mode entry instruction and network distribution demand data provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a second flow chart of controlling the energy storage master device to perform network distribution steps according to the network distribution mode entry instruction and network distribution demand data provided by an embodiment of the present disclosure
  • FIG. 6 is a flow chart of steps for controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the distribution network demand data provided by an embodiment of the present disclosure
  • FIG. 7 is a flow chart of steps for controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the distribution network demand data after verification provided by an embodiment of the present disclosure
  • FIG8 is a schematic flow chart of a network distribution method for an energy storage system in a single network distribution mode provided by an embodiment of the present disclosure
  • FIG9 is a structural block diagram of a distribution network device of an energy storage system provided in an embodiment of the present disclosure.
  • FIG. 10 is a diagram showing the internal structure of a computer device provided in an embodiment of the present disclosure.
  • Icons 102-terminal device; 104-energy storage master device; 106-energy storage sub-device; 108-cloud server; 902-network distribution request module; 904-master network distribution module; 906-slave network distribution module; 908-network distribution feedback module.
  • first, second, etc. used in the present disclosure may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element.
  • a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
  • connection in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
  • the energy storage system includes an energy storage main device 104 and an energy storage sub-device 106.
  • the terminal device 102 communicates with the cloud server 108 through the network.
  • the terminal device 102 interacts with the control chip of the energy storage main device 104 through the first wireless communication module of the energy storage main device 104 to realize the network distribution of the energy storage main device 104.
  • the energy storage main device 104 is connected to the cloud server 108, which is considered to be completed.
  • the network distribution of the energy storage sub-device 106 can be realized through the second wireless communication module of the energy storage main device 104.
  • the terminal device 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart car-mounted devices, etc.
  • Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.
  • the number of energy storage sub-devices 106 can be one or more.
  • FIG. 2 it is a schematic flow chart of a network distribution method for an energy storage system provided in an embodiment of the present disclosure, and the method is described by taking the control chip of the energy storage main device 104 in FIG. 1 as an example, including the following steps:
  • Step 202 Acquire the network distribution mode entry instruction and network distribution demand data transmitted by the first wireless communication module of the energy storage master device.
  • the terminal device needs to download and install the APP (Application) corresponding to the energy storage system.
  • the APP will request the user to authorize some permissions of the terminal device to the APP.
  • the APP will prompt on the terminal device whether to perform network configuration.
  • the terminal device will send the energy storage main device an instruction to enter the network configuration mode and network configuration demand data.
  • the first wireless communication module of the energy storage main device senses and obtains the instruction to enter the network configuration mode and the network configuration demand data sent by the terminal device, and transmits them to the control chip of the energy storage main device.
  • the user is not limited to the way in which the energy storage main device and energy storage sub-device that need to be networked are selected.
  • the user may select the energy storage main device and energy storage sub-device by inputting the product authorization unique code of each energy storage main device and energy storage sub-device as the network distribution demand data.
  • the product authorization unique code is a unique identification code of each energy storage main device and energy storage sub-device, also known as a token, which is generated using an encryption algorithm.
  • the encryption process is as follows:
  • the product authorization unique code is the unique identification code corresponding to the energy storage main device and energy storage sub-device in the energy storage system
  • the product authorization unique code token is uploaded to the cloud server.
  • the product authorization unique code token will be issued only when the user owns the energy storage main device or energy storage sub-device to ensure the security of the energy storage main device or energy storage sub-device.
  • the communication mode between the first wireless communication module and the control chip is a UART (Universal Asynchronous Receiver/Transmitter) communication mode.
  • the UART communication mode has asynchronous full-duplex and parity check bit functions, and can transmit multiple bits of data together, with high transmission efficiency, effectively reducing the interaction time of the distribution network and improving the interaction success rate of the distribution network.
  • Step 204 controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and sending the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module.
  • the control chip of the energy storage master device controls the energy storage master device to switch to the network distribution mode, and controls the energy storage master device to perform network distribution according to the network distribution demand data in the network distribution mode. Regardless of whether the network distribution is successful, the network distribution result information of the energy storage master device is sent to the terminal device through the first wireless communication module.
  • the control chip of the energy storage master device when the energy storage master device is in the network distribution mode, when the energy storage master device is controlled to perform network distribution according to the network distribution demand data, if the network distribution fails, the control chip of the energy storage master device will generate a network distribution failure data packet as the network distribution result information of the energy storage master device, and the network distribution failure data packet includes a network distribution failure indication and network distribution failure cause data.
  • the control chip sends the network distribution failure data packet to the terminal device through the first wireless communication module, and the terminal device parses the network distribution failure data packet, and displays the network distribution failure indication and the parsed network distribution failure cause on the display module of the terminal device, so that the user can view the failure cause and adjust the network distribution demand data according to the failure cause.
  • the control chip of the energy storage master device When the energy storage master device is in the network distribution mode, when the energy storage master device is controlled to perform network distribution according to the network distribution demand data, if the network distribution is successful, the control chip of the energy storage master device will generate a network distribution success indication as the network distribution result information of the energy storage master device, and send it to the terminal device through the first wireless communication module.
  • Step 206 If the energy storage main device is successfully networked, and the network distribution requirement data includes device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data.
  • a network configuration success indication is generated as the network configuration result information of the energy storage main device, and is sent to the terminal device through the first wireless communication module.
  • the control chip analyzes the network configuration demand data. If the network configuration demand data only includes the device parameters of the energy storage main device, the network configuration is completed. If the network configuration demand data includes the device parameters of the energy storage sub-device in addition to the device parameters of the energy storage main device, the control chip of the energy storage main device controls the second wireless communication module of the energy storage main device to establish a connection with the energy storage sub-device corresponding to the network configuration demand data according to the network configuration demand data, so that the energy storage sub-device can also be networked.
  • the energy storage sub-device includes a fourth wireless communication module corresponding to the second wireless communication module, and the fourth wireless communication module is configured to establish a communication connection with the second wireless communication module.
  • the fourth wireless communication module and the second wireless communication module can be communication modules of the same type to facilitate communication.
  • Step 208 Acquire the network configuration result information of the energy storage sub-device, and send the network configuration result information of the energy storage sub-device to the terminal device through the first wireless communication module.
  • the connection may be successful or failed.
  • the control chip of the energy storage main device will obtain the network configuration result information of the energy storage sub-device and send it to the terminal device through the first wireless communication module.
  • control chip of the energy storage main device controls the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the network distribution demand data
  • the control chip of the energy storage main device will generate a connection failure data packet as the network distribution result information of the energy storage sub-device, and the connection failure data packet includes the energy storage sub-device connection failure indication and connection failure reason data.
  • the control chip sends the connection failure data packet to the terminal device through the first wireless communication module.
  • the terminal device will parse the connection failure data packet and display the energy storage sub-device connection failure indication and the parsed connection failure reason on the display module of the terminal device, so that the user can view the failure reason and adjust the network distribution demand data according to the failure reason.
  • control chip of the energy storage main device controls the energy storage main device according to the network distribution demand data
  • the control chip of the energy storage main device will generate an indication of successful connection of the energy storage sub-device as the network configuration result information of the energy storage sub-device, and send it to the terminal device through the first wireless communication module.
  • the energy storage system includes an energy storage main device and an energy storage sub-device, and the interaction between the energy storage main device and the terminal device is established through the first wireless communication module to perform network distribution of the energy storage main device.
  • a communication connection is established between the energy storage main device and the corresponding energy storage sub-device through the second wireless communication module according to the network distribution demand data, so that the energy storage sub-device can be networked by interacting with the energy storage main device.
  • the terminal device only needs to perform the network distribution operation once to perform network distribution with the energy storage main device and the corresponding energy storage sub-device, avoiding repeated operations, which greatly improves the convenience of network distribution of the energy storage system.
  • controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data in step 204 includes steps 302 , 304 and 306 .
  • the network distribution demand data may include the equipment parameters of the energy storage master device, and may also include the equipment parameters of the energy storage sub-device, etc.
  • step 302 only the equipment parameters of the energy storage master device in the network distribution demand data need to be used.
  • the control chip of the energy storage master device verifies the equipment parameters of the energy storage master device according to the network distribution demand data, optionally, the control chip of the energy storage master device verifies according to the equipment parameters of the energy storage master device in the network distribution demand data.
  • Step 304 Acquire network configuration information transmitted by the first wireless communication module.
  • the network used by the terminal device may be an external network to which the terminal device is connected, or may be a network sent by the terminal device itself, such as WiFi, a personal hotspot, or a portable hotspot.
  • control chip of the energy storage master device controls the energy storage master device to connect to the network according to the network name and network password in the network distribution information. Since the network is the network used by the terminal device, the energy storage master device and the terminal device are in the same network environment and can be connected to the same cloud server to achieve network distribution of the energy storage master device. After the energy storage master device is connected to the network, the network distribution is completed. At this time, the terminal device can control the energy storage master device in the networked state through the cloud server or other network methods to achieve remote control.
  • step 306 includes step 402 .
  • Step 602 verify the authenticity of the distribution network demand data.
  • Step 604 If the verification is successful, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.
  • the result of the authenticity verification may be passed or failed.
  • the control chip of the energy storage main device controls the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the distribution network demand data after verification.
  • the corresponding energy storage sub-device is the energy storage sub-device corresponding to the device parameters of the energy storage sub-device after verification.
  • the control chip of the energy storage main device controls the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the device parameters of the part of the energy storage sub-devices that have passed the verification.
  • connection requirements of the terminal device are confirmed by verifying the authenticity of the distribution network demand data, and after successful verification, a connection is established with the corresponding energy storage sub-device through the second wireless communication module, thereby ensuring that the connected energy storage sub-device is correct and improving the distribution network accuracy of the energy storage system.
  • step 604 the energy storage master device is controlled according to the distribution network demand data after verification.
  • the second wireless communication module establishes a connection with the corresponding energy storage sub-device, including step 702, step 704 and step 706.
  • the handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device.
  • the handshake request broadcast by the second wireless communication module of the energy storage master device includes the network distribution demand data after verification, that is, the device parameters of the corresponding energy storage sub-device.
  • the device parameter is used as an identification code of the energy storage sub-device (if the device parameter is a product authorization unique code, it is the unique identification code of the energy storage sub-device) to select the corresponding energy storage sub-device.
  • the second wireless communication module of the energy storage master device broadcasts a handshake request, only energy storage sub-devices that match the device parameters of the energy storage sub-device contained in the network distribution demand data after verification can participate in the handshake.
  • Step 704 Receive the handshake result fed back by the second wireless communication module.
  • the corresponding energy storage sub-device responds to the handshake request broadcast by the second wireless communication module of the energy storage main device, and after participating in the handshake, regardless of whether the handshake is successful, the energy storage sub-device will feedback the handshake result to the second wireless communication module, which is then sent to the control chip of the energy storage main device by the second wireless communication module.
  • the handshake result indicates whether the communication connection between the energy storage main device and the energy storage sub-device is successful.
  • Step 706 If the handshake result indicates that the energy storage main device has successfully established a communication connection with the corresponding energy storage sub-device, the network configuration information is sent to the energy storage sub-device with which the communication connection has been established via the second wireless communication module.
  • the network configuration information includes the network name and network password.
  • the energy storage main device since the energy storage main device has been successfully networked, the energy storage main device has obtained the network distribution information from the terminal device for network distribution.
  • the energy storage main device When the energy storage main device successfully establishes a communication connection with the energy storage sub-device, the energy storage main device sends the network distribution information to the energy storage sub-device that has established a communication connection.
  • the energy storage sub-device includes a fourth wireless communication module configured to establish a communication connection with the energy storage main device.
  • the energy storage sub-device also has a fifth wireless communication module, and the fifth wireless communication module is configured to connect to the network according to the network name and network password in the network distribution information, and connect to the cloud server.
  • the fifth wireless communication module can be a WiFi module.
  • the control chip of the energy storage main device will generate a connection failure data packet as the network distribution result information of the energy storage sub-device, and the connection failure data packet includes the energy storage sub-device connection failure indication and the connection failure reason data.
  • the control chip sends the connection failure data packet to the terminal device through the first wireless communication module, and the terminal device will parse the connection failure data packet, and display the energy storage sub-device connection failure indication and the parsed connection failure reason on the display module of the terminal device, so that the user can view the failure reason and adjust the network distribution demand data according to the failure reason.
  • a communication connection is established with the energy storage sub-device in the network distribution demand data after verification by broadcasting a handshake request, and the communication establishment status is confirmed based on the handshake result fed back by the energy storage sub-device, so that the network distribution accuracy of the energy storage sub-device in the energy storage system can be ensured.
  • the energy storage master device transmits the network distribution information to the energy storage sub-device with which the communication connection is successfully established, without limiting the number of energy storage sub-devices, and when multiple energy storage sub-devices are networked, batch network distribution of energy storage sub-devices can be quickly achieved.
  • the first wireless communication module is an NFC module
  • the second wireless communication module is a Bluetooth module.
  • NFC Near Field Communication
  • the first wireless communication module is the NFC module, which can ensure the high confidentiality and security of data transmission when the terminal device communicates with the energy storage main device.
  • the Bluetooth module is small in size, low in power consumption, easy to install and has a wide communication frequency band.
  • the second wireless communication module adopts a Bluetooth module, which is convenient for the communication connection matching between the energy storage main device and the energy storage sub-device.
  • the Bluetooth connection can establish a temporary peer-to-peer connection, it is conducive to realizing a one-to-one or one-to-many connection relationship between the energy storage main device and the energy storage sub-device based on the distribution network demand data.
  • the terminal device is connected to the energy storage system, and the terminal device is a mobile phone.
  • the energy storage system includes an energy storage main device and an energy storage sub-device.
  • the energy storage main device includes a first wireless communication module, a second wireless communication module, a third wireless communication module and a control chip.
  • the first wireless communication module is an NFC module
  • the second wireless communication module is a Bluetooth module
  • the third wireless communication module is a WiFi module
  • the control chip is an MCU chip.
  • the energy storage sub-device includes a fourth wireless communication module and a fifth wireless communication module.
  • the fourth wireless communication module is a Bluetooth module
  • the fifth wireless communication module is a WiFi module.
  • the Bluetooth module of the energy storage main device and the Bluetooth module of the energy storage sub-device are connected to realize the communication connection between the energy storage main device and the energy storage sub-device.
  • the WiFi module of the energy storage main device and the WiFi module of the energy storage sub-device are configured to connect to the network connected to the mobile phone and to connect to the cloud server.
  • the mobile phone Before network configuration, the mobile phone needs to download and install the APP corresponding to the energy storage system and authorize the APP. After confirming the authorization of the mobile phone, when the mobile phone enters the NFC module sensing range of the energy storage main device, the APP will pop up the corresponding network configuration guidance interface, guiding the user to enter the product authorization unique code of the energy storage main device and energy storage sub-device to be connected, and enter the network configuration information.
  • the above product authorization unique codes are the network configuration demand data.
  • the network configuration demand mode includes a single network configuration mode and a batch network configuration mode.
  • the network configuration demand data only includes the product authorization unique code of the energy storage main device, and only the network configuration of the energy storage main device is realized.
  • the network configuration demand data includes the product authorization unique code of the energy storage main device and the required energy storage sub-device, and the network configuration of the energy storage main device and the required energy storage sub-device is realized.
  • the mobile phone sends the command to enter the network configuration mode and the network configuration demand data to the NFC module of the energy storage main device.
  • the MCU chip of the energy storage main device After the MCU chip of the energy storage main device receives the command to enter the network configuration mode, it controls the energy storage main device to switch to the network configuration mode, and performs key verification on the product authorization unique code of the energy storage main device in the network configuration demand data in the network configuration mode.
  • the encryption and decryption process can be found in the above-mentioned record of the public key encryption algorithm RSA, which will not be repeated here. If the verification is successful, the energy storage main device enters the network configuration state, and sends the network configuration command to the mobile phone through the NFC module. After receiving the network configuration instruction, the mobile phone will organize the network configuration information and send it to the NFC module, and the NFC module will then send the network configuration information to the MCU chip.
  • the MCU chip of the energy storage master device After receiving the network configuration information, the MCU chip of the energy storage master device will send the network configuration information to the WiFi module of the energy storage master device.
  • the WiFi module connects to the network according to the network name and network password in the network configuration information, and connects to the cloud server to complete the network configuration of the energy storage master device and switch the energy storage master device to exit the network configuration mode.
  • the network configuration result information of the energy storage master device is sent to the mobile phone through the NFC module.
  • the network configuration result information can be that the network configuration is successfully completed, or that the network configuration is not completed due to a fault or other reasons in the middle (if the initial network configuration fails, the mobile phone and the energy storage master device will try to configure the network multiple times, and the network configuration is considered to be incomplete only when multiple attempts to configure the network fail.). If the user selects a single network configuration mode, that is, the network configuration demand data only contains the product authorization unique code of the energy storage master device, then all network configuration steps have been completed. The specific steps in the single network configuration mode are shown in Figure 8.
  • the network configuration of the energy storage sub-device begins.
  • the MCU chip of the energy storage main device performs key verification on the product authorization unique code of the energy storage sub-device in the network configuration demand data to verify its authenticity and accuracy.
  • the encryption and decryption process can be found in the above-mentioned record of the public key encryption algorithm RSA, which will not be repeated here.
  • the Bluetooth module of the energy storage main device is controlled to broadcast a Bluetooth handshake request based on the network configuration demand data after verification, requesting to establish a Bluetooth connection with the energy storage sub-device corresponding to the product authorization unique code.
  • the Bluetooth module of the energy storage main device broadcasts a Bluetooth handshake request, only the energy storage sub-device that matches the product authorization unique code of the energy storage sub-device after verification can participate in the handshake.
  • the Bluetooth module of the corresponding energy storage sub-device responds to the Bluetooth handshake request broadcast by the Bluetooth module of the energy storage main device and participates in the handshake.
  • the signature of the Bluetooth handshake request is generated by encrypting the key obtained from the instruction manual in the packaging box of the energy storage sub-device to be connected according to the operation instructions when the mobile phone registers the APP for the first time. Regardless of whether the handshake is successful or not, the energy storage sub-device will feedback the handshake result to the Bluetooth module of the energy storage main device through its own Bluetooth module, and then transmit it to the MCU chip of the energy storage main device. The handshake result represents the connection between the energy storage main device and the energy storage sub-device. Whether the Bluetooth communication connection is successful.
  • the energy storage main device will send the network configuration information to the Bluetooth module of the energy storage sub-device that has established a communication connection through the Bluetooth module of the energy storage main device.
  • the WiFi module of the energy storage sub-device that has established a communication connection connects to the network according to the network name and network password in the network configuration information, and connects to the cloud server to complete the network configuration of the energy storage main device and the energy storage sub-device.
  • the energy storage devices in the energy storage system are networked conveniently and safely based on NFC control.
  • the energy storage system has a reasonable and simple structure, and the user operation is simple and convenient.
  • Multiple energy storage devices can be networked by performing a network connection operation once using a mobile phone, which greatly improves the convenience of network connection of the energy storage system.
  • steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
  • the embodiment of the present disclosure also provides a network distribution device for an energy storage system for implementing the network distribution method of the energy storage system involved above.
  • the implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the network distribution device for one or more energy storage systems provided below can refer to the limitations of the network distribution method for the energy storage system above, and will not be repeated here.
  • FIG9 it is a structural block diagram of a network distribution device of an energy storage system provided in an embodiment of the present disclosure, including: a network distribution request module 902, a host network distribution module 904, a slave network distribution module 906 and a network distribution feedback module 908, wherein:
  • the network distribution request module 902 is configured to obtain the network distribution mode entry instruction and network distribution demand data transmitted by the first wireless communication module of the energy storage master device.
  • the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module.
  • the host network distribution module 904 is configured to control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module.
  • the slave network configuration module 906 is configured to control the second wireless communication module of the energy storage master device to establish a connection with the corresponding energy storage sub-device according to the network configuration requirement data if the energy storage master device is successfully networked and the network configuration requirement data includes device parameters of the energy storage sub-device.
  • the network configuration feedback module 908 is configured to obtain the network configuration result information of the energy storage sub-device, and send the network configuration result information of the energy storage sub-device to the terminal device through the first wireless communication module.
  • the host network distribution module 904 is configured to control the energy storage main device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution instruction to the terminal device through the first wireless communication module; obtain the network distribution information transmitted by the first wireless communication module, the network distribution information is the information sent by the terminal device when it receives the network distribution instruction, and the network distribution information includes the network name and the network password; control the energy storage main device to perform network distribution according to the network distribution information.
  • the host network distribution module 904 is configured to control the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the network distribution information.
  • the slave network distribution module 906 is configured to verify the authenticity of the network distribution demand data; if the verification is successful, the second wireless communication module of the energy storage master device is controlled to establish a connection with the corresponding energy storage sub-device according to the verified network distribution demand data.
  • the slave network distribution module 906 is configured to control the second wireless communication module of the energy storage master device to broadcast a handshake request based on the verified network distribution demand data; the handshake request is configured to request the corresponding storage master device to send a handshake request to the second wireless communication module of the energy storage master device.
  • the energy storage main device establishes a communication connection with the corresponding energy storage sub-device; receives a handshake result fed back by the second wireless communication module; if the handshake result indicates that the energy storage main device has successfully established a communication connection with the corresponding energy storage sub-device, the network configuration information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the network configuration information includes a network name and a network password.
  • the first wireless communication module is an NFC module
  • the second wireless communication module is a Bluetooth module.
  • Each module in the distribution network device of the above energy storage system can be implemented in whole or in part by software, hardware, and a combination thereof.
  • Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
  • the embodiment of the present disclosure also provides a computer device, which can be a terminal, and its internal structure diagram can be shown in Figure 10.
  • the computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit and an input device.
  • the processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface.
  • the processor of the computer device is configured to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium.
  • the input/output interface of the computer device is configured to exchange information between the processor and an external device.
  • the communication interface of the computer device is configured to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies.
  • WIFI wireless fidelity
  • NFC near field communication
  • the present disclosure also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
  • the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module
  • Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;
  • the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network connection requirement data;
  • the network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.
  • the following steps are also implemented: according to the instruction to enter the network distribution mode and the network distribution demand data, the energy storage main device is controlled to enter the network distribution state, and the network distribution instruction is sent to the terminal device through the first wireless communication module; the network distribution information transmitted by the first wireless communication module is obtained, and the network distribution information is the information sent by the terminal device when it receives the network distribution instruction, and the network distribution information includes the network name and the network password; according to the network distribution information, the energy storage main device is controlled to perform network distribution.
  • the processor executes the computer program, the following steps are also implemented: controlling the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the distribution network information.
  • the processor executes the computer program, the following steps are also implemented: verifying the authenticity of the distribution network demand data; if the verification is successful, controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.
  • the processor executes the computer program, the following steps are further implemented: based on the verified distribution network demand data, the second wireless communication module of the energy storage master device is controlled to broadcast a handshake request; the handshake request is configured A communication connection is established between the energy storage main device and the corresponding energy storage sub-device; a handshake result fed back by the second wireless communication module is received; if the handshake result indicates that a communication connection is successfully established between the energy storage main device and the corresponding energy storage sub-device, network configuration information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the network configuration information includes a network name and a network password.
  • the first wireless communication module is an NFC module
  • the second wireless communication module is a Bluetooth module.
  • the present disclosure also provides a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored on a computer-readable storage medium.
  • the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module
  • the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network connection requirement data;
  • the network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.
  • the following steps are also implemented: controlling the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the distribution network information.
  • the following steps are also implemented: verifying the authenticity of the distribution network demand data; if the verification is successful, controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.
  • the following steps are also implemented: based on the verified distribution network demand data, the second wireless communication module of the energy storage main device is controlled to broadcast a handshake request; the handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device; the handshake result fed back by the second wireless communication module is received; if the handshake result indicates that the energy storage main device and the corresponding energy storage sub-device have successfully established a communication connection, the distribution network information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the distribution network information includes a network name and a network password.
  • the first wireless communication module is an NFC module
  • the second wireless communication module is a Bluetooth module.
  • the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module
  • Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;
  • the network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.
  • the following steps are also implemented: controlling the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the distribution network information.
  • the following steps are also implemented: based on the verified distribution network demand data, the second wireless communication module of the energy storage main device is controlled to broadcast a handshake request; the handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device; the handshake result fed back by the second wireless communication module is received; if the handshake result indicates that the energy storage main device and the corresponding energy storage sub-device have successfully established a communication connection, the distribution network information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the distribution network information includes a network name and a network password.
  • the first wireless communication module is an NFC module
  • the second wireless communication module is a Bluetooth module.
  • the user information including but not limited to user device information, user personal information, etc.
  • data including but not limited to data used for analysis, stored data, displayed data, etc.
  • the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
  • any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory.
  • Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc.
  • Volatile memory can include random access memory (RAM) or external cache memory, etc.
  • RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • the database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database.
  • Non-relational databases may include distributed databases based on blockchain, etc., but are not limited to this.
  • the processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to this.
  • the network distribution method, device, computer equipment, computer-readable storage medium and computer program product of the energy storage system provided by the present disclosure can achieve network distribution with the energy storage main device and the corresponding energy storage sub-device only by performing the network distribution operation once by the terminal device, thereby avoiding repeated operations and greatly improving the convenience of network distribution of the energy storage system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The present disclosure relates to a network distribution method and apparatus for an energy storage system, and a computer device, a storage medium and a computer program product. The method comprises: acquiring a network-distribution-mode entering instruction and network-distribution demand data, which are transmitted by a first wireless communication module of a main energy storage device; controlling the main energy storage device to perform network distribution according to the network-distribution-mode entering instruction and the network-distribution demand data, and sending network-distribution result information from the main energy storage device to a terminal device by means of the first wireless communication module; if the main energy storage device succeeds in network distribution, and the network-distribution demand data comprises device parameters of a secondary energy storage device, controlling, according to the network-distribution demand data, a second wireless communication module of the main energy storage device to establish a connection with the corresponding secondary energy storage device; and acquiring network-distribution result information from the secondary energy storage device, and sending the network-distribution result information from the secondary energy storage device to the terminal device by means of the first wireless communication module. By means of the method, the convenience during network distribution for an energy storage system can be greatly improved.

Description

储能系统的配网方法、装置和计算机设备Energy storage system distribution network method, device and computer equipment

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本公开要求于2023年05月19日提交中国专利局的申请号为2023105753641、名称为“储能系统的配网方法、装置和计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims priority to Chinese patent application number 2023105753641, filed with the Chinese Patent Office on May 19, 2023, and entitled “Grid distribution method, device and computer equipment for energy storage system”, the entire contents of which are incorporated by reference in this disclosure.

技术领域Technical Field

本公开涉及物联网配网技术领域,特别是涉及一种储能系统的配网方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。The present disclosure relates to the technical field of Internet of Things distribution network, and in particular to a distribution network method, device, computer equipment, computer-readable storage medium and computer program product for an energy storage system.

背景技术Background Art

随着物联网技术的发展,各式各样的智能家具、智能工具以及智能设备等物联网设备层出不穷,并通过物联网技术实现联网控制,让使用者能够轻松通过手机等终端设备远程控制这些物联网设备。而现在出现了通过物联网对储能系统进行控制的需求,需要能够对储能系统进行配网并远程连接。With the development of IoT technology, various IoT devices such as smart furniture, smart tools and smart devices have emerged one after another, and they are connected and controlled through IoT technology, allowing users to easily control these IoT devices remotely through mobile phones and other terminal devices. Now there is a demand to control energy storage systems through IoT, which requires the ability to distribute energy storage systems and connect them remotely.

传统的物联网技术中,对储能系统进行配网时通常是通过手机WIFI和蓝牙方式,经路由器去添加储能系统中的储能设备从而使储能设备连接网络。但储能系统通常包含多个储能设备,在进行配网时需要对每一个储能设备建立连接,操作繁琐,便利性低。In traditional IoT technology, network distribution for energy storage systems is usually done through mobile phone WIFI and Bluetooth, and energy storage devices in the energy storage system are added through a router so that the energy storage devices can be connected to the network. However, energy storage systems usually contain multiple energy storage devices, and each energy storage device needs to be connected when network distribution is performed, which is cumbersome and inconvenient.

发明内容Summary of the invention

基于此,本公开的目的包括:提供一种能够提高储能系统的配网便利性的储能系统的配网方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, the objectives of the present disclosure include: providing a network distribution method, apparatus, computer equipment, computer-readable storage medium and computer program product for an energy storage system that can improve the convenience of network distribution of the energy storage system.

本公开提供了一种储能系统的配网方法,所述储能系统包括储能主设备和储能子设备;所述方法包括:The present disclosure provides a network distribution method for an energy storage system, wherein the energy storage system includes an energy storage main device and an energy storage sub-device; the method includes:

获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,所述进入配网模式指令为终端设备处于所述第一无线通信模块的感应范围内时发送的指令;Acquire a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;

根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备;Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;

若所述储能主设备配网成功,且所述配网需求数据包括所述储能子设备的设备参数,根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接;If the energy storage main device is successfully networked, and the network distribution requirement data includes device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data;

获取所述储能子设备的配网结果信息,并将所述储能子设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备。The network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.

可选地,所述根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,包括:Optionally, controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data includes:

根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进入配网状态,并通过所述第一无线通信模块发送配网进行指令至所述终端设备;Control the energy storage master device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution instruction to the terminal device through the first wireless communication module;

获取所述第一无线通信模块传输的配网信息,所述配网信息为所述终端设备接收到所述配网进行指令时发送的信息,所述配网信息包括网络名称和网络密码;Acquire network configuration information transmitted by the first wireless communication module, the network configuration information being information sent by the terminal device when receiving the network configuration instruction, the network configuration information including a network name and a network password;

根据所述配网信息控制所述储能主设备进行配网。 The energy storage master device is controlled to perform network distribution according to the network distribution information.

可选地,所述根据所述配网信息控制所述储能主设备进行配网,包括:Optionally, controlling the energy storage master device to perform network distribution according to the network distribution information includes:

根据所述配网信息控制所述储能主设备的第三无线通信模块与云端服务器建立通信连接。The third wireless communication module of the energy storage master device is controlled to establish a communication connection with the cloud server according to the network distribution information.

可选地,所述根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接,包括:Optionally, controlling the second wireless communication module of the energy storage main device to establish a connection with a corresponding energy storage sub-device according to the distribution network demand data includes:

对所述配网需求数据进行真实性验证;Verifying the authenticity of the distribution network demand data;

若验证通过,根据验证通过后的配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接。If the verification is successful, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.

可选地,所述根据验证通过后的配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接,包括:Optionally, the controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data includes:

基于所述验证通过后的配网需求数据控制所述储能主设备的第二无线通信模块广播握手请求;所述握手请求配置成请求与所述对应的储能子设备建立通信连接;Based on the verified distribution network demand data, the second wireless communication module of the energy storage master device is controlled to broadcast a handshake request; the handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device;

接收所述第二无线通信模块反馈的握手结果;receiving a handshake result fed back by the second wireless communication module;

若所述握手结果表征储能主设备与对应的储能子设备成功建立通信连接,通过所述第二无线通信模块发送配网信息至建立了通信连接的储能子设备;所述配网信息包括网络名称和网络密码。If the handshake result indicates that a communication connection is successfully established between the energy storage main device and the corresponding energy storage sub-device, network configuration information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the network configuration information includes a network name and a network password.

可选地,所述第一无线通信模块为NFC模块,所述第二无线通信模块为蓝牙模块。Optionally, the first wireless communication module is an NFC module, and the second wireless communication module is a Bluetooth module.

可选地,所述根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备,包括:Optionally, controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and sending the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module includes:

根据所述进入配网模式指令控制所述储能主设备切换为配网模式,并在配网模式下根据所述配网需求数据控制所述储能主设备进行配网;Control the energy storage master device to switch to the network distribution mode according to the instruction to enter the network distribution mode, and control the energy storage master device to perform network distribution according to the network distribution demand data in the network distribution mode;

若所述储能主设备配网成功,则将生成配网成功指示作为储能主设备的配网结果信息,并通过第一无线通信模块发送至终端设备。If the network configuration of the energy storage master device is successful, a network configuration success indication will be generated as the network configuration result information of the energy storage master device, and sent to the terminal device through the first wireless communication module.

可选地,所述方法还包括:Optionally, the method further comprises:

若所述储能主设备配网失败,则将生成配网失败数据包作为储能主设备的配网结果信息,并通过第一无线通信模块发送至终端设备;所述配网失败数据包包括配网失败指示和配网失败原因数据。If the network configuration of the energy storage master device fails, a network configuration failure data packet will be generated as the network configuration result information of the energy storage master device and sent to the terminal device through the first wireless communication module; the network configuration failure data packet includes a network configuration failure indication and network configuration failure reason data.

可选地,所述根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进入配网状态,并通过所述第一无线通信模块发送配网进行指令至所述终端设备,包括:Optionally, controlling the energy storage master device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and sending the network distribution instruction to the terminal device through the first wireless communication module includes:

根据所述进入配网模式指令控制所述储能主设备切换为配网模式,并在配网模式下根据所述配网需求数据对所述储能主设备的设备参数进行验证;Control the energy storage master device to switch to the network distribution mode according to the instruction to enter the network distribution mode, and verify the device parameters of the energy storage master device according to the network distribution demand data in the network distribution mode;

若所述储能主设备的设备参数验证通过,则控制所述储能主设备进入配网状态,并通过所述第一无线通信模块发送配网进行指令至所述终端设备。If the device parameter verification of the energy storage master device is passed, the energy storage master device is controlled to enter a network distribution state, and a network distribution instruction is sent to the terminal device through the first wireless communication module.

可选地,所述配网需求数据包括的所述储能子设备的设备参数为加密传输的参数;所述对所述配网需求数据进行真实性验证,包括:Optionally, the device parameters of the energy storage sub-device included in the network distribution demand data are encrypted and transmitted parameters; and the authenticity verification of the network distribution demand data includes:

对所述储能子设备的设备参数执行解密操作,得到所述储能子设备的解密后设备参数;Performing a decryption operation on the device parameters of the energy storage sub-device to obtain the decrypted device parameters of the energy storage sub-device;

对所述储能子设备的解密后设备参数进行真实性验证。The decrypted device parameters of the energy storage sub-device are verified for authenticity.

可选地,所述第三无线通信模块为WiFi模块。Optionally, the third wireless communication module is a WiFi module.

本公开还提供了一种储能系统的配网装置,所述装置包括:The present disclosure also provides a distribution network device for an energy storage system, the device comprising:

配网请求模块,配置成获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,所述进入配网模式指令为终端设备处于所述第一无线通信模块的感应范围内时发送的指令;A network distribution request module, configured to obtain a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;

主机配网模块,配置成根据所述进入配网模式指令和所述配网需求数据控 制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备;The host network distribution module is configured to control the network distribution mode according to the network distribution mode entry instruction and the network distribution demand data. Controlling the energy storage master device to perform network configuration, and sending the network configuration result information of the energy storage master device to the terminal device through the first wireless communication module;

从机配网模块,配置成若所述储能主设备配网成功,且所述配网需求数据包括所述储能子设备的设备参数,根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接;The slave network distribution module is configured to control the second wireless communication module of the energy storage master device to establish a connection with the corresponding energy storage sub-device according to the network distribution demand data if the network distribution of the energy storage master device is successful and the network distribution demand data includes the device parameters of the energy storage sub-device;

配网反馈模块,配置成获取所述储能子设备的配网结果信息,并将所述储能子设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备。The network configuration feedback module is configured to obtain the network configuration result information of the energy storage sub-device, and send the network configuration result information of the energy storage sub-device to the terminal device through the first wireless communication module.

本公开还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:The present disclosure also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,所述进入配网模式指令为终端设备处于所述第一无线通信模块的感应范围内时发送的指令;Acquire a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;

根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备;Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;

若所述储能主设备配网成功,且所述配网需求数据包括所述储能子设备的设备参数,根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接;If the energy storage main device is successfully networked, and the network distribution requirement data includes device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data;

获取所述储能子设备的配网结果信息,并将所述储能子设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备。The network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.

本公开还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,所述进入配网模式指令为终端设备处于所述第一无线通信模块的感应范围内时发送的指令;Acquire a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;

根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备;Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;

若所述储能主设备配网成功,且所述配网需求数据包括所述储能子设备的设备参数,根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接;If the energy storage main device is successfully networked, and the network distribution requirement data includes device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data;

获取所述储能子设备的配网结果信息,并将所述储能子设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备。The network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.

本公开还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:The present disclosure also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,所述进入配网模式指令为终端设备处于所述第一无线通信模块的感应范围内时发送的指令;Acquire a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;

根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备;Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;

若所述储能主设备配网成功,且所述配网需求数据包括所述储能子设备的设备参数,根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接;If the energy storage main device is successfully networked, and the network distribution requirement data includes device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data;

获取所述储能子设备的配网结果信息,并将所述储能子设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备。The network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.

上述储能系统的配网方法、装置、计算机设备、计算机可读存储介质和计 算机程序产品,储能系统包括储能主设备和储能子设备,通过第一无线通信模块建立储能主设备与终端设备之间的交互,进行储能主设备的配网。在储能主设备配网后,根据配网需求数据通过第二无线通信模块建立储能主设备与对应的储能子设备之间的通信连接,使储能子设备能够通过与储能主设备交互进行配网。本公开的有益效果包括:只需要终端设备执行一次配网操作即可与储能主设备和对应的储能子设备进行配网,避免重复操作,大大提高了储能系统配网时的便利性。The energy storage system distribution network method, device, computer equipment, computer readable storage medium and computer A computer program product, an energy storage system includes an energy storage main device and an energy storage sub-device, and an interaction between the energy storage main device and the terminal device is established through a first wireless communication module to perform network distribution of the energy storage main device. After the energy storage main device is networked, a communication connection is established between the energy storage main device and the corresponding energy storage sub-device through a second wireless communication module according to network distribution demand data, so that the energy storage sub-device can be networked by interacting with the energy storage main device. The beneficial effects of the present disclosure include: the terminal device only needs to perform a network distribution operation once to perform network distribution with the energy storage main device and the corresponding energy storage sub-device, avoiding repeated operations, and greatly improving the convenience of network distribution of the energy storage system.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本公开实施例提供的第一种储能系统的配网方法的应用环境图;FIG1 is an application environment diagram of a first energy storage system distribution method provided by an embodiment of the present disclosure;

图2为本公开实施例提供的储能系统的配网方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a network distribution method for an energy storage system provided in an embodiment of the present disclosure;

图3为本公开实施例提供的第一种根据进入配网模式指令和配网需求数据控制储能主设备进行配网步骤的流程示意图;3 is a schematic diagram of a first flow chart of controlling the energy storage master device to perform network distribution steps according to the network distribution mode entry instruction and network distribution demand data provided by an embodiment of the present disclosure;

图4为本公开实施例提供的第二种根据进入配网模式指令和配网需求数据控制储能主设备进行配网步骤的流程示意图;4 is a schematic diagram of a second flow chart of controlling the energy storage master device to perform network distribution steps according to the network distribution mode entry instruction and network distribution demand data provided by an embodiment of the present disclosure;

图5为本公开实施例提供的第二种储能系统的配网方法的应用环境图;FIG5 is an application environment diagram of a second energy storage system distribution method provided by an embodiment of the present disclosure;

图6为本公开实施例提供的根据配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接步骤的流程示意图;6 is a flow chart of steps for controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the distribution network demand data provided by an embodiment of the present disclosure;

图7为本公开实施例提供的根据验证通过后的配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接步骤的流程示意图;7 is a flow chart of steps for controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the distribution network demand data after verification provided by an embodiment of the present disclosure;

图8为本公开实施例提供的单一配网模式下储能系统的配网方法的流程示意图;FIG8 is a schematic flow chart of a network distribution method for an energy storage system in a single network distribution mode provided by an embodiment of the present disclosure;

图9为本公开实施例提供的储能系统的配网装置的结构框图;FIG9 is a structural block diagram of a distribution network device of an energy storage system provided in an embodiment of the present disclosure;

图10为本公开实施例提供的计算机设备的内部结构图。FIG. 10 is a diagram showing the internal structure of a computer device provided in an embodiment of the present disclosure.

图标:102-终端设备;104-储能主设备;106-储能子设备;108-云端服务器;902-配网请求模块;904-主机配网模块;906-从机配网模块;908-配网反馈模块。Icons: 102-terminal device; 104-energy storage master device; 106-energy storage sub-device; 108-cloud server; 902-network distribution request module; 904-master network distribution module; 906-slave network distribution module; 908-network distribution feedback module.

具体实施方式DETAILED DESCRIPTION

为了使本公开的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

可以理解,本公开所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本公开的范围的情况下,可以将第一电阻称为第二电阻,且类似地,可将第二电阻称为第一电阻。第一电阻和第二电阻两者都是电阻,但其不是同一电阻。It is understood that the terms "first", "second", etc. used in the present disclosure may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of the present disclosure, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

可以理解,以下实施例中的“连接”,如果被连接的电路、模块、单元等相互之间具有电信号或数据的传递,则应理解为“电连接”、“通信连接”等。It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

在此使用时,单数形式的“一”、“一个”和“所述/该”也可以包括复数形式,除非上下文清楚指出另外的方式。还应当理解的是,术语“包括/包含”或“具有”等指定所陈述的特征、整体、步骤、操作、组件、部分或它们的组合的存在,但是不排除存在或添加一个或更多个其他特征、整体、步骤、操作、组件、部分或它们的组合的可能性。When used herein, the singular forms "a", "an", and "said/the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include/comprise" or "have" etc. specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.

除非另有定义,本文所使用的所有的技术和科学术语与属于本公开的技术领域的技术人员通常理解的含义相同。本文中在本公开的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本公开。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein in the specification of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

本公开实施例提供的储能系统的配网方法,可以应用于如图1所示的应用 环境中。其中,储能系统包括储能主设备104和储能子设备106。终端设备102通过网络与云端服务器108进行通信。可选地,终端设备102通过储能主设备104的第一无线通信模块与储能主设备104的控制芯片进行交互,实现储能主设备104的配网,储能主设备104连接至云端服务器108即视为配网完成。同时可以根据使用者的需求,在储能主设备104配网成功配网后,通过储能主设备104的第二无线通信模块实现储能子设备106的配网。其中,终端设备102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。储能子设备106的数量可以为一个也可以为多个。The energy storage system distribution method provided in the embodiment of the present disclosure can be applied to the application shown in FIG. environment. Among them, the energy storage system includes an energy storage main device 104 and an energy storage sub-device 106. The terminal device 102 communicates with the cloud server 108 through the network. Optionally, the terminal device 102 interacts with the control chip of the energy storage main device 104 through the first wireless communication module of the energy storage main device 104 to realize the network distribution of the energy storage main device 104. The energy storage main device 104 is connected to the cloud server 108, which is considered to be completed. At the same time, according to the needs of the user, after the energy storage main device 104 is successfully networked, the network distribution of the energy storage sub-device 106 can be realized through the second wireless communication module of the energy storage main device 104. Among them, the terminal device 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The number of energy storage sub-devices 106 can be one or more.

如图2所示,是本公开实施例提供的一种储能系统的配网方法的流程示意图,以该方法应用于图1中的储能主设备104的控制芯片为例进行说明,包括以下步骤:As shown in FIG. 2 , it is a schematic flow chart of a network distribution method for an energy storage system provided in an embodiment of the present disclosure, and the method is described by taking the control chip of the energy storage main device 104 in FIG. 1 as an example, including the following steps:

步骤202,获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据。Step 202: Acquire the network distribution mode entry instruction and network distribution demand data transmitted by the first wireless communication module of the energy storage master device.

其中,进入配网模式指令为终端设备处于第一无线通信模块的感应范围内时发送的指令。配网需求数据为储能系统中的储能设备进行配网时所需求的验证数据,用于确认配网双方的设备是否正确。例如,可以包括储能主设备的设备参数,也可以包括储能子设备的设备参数等。在使用者需要与储能主设备和储能子设备进行配网时,配网需求数据包括储能主设备的设备参数和储能子设备的设备参数;在使用者仅需要与储能主设备进行配网时,配网需求数据包括储能主设备的设备参数。Among them, the command to enter the network distribution mode is a command sent when the terminal device is within the sensing range of the first wireless communication module. The network distribution demand data is the verification data required by the energy storage device in the energy storage system for network distribution, which is used to confirm whether the equipment of both parties of the network distribution is correct. For example, it can include the equipment parameters of the energy storage main device, and it can also include the equipment parameters of the energy storage sub-device, etc. When the user needs to perform network distribution with the energy storage main device and the energy storage sub-device, the network distribution demand data includes the equipment parameters of the energy storage main device and the equipment parameters of the energy storage sub-device; when the user only needs to perform network distribution with the energy storage main device, the network distribution demand data includes the equipment parameters of the energy storage main device.

可选地,终端设备需要下载安装与储能系统对应的APP(Application,应用软件),使用者下载完成该APP后,APP会请求使用者将终端设备的部分权限授权给APP。使用者确认授予终端设备权限后,当终端设备处于储能主设备的第一无线通信模块的感应范围内时,APP会在终端设备上提示是否进行配网。并且由使用者选取需要配网的储能主设备和储能子设备后,终端设备才会对储能主设备发送进入配网模式指令和配网需求数据。储能主设备的第一无线通信模块感应并获取终端设备发送的进入配网模式指令和配网需求数据,并传输至储能主设备的控制芯片。Optionally, the terminal device needs to download and install the APP (Application) corresponding to the energy storage system. After the user downloads the APP, the APP will request the user to authorize some permissions of the terminal device to the APP. After the user confirms the granting of permissions to the terminal device, when the terminal device is within the sensing range of the first wireless communication module of the energy storage main device, the APP will prompt on the terminal device whether to perform network configuration. And after the user selects the energy storage main device and energy storage sub-device that need to be configured, the terminal device will send the energy storage main device an instruction to enter the network configuration mode and network configuration demand data. The first wireless communication module of the energy storage main device senses and obtains the instruction to enter the network configuration mode and the network configuration demand data sent by the terminal device, and transmits them to the control chip of the energy storage main device.

可选的,使用者选取需要配网的储能主设备和储能子设备的方式并不限定,例如可以是通过使用者输入储能主设备和储能子设备各自的产品授权唯一码作为配网需求数据来选取。其中,产品授权唯一码是每个储能主设备和储能子设备所具有的唯一标识码,又称token,使用加密算法生成。可选地,加密过程如下:Optionally, the user is not limited to the way in which the energy storage main device and energy storage sub-device that need to be networked are selected. For example, the user may select the energy storage main device and energy storage sub-device by inputting the product authorization unique code of each energy storage main device and energy storage sub-device as the network distribution demand data. The product authorization unique code is a unique identification code of each energy storage main device and energy storage sub-device, also known as a token, which is generated using an encryption algorithm. Optionally, the encryption process is as follows:

产品授权唯一码使用公钥加密算法RSA(Rivest-Shamir-Adleman,密码系统)进行加密。首先使用随机函数random找出两个不同的质数p和q。再取n=p*q,根据欧拉函数:
The product authorization unique code is encrypted using the public key encryption algorithm RSA (Rivest-Shamir-Adleman, cryptographic system). First, use the random function random to find two different prime numbers p and q. Then take n = p*q, according to the Euler function:

有(n)=(p-1)(q-1),在随机函数中找出一个数e,使1<e<(n)并计算e对于(n)的模反元素d。找出d后,使ed≡(mod(n)),最后,得(e,n)为公钥,(d,n)为密钥。We have (n) = (p-1)(q-1), find a number e in the random function such that 1<e<(n) and calculate the modular inverse element d of e with respect to (n). After finding d, make ed≡(mod(n)), and finally, (e, n) is the public key and (d, n) is the secret key.

解密时,当密文采用计算方法c≡me(mod n),则解密方可以通过密文和密钥解出:m≡cd(mod n),其中n=p*q,p和q为不相同的两个随机质数,m为需要加密的资料,m满足m<n,这样就能保证公钥和密钥对应。During decryption, when the ciphertext uses the calculation method c≡me(mod n), the decryptor can use the ciphertext and the key to solve: m≡cd(mod n), where n=p*q, p and q are two different random prime numbers, m is the data to be encrypted, and m satisfies m<n, so that the public key and the key can correspond.

由于该产品授权唯一码是对应储能系统中储能主设备和储能子设备的唯一标识码,将产品授权唯一码token上传云端服务器,一个产品授权唯一码对 应一个储能主设备或储能子设备,当使用者拥有该储能主设备或储能子设备时才会下发该产品授权唯一码token,以确保储能主设备或储能子设备的安全性。Since the product authorization unique code is the unique identification code corresponding to the energy storage main device and energy storage sub-device in the energy storage system, the product authorization unique code token is uploaded to the cloud server. For an energy storage main device or energy storage sub-device, the product authorization unique code token will be issued only when the user owns the energy storage main device or energy storage sub-device to ensure the security of the energy storage main device or energy storage sub-device.

示例性的,在储能主设备中,第一无线通信模块和控制芯片的通信方式为UART(Universal Asynchronous Receiver/Transmitter,通用异步收发器)通信方式。UART通信方式具有异步全双工和有奇偶校验位功能,并可以多位数据一起传输,传输效率高,有效降低配网的交互时长,提高配网的交互成功率。Exemplarily, in the energy storage main device, the communication mode between the first wireless communication module and the control chip is a UART (Universal Asynchronous Receiver/Transmitter) communication mode. The UART communication mode has asynchronous full-duplex and parity check bit functions, and can transmit multiple bits of data together, with high transmission efficiency, effectively reducing the interaction time of the distribution network and improving the interaction success rate of the distribution network.

步骤204,根据进入配网模式指令和配网需求数据控制储能主设备进行配网,将储能主设备的配网结果信息通过第一无线通信模块发送至终端设备。Step 204, controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and sending the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module.

可选地,储能主设备的控制芯片接收到进入配网模式指令后控制储能主设备切换为配网模式,并在配网模式下根据配网需求数据控制储能主设备进行配网。无论配网是否成功,都将储能主设备的配网结果信息通过第一无线通信模块发送至终端设备。Optionally, after receiving the command to enter the network distribution mode, the control chip of the energy storage master device controls the energy storage master device to switch to the network distribution mode, and controls the energy storage master device to perform network distribution according to the network distribution demand data in the network distribution mode. Regardless of whether the network distribution is successful, the network distribution result information of the energy storage master device is sent to the terminal device through the first wireless communication module.

示例性的,当储能主设备处于配网模式下,根据配网需求数据控制储能主设备进行配网时,若配网失败,储能主设备的控制芯片将生成配网失败数据包作为储能主设备的配网结果信息,该配网失败数据包包括配网失败指示和配网失败原因数据。控制芯片将该配网失败数据包通过第一无线通信模块发送至终端设备,终端设备将对该配网失败数据包进行解析,并将配网失败指示和解析出来的配网失败原因显示于终端设备的显示模块,便于使用者查看失败原因,以根据失败原因对配网需求数据进行调整。当储能主设备处于配网模式下,根据配网需求数据控制储能主设备进行配网时,若配网成功,储能主设备的控制芯片将生成配网成功指示作为储能主设备的配网结果信息,并通过第一无线通信模块发送至终端设备。Exemplarily, when the energy storage master device is in the network distribution mode, when the energy storage master device is controlled to perform network distribution according to the network distribution demand data, if the network distribution fails, the control chip of the energy storage master device will generate a network distribution failure data packet as the network distribution result information of the energy storage master device, and the network distribution failure data packet includes a network distribution failure indication and network distribution failure cause data. The control chip sends the network distribution failure data packet to the terminal device through the first wireless communication module, and the terminal device parses the network distribution failure data packet, and displays the network distribution failure indication and the parsed network distribution failure cause on the display module of the terminal device, so that the user can view the failure cause and adjust the network distribution demand data according to the failure cause. When the energy storage master device is in the network distribution mode, when the energy storage master device is controlled to perform network distribution according to the network distribution demand data, if the network distribution is successful, the control chip of the energy storage master device will generate a network distribution success indication as the network distribution result information of the energy storage master device, and send it to the terminal device through the first wireless communication module.

步骤206,若储能主设备配网成功,且配网需求数据包括储能子设备的设备参数,根据配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。Step 206: If the energy storage main device is successfully networked, and the network distribution requirement data includes device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data.

可选地,若储能主设备配网成功,生成配网成功指示作为储能主设备的配网结果信息,并通过第一无线通信模块发送至终端设备。同时控制芯片对配网需求数据进行分析,若配网需求数据仅包括储能主设备的设备参数,则配网完成。若配网需求数据在包括储能主设备的设备参数的基础上,还包括储能子设备的设备参数,则储能主设备的控制芯片根据配网需求数据控制储能主设备的第二无线通信模块与配网需求数据对应的储能子设备建立连接,以使储能子设备也能够配网。Optionally, if the energy storage main device is successfully networked, a network configuration success indication is generated as the network configuration result information of the energy storage main device, and is sent to the terminal device through the first wireless communication module. At the same time, the control chip analyzes the network configuration demand data. If the network configuration demand data only includes the device parameters of the energy storage main device, the network configuration is completed. If the network configuration demand data includes the device parameters of the energy storage sub-device in addition to the device parameters of the energy storage main device, the control chip of the energy storage main device controls the second wireless communication module of the energy storage main device to establish a connection with the energy storage sub-device corresponding to the network configuration demand data according to the network configuration demand data, so that the energy storage sub-device can also be networked.

对应的,储能子设备包括与第二无线通信模块对应的第四无线通信模块,该第四无线通信模块配置成与第二无线通信模块建立通信连接。可选的,该第四无线通信模块与第二无线通信模块可以为类型相同的通信模块,便于通信。Correspondingly, the energy storage sub-device includes a fourth wireless communication module corresponding to the second wireless communication module, and the fourth wireless communication module is configured to establish a communication connection with the second wireless communication module. Optionally, the fourth wireless communication module and the second wireless communication module can be communication modules of the same type to facilitate communication.

步骤208,获取储能子设备的配网结果信息,并将储能子设备的配网结果信息通过第一无线通信模块发送至终端设备。Step 208: Acquire the network configuration result information of the energy storage sub-device, and send the network configuration result information of the energy storage sub-device to the terminal device through the first wireless communication module.

可选地,储能主设备和储能子设备建立连接时,可能连接成功也可能连接失败。无论是否连接成功,储能主设备的控制芯片都会获取储能子设备的配网结果信息,并通过第一无线通信模块发送至终端设备。Optionally, when the energy storage main device and the energy storage sub-device establish a connection, the connection may be successful or failed. Regardless of whether the connection is successful or not, the control chip of the energy storage main device will obtain the network configuration result information of the energy storage sub-device and send it to the terminal device through the first wireless communication module.

示例性的,当储能主设备的控制芯片根据配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接时,若连接失败,储能主设备的控制芯片将生成连接失败数据包作为储能子设备的配网结果信息,该连接失败数据包包括储能子设备连接失败指示和连接失败原因数据。控制芯片将该连接失败数据包通过第一无线通信模块发送至终端设备,终端设备将对该连接失败数据包进行解析,并将储能子设备连接失败指示和解析出来的连接失败原因显示于终端设备的显示模块,便于使用者查看失败原因,以根据失败原因对配网需求数据进行调整。当储能主设备的控制芯片根据配网需求数据控制储能主 设备的第二无线通信模块与对应的储能子设备建立连接时,若连接成功,储能主设备的控制芯片将生成储能子设备连接成功指示作为储能子设备的配网结果信息,并通过第一无线通信模块发送至终端设备。Exemplarily, when the control chip of the energy storage main device controls the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the network distribution demand data, if the connection fails, the control chip of the energy storage main device will generate a connection failure data packet as the network distribution result information of the energy storage sub-device, and the connection failure data packet includes the energy storage sub-device connection failure indication and connection failure reason data. The control chip sends the connection failure data packet to the terminal device through the first wireless communication module. The terminal device will parse the connection failure data packet and display the energy storage sub-device connection failure indication and the parsed connection failure reason on the display module of the terminal device, so that the user can view the failure reason and adjust the network distribution demand data according to the failure reason. When the control chip of the energy storage main device controls the energy storage main device according to the network distribution demand data When the second wireless communication module of the device establishes a connection with the corresponding energy storage sub-device, if the connection is successful, the control chip of the energy storage main device will generate an indication of successful connection of the energy storage sub-device as the network configuration result information of the energy storage sub-device, and send it to the terminal device through the first wireless communication module.

上述储能系统的配网方法中,储能系统包括储能主设备和储能子设备,通过第一无线通信模块建立储能主设备与终端设备之间的交互,进行储能主设备的配网。在储能主设备配网后,根据配网需求数据通过第二无线通信模块建立储能主设备与对应的储能子设备之间的通信连接,使储能子设备能够通过与储能主设备交互进行配网。只需要终端设备执行一次配网操作即可与储能主设备和对应的储能子设备进行配网,避免重复操作,大大提高了储能系统配网时的便利性。In the above-mentioned network distribution method of the energy storage system, the energy storage system includes an energy storage main device and an energy storage sub-device, and the interaction between the energy storage main device and the terminal device is established through the first wireless communication module to perform network distribution of the energy storage main device. After the energy storage main device is networked, a communication connection is established between the energy storage main device and the corresponding energy storage sub-device through the second wireless communication module according to the network distribution demand data, so that the energy storage sub-device can be networked by interacting with the energy storage main device. The terminal device only needs to perform the network distribution operation once to perform network distribution with the energy storage main device and the corresponding energy storage sub-device, avoiding repeated operations, which greatly improves the convenience of network distribution of the energy storage system.

如图3所示,步骤204中的根据进入配网模式指令和配网需求数据控制储能主设备进行配网,包括步骤302、步骤304和步骤306。As shown in FIG. 3 , controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data in step 204 includes steps 302 , 304 and 306 .

步骤302,根据进入配网模式指令和配网需求数据控制储能主设备进入配网状态,并通过第一无线通信模块发送配网进行指令至终端设备。Step 302, controlling the energy storage master device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and sending the network distribution instruction to the terminal device through the first wireless communication module.

可选地,储能主设备的控制芯片接收到进入配网模式指令后,控制储能主设备切换为配网模式,并在配网模式下根据配网需求数据对储能主设备的设备参数进行验证。若验证通过,则储能主设备进入配网状态,通过第一无线通信模块发送配网进行指令至终端设备,并等待终端设备的响应。Optionally, after receiving the command to enter the network distribution mode, the control chip of the energy storage master device controls the energy storage master device to switch to the network distribution mode, and verifies the device parameters of the energy storage master device according to the network distribution demand data in the network distribution mode. If the verification is successful, the energy storage master device enters the network distribution state, sends the network distribution instruction to the terminal device through the first wireless communication module, and waits for the response of the terminal device.

如上文记载,配网需求数据可以包括储能主设备的设备参数,也可以包括储能子设备的设备参数等。在步骤302中,仅需使用到配网需求数据中储能主设备的设备参数。当储能主设备的控制芯片根据配网需求数据对储能主设备的设备参数进行验证时,可选地,储能主设备的控制芯片根据配网需求数据中的储能主设备的设备参数进行验证。例如,配网需求数据中储能主设备的设备参数包括产品授权唯一码,储能主设备的控制芯片根据产品授权唯一码进行验证,即对产品授权唯一码进行解密,查看是否与控制芯片所在的储能主设备匹配。若匹配,则验证成功,储能主设备进入配网状态,通过第一无线通信模块发送配网进行指令至终端设备。若不匹配,验证失败,表征储能主设备配网失败,储能主设备的控制芯片将储能主设备的配网结果信息通过第一无线通信模块发送至终端设备。As described above, the network distribution demand data may include the equipment parameters of the energy storage master device, and may also include the equipment parameters of the energy storage sub-device, etc. In step 302, only the equipment parameters of the energy storage master device in the network distribution demand data need to be used. When the control chip of the energy storage master device verifies the equipment parameters of the energy storage master device according to the network distribution demand data, optionally, the control chip of the energy storage master device verifies according to the equipment parameters of the energy storage master device in the network distribution demand data. For example, the equipment parameters of the energy storage master device in the network distribution demand data include a product authorization unique code, and the control chip of the energy storage master device verifies according to the product authorization unique code, that is, decrypts the product authorization unique code to check whether it matches the energy storage master device where the control chip is located. If it matches, the verification is successful, the energy storage master device enters the network distribution state, and sends the network distribution instruction to the terminal device through the first wireless communication module. If it does not match, the verification fails, indicating that the network distribution of the energy storage master device fails, and the control chip of the energy storage master device sends the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module.

步骤304,获取第一无线通信模块传输的配网信息。Step 304: Acquire network configuration information transmitted by the first wireless communication module.

其中,配网信息为终端设备接收到配网进行指令时发送的信息,配网信息包括网络名称和网络密码。配网信息采用标准Modbus(串行通信协议)通讯协议进行传输,其中的地址域确定该数据属性,其中的功能码确定数据是写入还是读取,其中的数据域是传输数据内容,并且使用后4位进行crc32校验,可以验证收发数据是否正确。Among them, the network configuration information is the information sent by the terminal device when it receives the network configuration instruction, and the network configuration information includes the network name and network password. The network configuration information is transmitted using the standard Modbus (serial communication protocol) communication protocol, in which the address field determines the data attribute, the function code determines whether the data is written or read, the data field is the content of the transmitted data, and the last 4 bits are used for crc32 verification to verify whether the sent and received data are correct.

可选地,终端设备接收到配网进行指令后会整理配网信息并发送至第一无线通信模块。该配网信息包括终端设备所使用网络的网络名称和网络密码,且终端设备也是通过该网络连接云端服务器。Optionally, after receiving the network configuration instruction, the terminal device will organize the network configuration information and send it to the first wireless communication module. The network configuration information includes the network name and network password of the network used by the terminal device, and the terminal device is also connected to the cloud server through the network.

可选的,终端设备所使用的网络可以为终端设备所连接的外部网络,也可以为终端设备自己发出的网络。例如WiFi、个人热点或者便携式热点等。Optionally, the network used by the terminal device may be an external network to which the terminal device is connected, or may be a network sent by the terminal device itself, such as WiFi, a personal hotspot, or a portable hotspot.

步骤306,根据配网信息控制储能主设备进行配网。Step 306, controlling the energy storage master device to perform network distribution according to the network distribution information.

可选地,储能主设备的控制芯片根据配网信息中的网络名称和网络密码,控制储能主设备连接上该网络。由于该网络为终端设备所使用的网络,所以储能主设备与终端设备处于同一网络环境,并可以连接同一云端服务器,实现储能主设备的配网。储能主设备连接上网络后,即配网完成。此时,终端设备可以通过云端服务器或是其他网络方式对联网状态下的储能主设备进行控制,实现远程控制。Optionally, the control chip of the energy storage master device controls the energy storage master device to connect to the network according to the network name and network password in the network distribution information. Since the network is the network used by the terminal device, the energy storage master device and the terminal device are in the same network environment and can be connected to the same cloud server to achieve network distribution of the energy storage master device. After the energy storage master device is connected to the network, the network distribution is completed. At this time, the terminal device can control the energy storage master device in the networked state through the cloud server or other network methods to achieve remote control.

本实施例中,通过进入配网模式指令切换储能主设备的模式,通过配网需 求数据实现对储能主设备的验证。再在配网状态下让储能主设备获取配网信息,使储能主设备连接上网络,完成配网,能够实现远程联网控制。In this embodiment, the mode of the energy storage master device is switched by entering the distribution network mode instruction. The data is requested to verify the main energy storage device. Then, in the network distribution state, the main energy storage device is allowed to obtain the network distribution information, so that the main energy storage device is connected to the network, the network distribution is completed, and remote network control can be realized.

如图4所示,步骤306包括步骤402。As shown in FIG. 4 , step 306 includes step 402 .

步骤402,根据配网信息控制储能主设备的第三无线通信模块与云端服务器建立通信连接。Step 402, controlling the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the network distribution information.

如图5所示,储能主设备104中还包括第三无线通信模块,该第三无线通信模块配置成与云端服务器108建立通信连接。As shown in FIG. 5 , the energy storage master device 104 further includes a third wireless communication module, which is configured to establish a communication connection with the cloud server 108 .

可选地,储能主设备的控制芯片接收到配网信息后,将配网信息发送至第三无线通信模块,第三无线通信模块根据配网信息内的网络名称和网络密码连接网络,并连接上云端服务器。连接上网络即表征储能主设备配网成功。示例性的,第三无线通信模块可以为无线WiFi模块,能够依据网络名称和网络密码实现快速网络连接。Optionally, after receiving the network configuration information, the control chip of the energy storage master device sends the network configuration information to the third wireless communication module, and the third wireless communication module connects to the network according to the network name and network password in the network configuration information, and connects to the cloud server. Connecting to the network indicates that the network configuration of the energy storage master device is successful. Exemplarily, the third wireless communication module can be a wireless WiFi module, which can achieve fast network connection based on the network name and network password.

如图6所示,步骤206中根据配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接,包括步骤602和步骤604。As shown in FIG. 6 , in step 206 , the second wireless communication module of the energy storage master device is controlled to establish a connection with the corresponding energy storage sub-device according to the distribution network demand data, including steps 602 and 604 .

步骤602,对配网需求数据进行真实性验证。Step 602: verify the authenticity of the distribution network demand data.

其中,配网需求数据包括储能主设备的设备参数和储能子设备的设备参数,在这一步骤中是对其中储能子设备的设备参数进行真实性验证。The distribution network demand data includes the equipment parameters of the energy storage main device and the equipment parameters of the energy storage sub-device. In this step, the authenticity of the equipment parameters of the energy storage sub-device is verified.

可选地,配网需求数据中储能子设备的设备参数为加密传输的参数,需要执行解密操作后对其进行真实性验证。加密解密过程可详见上述对公钥加密算法RSA的记载,在此不再赘述。同样的,储能子设备的设备参数可以为产品授权唯一码token。Optionally, the device parameters of the energy storage sub-device in the distribution network demand data are encrypted transmission parameters, and the authenticity of the parameters needs to be verified after the decryption operation. The encryption and decryption process can be detailed in the above record of the public key encryption algorithm RSA, which will not be repeated here. Similarly, the device parameters of the energy storage sub-device can be the product authorization unique code token.

可选地,由于储能子设备的数量并不限定,可以为一个也可以为多个,若配网需求数据中包含多个储能子设备的设备参数,则需要将这些设备参数分别解密后进行独立验证,确保配网需求数据中的每一个储能子设备的设备参数都验证完毕。Optionally, since the number of energy storage sub-devices is not limited and can be one or more, if the distribution network demand data contains device parameters of multiple energy storage sub-devices, these device parameters need to be decrypted separately and independently verified to ensure that the device parameters of each energy storage sub-device in the distribution network demand data are verified.

步骤604,若验证通过,根据验证通过后的配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。Step 604: If the verification is successful, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.

可选地,真实性验证的结果可能为通过,也可能为不通过。当验证通过时,也就是配网需求数据中的所有储能子设备的设备参数都验证完毕且验证正确时,根据验证通过后的配网需求数据,储能主设备的控制芯片控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。该对应的储能子设备即为验证通过后的储能子设备的设备参数所对应的储能子设备。Optionally, the result of the authenticity verification may be passed or failed. When the verification is passed, that is, when the device parameters of all energy storage sub-devices in the distribution network demand data are verified and verified correctly, the control chip of the energy storage main device controls the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the distribution network demand data after verification. The corresponding energy storage sub-device is the energy storage sub-device corresponding to the device parameters of the energy storage sub-device after verification.

可选的,当验证部分通过时,也就是配网需求数据中的一部分储能子设备的设备参数验证正确,配网需求数据中的另一部分储能子设备的设备参数验证错误时,根据验证通过后的一部分储能子设备的设备参数,储能主设备的控制芯片控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。而验证错误的另一部分储能子设备的设备参数被储能主设备的控制芯片收集并分析,生成连接失败数据包作为储能子设备的配网结果信息,该连接失败数据包包括储能子设备连接失败指示和连接失败原因数据。控制芯片将该连接失败数据包通过第一无线通信模块发送至终端设备,终端设备将对该连接失败数据包进行解析,并将储能子设备连接失败指示和解析出来的连接失败原因显示于终端设备的显示模块,便于使用者查看失败原因,以根据失败原因对配网需求数据进行调整。当验证完全错误,即全部不通过时,也生成上述的连接失败数据包作为储能子设备的配网结果信息,在此不再赘述。Optionally, when the verification part passes, that is, the device parameters of a part of the energy storage sub-devices in the distribution network demand data are verified correctly, and the device parameters of another part of the energy storage sub-devices in the distribution network demand data are verified incorrectly, the control chip of the energy storage main device controls the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the device parameters of the part of the energy storage sub-devices that have passed the verification. The device parameters of the other part of the energy storage sub-devices that have failed the verification are collected and analyzed by the control chip of the energy storage main device, and a connection failure data packet is generated as the distribution network result information of the energy storage sub-device, and the connection failure data packet includes the energy storage sub-device connection failure indication and the connection failure reason data. The control chip sends the connection failure data packet to the terminal device through the first wireless communication module, and the terminal device parses the connection failure data packet, and displays the energy storage sub-device connection failure indication and the parsed connection failure reason on the display module of the terminal device, so that the user can view the failure reason and adjust the distribution network demand data according to the failure reason. When the verification is completely wrong, that is, all fail, the above-mentioned connection failure data packet is also generated as the distribution network result information of the energy storage sub-device, which will not be repeated here.

本实施例中,通过对配网需求数据进行真实性验证确认终端设备的连接需求,并在验证成功后通过第二无线通信模块与对应的储能子设备建立连接,能够确保连接的储能子设备正确,提高储能系统的配网准确度。In this embodiment, the connection requirements of the terminal device are confirmed by verifying the authenticity of the distribution network demand data, and after successful verification, a connection is established with the corresponding energy storage sub-device through the second wireless communication module, thereby ensuring that the connected energy storage sub-device is correct and improving the distribution network accuracy of the energy storage system.

如图7所示,步骤604中根据验证通过后的配网需求数据控制储能主设备 的第二无线通信模块与对应的储能子设备建立连接,包括步骤702、步骤704和步骤706。As shown in FIG. 7 , in step 604 , the energy storage master device is controlled according to the distribution network demand data after verification. The second wireless communication module establishes a connection with the corresponding energy storage sub-device, including step 702, step 704 and step 706.

步骤702,基于验证通过后的配网需求数据控制储能主设备的第二无线通信模块广播握手请求。Step 702: Based on the verified distribution network demand data, control the second wireless communication module of the energy storage master device to broadcast a handshake request.

其中,握手请求配置成请求与对应的储能子设备建立通信连接。The handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device.

可选地,储能主设备的第二无线通信模块广播的握手请求中,包含了验证通过后的配网需求数据,即对应的储能子设备的设备参数。该设备参数作为储能子设备的识别码(若该设备参数为产品授权唯一码,则是储能子设备的唯一识别码),用于选取对应的储能子设备。储能主设备的第二无线通信模块广播握手请求时,只有与验证通过后的配网需求数据中包含的储能子设备的设备参数匹配的储能子设备才能参与握手。Optionally, the handshake request broadcast by the second wireless communication module of the energy storage master device includes the network distribution demand data after verification, that is, the device parameters of the corresponding energy storage sub-device. The device parameter is used as an identification code of the energy storage sub-device (if the device parameter is a product authorization unique code, it is the unique identification code of the energy storage sub-device) to select the corresponding energy storage sub-device. When the second wireless communication module of the energy storage master device broadcasts a handshake request, only energy storage sub-devices that match the device parameters of the energy storage sub-device contained in the network distribution demand data after verification can participate in the handshake.

步骤704,接收第二无线通信模块反馈的握手结果。Step 704: Receive the handshake result fed back by the second wireless communication module.

可选地,对应的储能子设备响应于储能主设备的第二无线通信模块广播的握手请求,参与握手后,无论是否握手成功,储能子设备都会反馈握手结果给第二无线通信模块,然后由第二无线通信模块发送至储能主设备的控制芯片。该握手结果表征储能主设备与储能子设备的通信连接是否成功。Optionally, the corresponding energy storage sub-device responds to the handshake request broadcast by the second wireless communication module of the energy storage main device, and after participating in the handshake, regardless of whether the handshake is successful, the energy storage sub-device will feedback the handshake result to the second wireless communication module, which is then sent to the control chip of the energy storage main device by the second wireless communication module. The handshake result indicates whether the communication connection between the energy storage main device and the energy storage sub-device is successful.

步骤706,若握手结果表征储能主设备与对应的储能子设备成功建立通信连接,通过第二无线通信模块发送配网信息至建立了通信连接的储能子设备。Step 706: If the handshake result indicates that the energy storage main device has successfully established a communication connection with the corresponding energy storage sub-device, the network configuration information is sent to the energy storage sub-device with which the communication connection has been established via the second wireless communication module.

其中,配网信息包括网络名称和网络密码。The network configuration information includes the network name and network password.

可选地,由于储能主设备已经配网成功,储能主设备已经从终端设备中获取了配网信息进行配网。当储能主设备与储能子设备成功建立通信连接时,储能主设备将配网信息发送至建立了通信连接的储能子设备。其中,上文中已经记载,储能子设备包括第四无线通信模块配置成与储能主设备建立通信连接。在本实施例,储能子设备中还具有第五无线通信模块,该第五无线通信模块配置成根据配网信息中的网络名称和网络密码连接网络,并连接云端服务器。示例性的,第五无线通信模块可以为WiFi模块。Optionally, since the energy storage main device has been successfully networked, the energy storage main device has obtained the network distribution information from the terminal device for network distribution. When the energy storage main device successfully establishes a communication connection with the energy storage sub-device, the energy storage main device sends the network distribution information to the energy storage sub-device that has established a communication connection. Among them, it has been recorded above that the energy storage sub-device includes a fourth wireless communication module configured to establish a communication connection with the energy storage main device. In this embodiment, the energy storage sub-device also has a fifth wireless communication module, and the fifth wireless communication module is configured to connect to the network according to the network name and network password in the network distribution information, and connect to the cloud server. Exemplarily, the fifth wireless communication module can be a WiFi module.

若握手结果表征储能主设备与对应的储能子设备未能成功建立通信连接,储能主设备的控制芯片将生成连接失败数据包作为储能子设备的配网结果信息,该连接失败数据包包括储能子设备连接失败指示和连接失败原因数据。控制芯片将该连接失败数据包通过第一无线通信模块发送至终端设备,终端设备将对该连接失败数据包进行解析,并将储能子设备连接失败指示和解析出来的连接失败原因显示于终端设备的显示模块,便于使用者查看失败原因,以根据失败原因对配网需求数据进行调整。If the handshake result indicates that the energy storage main device and the corresponding energy storage sub-device have failed to successfully establish a communication connection, the control chip of the energy storage main device will generate a connection failure data packet as the network distribution result information of the energy storage sub-device, and the connection failure data packet includes the energy storage sub-device connection failure indication and the connection failure reason data. The control chip sends the connection failure data packet to the terminal device through the first wireless communication module, and the terminal device will parse the connection failure data packet, and display the energy storage sub-device connection failure indication and the parsed connection failure reason on the display module of the terminal device, so that the user can view the failure reason and adjust the network distribution demand data according to the failure reason.

本公开实施例中,通过广播握手请求与验证通过后的配网需求数据中的储能子设备建立通信连接,并基于储能子设备反馈的握手结果确认通信建立状态,能够确保储能系统中储能子设备的配网准确度。并且储能主设备将配网信息传输至成功建立通信连接的储能子设备,不限制储能子设备的个数,在对多个储能子设备进行配网时,能够快速实现储能子设备的批量配网。In the disclosed embodiment, a communication connection is established with the energy storage sub-device in the network distribution demand data after verification by broadcasting a handshake request, and the communication establishment status is confirmed based on the handshake result fed back by the energy storage sub-device, so that the network distribution accuracy of the energy storage sub-device in the energy storage system can be ensured. In addition, the energy storage master device transmits the network distribution information to the energy storage sub-device with which the communication connection is successfully established, without limiting the number of energy storage sub-devices, and when multiple energy storage sub-devices are networked, batch network distribution of energy storage sub-devices can be quickly achieved.

可选地,第一无线通信模块为NFC模块,第二无线通信模块为蓝牙模块。Optionally, the first wireless communication module is an NFC module, and the second wireless communication module is a Bluetooth module.

NFC(Near Field Communication,近场通信)是一种短距离的高频无线通信技术,允许电子设备之间进行非接触式点对点数据传输。NFC的传输方式安全性高,只支持近距离数据,第一无线通信模块为NFC模块,能够保证在终端设备和储能主设备通信时数据传输的高度的保密性与安全性。NFC (Near Field Communication) is a short-range high-frequency wireless communication technology that allows contactless point-to-point data transmission between electronic devices. NFC's transmission method is highly secure and only supports short-range data. The first wireless communication module is the NFC module, which can ensure the high confidentiality and security of data transmission when the terminal device communicates with the energy storage main device.

蓝牙模块体积小,功耗低,安装便捷且通信频段广泛,第二无线通信模块采用蓝牙模块,便于储能主设备和储能子设备之间的通信连接匹配,更由于蓝牙连接可以建立临时性的对等连接,有利于实现储能主设备和储能子设备之间根据配网需求数据建立的一对一或一对多连接关系。The Bluetooth module is small in size, low in power consumption, easy to install and has a wide communication frequency band. The second wireless communication module adopts a Bluetooth module, which is convenient for the communication connection matching between the energy storage main device and the energy storage sub-device. Moreover, since the Bluetooth connection can establish a temporary peer-to-peer connection, it is conducive to realizing a one-to-one or one-to-many connection relationship between the energy storage main device and the energy storage sub-device based on the distribution network demand data.

为了更好地理解上述方案,结合图5所示的应用场景,以下采用一个示例 来进行详细的解释说明。In order to better understand the above solution, combined with the application scenario shown in Figure 5, the following example For detailed explanation.

终端设备连接储能系统,终端设备为手机。储能系统包括储能主设备和储能子设备,储能主设备包括第一无线通信模块、第二无线通信模块、第三无线通信模块和控制芯片,第一无线通信模块为NFC模块,第二无线通信模块为蓝牙模块,第三无线通信模块为WiFi模块,控制芯片为MCU芯片。储能子设备包括第四无线通信模块和第五无线通信模块,第四无线通信模块为蓝牙模块,第五无线通信模块为WiFi模块。其中,储能主设备的蓝牙模块和储能子设备的蓝牙模块连接,以实现储能主设备与储能子设备的通信连接。储能主设备的WiFi模块和储能子设备的WiFi模块配置成连接手机所连接的网络和连接云端服务器。The terminal device is connected to the energy storage system, and the terminal device is a mobile phone. The energy storage system includes an energy storage main device and an energy storage sub-device. The energy storage main device includes a first wireless communication module, a second wireless communication module, a third wireless communication module and a control chip. The first wireless communication module is an NFC module, the second wireless communication module is a Bluetooth module, the third wireless communication module is a WiFi module, and the control chip is an MCU chip. The energy storage sub-device includes a fourth wireless communication module and a fifth wireless communication module. The fourth wireless communication module is a Bluetooth module, and the fifth wireless communication module is a WiFi module. Among them, the Bluetooth module of the energy storage main device and the Bluetooth module of the energy storage sub-device are connected to realize the communication connection between the energy storage main device and the energy storage sub-device. The WiFi module of the energy storage main device and the WiFi module of the energy storage sub-device are configured to connect to the network connected to the mobile phone and to connect to the cloud server.

在配网之前,手机需要下载安装与储能系统对应的APP并授权于APP。确认授予手机权限后,手机进入储能主设备的NFC模块感应范围时,APP会弹出对应配网引导界面,引导使用者输入所需连接的储能主设备和储能子设备的产品授权唯一码,并输入配网信息。以上各产品授权唯一码为配网需求数据。Before network configuration, the mobile phone needs to download and install the APP corresponding to the energy storage system and authorize the APP. After confirming the authorization of the mobile phone, when the mobile phone enters the NFC module sensing range of the energy storage main device, the APP will pop up the corresponding network configuration guidance interface, guiding the user to enter the product authorization unique code of the energy storage main device and energy storage sub-device to be connected, and enter the network configuration information. The above product authorization unique codes are the network configuration demand data.

开始配网时,使用者在手机上选取配网需求模式,并根据配网需求模式输入对应的配网需求数据。配网需求模式包括单一配网模式和批量配网模式,在单一配网模式中,配网需求数据中只包括储能主设备的产品授权唯一码,仅实现储能主设备的配网。在批量配网模式中,配网需求数据中包括储能主设备和需求的储能子设备的产品授权唯一码,实现储能主设备和需求的储能子设备的配网。手机发送进入配网模式指令和配网需求数据至储能主设备的NFC模块,储能主设备的MCU芯片接收到进入配网模式指令后,控制储能主设备切换为配网模式,并在配网模式下对配网需求数据中储能主设备的产品授权唯一码进行密钥验证。加密解密过程可详见上述对公钥加密算法RSA的记载,在此不再赘述。若验证通过,则储能主设备进入配网状态,通过NFC模块发送配网进行指令至手机。手机接收到配网进行指令后会整理配网信息并发送至NFC模块,NFC模块再将配网信息发送至MCU芯片。储能主设备的MCU芯片接收到配网信息后,将配网信息发送至储能主设备的WiFi模块,该WiFi模块根据配网信息内的网络名称和网络密码连接网络,并连接上云端服务器,完成储能主设备的配网并切换储能主设备退出配网模式。同时,将储能主设备的配网结果信息通过NFC模块发送至手机,配网结果信息可以是顺利完成配网,也可以是中途因为故障或其他原因未完成配网(若初次配网失败,手机和储能主设备会多次尝试配网,多次尝试配网均失败时才视为未完成配网。)。若使用者选取的是单一配网模式,即配网需求数据中仅包含储能主设备的产品授权唯一码,则到此已经完成所有配网步骤。单一配网模式下的具体步骤如图8所示。When starting network configuration, the user selects the network configuration demand mode on the mobile phone, and inputs the corresponding network configuration demand data according to the network configuration demand mode. The network configuration demand mode includes a single network configuration mode and a batch network configuration mode. In the single network configuration mode, the network configuration demand data only includes the product authorization unique code of the energy storage main device, and only the network configuration of the energy storage main device is realized. In the batch network configuration mode, the network configuration demand data includes the product authorization unique code of the energy storage main device and the required energy storage sub-device, and the network configuration of the energy storage main device and the required energy storage sub-device is realized. The mobile phone sends the command to enter the network configuration mode and the network configuration demand data to the NFC module of the energy storage main device. After the MCU chip of the energy storage main device receives the command to enter the network configuration mode, it controls the energy storage main device to switch to the network configuration mode, and performs key verification on the product authorization unique code of the energy storage main device in the network configuration demand data in the network configuration mode. The encryption and decryption process can be found in the above-mentioned record of the public key encryption algorithm RSA, which will not be repeated here. If the verification is successful, the energy storage main device enters the network configuration state, and sends the network configuration command to the mobile phone through the NFC module. After receiving the network configuration instruction, the mobile phone will organize the network configuration information and send it to the NFC module, and the NFC module will then send the network configuration information to the MCU chip. After receiving the network configuration information, the MCU chip of the energy storage master device will send the network configuration information to the WiFi module of the energy storage master device. The WiFi module connects to the network according to the network name and network password in the network configuration information, and connects to the cloud server to complete the network configuration of the energy storage master device and switch the energy storage master device to exit the network configuration mode. At the same time, the network configuration result information of the energy storage master device is sent to the mobile phone through the NFC module. The network configuration result information can be that the network configuration is successfully completed, or that the network configuration is not completed due to a fault or other reasons in the middle (if the initial network configuration fails, the mobile phone and the energy storage master device will try to configure the network multiple times, and the network configuration is considered to be incomplete only when multiple attempts to configure the network fail.). If the user selects a single network configuration mode, that is, the network configuration demand data only contains the product authorization unique code of the energy storage master device, then all network configuration steps have been completed. The specific steps in the single network configuration mode are shown in Figure 8.

批量配网模式下,在储能主设备配网成功(对应图8中“生成储能主设备的配网结果信息”步骤)后,开始储能子设备的配网。储能主设备的MCU芯片对配网需求数据中储能子设备的产品授权唯一码进行密钥验证,验证其真实性和准确性。加密解密过程可详见上述对公钥加密算法RSA的记载,在此不再赘述。当配网需求数据中的所有储能子设备的产品授权唯一码都验证完毕且验证正确时,根据验证通过后的配网需求数据,控制储能主设备的蓝牙模块广播蓝牙握手请求,请求与产品授权唯一码对应的储能子设备建立蓝牙连接。储能主设备的蓝牙模块广播蓝牙握手请求时,只有与验证通过后的储能子设备的产品授权唯一码匹配的储能子设备才能参与握手。对应的储能子设备的蓝牙模块响应于储能主设备的蓝牙模块广播的蓝牙握手请求,参与握手。该蓝牙握手请求的签名为手机首次进行APP注册时根据操作指引,从需要连接的储能子设备的包装箱内的说明书中获取的密钥加密生成的。无论是否握手成功,储能子设备都会通过自身的蓝牙模块反馈握手结果给储能主设备的蓝牙模块,然后传输至储能主设备的MCU芯片。该握手结果表征储能主设备与储能子设备的 蓝牙通信连接是否成功。若握手结果表征储能主设备与对应的储能子设备成功建立蓝牙通信连接,储能主设备将配网信息通过储能主设备的蓝牙模块发送至建立了通信连接的储能子设备的蓝牙模块。由建立了通信连接的储能子设备的WiFi模块根据配网信息中的网络名称和网络密码连接网络,并连接至云端服务器,完成储能主设备和储能子设备的配网。In the batch network configuration mode, after the energy storage main device is successfully configured (corresponding to the step of "generating network configuration result information of the energy storage main device" in Figure 8), the network configuration of the energy storage sub-device begins. The MCU chip of the energy storage main device performs key verification on the product authorization unique code of the energy storage sub-device in the network configuration demand data to verify its authenticity and accuracy. The encryption and decryption process can be found in the above-mentioned record of the public key encryption algorithm RSA, which will not be repeated here. When the product authorization unique codes of all energy storage sub-devices in the network configuration demand data have been verified and the verification is correct, the Bluetooth module of the energy storage main device is controlled to broadcast a Bluetooth handshake request based on the network configuration demand data after verification, requesting to establish a Bluetooth connection with the energy storage sub-device corresponding to the product authorization unique code. When the Bluetooth module of the energy storage main device broadcasts a Bluetooth handshake request, only the energy storage sub-device that matches the product authorization unique code of the energy storage sub-device after verification can participate in the handshake. The Bluetooth module of the corresponding energy storage sub-device responds to the Bluetooth handshake request broadcast by the Bluetooth module of the energy storage main device and participates in the handshake. The signature of the Bluetooth handshake request is generated by encrypting the key obtained from the instruction manual in the packaging box of the energy storage sub-device to be connected according to the operation instructions when the mobile phone registers the APP for the first time. Regardless of whether the handshake is successful or not, the energy storage sub-device will feedback the handshake result to the Bluetooth module of the energy storage main device through its own Bluetooth module, and then transmit it to the MCU chip of the energy storage main device. The handshake result represents the connection between the energy storage main device and the energy storage sub-device. Whether the Bluetooth communication connection is successful. If the handshake result indicates that the energy storage main device and the corresponding energy storage sub-device have successfully established a Bluetooth communication connection, the energy storage main device will send the network configuration information to the Bluetooth module of the energy storage sub-device that has established a communication connection through the Bluetooth module of the energy storage main device. The WiFi module of the energy storage sub-device that has established a communication connection connects to the network according to the network name and network password in the network configuration information, and connects to the cloud server to complete the network configuration of the energy storage main device and the energy storage sub-device.

在本实施例中,基于NFC控制的便捷安全性对储能系统内的储能设备进行配网,储能系统结构合理简单,使用者操作简单便捷,能够通过使用手机进行一次配网操作而对多个储能设备进行配网,大大提高了储能系统配网的便捷性。In this embodiment, the energy storage devices in the energy storage system are networked conveniently and safely based on NFC control. The energy storage system has a reasonable and simple structure, and the user operation is simple and convenient. Multiple energy storage devices can be networked by performing a network connection operation once using a mobile phone, which greatly improves the convenience of network connection of the energy storage system.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

基于同样的发明构思,本公开实施例还提供了一种用于实现上述所涉及的储能系统的配网方法的储能系统的配网装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个储能系统的配网装置实施例中的具体限定可以参见上文中对于储能系统的配网方法的限定,在此不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides a network distribution device for an energy storage system for implementing the network distribution method of the energy storage system involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the network distribution device for one or more energy storage systems provided below can refer to the limitations of the network distribution method for the energy storage system above, and will not be repeated here.

如图9所示,是本公开实施例提供的储能系统的配网装置的结构框图,包括:配网请求模块902、主机配网模块904、从机配网模块906和配网反馈模块908,其中:As shown in FIG9 , it is a structural block diagram of a network distribution device of an energy storage system provided in an embodiment of the present disclosure, including: a network distribution request module 902, a host network distribution module 904, a slave network distribution module 906 and a network distribution feedback module 908, wherein:

配网请求模块902,配置成获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,进入配网模式指令为终端设备处于第一无线通信模块的感应范围内时发送的指令。The network distribution request module 902 is configured to obtain the network distribution mode entry instruction and network distribution demand data transmitted by the first wireless communication module of the energy storage master device. The network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module.

主机配网模块904,配置成根据进入配网模式指令和配网需求数据控制储能主设备进行配网,将储能主设备的配网结果信息通过第一无线通信模块发送至终端设备。The host network distribution module 904 is configured to control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module.

从机配网模块906,配置成若储能主设备配网成功,且配网需求数据包括储能子设备的设备参数,根据配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。The slave network configuration module 906 is configured to control the second wireless communication module of the energy storage master device to establish a connection with the corresponding energy storage sub-device according to the network configuration requirement data if the energy storage master device is successfully networked and the network configuration requirement data includes device parameters of the energy storage sub-device.

配网反馈模块908,配置成获取储能子设备的配网结果信息,并将储能子设备的配网结果信息通过第一无线通信模块发送至终端设备。The network configuration feedback module 908 is configured to obtain the network configuration result information of the energy storage sub-device, and send the network configuration result information of the energy storage sub-device to the terminal device through the first wireless communication module.

可选地,主机配网模块904配置成根据进入配网模式指令和配网需求数据控制储能主设备进入配网状态,并通过第一无线通信模块发送配网进行指令至终端设备;获取第一无线通信模块传输的配网信息,配网信息为终端设备接收到配网进行指令时发送的信息,配网信息包括网络名称和网络密码;根据配网信息控制储能主设备进行配网。Optionally, the host network distribution module 904 is configured to control the energy storage main device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution instruction to the terminal device through the first wireless communication module; obtain the network distribution information transmitted by the first wireless communication module, the network distribution information is the information sent by the terminal device when it receives the network distribution instruction, and the network distribution information includes the network name and the network password; control the energy storage main device to perform network distribution according to the network distribution information.

可选地,主机配网模块904配置成根据配网信息控制储能主设备的第三无线通信模块与云端服务器建立通信连接。Optionally, the host network distribution module 904 is configured to control the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the network distribution information.

可选地,从机配网模块906配置成对配网需求数据进行真实性验证;若验证通过,根据验证通过后的配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。Optionally, the slave network distribution module 906 is configured to verify the authenticity of the network distribution demand data; if the verification is successful, the second wireless communication module of the energy storage master device is controlled to establish a connection with the corresponding energy storage sub-device according to the verified network distribution demand data.

可选地,从机配网模块906配置成基于验证通过后的配网需求数据控制储能主设备的第二无线通信模块广播握手请求;握手请求配置成请求与对应的储 能子设备建立通信连接;接收第二无线通信模块反馈的握手结果;若握手结果表征储能主设备与对应的储能子设备成功建立通信连接,通过第二无线通信模块发送配网信息至建立了通信连接的储能子设备;配网信息包括网络名称和网络密码。Optionally, the slave network distribution module 906 is configured to control the second wireless communication module of the energy storage master device to broadcast a handshake request based on the verified network distribution demand data; the handshake request is configured to request the corresponding storage master device to send a handshake request to the second wireless communication module of the energy storage master device. The energy storage main device establishes a communication connection with the corresponding energy storage sub-device; receives a handshake result fed back by the second wireless communication module; if the handshake result indicates that the energy storage main device has successfully established a communication connection with the corresponding energy storage sub-device, the network configuration information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the network configuration information includes a network name and a network password.

可选地,第一无线通信模块为NFC模块,第二无线通信模块为蓝牙模块。上述储能系统的配网装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Optionally, the first wireless communication module is an NFC module, and the second wireless communication module is a Bluetooth module. Each module in the distribution network device of the above energy storage system can be implemented in whole or in part by software, hardware, and a combination thereof. Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

本公开实施例还提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图10所示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器配置成提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口配置成处理器与外部设备之间交换信息。该计算机设备的通信接口配置成与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种储能系统的配网方法。The embodiment of the present disclosure also provides a computer device, which can be a terminal, and its internal structure diagram can be shown in Figure 10. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Among them, the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input/output interface of the computer device is configured to exchange information between the processor and an external device. The communication interface of the computer device is configured to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a distribution network method of an energy storage system is implemented.

本领域技术人员可以理解,图10中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 10 is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

本公开实施例还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:The present disclosure also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,进入配网模式指令为终端设备处于第一无线通信模块的感应范围内时发送的指令;Acquire a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;

根据进入配网模式指令和配网需求数据控制储能主设备进行配网,将储能主设备的配网结果信息通过第一无线通信模块发送至终端设备;Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;

若储能主设备配网成功,且配网需求数据包括储能子设备的设备参数,根据配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接;If the energy storage main device is successfully connected to the network, and the network connection requirement data includes the device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network connection requirement data;

获取储能子设备的配网结果信息,并将储能子设备的配网结果信息通过第一无线通信模块发送至终端设备。The network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.

可选地,处理器执行计算机程序时还实现以下步骤:根据进入配网模式指令和配网需求数据控制储能主设备进入配网状态,并通过第一无线通信模块发送配网进行指令至终端设备;获取第一无线通信模块传输的配网信息,配网信息为终端设备接收到配网进行指令时发送的信息,配网信息包括网络名称和网络密码;根据配网信息控制储能主设备进行配网。Optionally, when the processor executes the computer program, the following steps are also implemented: according to the instruction to enter the network distribution mode and the network distribution demand data, the energy storage main device is controlled to enter the network distribution state, and the network distribution instruction is sent to the terminal device through the first wireless communication module; the network distribution information transmitted by the first wireless communication module is obtained, and the network distribution information is the information sent by the terminal device when it receives the network distribution instruction, and the network distribution information includes the network name and the network password; according to the network distribution information, the energy storage main device is controlled to perform network distribution.

可选地,处理器执行计算机程序时还实现以下步骤:根据配网信息控制储能主设备的第三无线通信模块与云端服务器建立通信连接。Optionally, when the processor executes the computer program, the following steps are also implemented: controlling the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the distribution network information.

可选地,处理器执行计算机程序时还实现以下步骤:对配网需求数据进行真实性验证;若验证通过,根据验证通过后的配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。Optionally, when the processor executes the computer program, the following steps are also implemented: verifying the authenticity of the distribution network demand data; if the verification is successful, controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.

可选地,处理器执行计算机程序时还实现以下步骤:基于验证通过后的配网需求数据控制储能主设备的第二无线通信模块广播握手请求;握手请求配置 成请求与对应的储能子设备建立通信连接;接收第二无线通信模块反馈的握手结果;若握手结果表征储能主设备与对应的储能子设备成功建立通信连接,通过第二无线通信模块发送配网信息至建立了通信连接的储能子设备;配网信息包括网络名称和网络密码。Optionally, when the processor executes the computer program, the following steps are further implemented: based on the verified distribution network demand data, the second wireless communication module of the energy storage master device is controlled to broadcast a handshake request; the handshake request is configured A communication connection is established between the energy storage main device and the corresponding energy storage sub-device; a handshake result fed back by the second wireless communication module is received; if the handshake result indicates that a communication connection is successfully established between the energy storage main device and the corresponding energy storage sub-device, network configuration information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the network configuration information includes a network name and a network password.

可选地,第一无线通信模块为NFC模块,第二无线通信模块为蓝牙模块。Optionally, the first wireless communication module is an NFC module, and the second wireless communication module is a Bluetooth module.

本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:The present disclosure also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,进入配网模式指令为终端设备处于第一无线通信模块的感应范围内时发送的指令;Acquire a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;

根据进入配网模式指令和配网需求数据控制储能主设备进行配网,将储能主设备的配网结果信息通过第一无线通信模块发送至终端设备;Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;

若储能主设备配网成功,且配网需求数据包括储能子设备的设备参数,根据配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接;If the energy storage main device is successfully connected to the network, and the network connection requirement data includes the device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network connection requirement data;

获取储能子设备的配网结果信息,并将储能子设备的配网结果信息通过第一无线通信模块发送至终端设备。The network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.

可选地,计算机程序被处理器执行时还实现以下步骤:根据进入配网模式指令和配网需求数据控制储能主设备进入配网状态,并通过第一无线通信模块发送配网进行指令至终端设备;获取第一无线通信模块传输的配网信息,配网信息为终端设备接收到配网进行指令时发送的信息,配网信息包括网络名称和网络密码;根据配网信息控制储能主设备进行配网。Optionally, when the computer program is executed by the processor, the following steps are also implemented: controlling the energy storage main device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and sending the network distribution instruction to the terminal device through the first wireless communication module; obtaining the network distribution information transmitted by the first wireless communication module, the network distribution information is the information sent by the terminal device when it receives the network distribution instruction, and the network distribution information includes the network name and the network password; controlling the energy storage main device to perform network distribution according to the network distribution information.

可选地,计算机程序被处理器执行时还实现以下步骤:根据配网信息控制储能主设备的第三无线通信模块与云端服务器建立通信连接。Optionally, when the computer program is executed by the processor, the following steps are also implemented: controlling the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the distribution network information.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:对配网需求数据进行真实性验证;若验证通过,根据验证通过后的配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: verifying the authenticity of the distribution network demand data; if the verification is successful, controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.

可选地,计算机程序被处理器执行时还实现以下步骤:基于验证通过后的配网需求数据控制储能主设备的第二无线通信模块广播握手请求;握手请求配置成请求与对应的储能子设备建立通信连接;接收第二无线通信模块反馈的握手结果;若握手结果表征储能主设备与对应的储能子设备成功建立通信连接,通过第二无线通信模块发送配网信息至建立了通信连接的储能子设备;配网信息包括网络名称和网络密码。Optionally, when the computer program is executed by the processor, the following steps are also implemented: based on the verified distribution network demand data, the second wireless communication module of the energy storage main device is controlled to broadcast a handshake request; the handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device; the handshake result fed back by the second wireless communication module is received; if the handshake result indicates that the energy storage main device and the corresponding energy storage sub-device have successfully established a communication connection, the distribution network information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the distribution network information includes a network name and a network password.

可选地,第一无线通信模块为NFC模块,第二无线通信模块为蓝牙模块。Optionally, the first wireless communication module is an NFC module, and the second wireless communication module is a Bluetooth module.

本公开实施例还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:The present disclosure also provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,进入配网模式指令为终端设备处于第一无线通信模块的感应范围内时发送的指令;Acquire a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module;

根据进入配网模式指令和配网需求数据控制储能主设备进行配网,将储能主设备的配网结果信息通过第一无线通信模块发送至终端设备;Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module;

若储能主设备配网成功,且配网需求数据包括储能子设备的设备参数,根据配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接;If the energy storage main device is successfully connected to the network, and the network connection requirement data includes the device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network connection requirement data;

获取储能子设备的配网结果信息,并将储能子设备的配网结果信息通过第一无线通信模块发送至终端设备。The network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module.

可选地,计算机程序被处理器执行时还实现以下步骤:根据进入配网模式指令和配网需求数据控制储能主设备进入配网状态,并通过第一无线通信模块 发送配网进行指令至终端设备;获取第一无线通信模块传输的配网信息,配网信息为终端设备接收到配网进行指令时发送的信息,配网信息包括网络名称和网络密码;根据配网信息控制储能主设备进行配网。Optionally, when the computer program is executed by the processor, the following steps are further implemented: according to the network distribution mode entry instruction and the network distribution demand data, the energy storage main device is controlled to enter the network distribution state, and the first wireless communication module is used to communicate with the energy storage main device. Send a network configuration instruction to the terminal device; obtain the network configuration information transmitted by the first wireless communication module, the network configuration information is the information sent by the terminal device when it receives the network configuration instruction, and the network configuration information includes the network name and network password; control the energy storage main device to perform network configuration according to the network configuration information.

可选地,计算机程序被处理器执行时还实现以下步骤:根据配网信息控制储能主设备的第三无线通信模块与云端服务器建立通信连接。Optionally, when the computer program is executed by the processor, the following steps are also implemented: controlling the third wireless communication module of the energy storage master device to establish a communication connection with the cloud server according to the distribution network information.

可选地,计算机程序被处理器执行时还实现以下步骤:对配网需求数据进行真实性验证;若验证通过,根据验证通过后的配网需求数据控制储能主设备的第二无线通信模块与对应的储能子设备建立连接。Optionally, when the computer program is executed by the processor, the following steps are also implemented: verifying the authenticity of the distribution network demand data; if the verification is successful, controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data.

可选地,计算机程序被处理器执行时还实现以下步骤:基于验证通过后的配网需求数据控制储能主设备的第二无线通信模块广播握手请求;握手请求配置成请求与对应的储能子设备建立通信连接;接收第二无线通信模块反馈的握手结果;若握手结果表征储能主设备与对应的储能子设备成功建立通信连接,通过第二无线通信模块发送配网信息至建立了通信连接的储能子设备;配网信息包括网络名称和网络密码。Optionally, when the computer program is executed by the processor, the following steps are also implemented: based on the verified distribution network demand data, the second wireless communication module of the energy storage main device is controlled to broadcast a handshake request; the handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device; the handshake result fed back by the second wireless communication module is received; if the handshake result indicates that the energy storage main device and the corresponding energy storage sub-device have successfully established a communication connection, the distribution network information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the distribution network information includes a network name and a network password.

可选地,第一无线通信模块为NFC模块,第二无线通信模块为蓝牙模块。Optionally, the first wireless communication module is an NFC module, and the second wireless communication module is a Bluetooth module.

需要说明的是,本公开所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本公开所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。本公开所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本公开所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchain, etc., but are not limited to this. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to this.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上所述实施例仅表达了本公开的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本公开专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干变形和改进,这些都属于本公开的保护范围。因此,本公开的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.

工业实用性 Industrial Applicability

综上所述,本公开提供的储能系统的配网方法、装置、计算机设备、计算机可读存储介质和计算机程序产品,可以实现只需终端设备执行一次配网操作即可与储能主设备和对应的储能子设备进行配网,能够避免重复操作,大大提高了储能系统配网时的便利性。 In summary, the network distribution method, device, computer equipment, computer-readable storage medium and computer program product of the energy storage system provided by the present disclosure can achieve network distribution with the energy storage main device and the corresponding energy storage sub-device only by performing the network distribution operation once by the terminal device, thereby avoiding repeated operations and greatly improving the convenience of network distribution of the energy storage system.

Claims (15)

一种储能系统的配网方法,其特征在于,所述储能系统包括储能主设备和储能子设备;所述方法包括:A network distribution method for an energy storage system, characterized in that the energy storage system includes an energy storage main device and an energy storage sub-device; the method includes: 获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,所述进入配网模式指令为终端设备处于所述第一无线通信模块的感应范围内时发送的指令;Acquire a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module; 根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备;Control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module; 若所述储能主设备配网成功,且所述配网需求数据包括所述储能子设备的设备参数,根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接;If the energy storage main device is successfully networked, and the network distribution requirement data includes device parameters of the energy storage sub-device, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the network distribution requirement data; 获取所述储能子设备的配网结果信息,并将所述储能子设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备。The network configuration result information of the energy storage sub-device is obtained, and the network configuration result information of the energy storage sub-device is sent to the terminal device through the first wireless communication module. 根据权利要求1所述的方法,其特征在于,所述根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,包括:The method according to claim 1, characterized in that the controlling the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data comprises: 根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进入配网状态,并通过所述第一无线通信模块发送配网进行指令至所述终端设备;Control the energy storage master device to enter the network distribution state according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution instruction to the terminal device through the first wireless communication module; 获取所述第一无线通信模块传输的配网信息,所述配网信息为所述终端设备接收到所述配网进行指令时发送的信息,所述配网信息包括网络名称和网络密码;Acquire network configuration information transmitted by the first wireless communication module, the network configuration information being information sent by the terminal device when receiving the network configuration instruction, and the network configuration information including a network name and a network password; 根据所述配网信息控制所述储能主设备进行配网。The energy storage master device is controlled to perform network distribution according to the network distribution information. 根据权利要求2所述的方法,其特征在于,所述根据所述配网信息控制所述储能主设备进行配网,包括:The method according to claim 2, characterized in that controlling the energy storage master device to perform network distribution according to the network distribution information comprises: 根据所述配网信息控制所述储能主设备的第三无线通信模块与云端服务器建立通信连接。The third wireless communication module of the energy storage master device is controlled to establish a communication connection with the cloud server according to the network distribution information. 根据权利要求1-3所述的方法,其特征在于,所述根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接,包括:The method according to claims 1-3 is characterized in that the step of controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the distribution network demand data comprises: 对所述配网需求数据进行真实性验证;Verifying the authenticity of the distribution network demand data; 若验证通过,根据验证通过后的配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接。If the verification is successful, the second wireless communication module of the energy storage main device is controlled to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data. 根据权利要求4所述的方法,其特征在于,所述根据验证通过后的配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接,包括:The method according to claim 4 is characterized in that the step of controlling the second wireless communication module of the energy storage main device to establish a connection with the corresponding energy storage sub-device according to the verified distribution network demand data comprises: 基于所述验证通过后的配网需求数据控制所述储能主设备的第二无线通信模块广播握手请求;所述握手请求配置成请求与所述对应的储能子设备建立通信连接;Based on the verified distribution network demand data, the second wireless communication module of the energy storage main device is controlled to broadcast a handshake request; the handshake request is configured to request to establish a communication connection with the corresponding energy storage sub-device; 接收所述第二无线通信模块反馈的握手结果;receiving a handshake result fed back by the second wireless communication module; 若所述握手结果表征储能主设备与对应的储能子设备成功建立通信连接,通过所述第二无线通信模块发送配网信息至建立了通信连接的储能子设备;所述配网信息包括网络名称和网络密码。If the handshake result indicates that a communication connection is successfully established between the energy storage main device and the corresponding energy storage sub-device, network configuration information is sent to the energy storage sub-device with the established communication connection through the second wireless communication module; the network configuration information includes a network name and a network password. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一无线通信模块为NFC模块,所述第二无线通信模块为蓝牙模块。The method according to any one of claims 1 to 5, characterized in that the first wireless communication module is an NFC module, and the second wireless communication module is a Bluetooth module. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备,包 括:The method according to any one of claims 1 to 6 is characterized in that the energy storage master device is controlled to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and the network distribution result information of the energy storage master device is sent to the terminal device through the first wireless communication module, including include: 根据所述进入配网模式指令控制所述储能主设备切换为配网模式,并在配网模式下根据所述配网需求数据控制所述储能主设备进行配网;Control the energy storage master device to switch to the network distribution mode according to the instruction to enter the network distribution mode, and control the energy storage master device to perform network distribution according to the network distribution demand data in the network distribution mode; 若所述储能主设备配网成功,则将生成配网成功指示作为储能主设备的配网结果信息,并通过第一无线通信模块发送至终端设备。If the network configuration of the energy storage master device is successful, a network configuration success indication will be generated as the network configuration result information of the energy storage master device and sent to the terminal device through the first wireless communication module. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, characterized in that the method further comprises: 若所述储能主设备配网失败,则将生成配网失败数据包作为储能主设备的配网结果信息,并通过第一无线通信模块发送至终端设备;所述配网失败数据包包括配网失败指示和配网失败原因数据。If the network configuration of the energy storage master device fails, a network configuration failure data packet will be generated as the network configuration result information of the energy storage master device and sent to the terminal device through the first wireless communication module; the network configuration failure data packet includes a network configuration failure indication and network configuration failure reason data. 根据权利要求2-8任一项所述的方法,其特征在于,所述根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进入配网状态,并通过所述第一无线通信模块发送配网进行指令至所述终端设备,包括:The method according to any one of claims 2 to 8 is characterized in that controlling the energy storage master device to enter the distribution network state according to the instruction to enter the distribution network mode and the distribution network demand data, and sending the distribution network instruction to the terminal device through the first wireless communication module, comprises: 根据所述进入配网模式指令控制所述储能主设备切换为配网模式,并在配网模式下根据所述配网需求数据对所述储能主设备的设备参数进行验证;Control the energy storage master device to switch to the network distribution mode according to the instruction to enter the network distribution mode, and verify the device parameters of the energy storage master device according to the network distribution demand data in the network distribution mode; 若所述储能主设备的设备参数验证通过,则控制所述储能主设备进入配网状态,并通过所述第一无线通信模块发送配网进行指令至所述终端设备。If the device parameter verification of the energy storage master device is passed, the energy storage master device is controlled to enter a network distribution state, and a network distribution instruction is sent to the terminal device through the first wireless communication module. 根据权利要求4-9任一项所述的方法,其特征在于,所述配网需求数据包括的所述储能子设备的设备参数为加密传输的参数;所述对所述配网需求数据进行真实性验证,包括:The method according to any one of claims 4 to 9 is characterized in that the device parameters of the energy storage sub-device included in the distribution network demand data are encrypted transmission parameters; and the authenticity verification of the distribution network demand data comprises: 对所述储能子设备的设备参数执行解密操作,得到所述储能子设备的解密后设备参数;Performing a decryption operation on the device parameters of the energy storage sub-device to obtain the decrypted device parameters of the energy storage sub-device; 对所述储能子设备的解密后设备参数进行真实性验证。The decrypted device parameters of the energy storage sub-device are verified for authenticity. 根据权利要求3-10任一项所述的方法,其特征在于,所述第三无线通信模块为WiFi模块。The method according to any one of claims 3 to 10, characterized in that the third wireless communication module is a WiFi module. 一种储能系统的配网装置,其特征在于,所述装置包括:A distribution network device for an energy storage system, characterized in that the device comprises: 配网请求模块,配置成获取储能主设备的第一无线通信模块传输的进入配网模式指令和配网需求数据,所述进入配网模式指令为终端设备处于所述第一无线通信模块的感应范围内时发送的指令;A network distribution request module, configured to obtain a network distribution mode entry instruction and network distribution demand data transmitted by a first wireless communication module of the energy storage master device, wherein the network distribution mode entry instruction is an instruction sent when the terminal device is within the sensing range of the first wireless communication module; 主机配网模块,配置成根据所述进入配网模式指令和所述配网需求数据控制所述储能主设备进行配网,将所述储能主设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备;A host network distribution module, configured to control the energy storage master device to perform network distribution according to the network distribution mode entry instruction and the network distribution demand data, and send the network distribution result information of the energy storage master device to the terminal device through the first wireless communication module; 从机配网模块,配置成若所述储能主设备配网成功,且所述配网需求数据包括所述储能子设备的设备参数,根据所述配网需求数据控制所述储能主设备的第二无线通信模块与对应的储能子设备建立连接;The slave network distribution module is configured to control the second wireless communication module of the energy storage master device to establish a connection with the corresponding energy storage sub-device according to the network distribution demand data if the network distribution of the energy storage master device is successful and the network distribution demand data includes the device parameters of the energy storage sub-device; 配网反馈模块,配置成获取所述储能子设备的配网结果信息,并将所述储能子设备的配网结果信息通过所述第一无线通信模块发送至所述终端设备。The network configuration feedback module is configured to obtain the network configuration result information of the energy storage sub-device, and send the network configuration result information of the energy storage sub-device to the terminal device through the first wireless communication module. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至6中任一项所述的方法的步骤。A computer device comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented. 一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法的步骤。 A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
PCT/CN2024/093918 2023-05-19 2024-05-17 Network distribution method and apparatus for energy storage system, and computer device Pending WO2024240082A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310575364.1 2023-05-19
CN202310575364.1A CN116744407A (en) 2023-05-19 2023-05-19 Distribution methods, devices and computer equipment for energy storage systems

Publications (1)

Publication Number Publication Date
WO2024240082A1 true WO2024240082A1 (en) 2024-11-28

Family

ID=87912399

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/093918 Pending WO2024240082A1 (en) 2023-05-19 2024-05-17 Network distribution method and apparatus for energy storage system, and computer device

Country Status (2)

Country Link
CN (1) CN116744407A (en)
WO (1) WO2024240082A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744407A (en) * 2023-05-19 2023-09-12 广州疆海科技有限公司 Distribution methods, devices and computer equipment for energy storage systems

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511354A (en) * 2020-12-04 2021-03-16 珠海雷特科技股份有限公司 Intelligent household control panel sub-equipment configuration method, computer device and computer readable storage medium
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
WO2021169377A1 (en) * 2020-02-24 2021-09-02 珠海格力电器股份有限公司 Network configuration method and apparatus, and computer device
CN114363992A (en) * 2021-12-02 2022-04-15 杭州博联智能科技股份有限公司 Method and system for intelligent equipment network distribution, electronic device and storage medium
CN116744407A (en) * 2023-05-19 2023-09-12 广州疆海科技有限公司 Distribution methods, devices and computer equipment for energy storage systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021169377A1 (en) * 2020-02-24 2021-09-02 珠海格力电器股份有限公司 Network configuration method and apparatus, and computer device
CN112511354A (en) * 2020-12-04 2021-03-16 珠海雷特科技股份有限公司 Intelligent household control panel sub-equipment configuration method, computer device and computer readable storage medium
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
CN114363992A (en) * 2021-12-02 2022-04-15 杭州博联智能科技股份有限公司 Method and system for intelligent equipment network distribution, electronic device and storage medium
CN116744407A (en) * 2023-05-19 2023-09-12 广州疆海科技有限公司 Distribution methods, devices and computer equipment for energy storage systems

Also Published As

Publication number Publication date
CN116744407A (en) 2023-09-12

Similar Documents

Publication Publication Date Title
US10575174B2 (en) Secure protocol for peer-to-peer network
CN110460439A (en) Information transferring method, device, client, server-side and storage medium
CN107358441B (en) Payment verification method, system, mobile device and security authentication device
WO2014161438A1 (en) Dynamic password token, and data transmission method and system for dynamic password token
CN104704500B (en) Integrated circuit, wireless display system, method, apparatus, apparatus and medium for content protection in a system-on-chip device
TWI636373B (en) Method and device for authorizing between devices
CN103237305A (en) Password protection method for smart card on mobile terminals
CN114070614A (en) Identity authentication method, device, equipment, storage medium and computer program product
CN116847341A (en) Network connection method, terminal, network equipment to be distributed and storage medium
CN105791359A (en) IoT system and data interaction method
CN106658488B (en) Intelligent household appliance and method and device for safely accessing intelligent household appliance
WO2024240082A1 (en) Network distribution method and apparatus for energy storage system, and computer device
CN104899497A (en) Identity card reading apparatus having no SAM module, SAM apparatus and system
US20220368522A1 (en) Bluetooth peripheral and central apparatuses and verification method
US11741214B2 (en) Passcode authentication based data storage device
CN116345706A (en) NFC wireless charging method, system, electronic device and readable storage medium
CN110866999A (en) Control method and device for intelligent door lock and storage medium
KR102263053B1 (en) A database structure capable of synchronizing data between devices in a local area network environment and a data synchronization method using the same
CN114650182B (en) Identity authentication method, system, device, gateway equipment, equipment and terminal
CN118018343A (en) Device binding method, device and storage medium
CN119213728A (en) Communication method, device, equipment, storage medium, chip, product and program
CN114826591A (en) Cross-device data transmission method, system and terminal
CN114760025A (en) Remote device control method, device, electronic device and medium
CN114244521B (en) A cryptographic system implementation method applied to edge computing
KR101495034B1 (en) Method and system for remote authentication based on security token

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24810325

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE