Method and apparatus for performing networking by means of network number, and terminal device and storage medium

By broadcasting network numbers to slave nodes in the wireless battery management system and updating network numbers after networking, the problem of low efficiency and accuracy affected by manual configuration during non-first networking is solved, and an automated and efficient networking process is realized.

WO2025073150A1PCT designated stage expired Publication Date: 2025-04-10SUNWODA MOBILITY ENERGY TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/142177
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-10-07
Filing Date
2023-12-27
Publication Date
2025-04-10

AI Technical Summary

Technical Problem

In wireless battery management systems, slave nodes need to be manually configured during non-first networking, resulting in low network efficiency and human factors affecting the accuracy.

Method used

By controlling the master node to broadcast the network number of the master node to all slave nodes, the slave node can form a network with the master node when it determines that its network number is the same as the master node's network number. After completing the networking, obtain the MAC address and network number of the master node, generate the network number to be updated, and update the network number of the master node and slave node.

Benefits of technology

It improves network efficiency during non-first networking, avoids network errors caused by human configuration, and ensures automation and accuracy of networking process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023142177_10042025_PF_FP_ABST
    Figure CN2023142177_10042025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a method and apparatus for performing networking by means of a network number, and a terminal device and a storage medium. The method comprises: controlling a master node to broadcast a network number of the master node to all slave nodes, such that each slave node performs networking with the master node when determining that a network number of the slave node itself is the same as the network number of the master node; after the networking is completed, acquiring a MAC address of the master node and the network number of the master node; on the basis of the MAC address of the master node and the network number of the master node, generating a network number to be updated; and on the basis of the network number to be updated, updating the network number of the master node and the network number of each slave node which performs networking with the master node. By means of implementing the present application, the networking efficiency of non-initial networking can be improved, and the risk of a networking error caused by artificial configuration of a slave node during the non-initial networking is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, terminal equipment and storage medium for networking through network number

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on October 7, 2023, with application number 202311285055.7 and invention name “Method, device, terminal equipment and storage medium for networking through network number”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the technical field of wireless battery management systems, and in particular to a method, apparatus, terminal device, and storage medium for networking through a network number. Background Art

[0003] In a wireless battery management system (WBMS), monitoring data transmission for battery cells is typically achieved by establishing a secure and stable local area network within the battery pack. Since wireless communication IC chips produced in the same batch have the same network ID, during initial networking, after the master node begins operation, slave nodes join the master node on a first-come, first-served basis based on the number of accessible slave nodes provided by the master node. Networking is then established based on the master node and the slave nodes that first joined the master node's network. However, with this networking approach, during non-initial networking, since slave nodes join the master node on a first-come, first-served basis, there's no guarantee that the slave nodes joining the master node during non-initial networking are the same as during initial networking. Therefore, after non-initial networking, manual configuration of the slave nodes is required to adjust the slave nodes networking with the master node to ensure that the same slave nodes are connected to the master node during non-initial networking. This networking approach requires manual configuration of slave nodes during non-initial networking, resulting in low networking efficiency and human-induced network accuracy.

[0004] Application Contents

[0005] The embodiments of the present application provide a method, apparatus, terminal device and storage medium for networking through network numbers, which can improve the networking efficiency when the network is not being established for the first time, while avoiding the risk of networking errors caused by manual configuration of slave nodes when the network is not being established for the first time.

[0006] An embodiment of the present application provides a method for networking using a network number, including:

[0007] Control the master node to broadcast the master node's network number to all slave nodes, so that the slave nodes can form a network with the master node when they determine that their own network number is the same as the master node's network number;

[0008] After the network is established, obtain the MAC address and network ID of the master node;

[0009] Generate a network number to be updated according to the MAC address of the master node and the network number of the master node;

[0010] The network numbers of the master node and each slave node networked with the master node are updated according to the network number to be updated.

[0011] Furthermore, when the slave node determines that its own network ID is different from the network ID of the master node, it does not form a network with the master node.

[0012] Furthermore, before controlling the master node to broadcast the network number of the master node to all slave nodes, the method further includes:

[0013] Get the preset network topology;

[0014] Determine the number of slave nodes that need to be networked with the master node according to the network topology;

[0015] A number of slave nodes that need to be networked with the master node are selected from all the slave nodes, and the network numbers of the selected slave nodes and the master node are set to be the same network number.

[0016] Furthermore, generating the network number to be updated according to the MAC address of the master node and the network number of the master node includes:

[0017] The MAC address of the master node and the network number of the master node are summed up by character strings to generate the network number to be updated.

[0018] Based on the above method embodiments, the present application provides corresponding device embodiments;

[0019] An embodiment of the present application provides a device for networking through a network number, including: a networking module and a network number updating module;

[0020] The networking module is used to control the master node to broadcast the network number of the master node to all slave nodes, so that when the slave node determines that its own network number is the same as the network number of the master node, it will be networked with the master node;

[0021] The network number update module is used to obtain the MAC address of the master node and the network number of the master node after the networking is completed; generate the network number to be updated based on the MAC address of the master node and the network number of the master node; and update the network number of the master node and each slave node networked with the master node based on the network number to be updated.

[0022] Furthermore, when the slave node determines that its own network ID is different from the network ID of the master node, it does not form a network with the master node.

[0023] Furthermore, it also includes a network number setting module;

[0024] The network number setting module is used to obtain a preset networking topology before controlling the master node to broadcast the network number of the master node to all slave nodes; determine the number of slave nodes that need to be networked with the master node based on the networking topology; select slave nodes corresponding to the number that need to be networked with the master node from all slave nodes, and set the network numbers of the selected slave nodes and the network number of the master node to be the same network number.

[0025] Furthermore, generating the network number to be updated according to the MAC address of the master node and the network number of the master node includes:

[0026] The MAC address of the master node and the network number of the master node are summed up by character strings to generate the network number to be updated.

[0027] Another embodiment of the present application provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a method of networking through a network number as described in the above embodiment of the application.

[0028] Another embodiment of the present application provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a method for networking through a network number as described in the above embodiment of the application.

[0029] The implementation of this application has the following beneficial effects:

[0030] The present application provides a method, apparatus, terminal device and storage medium for networking through network numbers. The method controls the master node to broadcast the network number of the master node to all slave nodes, so that the slave node is networked with the master node when it passes the network number verification of the master node, so that the initial networking can be completed quickly and conveniently. At the same time, after the networking is completed, a network number to be updated is generated according to the network number of the master node and the MAC address of the master node, and the network numbers of the master node and each slave node networked with the master node are updated through the network number to be updated, so that when the networking is not the first time, the master node broadcasts the updated network number of the master node to find each slave node networked with the master node during the initial networking, and quickly generates the same network as the initial networking, thereby improving the networking efficiency during the non-initial networking, and avoiding the risk of networking errors caused by manual configuration of the slave nodes during the non-initial networking. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] FIG1 is a flow chart of a method for networking through network numbers provided in an embodiment of the present application.

[0032] FIG2 is a schematic diagram of a connection structure of a star topology provided in an embodiment of the present application.

[0033] FIG3 is a schematic structural diagram of a device for networking through network numbers provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0035] As shown in FIG1 , a method for networking using a network number provided in an embodiment of the present application includes:

[0036] Step S1: Control the master node to broadcast the master node's network number to all slave nodes, so that when the slave node determines that its own network number is the same as the master node's network number, it will form a network with the master node;

[0037] Step S2: After the network is established, the MAC address and network ID of the master node are obtained;

[0038] Step S3: Generate a network number to be updated according to the MAC address of the master node and the network number of the master node;

[0039] Step S4: updating the network numbers of the master node and the slave nodes networked with the master node according to the network number to be updated.

[0040] In the wireless battery management system, there are devices that serve as master nodes and devices that serve as slave nodes. For ease of description, the following description uses the term "master node" to refer to devices that serve as master nodes, and the term "slave node" to refer to devices that serve as slave nodes.

[0041] Regarding step S1, in a preferred embodiment, before controlling the master node to broadcast the master node's network number to all slave nodes, the process further includes: obtaining a preset networking topology; determining, based on the networking topology, the number of slave nodes that need to be networked with the master node; selecting a corresponding number of slave nodes from all slave nodes that need to be networked with the master node, and setting the network numbers of the selected slave nodes to be the same as the network number of the master node. Furthermore, the specific number of slave nodes that need to be networked with the master node can be adjusted based on changes to the preset networking topology during actual use.

[0042] Specifically, before the initial networking is performed, a preset networking topology is obtained. Preferably, the preset networking topology is a star topology as shown in FIG2 . In the current FIG2 , the number of slave nodes that need to be connected to the master node can be determined to be 4 through the star topology.

[0043] After determining the number of slave nodes that need to be networked with the master node, a corresponding number of slave nodes that need to be networked with the master node are selected from all the slave nodes of the wireless battery management system, and the network numbers of the selected slave nodes and the master node are set to the same network number. Optionally, the network number setting can be written to the chip of the device where the corresponding node is located by the administrator of the wireless battery management system or the user using the system through custom settings. After the network number is written, the chip of the device corresponding to the master node and the chip of the device corresponding to the slave node are configured through software or other means. Through the above embodiment, the master node and the slave nodes that need to be connected to the master node can be distinguished from the wireless battery management system by pre-writing the same network number before networking.

[0044] After the wireless battery management system is powered on, a communication connection is established between the master node and each slave node in the wireless battery management system. The master node is controlled to broadcast the network number written in the master node to all slave nodes in the wireless battery management system. Upon receiving the network number broadcast by the master node, each slave node matches the network number broadcast by the master node with the network number of its own slave node. If the matching network number is the same, the slave node forms a network with the master node. If the slave node determines that its network number is different from the master node's network number, it will not form a network with the master node.

[0045] Specifically, for each slave node, when receiving the network number broadcast by the master node, the network number broadcast by the master node is matched with the network number of its own slave node. If the matched network number is not the same, the slave node refuses to form a network with the master node.

[0046] After all slave nodes have completed the verification of the network number with the master node, the initial networking is completed. In this networking, network data transmission between the master node and each slave node can be carried out according to the set network topology architecture.

[0047] In step S2, after the initial networking of the master node and the corresponding slave node described in step S1 is completed, the MAC address and network ID of the master node in the networking are obtained. Preferably, the MAC address and network ID of the master node and the MAC address and network ID of the slave node during the initial networking can be stored in the mainboard of the wireless battery management system or other storage device, so that the next time the network is established, the network can be quickly established based on the initial networking information.

[0048] For step S3, in a preferred embodiment, generating the network number to be updated based on the MAC address of the master node and the network number of the master node includes: generating the network number to be updated by summing the MAC address of the master node and the network number of the master node by means of character strings.

[0049] Specifically, the MAC address of the master node obtained in step S2 and the network number are summed up to generate a new network number (ie the network number to be updated).

[0050] In step S4, the network numbers of the master node and slave nodes that have completed networking in step S2 are updated with the newly generated network numbers in step S3 (i.e., the network numbers to be updated). The next time a network is quickly established, the updated network numbers can be used directly for networking without having to rewrite and configure the network numbers of the master node and slave nodes to be networked.

[0051] It should be added that after the networking is completed, a network data communication connection is established between the master node and the slave node. The master node can further obtain more information about the slave node, such as the unique address of the slave node and other related information, providing a network foundation for the subsequent construction of a more secure network.

[0052] Based on the above method embodiments, the present application provides corresponding device embodiments.

[0053] As shown in FIG3 , an embodiment of the present application provides a device for networking through a network number, including: a networking module and a network number updating module;

[0054] The networking module is used to control the master node to broadcast the network number of the master node to all slave nodes, so that when the slave node determines that its own network number is the same as the network number of the master node, it will be networked with the master node;

[0055] The network number update module is used to obtain the MAC address of the master node and the network number of the master node after the networking is completed; generate the network number to be updated based on the MAC address of the master node and the network number of the master node; and update the network number of the master node and each slave node networked with the master node based on the network number to be updated.

[0056] In a preferred embodiment, when the slave node determines that its own network ID is different from the network ID of the master node, it does not form a network with the master node.

[0057] In a preferred embodiment, it further includes a network number setting module;

[0058] The network number setting module is used to obtain a preset networking topology before controlling the master node to broadcast the network number of the master node to all slave nodes; determine the number of slave nodes that need to be networked with the master node based on the networking topology; select a corresponding number of slave nodes that need to be networked with the master node from all slave nodes, and set the network numbers of the selected slave nodes and the network number of the master node to be the same network number.

[0059] In a preferred embodiment, generating the network number to be updated according to the MAC address of the master node and the network number of the master node includes:

[0060] The MAC address of the master node and the network number of the master node are summed up by character strings to generate the network number to be updated.

[0061] It should be noted that the device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art can understand and implement the present invention without inventive work.

[0062] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0063] Based on the above method embodiment, the present application provides a corresponding terminal device embodiment.

[0064] An embodiment of the present application provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, a method for networking through a network number in any embodiment of the present application is implemented.

[0065] The terminal device may be a computing device such as a desktop computer, a notebook computer, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0066] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, connecting various parts of the entire terminal device using various interfaces and lines.

[0067] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created based on the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0068] Based on the above method embodiment, the present application provides a corresponding storage medium embodiment.

[0069] An embodiment of the present application provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a method for networking through a network number in any embodiment of the present application.

[0070] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. The computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium.

[0071] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.

Claims

1. A method for networking through a network number, comprising: Control the master node to broadcast the master node's network number to all slave nodes, so that the slave nodes can form a network with the master node when they determine that their own network number is the same as the master node's network number; After the network is established, obtain the MAC address and network ID of the master node; Generate a network number to be updated according to the MAC address of the master node and the network number of the master node; The network numbers of the master node and each slave node networked with the master node are updated according to the network number to be updated.

2. A method for networking by network number as claimed in claim 1, wherein: When the slave node determines that its own network number is different from the network number of the master node, it does not form a network with the master node.

3. A method for networking by network number as claimed in claim 1, wherein: Before controlling the master node to broadcast the master node's network number to all slave nodes, it also includes: Get the preset network topology; Determine the number of slave nodes that need to be networked with the master node according to the networking topology; A corresponding number of slave nodes that need to be networked with the master node are selected from all slave nodes, and the network numbers of the selected slave nodes and the master node are set to be the same network number.

4. A method for networking by network number as claimed in claim 1, wherein: The generating the network number to be updated according to the MAC address of the master node and the network number of the master node comprises: The MAC address of the master node and the network number of the master node are generated by summing the strings. New network number.

5. A device for networking through a network number, wherein: include: Networking module and network number update module; The networking module is used to control the master node to broadcast the network number of the master node to all slave nodes, so that when the slave node determines that its own network number is the same as the network number of the master node, it will be networked with the master node; The network number update module is used to obtain the MAC address of the master node and the network number of the master node after the networking is completed; and generate the network number to be updated according to the MAC address of the master node and the network number of the master node; The network numbers of the master node and each slave node networked with the master node are updated according to the network number to be updated.

6. The device for networking by network number as claimed in claim 5, wherein: When the slave node determines that its own network number is different from the network number of the master node, it does not form a network with the master node.

7. The device for networking by network number as claimed in claim 5, wherein: Also includes a network number setting module; The network number setting module is used to obtain a preset networking topology before controlling the master node to broadcast the network number of the master node to all slave nodes; and determine the number of slave nodes that need to be networked with the master node according to the networking topology; A corresponding number of slave nodes that need to be networked with the master node are selected from all slave nodes, and the network numbers of the selected slave nodes and the master node are set to be the same network number.

8. The device for networking by network number as claimed in claim 5, wherein: The generating the network number to be updated according to the MAC address of the master node and the network number of the master node comprises: The MAC address of the master node and the network number of the master node are summed up by character strings to generate the network number to be updated.

9. A terminal device, wherein: It comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a method for networking through a network number as described in any one of claims 1 to 4 is implemented.

10. A storage medium, wherein: The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a method for networking through a network number as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Authentication method based on ZigBee network

    CN102209325A

  • ZigBee networking system and networking method

    CN103442370A

  • Configuration parameter distribution method, configuration parameter reception method and configuration parameter reception device

    CN104837146A

  • ZigBee network rapid networking configuration method and ZigBee network

    CN112261679A

  • Method and device for networking through network number, terminal equipment and storage medium

    CN117241336A