Node communication determination method and apparatus, and terminal device and storage medium

By dividing the data judgment period into multiple continuous communication periods and adopting cyclic judgment, the misjudgment problem in traditional wireless communication judgment methods is solved, realizing a more efficient and reliable communication system that can adapt to changes in complex environments and network instability.

WO2026098289A1PCT designated stage Publication Date: 2026-05-15SUNWODA ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
SUNWODA ELECTRONICS CO LTD
Filing Date
2025-10-28
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Traditional wireless communication judgment methods are prone to misjudgment when there are a large number of slave nodes, which affects the stability and accuracy of the communication system, and makes it difficult to guarantee the integrity and availability of data, especially in complex environments.

Method used

The system divides a single data judgment cycle into multiple consecutive communication cycles and uses cyclical communication judgment to ensure that the overall communication is successful if at least one communication cycle is successful. A sliding window operation is used to dynamically adjust the combination of communication cycles to improve the system's adaptability and fault tolerance.

Benefits of technology

It reduces the probability of misjudgment, improves the stability of the communication system and the integrity of data, ensures the successful transmission and integration of critical data in complex environments, and enhances the system's adaptability and fault tolerance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025130562_15052026_PF_FP_ABST
    Figure CN2025130562_15052026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a node communication determination method and apparatus, and a terminal device and a storage medium. The method comprises: acquiring a plurality of slave nodes included in a communication system, and on the basis of a communication time required for a master node to complete one complete data communication with each of the slave nodes, dividing a single data determination period into a plurality of consecutive communication periods; and performing cyclic communication determination on each data determination period, and when a communication period within which any master node successfully communicates with the slave node is present within the single data determination period, determining that a node communication result of the data determination period is that the communication succeeds, wherein when the slave node receives data sent by the master node, it is determined that the communication between the master node and the slave node within the communication period succeeds. The present application can improve the accuracy of determining wireless communication between nodes.
Need to check novelty before this filing date? Find Prior Art

Description

A method, apparatus, terminal device, and storage medium for determining node communication.

[0001] Cross-reference to related applications

[0002] This application claims priority to Chinese Patent Application No. 202411569823.6, filed on November 5, 2024, entitled "A Node Communication Judgment Method, Apparatus, Terminal Equipment and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of data communication technology, and in particular to a node communication determination method, apparatus, terminal equipment, and storage medium. Background Technology

[0004] Wireless communication technology has wide applications in various fields such as the Internet of Things, smart homes, and smart healthcare, and plays a crucial role, especially in electric vehicles and smart devices. To meet the needs of numerous scenarios, establishing a fast, stable, and efficient wireless networking system is essential for the future development of smart devices and electric vehicles.

[0005] In traditional wireless communication, the communication cycle between master and slave nodes is fixed. Within each communication cycle, multiple communication loops exist. In each loop, the master node must complete wireless communication with all slave nodes, ensuring that all slave nodes receive data and send acknowledgments. Only then is the communication considered successful. If any one or more slave nodes fail to communicate, the wireless communication is considered a failure. However, in practical applications, when there are many slave nodes, the probability of the master node successfully acquiring data from all slave nodes within a single communication cycle is lower. Using traditional wireless communication judgment methods would simply define it as a system communication failure, affecting the assessment of communication system stability. Furthermore, within a data judgment cycle, there are multiple communication cycles between the master and slave nodes. Only if any single communication cycle within the data judgment cycle is successful is the communication between the master and slave nodes within that data judgment cycle considered successful. However, with a large number of slave nodes, different slave nodes may fail to communicate with the master node in different communication cycles within a single data judgment cycle. Due to the existence of multiple communication loops, the slave node's data may have already been successfully uploaded to the master node. Traditional wireless communication judgment methods are prone to misjudging system communication failures, leading to false positives and impacting subsequent system planning. Improving the accuracy of wireless communication judgments is a pressing technical problem that needs to be solved. Summary of the Invention

[0006] This application aims to provide a node communication judgment method, apparatus, terminal equipment, and storage medium to solve the above-mentioned technical problems, reduce the risk of misjudgment in wireless communication, and improve the stability of the communication system.

[0007] To address the aforementioned technical problems, this application provides a node communication determination method, including:

[0008] The system acquires multiple slave nodes within the communication system and divides a single data judgment period into multiple consecutive communication periods based on the communication time required for the master node to complete a full data communication with each of the slave nodes.

[0009] For each data judgment period, a cyclical communication judgment is performed. When there is a communication period in which any master node and slave node successfully communicate, the node communication result of the data judgment period is determined to be successful. Specifically, when the slave node receives data sent by the master node, the master node and slave node of the communication period are determined to have successfully communicated.

[0010] In the above scheme, based on the communication time required for the master node and each slave node to complete a full data communication, a single data judgment period is divided into multiple consecutive communication periods, ensuring that the time in each communication period is sufficient to complete a full data communication. Within each data judgment period, the communication system performs cyclical communication judgments. When any master node and slave node successfully communicate within a single data judgment period, the communication between the master node and slave node in that data judgment period is considered successful. Through cyclical judgment, even if a communication period fails, the communication system can still determine the overall communication success through other successful periods, thereby reducing the probability of false judgments and ensuring the validity and accuracy of the communication system data. Within each communication period, the communication between the master node and slave node is only considered successful when all slave nodes have received the data sent by the master node and sent acknowledgment feedback. This ensures the validity of the data at each node. Allowing different communication periods to succeed within a single data judgment period ensures that critical data can be successfully transmitted and integrated even in complex environments, thereby guaranteeing data integrity and availability. By changing the traditional judgment criteria, the adaptability and fault tolerance of the communication system are improved, thereby reducing the risk of false judgments in the communication system. By performing cyclical judgments on each data judgment cycle multiple times, we can effectively cope with changes in the communication environment and network instability. When different slave nodes fail to communicate with the master node within the data judgment cycle, we can avoid misjudgment of system communication results due to a single communication failure.

[0011] In one implementation, the node communication determination method further includes:

[0012] The master node is controlled to periodically initiate data communication requests to each of the slave nodes in the communication system until the communication ends; wherein, the control of the master node to periodically initiate data communication requests to each of the slave nodes in the communication system until the communication ends specifically means: controlling the master node to send data communication requests to each of the slave nodes at preset time intervals until the communication ends.

[0013] In one implementation, the cyclical communication judgment for each data judgment cycle specifically includes:

[0014] Multiple consecutive communication cycles are displayed simultaneously in a preset window;

[0015] The sliding window operation is continuously executed, and the communication cycles contained in each data judgment cycle are displayed cyclically based on the sliding window operation;

[0016] The communication cycle displayed in the preset window is judged one by one to obtain the node communication result of each communication cycle.

[0017] In one implementation, the sliding window operation includes:

[0018] Obtain the communication cycle displayed in the preset window and at least one communication cycle following the communication cycle;

[0019] Based on the communication cycle displayed in the preset window and at least one communication cycle following the communication cycle displayed in the preset window, the communication cycle included in the next data judgment cycle is constructed; wherein, the total number of communication cycles of the communication cycle displayed in the preset window and at least one communication cycle following the communication cycle displayed in the preset window is the number of communication cycles included in the next data judgment cycle.

[0020] Move the preset window to the next data judgment cycle to display the communication cycles included in the next data judgment cycle.

[0021] Secondly, this application also provides a node communication judgment device, including: a period division module and a communication judgment module;

[0022] The cycle division module is used to obtain multiple slave nodes contained in the communication system, and divide a single data judgment cycle into multiple consecutive communication cycles according to the communication time required for the master node to complete a complete data communication with each of the slave nodes.

[0023] The communication judgment module is used to perform cyclical communication judgment for each data judgment period. When there is a communication period in a single data judgment period in which any master node and slave node successfully communicate, the node communication result of the data judgment period is determined to be successful. Specifically, when the slave node receives data sent by the master node, the master node and slave node of the communication period are determined to have successfully communicated.

[0024] In the above scheme, based on the communication time required for the master node and each slave node to complete a full data communication, a single data judgment period is divided into multiple consecutive communication periods, ensuring that the time in each communication period is sufficient to complete a full data communication. Within each data judgment period, the system performs cyclical communication judgments. When any master node and slave node successfully communicate within a single data judgment period, the communication between the master node and slave node in that data judgment period is considered successful. Through cyclical judgment, even if a communication period fails, the communication system can still determine the overall success of the communication through other successful periods, thereby reducing the probability of false judgments and ensuring the validity and accuracy of the communication system data. Within each communication period, the communication between the master node and slave node is only considered successful when all slave nodes have received the data sent by the master node and sent acknowledgment feedback. This ensures the validity of the data at each node. Allowing different successful communication periods within a single data judgment period ensures that critical data can be successfully transmitted and integrated even in complex environments, thereby guaranteeing data integrity and availability. By changing the traditional judgment criteria, the adaptability and fault tolerance of the communication system are improved, thereby reducing the risk of false judgments in the communication system. By performing cyclical judgments on each data judgment cycle multiple times, we can effectively cope with changes in the communication environment and network instability. When different slave nodes fail to communicate with the master node within the data judgment cycle, we can avoid misjudgment of system communication results due to a single communication failure.

[0025] In one implementation, the node communication determination device further includes a communication control module, specifically:

[0026] The master node is controlled to periodically initiate communication with each of the slave nodes in the communication system until the communication ends; wherein, the control of the master node to periodically initiate data communication requests with each of the slave nodes in the communication system until the communication ends specifically means: controlling the master node to send data to each of the slave nodes at preset time intervals until the communication ends.

[0027] In one implementation, the cyclical communication judgment for each data judgment cycle specifically includes:

[0028] Multiple consecutive communication cycles are displayed simultaneously in a preset window;

[0029] The sliding window operation is continuously executed, and the communication cycles contained in each data judgment cycle are displayed cyclically based on the sliding window operation;

[0030] The communication cycle displayed in the preset window is judged one by one to obtain the node communication result of each communication cycle.

[0031] In one implementation, the sliding window operation includes:

[0032] Obtain the communication cycle displayed in the preset window and at least one communication cycle following the communication cycle displayed in the preset window;

[0033] Based on the communication cycle displayed in the preset window and the at least one communication cycle following the communication cycle displayed in the preset window, a communication cycle included in the next data judgment cycle is constructed; wherein, the total number of communication cycles of the communication cycle displayed in the preset window and the at least one communication cycle following the communication cycle displayed in the preset window is the number of communication cycles included in the next data judgment cycle.

[0034] Move the preset window to the next data judgment cycle to display the communication cycles included in the next data judgment cycle.

[0035] Thirdly, this application also 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, wherein the processor executes the computer program to implement the node communication determination method described above.

[0036] Fourthly, this application also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program controls the device where the computer-readable storage medium is located to execute the node communication determination method described above when it is running. Attached Figure Description

[0037] Figure 1 is a flowchart illustrating a node communication determination method provided in one embodiment of this application;

[0038] Figure 2 is a schematic diagram of the communication method between the master node and the slave node within a single communication cycle provided in an embodiment of this application;

[0039] Figure 3 is a schematic diagram of a traditional data judgment period division method provided in an embodiment of this application;

[0040] Figure 4 is a schematic diagram of a cyclic data judgment period division method provided in an embodiment of this application;

[0041] Figure 5 is a magnified view of a portion of Figure 4;

[0042] Figure 6 is a schematic diagram of a node communication judgment device provided in an embodiment of this application;

[0043] Figure 7 is a schematic diagram of a node communication judgment device provided in another embodiment of this application. Detailed Implementation

[0044] The specific embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate this application, but are not intended to limit the scope of this application.

[0045] The terms "first" and "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus. The term "a plurality of" means two or more.

[0046] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0047] Example 1

[0048] Referring to Figure 1, Figure 1 is a flowchart illustrating a node communication determination method provided in one embodiment of this application. This embodiment of the application provides a node communication determination method, including steps 101 to 102, each step of which is detailed below:

[0049] Step 101: Obtain the multiple slave nodes contained in the communication system, and divide the single data judgment period into multiple consecutive communication periods according to the communication time required for the master node to complete a complete data communication with each slave node.

[0050] In this embodiment, the communication system includes a master node and multiple slave nodes. The master node is started and initialized to ensure its hardware and software environment functions correctly. All slave nodes within the communication system can be identified through broadcasting or scanning, and each slave node's unique identifier (ID) and related parameters can be obtained. In the node communication architecture, the master node is typically responsible for initiating communication requests and managing slave nodes, while slave nodes respond to the master node's requests and provide data or execute commands. The master node establishes communication connections with each slave node sequentially. Specifically, it controls the master node to send test data packets to each slave node and receive test data responses returned by the slave nodes. The communication time is obtained by recording the time it takes for the master node to complete one full data communication with each slave node. Based on the measured communication time, the communication cycle of each slave node is obtained. The data judgment cycle refers to the time interval or frequency during node communication when the master node or slave node analyzes, verifies, and judges the received data. Within this cycle, the system checks the validity, correctness, and completeness of the communication data to ensure the reliability and stability of the communication. The data judgment period should be greater than the sum of the communication times of all slave nodes to ensure that the master node can complete a full data communication with all slave nodes within each data judgment period. The setting of the data judgment period needs to comprehensively consider factors such as system real-time requirements, communication time and efficiency, system load, data update frequency, system stability and reliability, hardware resource limitations, and user needs. For example, if the data judgment period is 100ms, and the communication time required for the master node to complete a full data communication with each slave node is 30ms per node communication cycle, then one data judgment period can be divided into 3 (100 / 30 rounded down) communication cycles. In this embodiment, a single data judgment period is divided into multiple consecutive communication cycles. The master node can exchange data with different slave nodes within each communication cycle, thereby achieving parallel processing. This parallel communication method is more efficient than serial communication because it reduces the overall communication time and allows for the simultaneous processing of data from multiple slave nodes. Furthermore, within each communication cycle, the master node can communicate with slave nodes in a timely manner to obtain the latest data or send control commands. This periodic communication pattern helps ensure the real-time nature of data, which is especially important for applications requiring rapid response, such as industrial automation control.

[0051] In one embodiment, the node communication determination method further includes: controlling the master node to periodically initiate data communication requests to each slave node in the communication system until communication ends; wherein, controlling the master node to periodically initiate data communication requests to each slave node in the communication system until communication ends specifically means: controlling the master node to send data communication requests to each slave node at preset time intervals until communication ends.

[0052] Referring to Figure 2, which is a schematic diagram of the communication method between the master node and the slave node within a single communication cycle provided in an embodiment of this application, data communication requests are sent to the slave nodes in the communication system through broadcasting or multicasting. Broadcasting can send data requests or instructions to all slave nodes, suitable for situations where all slave nodes need to be notified at once; multicasting can selectively send data to a group of slave nodes, suitable for scenarios where communication with multiple slave nodes is required simultaneously, but not all slave nodes need to participate. When the data communication request type sent by the master node to the slave node is a data request, the slave node returns the corresponding data according to the request, such as sensor data, status information, etc.; when the data communication request type sent by the master node to the slave node is a control instruction, such as start, stop, restart, etc., the slave node executes the corresponding operation and returns the execution result; when the data communication request type sent by the master node to the slave node is configuration update information, such as parameter settings, system updates, etc., the slave node receives and applies the new configuration; when the data communication request type sent by the master node to the slave node is confirmation information, to ensure the correct reception and processing of data or instructions, the slave node returns a confirmation response. The preset time interval is generally a small interval to meet the system's real-time requirements and ensure timely data updates and responses. However, the preset time interval should be greater than the time it takes for the master node to complete a full data communication with each slave node (communication time) to ensure that the master node can complete a full data communication with all slave nodes within each communication cycle. The specific time interval is set by the user based on the system's real-time requirements, communication time, number of slave nodes, and data change frequency, and is not limited here. Through periodic data communication, the master node can efficiently exchange and process data with each slave node in the communication system. This periodic communication mode not only improves communication efficiency and real-time performance but also enhances system stability and controllability, ensuring reliable and efficient system operation under various complex scenarios. By flexibly adjusting the preset time interval, the system can also adapt to different communication needs and network environments, thereby achieving optimal communication performance and resource utilization.

[0053] Step 102: Perform cyclical communication checks for each data judgment period. When there is a communication period in which either the master node or the slave node successfully communicates, the node communication result of the data judgment period is determined to be successful. Specifically, when the slave node receives data sent by the master node, the communication period is determined to be successful when the master node and the slave node communicate successfully.

[0054] In one embodiment, cyclic communication judgment is performed for each data judgment period, specifically including: simultaneously displaying multiple consecutive communication periods based on a preset window; continuously executing a sliding window operation to cyclically display the communication periods contained in each data judgment period based on the sliding window operation; performing communication judgment on each communication period displayed in the preset window to obtain the node communication result of each communication period.

[0055] In this embodiment, a preset window size is pre-set, representing the number of communication cycles to be displayed simultaneously. The preset window is then started and initialized. The preset window is shown as the dashed box in Figures 4 and 5. Multiple initial continuous communication cycle data are loaded into the preset window, including the planned communication time, communication target (slave node), data request, or instruction content for each communication cycle. The multiple communication cycle information (i.e., the communication cycle data) within the preset window are simultaneously displayed in the user interface or system monitoring interface, ensuring that users or system administrators can intuitively view current and upcoming communication tasks. The specific preset window size is customized by the user based on factors such as system real-time requirements, communication load, and the number of data judgment cycles, and is not limited here. If the system requires high real-time performance, the preset window should be set smaller to ensure timely processing of each communication cycle; if the communication load is heavy, the preset window should be set larger to balance the processing capacity and communication efficiency of the master node; the size of the preset window should also match the number of communication cycles within a data judgment cycle to ensure that the preset window can completely display all communication cycles within one or more data judgment cycles. After the preset window initialization is complete, a sliding window operation is initiated to ensure that the preset window can continuously update and display new communication cycle data. Set the sliding step size, which is the number of communication cycles the preset window moves forward or backward with each sliding window operation. The sliding step size should be set according to the system's processing capacity and communication requirements. After each data judgment cycle ends, the sliding window operation is executed to move the preset window to display the communication cycle data for the next data judgment cycle. The sliding operation can be automatically triggered or manually triggered by the user or system administrator. The sliding window operation is generally performed after the currently displayed communication cycle data has been processed. For example, the sliding operation can be executed after all communication cycles in the preset window have completed communication judgment and obtained results. The sliding window operation can slide forward or backward, depending on the system's communication scheduling table and data processing requirements. During sliding, the communication cycle data in the preset window is automatically updated to display the new communication cycle information. The sliding step size can be fixed or dynamically adjusted. A fixed sliding step size is suitable for situations where the communication task is relatively stable; a dynamically adjusted sliding step size can be adjusted according to the real-time status of the system (such as communication load, data change frequency, etc.) to improve communication efficiency and system stability. In this embodiment, when judging communication within a preset window, the integrity of the slave node's data is used as the criterion for evaluating the communication result. If the data of all slave nodes within the current preset window is complete, the master node and slave nodes are considered to have successfully communicated within the current data judgment period; otherwise, communication fails. Preferably, the integrity of the slave node's data can be determined by checking the data length and data content consistency. Specifically, for data length verification, the master node includes the actual length information of the data packet when sending it.After receiving a data packet, the slave node checks whether the length of the received data matches the length of the sent data (i.e., the actual length information of the attached data packet). For data content consistency verification, the master node attaches checksums (such as checksums, CRC, etc.) of some key data when sending the data packet. After receiving the data packet, the slave node recalculates the checksums of the key data and compares them with the received checksums. If they match, the data is considered complete.

[0056] In this embodiment, by pre-dividing a single data judgment period into multiple consecutive communication periods and simultaneously displaying multiple communication periods based on a preset window, the communication system can efficiently manage and execute communication tasks. Through continuous sliding window operations, the communication system can flexibly update and display new communication period information, ensuring timely processing and response to communication tasks. This communication judgment method not only improves communication efficiency and real-time performance but also enhances the stability and controllability of the communication system, ensuring that in various complex scenarios, the communication system can promptly detect and handle communication anomalies, thereby improving the overall communication quality and reliability of the communication system.

[0057] In one embodiment, the sliding window operation includes: obtaining a communication cycle displayed by a preset window and at least one communication cycle following the communication cycle displayed by the preset window; constructing a communication cycle included in the next data judgment cycle based on the communication cycle displayed by the preset window and the at least one communication cycle following the communication cycle displayed by the preset window; wherein the total number of communication cycles of the communication cycle displayed by the preset window and the at least one communication cycle following the communication cycle displayed by the preset window is the number of communication cycles included in the next data judgment cycle; and moving the preset window to the next data judgment cycle to display the communication cycles included in the next data judgment cycle.

[0058] In this embodiment, from the current sliding window to each subsequent communication cycle, the data of the currently displayed communication cycle and the data of the immediately following communication cycle are sequentially acquired. This ensures a continuous data sequence, facilitating subsequent analysis and processing. By combining the current communication cycle with its subsequent communication cycles, a complete data judgment cycle containing multiple communication cycles is constructed. For example, the node communication process has 10 communication cycles, and each data judgment cycle includes 3 communication cycles. Refer to Figure 3, which is a schematic diagram of a traditional data judgment cycle division method provided in an embodiment of this application. Assuming that each data judgment cycle contains 3 communication cycles, if the traditional data judgment cycle division method is followed, the 3 communication cycles of the first data judgment cycle are the 1st, 2nd, and 3rd communication cycles, the 3 communication cycles of the second data judgment cycle are the 4th, 5th, and 6th communication cycles, the 3 communication cycles of the third data judgment cycle are the 7th, 8th, and 9th communication cycles, and so on. This method has a fixed number of communication cycles when processing data and cannot be dynamically adjusted. Fixed segmentation makes it difficult to quickly reflect changes in new data within any given data judgment cycle. For example, if the data in the third communication cycle is incorrect, the judgments in the first two communication cycles cannot be corrected in time. However, in this embodiment, the construction of each data judgment cycle can be dynamically adjusted through a sliding window operation. Referring to Figures 4 and 5, Figure 4 is a schematic diagram of a cyclical data judgment cycle division method provided in an embodiment of this application. Specifically, the first data judgment cycle still includes the 1st, 2nd, and 3rd communication cycles, but the second data judgment cycle can evaluate the 2nd, 3rd, and 4th communication cycles and the subsequent 5th and 6th communication cycles to form a new data judgment cycle. When summarizing all node information, the information from the 2nd and 3rd communication cycles is combined with the data from the upcoming 4th communication cycle. That is, the second data judgment cycle can actually have multiple permutations and combinations of communication cycles, such as the 2nd, 3rd, and 4th communication cycles, the 3rd, 4th, and 5th communication cycles, or the 4th, 5th, and 6th communication cycles. If any given permutation and combination of nodes within a communication cycle results in successful communication, the node communication in the current data judgment cycle can be considered successful. Traditional node communication judgment methods only focus on three specific communication cycles in each data judgment cycle. If data is lost in a certain communication cycle, it is necessary to wait for the next data judgment cycle, leading to reduced data availability. However, in this embodiment, by including the upcoming communication cycle (such as the next communication cycle after the current one), each step ensures that decisions are made based on the latest available data, improving data utilization.Furthermore, the dynamic structure allows for flexible, real-time updates to the data judgment cycle. Each time, only the window needs to be moved, ensuring a continuous data flow for each judgment cycle. This enables faster identification of anomalies and timely adjustments. Each judgment cycle includes data from the preceding and following communication cycles, preventing idle communication cycles and effectively utilizing idle time for data transmission and processing. It avoids the inefficiency caused by waiting during certain communication cycles due to fixed data judgment cycles.

[0059] In this embodiment, the sliding window-based operation cycle display of each data judgment period offers greater flexibility, real-time performance, and data integrity compared to traditional data period division methods. Through dynamic updates and instant feedback, the master node can comprehensively evaluate the slave node's data at any point in time, significantly improving the efficiency and responsiveness of the communication system, thereby enhancing the overall reliability and performance of the communication system.

[0060] In practical applications, the communication quality assessment method can be applied, for example, to the Battery Management System (BMS) of electric vehicles. The battery pack (PACK) includes individual battery cells and the BMS. The BMS includes a master control unit (BMU) and multiple cell supervisory controllers (CSCs). The master control unit is the master node, and the cell supervisory controllers are the slave nodes. The cell supervisory controllers monitor the voltage and temperature information of the individual battery cells and transmit this information to the master control unit via wireless communication. The master control unit executes relevant power output strategies based on the voltage and temperature information of the individual battery cells. Therefore, when communication between the master control unit and the cell supervisory controllers fails, the electric vehicle outputs alarm information, such as a maintenance alarm or a parking alarm. Specifically, if the master control unit and the slave controller communicate successfully, the vehicle can operate normally. If the master control unit and the slave controller fail to communicate, the electric vehicle will issue a voice alarm or display an alarm message on the vehicle screen, so that the driver can accurately detect whether the vehicle is experiencing a communication failure. Compared with the prior art, this application improves the accuracy of judging whether the wireless communication between the master node and the slave node is successful, reduces the probability of false judgment, helps to improve the communication success rate, effectively reduces the alarm frequency, and improves the communication quality and reliability of the entire communication system.

[0061] In this embodiment of the application, a node communication determination device is also provided, 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 the above-described node communication determination method.

[0062] In this embodiment of the application, a computer-readable storage medium is also provided, which includes a stored computer program, wherein the computer program controls the device where the computer-readable storage medium is located to execute the above-described node communication judgment method when it is running.

[0063] For example, a computer program can be divided into one or more modules, one or more of which are stored in memory and executed by a processor to complete this application. The one or more modules can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the node communication judgment device.

[0064] For example, the computer-readable storage medium is a non-transient computer-readable storage medium.

[0065] The node communication determination device can be a computing device such as a desktop computer, laptop, handheld computer, or cloud server. The node communication determination device may include, but is not limited to, a processor, memory, and a display. Those skilled in the art will understand that the above components are merely examples of the node communication determination device and do not constitute a limitation on the node communication determination device. It may include more or fewer components, combinations of certain components, or different components. For example, the node communication determination device may also include input / output devices, network access devices, buses, etc.

[0066] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the node communication judgment device, connecting all parts of the device through various interfaces and lines.

[0067] The memory can be used to store computer programs and / or modules. The processor, by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory, realizes various functions of the node communication judgment device. The memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, at least one application program required for a function (such as sound playback function, text conversion function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, text message data, etc.). In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0068] In this application, the module based on node communication judgment, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. Those skilled in the art can understand and implement this without any inventive effort.

[0069] This application provides a node communication judgment method. Based on the communication time required for a master node to complete a full data communication with each slave node, a single data judgment period is divided into multiple consecutive communication periods, ensuring that the time of each communication period is sufficient to complete a full data communication. Within each data judgment period, the system performs cyclical communication judgments. When any master node and slave node successfully communicate within a single data judgment period, the communication between the master node and slave node in that data judgment period is determined to be successful. Through cyclical judgment, even if a communication period fails, the system can still judge the overall communication success through other successful periods, thereby reducing the probability of false judgments and ensuring the validity and accuracy of system data. Within each communication period, the communication between the master node and slave node is only determined to be successful when all slave nodes have received the data sent by the master node and sent acknowledgment feedback. This ensures the validity of each node's data. Allowing different successful communication periods within a single data judgment period ensures that critical data can be successfully transmitted and integrated even in complex environments, thereby guaranteeing data integrity and availability. By changing the traditional judgment criteria, the system's adaptability and fault tolerance are improved, thereby reducing the risk of system false judgments. By performing cyclical judgments on each data judgment cycle multiple times, we can effectively cope with changes in the communication environment and network instability. When different slave nodes fail to communicate with the master node within the data judgment cycle, we can avoid misjudgment of system communication results due to a single communication failure.

[0070] Example 2

[0071] Referring to Figure 6, Figure 6 is a schematic diagram of a node communication determination device provided in one embodiment of this application. This embodiment of the application provides a node communication determination device, including: a period division module 201 and a communication determination module 202;

[0072] The period division module 201 is used to obtain multiple slave nodes contained in the communication system and divide a single data judgment period into multiple consecutive communication periods according to the communication time required for the master node to complete a complete data communication with each slave node.

[0073] The communication judgment module 202 is used to perform cyclical communication judgment for each data judgment period. When there is a communication period in a single data period in which any node has successfully communicated, the node communication in the data judgment period is determined to be successful. Specifically, when each slave node receives the data sent by the master node, the node communication in the communication period is determined to be successful.

[0074] In one embodiment, as shown in FIG7, the node communication judgment device further includes a communication control module 203, which specifically controls the master node to periodically initiate communication with each slave node in the communication system until the communication ends; wherein, the control of the master node to periodically initiate communication with each slave node in the communication system until the communication ends specifically means controlling the master node to send data to each slave node at preset time intervals until the communication ends.

[0075] In one embodiment, cyclic communication judgment is performed for each data judgment period, specifically including: simultaneously displaying multiple consecutive communication periods based on a preset window; continuously executing a sliding window operation to cyclically display the communication periods contained in each data judgment period based on the sliding window operation; performing communication judgment on each communication period displayed in the preset window to obtain the node communication result of each communication period.

[0076] In one embodiment, the sliding window operation includes: acquiring a communication cycle displayed by a preset window and at least one communication cycle following the communication cycle displayed by the preset window; constructing a communication cycle included in the next data judgment cycle based on the communication cycle displayed by the preset window and the at least one communication cycle following the communication cycle displayed by the preset window; wherein the total number of communication cycles of the communication cycle displayed by the preset window and the at least one communication cycle following the communication cycle displayed by the preset window is the number of communication cycles included in the next data judgment cycle; and moving the preset window to the next data judgment cycle to display the communication cycles included in the next data judgment cycle.

[0077] In the embodiments of this application, the period division module 201, the communication judgment module 202, and the communication control module 203 can each be one or more processors, controllers, or chips with communication interfaces capable of implementing communication protocols. If necessary, they may also include memory and related interfaces, system transmission buses, etc. The processor, controller, or chip executes program-related code to implement the corresponding functions. Alternatively, an alternative approach is that the period division module 201, the communication judgment module 202, and the communication control module 203 share an integrated chip or share a processor, controller, memory, or other devices. The shared processor, controller, or chip executes program-related code to implement the corresponding functions.

[0078] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0079] This application provides a node communication judgment device. Based on the communication time required for a master node to complete a full data communication with each slave node, a single data judgment cycle is divided into multiple consecutive communication cycles, ensuring that the time of each communication cycle is sufficient to complete a full data communication. Within each data judgment cycle, the system performs cyclical communication judgments. When any master node and slave node successfully communicate within a single data judgment cycle, the communication between the master node and slave node in that data judgment cycle is determined to be successful. Through cyclical judgment, even if a communication cycle fails, the system can still judge the overall communication success through other successful cycles, thereby reducing the probability of false judgments and ensuring the validity and accuracy of system data. Within each communication cycle, the communication between the master node and slave node is only determined to be successful when all slave nodes have received the data sent by the master node and sent acknowledgment feedback. This ensures the validity of each node's data. Allowing different successful communication cycles within a single data judgment cycle ensures that critical data can be successfully transmitted and integrated even in complex environments, thereby guaranteeing data integrity and availability. By changing the traditional judgment criteria, the system's adaptability and fault tolerance are improved, thereby reducing the risk of system misjudgment. By performing cyclical judgments on each data judgment cycle multiple times, we can effectively cope with changes in the communication environment and network instability. When different slave nodes fail to communicate with the master node within the data judgment cycle, we can avoid misjudgment of system communication results due to a single communication failure.

[0080] The above are merely preferred embodiments of this application. It should be noted that, for those skilled in the art, several improvements and substitutions can be made without departing from the technical principles of this application, and these improvements and substitutions should also be considered within the scope of protection of this application.

Claims

1. A method for determining node communication, wherein, include: The system acquires multiple slave nodes within the communication system and divides a single data judgment period into multiple consecutive communication periods based on the communication time required for the master node to complete a full data communication with each of the slave nodes. For each data judgment period, a cyclical communication judgment is performed. When there is a communication period in which any master node and slave node successfully communicate, the node communication result of the data judgment period is determined to be successful. Specifically, when the slave node receives data sent by the master node, the master node and slave node of the communication period are determined to have successfully communicated.

2. The node communication determination method as described in claim 1, wherein, The node communication determination method further includes: The master node is controlled to periodically initiate data communication requests to each of the slave nodes in the communication system until the communication ends; wherein, the control of the master node to periodically initiate data communication requests to each of the slave nodes in the communication system until the communication ends specifically means: controlling the master node to send data communication requests to each of the slave nodes at preset time intervals until the communication ends.

3. The node communication determination method as described in claim 1, wherein, The cyclical communication judgment for each data judgment period specifically includes: Multiple consecutive communication cycles are displayed simultaneously in a preset window; The sliding window operation is continuously executed, and the communication cycles contained in each data judgment cycle are displayed cyclically based on the sliding window operation; The communication cycle displayed in the preset window is judged one by one to obtain the node communication result of each communication cycle.

4. The node communication determination method as described in claim 3, wherein, The sliding window operation includes: Obtain the communication cycle displayed in the preset window and at least one communication cycle following the communication cycle displayed in the preset window; Based on the communication cycle displayed in the preset window and the at least one communication cycle following the communication cycle displayed in the preset window, the communication cycles included in the next data judgment cycle are constructed; wherein, the total number of communication cycles of the communication cycle displayed in the preset window and the at least one communication cycle following the communication cycle displayed in the preset window is the number of communication cycles included in the next data judgment cycle. Move the preset window to the next data judgment cycle to display the communication cycles included in the next data judgment cycle.

5. A node communication determination device, wherein, include: Periodic division module and communication judgment module; The cycle division module is used to obtain multiple slave nodes contained in the communication system, and divide a single data judgment cycle into multiple consecutive communication cycles according to the communication time required for the master node to complete a complete data communication with each of the slave nodes. The communication judgment module is used to perform cyclical communication judgment for each data judgment period. When there is a communication period in a single data judgment period in which any master node and slave node successfully communicate, the node communication result of the data judgment period is determined to be successful. Specifically, when the slave node receives data sent by the master node, the master node and slave node of the communication period are determined to have successfully communicated.

6. The node communication determination device as described in claim 5, wherein, The node communication determination device further includes a communication control module, specifically: The master node is controlled to periodically initiate communication with each of the slave nodes in the communication system until the communication ends; wherein, the control of the master node to periodically initiate data communication requests with each of the slave nodes in the communication system until the communication ends specifically means: controlling the master node to send data to each of the slave nodes at preset time intervals until the communication ends.

7. The node communication determination device as described in claim 5, wherein, The cyclical communication judgment for each data judgment period specifically includes: Multiple consecutive communication cycles are displayed simultaneously in a preset window; The sliding window operation is continuously executed, and the communication cycles contained in each data judgment cycle are displayed cyclically based on the sliding window operation; The communication cycle displayed in the preset window is judged one by one to obtain the node communication result of each communication cycle.

8. The node communication determination device as described in claim 7, wherein, The sliding window operation includes: Obtain the communication cycle displayed in the preset window and at least one communication cycle following the communication cycle displayed in the preset window; The communication cycles contained in each data judgment cycle are constructed based on the communication cycles displayed in the preset window and the at least one communication cycle following the communication cycles displayed in the preset window; wherein, the total number of communication cycles of the communication cycles displayed in the preset window and the at least one communication cycle following the communication cycles displayed in the preset window is the number of communication cycles contained in the next data judgment cycle. Move the preset window to the next data judgment cycle to display the communication cycles included in the next data judgment cycle.

9. A terminal device, wherein, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the node communication determination method as described in any one of claims 1 to 4.

10. A computer-readable storage medium, wherein, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the node communication determination method as described in any one of claims 1 to 4.