Information processing method, data communication system, device, equipment and storage medium

By deploying the master node in the data communication system to manage the file operations of the slave nodes and controlling the slave node's access to the file system according to the busy and idle state of the master node, the problems of system busyness and data loss in low-speed communication design are solved, and more efficient communication is achieved and hardware costs are reduced.

CN120075211APending Publication Date: 2025-05-30CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311630936.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In existing low-speed communication designs, file operations between nodes can lead to system busyness and data loss, especially when multiple low-performance nodes need to send message packets to high-performance nodes.

Method used

The master node is deployed in the data communication system to store the file system. The master node sends feedback messages to the slave node according to its own busy and idle state, indicating whether the slave node is allowed to operate the file system.

Benefits of technology

By reducing the possibility of multiple slave nodes operating the file system simultaneously, the risk of system busyness and data loss is reduced, communication efficiency is improved, and hardware costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075211A_ABST
    Figure CN120075211A_ABST
Patent Text Reader

Abstract

The invention provides an information processing method, a data communication system and device, equipment and a storage medium, and relates to the technical field of data communication. According to the method, a master node is deployed in a data communication system to store a file system, so that when a slave node needs to operate the file system, the master node can send a feedback message to the slave node according to the busy / idle state of the master node so as to indicate whether the slave node is allowed to operate the file system or not; therefore, the problems of system busy and data loss caused by the fact that a plurality of slave nodes operate the file system can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data communication technologies, and in particular, to an information processing method, a data communication system, a device, equipment, and a storage medium. Background Art

[0002] In existing low-speed communication designs, if a node is involved in file operations, storage devices are often added locally to the node to store files for operation. These nodes are generally some low-performance hardware, and adding storage devices will greatly increase the hardware cost.

[0003] In the existing method, in order to reduce the hardware cost, the information to be recorded can be summarized in the form of message packets to a high-performance node for processing. However, the number of such low-performance nodes is relatively large. If all of them are sent to the high-performance node for processing in the form of message packets, it may cause the system to be busy, and data congestion is likely to cause data loss. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide an information processing method, a data communication system, a device, equipment, and a storage medium to reduce the problems of system busyness and data loss.

[0005] In a first aspect, an embodiment of this application provides an information processing method, which is applied to a master node in a data communication system. The data communication system further includes multiple slave nodes, and a file system is deployed in the master node. The method includes:

[0006] Receiving a file operation request from a slave node;

[0007] Responding to the file operation request, obtaining its own busy or idle state;

[0008] Sending a feedback message to the slave node according to the busy or idle state, where the feedback message is used to indicate whether to allow the slave node to operate on the file system.

[0009] In the above implementation process, by deploying a master node in the data communication system to store the file system, when a slave node needs to operate on the file system, the master node can send a feedback message to the slave node according to its own busy or idle state to indicate whether to allow the slave node to operate on the file system, thereby reducing the problems of system busyness and data loss caused by multiple slave nodes operating on the file system.

[0010] Optionally, the sending a feedback message to the slave node according to the busy or idle state includes:

[0011] If the busy or idle state is an idle state, sending a feedback message indicating permission to operate to the slave node;

[0012] If the busy / idle state is the busy state, a feedback message indicating a rejected operation is sent to the slave node.

[0013] In the above implementation process, the master node only allows the slave node to perform operations in the idle state and rejects operations in the busy state, thus reducing the problem of system busyness caused by multiple nodes simultaneously operating on the file system.

[0014] Optionally, after sending the feedback message indicating an approved operation to the slave node, it further includes:

[0015] Suspending the broadcast of idle messages to each slave node, where the idle messages are sent by the master node in the idle state. This can inform the slave nodes that they no longer need to continue sending file operation requests, thus saving communication resources.

[0016] Optionally, after sending the feedback message indicating an approved operation to the slave node, it further includes:

[0017] Receiving an operation message for the file system sent by the slave node;

[0018] Performing a corresponding operation on the file system according to the operation message.

[0019] In the above implementation process, the master node only allows the slave node to operate on the file system in the idle state, thus reducing the problem of system busyness caused by multiple slave nodes simultaneously operating on the file system.

[0020] Optionally, the master node communicates with each slave node through a low-speed transmission bus, and the receiving of the operation message for the file system sent by the slave node includes:

[0021] Receiving, through the low-speed transmission bus, the operation message for the file system sent by the slave node, where the operation message includes an instruction type, a data length, and payload data.

[0022] In the above implementation process, since the communication of the low-speed transmission bus is reliable communication, there is no need to set verification data in the operation message, omitting the data verification process and having higher transmission efficiency.

[0023] Optionally, the performing a corresponding operation on the file system according to the operation message includes:

[0024] Performing a legality verification on the operation message;

[0025] After the verification passes, performing a corresponding operation on the file system according to the operation message.

[0026] In the above implementation process, the master node performs a legality verification on the operation message, which can reduce incorrect operations on the file system and improve the security of the file system.

[0027] Optionally, after sending the feedback message indicating permission to operate to the slave node, the method further includes:

[0028] If the slave node does not complete the operation on the file system after exceeding the set duration, terminate the operation of the slave node on the file system. This can prevent a certain slave node from occupying the file system for a long time and reduce the waiting time for other slave nodes to operate on the file system.

[0029] Optionally, terminating the operation of the slave node on the file system includes:

[0030] Sending a termination operation instruction message to the slave node, where the termination operation instruction message is used to instruct the slave node to terminate the operation on the file system. This can prevent the slave node from continuing to send operation messages, reduce data transmission, and save communication resources.

[0031] Optionally, before receiving the file operation request from the slave node, the method further includes:

[0032] Broadcasting an idle message to each slave node, where the idle message is sent by the master node in an idle state. This can reduce the situation where each slave node sends a file operation request when the master node is busy, causing communication congestion.

[0033] Optionally, responding to the file operation request and obtaining its own busy or idle state includes:

[0034] In response to the file operation request, if the file system is already in use by other slave nodes, determine its own busy or idle state as the busy state; if the file system is not in use by other slave nodes, determine its own busy or idle state as the idle state.

[0035] Optionally, the master node communicates with each slave node through a low-speed transmission bus;

[0036] And / or, the low-speed transmission bus includes a CAN bus or a serial communication bus.

[0037] In a second aspect, an information processing method provided by an embodiment of the present application is applied to a slave node in a data communication system. The data communication system further includes a master node, and a file system is deployed in the master node. The method includes:

[0038] Sending a file operation request to the master node;

[0039] Receive the feedback message sent by the master node, where the feedback message is determined according to the busy or idle state of the master node;

[0040] Determine whether to operate on the file system in the master node according to the feedback message.

[0041] In the above implementation process, by judging whether the file system can be operated according to the feedback message of the master node, the problems of system busy and data loss caused by multiple slave nodes operating on the file system simultaneously can be reduced.

[0042] Optionally, the determining whether to operate on the file system in the master node according to the feedback message includes:

[0043] If the feedback message is a feedback message indicating permission to operate, send an operation message for the file system to the master node;

[0044] If the feedback message is a feedback message indicating rejection of operation, prohibit sending an operation message for the file system to the master node.

[0045] Optionally, after prohibiting sending an operation message for the file system to the master node, it further includes:

[0046] Monitor the next idle message broadcast by the master node, where the idle message is sent by the master node in the idle state.

[0047] Optionally, after sending an operation message for the file system to the master node, it further includes:

[0048] If a termination operation instruction message sent by the master node is received, terminate sending the operation message to the master node and record the current operation situation of the file system, where the termination operation instruction message is sent by the master node when the slave node fails to complete the operation on the file system within the set duration.

[0049] In the above implementation process, when terminating the operation, by recording the current operation situation of the file system, it is convenient to continue operating on the file system next time and improve the operation efficiency.

[0050] Optionally, communication between the master node and each slave node is carried out through a low-speed transmission bus;

[0051] And / or, the low-speed transmission bus includes a CAN bus or a serial communication bus.

[0052] In a third aspect, an embodiment of the present application provides a data communication system, where the data communication system includes: a master node and multiple slave nodes, and a file system is deployed in the master node;

[0053] A slave node, configured to send a file operation request to the master node;

[0054] The master node, configured to, in response to the file operation request, obtain its own busy / idle state, and send a feedback message to the slave node according to the busy / idle state;

[0055] The slave node, configured to determine whether to operate on the file system in the master node according to the received feedback message.

[0056] In a fourth aspect, an embodiment of the present application provides an information processing device, running on a master node in a data communication system, the data communication system further including a plurality of slave nodes, a file system being deployed in the master node, the device including:

[0057] A request receiving module, configured to receive a file operation request from a slave node;

[0058] A request processing module, configured to, in response to the file operation request, obtain its own busy / idle state;

[0059] A feedback module, configured to send a feedback message to the slave node according to the busy / idle state, the feedback message being used to indicate whether to allow the slave node to operate on the file system.

[0060] In a fifth aspect, an embodiment of the present application provides an information processing device, running on a slave node in a data communication system, the data communication system further including a master node, a file system being deployed in the master node, the device including:

[0061] A request sending module, configured to send a file operation request to the master node;

[0062] A feedback receiving module, configured to receive the feedback message sent by the master node, the feedback message being determined according to the busy / idle state of the master node;

[0063] A feedback judging module, configured to determine whether to operate on the file system in the master node according to the feedback message.

[0064] In a sixth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory storing computer-readable instructions, when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect above are run.

[0065] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, when the computer program is executed by a processor, the steps in the method provided in the first aspect above are run.

[0066] Other features and advantages of the present application will be described in the subsequent specification, and, in part, will be obvious from the specification, or can be understood by implementing the embodiments of the present application. The objectives and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written specification, claims, and drawings. Description of the Drawings

[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.

[0068] Figure 1 Flowchart of an information processing method provided for an embodiment of the present application;

[0069] Figure 2 Flowchart of another information processing method provided for an embodiment of the present application;

[0070] Figure 3 Schematic structural diagram of a data communication system provided for an embodiment of the present application;

[0071] Figure 4 Block diagram of the structure of an information processing device provided for an embodiment of the present application;

[0072] Figure 5 Block diagram of the structure of another information processing device provided for an embodiment of the present application;

[0073] Figure 6 Schematic structural diagram of an electronic device for executing an information processing method provided for an embodiment of the present application. Detailed Embodiments

[0074] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application.

[0075] It should be noted that the terms "system" and "network" in the embodiments of the present invention can be used interchangeably. "Multiple" means two or more. In view of this, in the embodiments of the present invention, "multiple" can also be understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " generally represents an "or" relationship between the associated objects before and after, unless otherwise specified.

[0076] In existing solutions, each low-performance node aggregates the information to be recorded into a high-performance node in the form of a message packet for processing. However, if there are a large number of such low-performance nodes and all of them send the message packets to the high-performance node for processing, it may cause the system to be busy, and data congestion is likely to result in data loss.

[0077] Therefore, based on the above problems, the embodiments of the present application provide an information processing method. In this method, a master node is deployed in a data communication system to store a file system. In this way, when a slave node needs to operate on the file system, the master node can send a feedback message to the slave node according to its own busy or idle state to indicate whether the slave node is allowed to operate on the file system, thereby reducing the system busy state and data loss problems caused by multiple slave nodes operating on the file system.

[0078] Please refer to Figure 1 , Figure 1 which is a flowchart of an information processing method provided by the embodiments of the present application. The method includes the following steps:

[0079] Step S110: Receive a file operation request from a slave node.

[0080] The execution subject of the information processing method in this embodiment is the master node in the data communication system. The data communication system further includes multiple slave nodes, and a file system is deployed in the master node.

[0081] It can be understood that before the system runs, the identities of the nodes in the data communication system can be configured by the user. For example, the user configures a high-performance node in the data communication system as the master node. A high-performance node refers to a node with strong computing power and the ability to run an operating system and a file system, such as a device or board of an SoC (System on Chip). Then the remaining nodes are configured as slave nodes. These slave nodes are generally low-performance nodes, such as devices or boards of an MCU (Microcontroller Unit), and the slave nodes may not have a file system.

[0082] In some embodiments, one master node can be configured in the entire data communication system to manage the sharing process of multiple slave nodes on the file system, including bus maintenance, file operations, conflict resolution, etc. Of course, for backup purposes, a standby master node can also be deployed in the data communication system. The standby master node is not enabled under normal circumstances and is only enabled after the primary master node fails. After the standby master node is enabled, it can first send a notification message to each slave node. The file information in the text system on the primary master node can be backed up to the standby master node in real time or regularly. Therefore, after the standby master node is enabled, it will not affect the slave nodes' continued operation on the file system.

[0083] In some other embodiments, after the data communication system goes online, each node can also perform self-identification. For example, the master node is configured with a file system, while the other slave nodes are not. Therefore, each node can first detect whether it is configured with a file system. If it has, it considers itself as the master node; if not, it considers itself as a slave node. In this way, the identity configuration of the master and slave nodes can also be achieved.

[0084] It can be understood that in actual situations, the identity configuration method of each node in the data communication system can also adopt other methods, which will not be listed one by one here. For example, the master node is generated through the election of each node, and then the remaining nodes are used as slave nodes. In addition, if the nodes pre-deployed in the data communication system do not have the functions of the master node in this solution, then a high-performance node can be added to the data communication system as the master node, that is, a master node with the ability to store and execute a file system is added.

[0085] If any one of the multiple slave nodes has a file operation requirement, it can send a file operation request to the master node. The master node can then receive the file operation request sent by the slave node, and the file operation request is used to request the master node to allow operations on its file system.

[0086] Step S120: In response to the file operation request, obtain its own busy or idle state.

[0087] In the case where multiple slave nodes operate on the file system, in order to reduce the problems of system busyness and data loss, after receiving the file operation request, the master node obtains its own busy or idle state to determine whether it is in a busy state or an idle state.

[0088] In some embodiments, the master node can obtain its own busy or idle state in the following way: determine whether the file system is already in use by other slave nodes. If so, determine its own busy or idle state as the busy state; if not, determine its own busy or idle state as the idle state.

[0089] That is to say, after receiving the file operation request, the master node can detect whether there are other slave nodes operating on the current file system. If so, it considers itself in a busy state; if not, it considers itself in an idle state. In this way, the problem of system busyness caused by multiple slave nodes operating on the file system simultaneously can be reduced. And if multiple slave nodes operate on the file system simultaneously, due to line congestion, data loss is likely to occur. Therefore, this solution can also effectively reduce the problem of data loss.

[0090] Understandably, the busy or idle state of the master node can be distinguished by corresponding identifiers. For example, in the idle state, the identifier of its busy or idle state is 0, and in the busy state, the identifier of the busy or idle state is changed to 1. In this way, after each change in the busy or idle state, the corresponding identifier can be changed accordingly, and then the master node can know its current busy or idle state according to the identifier.

[0091] Step S130: Send a feedback message to the slave node according to the busy or idle state.

[0092] Among them, the feedback message is used to indicate whether the slave node is allowed to operate on the file system. That is to say, after obtaining its own busy or idle state, the master node can generate a feedback message and send it to the slave node. After receiving the feedback message, the slave node can know whether it can operate on the file system.

[0093] In the above implementation process, by deploying a master node in the data communication system to store the file system, when the slave node needs to operate on the file system, the master node can send a feedback message to the slave node according to its own busy or idle state to indicate whether the slave node is allowed to operate on the file system, thereby reducing the problems of system busyness and data loss caused by multiple slave nodes operating on the file system.

[0094] On the basis of the above embodiment, in order to reduce the problem that the slave node always sends file operation requests and occupies the communication bus, the master node can broadcast an idle message to each slave node. The idle message is used to indicate that the master node is currently in an idle state. For example, the master node can detect its own busy or idle state in real time or regularly, and then when it determines that it is in an idle state, it broadcasts an idle message to each slave node to inform each slave node that it can operate on the file system.

[0095] After each slave node receives the idle message, if the slave node has a file operation requirement, it can send a file operation request to the master node. That is to say, the above-mentioned file operation request can be sent by the slave node after receiving the idle message. During this period, multiple slave nodes can send file operation requests to the master node to compete for the use of the file system.

[0096] In this way, the slave node will only request to operate on the file system when the master node is in an idle state, and will not send a file operation request when the master node is in a busy state, thus causing the communication bus to be occupied.

[0097] Based on the above embodiments, after receiving a file operation request from a slave node, the master node will obtain its own busy or idle state, and then send a feedback message to the slave node according to the busy or idle state. In this method, if the master node determines that its busy or idle state is the idle state, it will send a feedback message indicating permission to operate to the slave node; if it determines that its busy or idle state is the busy state, it will send a feedback message indicating rejection of the operation to the slave node.

[0098] Among them, the feedback message indicating permission or rejection of the operation can be understood as carrying an indication of the corresponding permission or rejection of the operation in the feedback message. In this way, after the slave node receives the feedback message, it can know whether the operation is allowed or rejected according to the feedback message. If it is a feedback message indicating permission to operate, the slave node can perform corresponding operations on the file system; if it is a feedback message indicating rejection of the operation, the slave node cannot perform operations on the file system. At this time, the slave node can continue to send file operation requests to the master node, or stop sending file operation requests to the master node, or the slave node can also stop sending file operation requests to the master node after receiving a preset number of feedback messages indicating rejection of the operation.

[0099] In some embodiments, if the master node receives file operation requests sent by multiple slave nodes, in order to reduce the problem of system busyness caused by multiple slave nodes operating on the file system simultaneously, the master node can send a feedback message indicating permission to operate to the first slave node that receives the file operation request, and send a feedback message indicating rejection of the operation to other slave nodes that receive the file operation request subsequently.

[0100] In the above implementation process, the master node allows the slave node to operate only when it is in the idle state and rejects the operation when it is in the busy state, so as to reduce the problem of system busyness caused by multiple nodes operating on the file system simultaneously.

[0101] Based on the above embodiments, after the master node sends a feedback message indicating permission to operate to the slave node, in order to prevent other slave nodes from continuing to send file operation requests and occupying the communication bus, the master node can pause broadcasting idle messages to each slave node. At this time, the file system in the master node is already being used by a slave node, so the busy or idle state of the master node changes to the idle state. In this way, other slave nodes will not send file operation requests to the master node after not receiving the idle message.

[0102] Understandably, in order to reduce the occupancy of the communication bus, the master node can broadcast idle messages to each slave node regularly or in real time in the idle state. After each slave node receives the idle message, if there is a file operation requirement, it sends a file operation request to the master node once, and then waits for the feedback from the master node. If it receives a feedback message from the master node indicating permission to operate, it continues to send information for file system operations. If it receives a feedback message from the master node indicating rejection of the operation, it stops sending the file operation request and prohibits sending operation messages for the file system to the master node. That is, after receiving the feedback message indicating rejection of the operation at this time, the slave node will no longer send operation messages to the master node, and then can continue to monitor the idle messages broadcast by the master node next time. Of course, if the master node sends a feedback message indicating permission to operate to a certain slave node, it suspends broadcasting idle messages, and then waits for the idle state and broadcasts idle messages again.

[0103] In the above implementation process, after the master node allows a certain slave node to operate on the file system, it suspends broadcasting idle messages to each slave node, which can inform the slave nodes that there is no need to continue sending file operation requests, so as to save communication resources.

[0104] On the basis of the above embodiments, after the master node sends a feedback message indicating permission to operate to the slave node, it waits for the slave node to send an operation instruction. After the slave node receives the feedback message, it can send an operation message for the file system to the master node. After the master node receives the operation message, it performs corresponding operations on the file system according to the operation message.

[0105] Among them, the operation message can carry corresponding operation instructions, such as operations of creating, opening, closing, reading, writing, deleting files, etc. Of course, if it is a writing operation, the operation message can also carry corresponding writing data, and then the master node can complete the corresponding operations on the file system according to the operation instructions in the operation message.

[0106] In the above implementation process, the master node only allows the slave node to operate on the file system in the idle state, which can reduce the problem of system busy caused by multiple slave nodes operating on the file system at the same time.

[0107] On the basis of the above embodiments, in order to achieve reliable communication, the master node and multiple slave nodes can communicate through a low-speed transmission bus. The interaction messages between the master node and each slave node can be transmitted through the low-speed transmission bus. The low-speed transmission bus refers to a communication bus with a low transmission rate, which can be used for data transmission in low-speed communication scenarios.

[0108] In some embodiments, the low-speed transmission bus can be a CAN bus or a serial communication bus, etc. The serial communication bus can include RS232, RS499, RS423, RS422, RS485, etc. It can be understood that the low-speed transmission bus can also be other types of buses, which are not listed one by one here.

[0109] It can be understood that in the above embodiments, the slave node can send an operation message to the master node through the low-speed transmission bus. Since the low-speed transmission bus communication (such as CAN communication) is reliable communication, data check codes may not be used in message design. For example, the operation message includes an instruction type, a data length, and payload data, and the data format is as Figure 2 shown.

[0110] Among them, the instruction type: with a size of 1 byte, including idle broadcast, request instruction, feedback instruction, create instruction, open instruction, write instruction, read instruction, delete instruction, end instruction, and terminate instruction, etc.

[0111] The data length: with a size of 2 bytes, and the range is 0 - 65535 bytes.

[0112] The payload data: with a size that is a dynamic value, determined by the instruction data length field, and the data content includes file names, replied messages, etc.

[0113] It can be understood that in other embodiments, the interaction messages between the master node and each slave node can also carry check codes to check the interaction messages through the check codes, thereby further ensuring the reliability of communication.

[0114] In addition, in the low-speed communication scenario, applying the solution of the present application can effectively solve the problem of bus conflict, enabling multiple slave nodes to share the file system without bus conflict. Moreover, each slave node does not need to add additional storage devices to store the file system, reducing the hardware cost.

[0115] In the above implementation process, since the low-speed communication is reliable communication, there is no need to set check data in the operation message, omitting the data check process and having a higher transmission efficiency.

[0116] Based on the above embodiments, in order to reduce incorrect operations, after receiving the operation message, the master node can also first perform a legality verification on the operation message. After the verification passes, the corresponding operation on the file system can be executed according to the operation message.

[0117] The legality verification here includes the accuracy verification of the instruction type in the operation message, that is, whether the instruction type is one of the several instruction types listed above, whether it is other illegal instructions, etc., or verify whether the format of the operation message is incorrect, and whether the payload data contains sensitive data, etc. Of course, in actual situations, the way and content of the legality verification can be flexibly set, which will not be elaborated here.

[0118] If the verification fails, the master node will reply to the slave node with the corresponding error message, which may include information such as the reason for the verification failure or the content of the error. After receiving the error message, the slave node can resend the operation message to the master node. Or, after sending the error message to the slave node, the master node can rebroadcast the idle message. In this way, after receiving the error message, the slave node can continue to wait for the idle message of the master node and then initiate the file operation request again.

[0119] In the above implementation process, the master node performs legality verification on the operation message, which can reduce the incorrect operations on the file system and improve the security of the file system.

[0120] In the above implementation process, in order to prevent a certain slave node from occupying the communication bus for a long time, the master node can set a timeout mechanism. When a timeout occurs and the current slave node has not completed all operations on the file system, the master node will actively initiate a termination instruction. Therefore, if the master node starts the timer after sending the feedback message indicating permission to operate to the slave node or receiving the operation message sent by the slave node, and if the slave node does not complete the operation on the file system after the set time period has elapsed, the operation of the slave node on the file system will be terminated.

[0121] In the specific implementation method, under normal circumstances, after the slave node completes all operations, it will actively send an end operation instruction to inform the master node. After receiving the end operation instruction, the master node will reply to the slave node with an acknowledgment message, then disconnect the connection with the slave node, and at the same time can start rebroadcasting the idle message.

[0122] However, if after the master node starts the timer for timing and the set time period has elapsed but the master node has not received the end operation instruction sent by the slave node, the operation of the slave node on the file system can be terminated, the local file can be closed, resources can be released, and then the idle message can be rebroadcast.

[0123] In the above implementation process, by using the timeout mechanism to limit the time for the slave node to use the file system, it can prevent a certain slave node from occupying the file system for a long time and reduce the waiting time for other slave nodes to operate on the file system.

[0124] Based on the above embodiments, the master node can terminate the slave node's operation on the file system by sending a termination operation instruction message to the slave node, and this termination operation instruction message is used to instruct the slave node to terminate the operation on the file system.

[0125] After receiving the termination operation instruction message, the slave node will no longer continue to send operation messages to the master node, but can continue to wait for the idle message broadcast by the master node next time, and then request an operation.

[0126] In some embodiments, since the operation of the slave node is terminated, in order to facilitate the subsequent continuation of the previous operation, after receiving the termination operation instruction message, the slave node can record the current operation situation on the file system, and the operation situation can include information such as the opened file information and the data transmission status. In this way, when the slave node requests an operation next time, it can quickly initiate an operation message according to the recorded operation situation, improving the operation efficiency on the file system.

[0127] Please refer to Figure 2 , Figure 2 which is a flowchart of another information processing method provided by an embodiment of the present application. This method is applied to a slave node in a data communication system, and the data communication system further includes a master node with a file system deployed therein. The method includes the following steps:

[0128] Step S210: Send a file operation request to the master node.

[0129] Step S220: Receive a feedback message sent by the master node, and this feedback message is determined according to the busy or idle state of the master node.

[0130] Step S230: Determine whether to operate on the file system in the master node according to the feedback message.

[0131] In the above implementation process, by judging whether the file system can be operated according to the feedback message of the master node, the problems of system busyness and data loss caused by multiple slave nodes operating on the file system simultaneously can be reduced.

[0132] Optionally, the determining whether to operate on the file system in the master node according to the feedback message includes:

[0133] If the feedback message is a feedback message indicating permission to operate, then send an operation message for the file system to the master node;

[0134] If the feedback message is a feedback message indicating rejection of operation, then prohibit sending an operation message for the file system to the master node.

[0135] Optionally, after prohibiting sending an operation message for the file system to the master node, it further includes:

[0136] Monitor the next idle message broadcast by the master node, where the idle message is sent by the master node in an idle state.

[0137] Optionally, after sending the operation message for the file system to the master node, it further includes:

[0138] If receiving the termination operation instruction message sent by the master node, terminate sending the operation message to the master node and record the current operation situation of the file system, where the termination operation instruction message is sent by the master node when the slave node fails to complete the operation of the file system within a set duration.

[0139] In the above implementation process, when terminating the operation, by recording the current operation situation of the file system, it is convenient to continue the operation of the file system next time and improve the operation efficiency.

[0140] Optionally, communication between the master node and each slave node is performed through a low-speed transmission bus;

[0141] And / or, the low-speed transmission bus includes a CAN bus or a serial communication bus.

[0142] It can be understood that the specific implementation process of the information processing method in this embodiment can refer to the implementation process in the foregoing embodiment. For the sake of brevity of description, it will not be repeated here.

[0143] Please refer to Figure 3 , Figure 3 FIG. 300 is a schematic structural diagram of a data communication system 300 provided by an embodiment of the present application. The data communication system 300 includes a master node 310 and multiple slave nodes 320. A file system is deployed in the master node 310;

[0144] The slave node 320 is configured to send a file operation request to the master node;

[0145] The master node 310 is configured to, in response to the file operation request, obtain its own busy or idle state and send a feedback message to the slave node according to the busy or idle state;

[0146] The slave node 320 is configured to determine whether to operate on the file system in the master node according to the received feedback message.

[0147] Please refer to Figure 4 , Figure 4Block diagram of an information processing device 400 provided by an embodiment of the present application. The device 400 runs on a master node in a data communication system, and the data communication system further includes multiple slave nodes. A file system is deployed in the master node. The device 400 may be a module, a program segment, or code on an electronic device (such as the master node). It should be understood that the device 400 corresponds to the above Figure 1 method embodiment and can execute Figure 1 each step involved in the method embodiment. The specific functions of the device 400 can be referred to the description above. To avoid repetition, the detailed description is appropriately omitted here.

[0148] Optionally, the device 400 includes:

[0149] A request receiving module 410, configured to receive a file operation request from a slave node;

[0150] A request processing module 420, configured to obtain its own busy or idle state in response to the file operation request;

[0151] A feedback module 430, configured to send a feedback message to the slave node according to the busy or idle state, and the feedback message is used to indicate whether the slave node is allowed to operate on the file system.

[0152] Optionally, the feedback module 430 is configured to send a feedback message indicating permission to operate to the slave node if the busy or idle state is the idle state; and send a feedback message indicating rejection of the operation to the slave node if the busy or idle state is the busy state.

[0153] Optionally, the feedback module 430 is configured to pause broadcasting idle messages to each slave node, and the idle messages are sent by the master node in the idle state.

[0154] Optionally, the device 400 further includes:

[0155] An operation module, configured to receive an operation message for the file system sent by the slave node; and execute a corresponding operation on the file system according to the operation message.

[0156] Optionally, the master node communicates with each slave node through a low-speed transmission bus. The operation module is configured to receive the operation message for the file system sent by the slave node through the low-speed transmission bus, where the operation message includes an instruction type, a data length, and payload data.

[0157] Optionally, the operation module is configured to perform a legality verification on the operation message; and execute a corresponding operation on the file system after the verification passes.

[0158] Optionally, the feedback module 430 is further configured to terminate the operation of the slave node on the file system if the slave node fails to complete the operation on the file system after a set duration has elapsed.

[0159] Optionally, the feedback module 430 is configured to send a termination operation instruction message to the slave node, and the termination operation instruction message is used to instruct the slave node to terminate the operation on the file system.

[0160] Optionally, the device 400 further includes:

[0161] A broadcast module, configured to broadcast an idle message to each slave node, where the idle message is sent by the master node in an idle state.

[0162] Optionally, the request processing module 420 is configured to, in response to the file operation request, determine its busy or idle state as the busy state if the file system is already in use by other slave nodes, and determine its busy or idle state as the idle state if the file system is not in use by other slave nodes.

[0163] Optionally, communication between the master node and each slave node is performed via a low-speed transmission bus;

[0164] and / or, the low-speed transmission bus includes a CAN bus or a serial communication bus.

[0165] Please refer to Figure 5 , Figure 5 which is a structural block diagram of another information processing device 500 provided by an embodiment of the present application. The device 500 operates on a slave node in a data communication system, and the data communication system further includes a master node. A file system is deployed in the master node. The device 500 may be a module, a program segment, or code on an electronic device (such as a slave node). It should be understood that the device 500 corresponds to the above Figure 2 method embodiment and is capable of executing Figure 2 each step involved in the method embodiment. The specific functions of the device 500 can be referred to the above description. To avoid repetition, the detailed description is appropriately omitted here.

[0166] Optionally, the device 500 includes:

[0167] A request sending module 510, configured to send a file operation request to the master node;

[0168] A feedback receiving module 520, configured to receive a feedback message sent by the master node, where the feedback message is determined according to the busy or idle state of the master node;

[0169] A feedback judgment module 530, configured to determine whether to operate on the file system in the master node according to the feedback message.

[0170] Optionally, the feedback judgment module 530 is configured to, if the feedback message is a feedback message indicating permission to operate, send an operation message for the file system to the master node; if the feedback message is a feedback message indicating rejection of the operation, prohibit sending an operation message for the file system to the master node.

[0171] Optionally, the feedback judgment module 530 is further configured to monitor the next idle message broadcast by the master node, where the idle message is sent by the master node in an idle state.

[0172] Optionally, the feedback judgment module 530 is further configured to, if receiving a termination operation instruction message sent by the master node, terminate sending an operation message to the master node and record the current operation situation of the file system, where the termination operation instruction message is sent by the master node when the slave node fails to complete the operation of the file system within a set time period.

[0173] Optionally, communication between the master node and each slave node is performed through a low-speed transmission bus;

[0174] and / or, the low-speed transmission bus includes a CAN bus or a serial communication bus.

[0175] It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the foregoing method embodiments and will not be repeated here.

[0176] Please refer to Figure 6 , Figure 6 , which is a schematic structural diagram of an electronic device for implementing an information processing method provided by an embodiment of the present application. The electronic device is a device such as the foregoing master node or slave node. The electronic device may include: at least one processor 610, such as a CPU, at least one communication interface 620, at least one memory 630, and at least one communication bus 640. Among them, the communication bus 640 is used to implement direct connection communication between these components. Among them, the communication interface 620 of the device in the embodiment of the present application is used to perform signaling or data communication with other node devices. The memory 630 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. Optionally, the memory 630 may further be at least one storage device located far from the foregoing processor. Computer-readable instructions are stored in the memory 630. When the computer-readable instructions are executed by the processor 610, the electronic device executes the foregoing Figure 1 or Figure 2 shown method process.

[0177] It can be understood that Figure 6 the structure shown is only illustrative, and the electronic device may further include more or fewer components than Figure 6 those shown in, or have a configuration different from Figure 6 that shown. Figure 6 Each component shown in can be implemented by hardware, software, or a combination thereof.

[0178] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it executes the method process performed by the electronic device in the method embodiment as Figure 1 or Figure 2 shown.

[0179] This embodiment discloses a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments. For example, it includes:

[0180] Receiving a file operation request from a slave node;

[0181] In response to the file operation request, obtaining its own busy or idle state;

[0182] Sending a feedback message to the slave node according to the busy or idle state, where the feedback message is used to indicate whether to allow the slave node to operate on the file system.

[0183] In summary, an embodiment of the present application provides an information processing method, a data communication system, a device, an apparatus, and a storage medium. By deploying a master node in the data communication system to store the file system, when a slave node needs to operate on the file system, the master node can send a feedback message to the slave node according to its own busy or idle state to indicate whether to allow the slave node to operate on the file system, thereby reducing the problems of system busyness and data loss caused by multiple slave nodes operating on the file system.

[0184] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of the devices or units can be in electrical, mechanical or other forms.

[0185] In addition, the units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0186] Furthermore, in each embodiment of the present application, the various functional modules can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.

[0187] In this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0188] The above are only the embodiments of the present application and are not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An information processing method, characterized in that, applied to a master node in a data communication system, the data communication system further includes a plurality of slave nodes, and a file system is deployed in the master node. The method includes: Receiving a file operation request from a slave node; In response to the file operation request, obtaining its own busy or idle state; Sending a feedback message to the slave node according to the busy or idle state, and the feedback message is used to indicate whether the slave node is allowed to operate on the file system.

2. The method according to claim 1, characterized in that, The sending the feedback message to the slave node according to the busy or idle state includes: If the busy or idle state is an idle state, sending a feedback message indicating permission to operate to the slave node; If the busy or idle state is a busy state, sending a feedback message indicating rejection of operation to the slave node.

3. The method according to claim 2, characterized in that, After sending the feedback message indicating permission to operate to the slave node, it further includes: Pausing broadcasting idle messages to each slave node, and the idle messages are sent by the master node in an idle state.

4. The method according to claim 2, characterized in that, After sending the feedback message indicating permission to operate to the slave node, it further includes: Receiving an operation message for the file system sent by the slave node; Performing a corresponding operation on the file system according to the operation message.

5. The method according to claim 4, characterized in that, The master node communicates with each slave node through a low-speed transmission bus. The receiving the operation message for the file system sent by the slave node includes: Receiving the operation message for the file system sent by the slave node through the low-speed transmission bus, where the operation message includes an instruction type, a data length, and payload data.

6. The method according to claim 4, characterized in that, The performing a corresponding operation on the file system according to the operation message includes: Performing a legality verification on the operation message; After the verification passes, performing a corresponding operation on the file system according to the operation message.

7. The method according to claim 2, characterized in that, After sending the feedback message indicating permission to operate to the slave node, it further includes: If the slave node does not complete the operation on the file system after exceeding a set time period, terminating the operation of the slave node on the file system.

8. The method according to claim 7, characterized in that, The terminating the operation of the slave node on the file system includes: Sending a termination operation instruction message to the slave node, and the termination operation instruction message is used to instruct the slave node to terminate the operation on the file system.

9. The method according to any one of claims 1-8, characterized in that, Before receiving the file operation request from the slave node, the method further includes: Broadcasting idle messages to each slave node, and the idle messages are sent by the master node in an idle state.

10. The method according to any one of claims 1-8, characterized in that, In response to the file operation request, obtaining its own busy or idle status, including: In response to the file operation request, if there are other slave nodes using the file system, determining its own busy or idle status as the busy status; if there are no other slave nodes using the file system, determining its own busy or idle status as the idle status.

11. The method according to claim 1, wherein, the master node communicates with each slave node through a low-speed transmission bus; and / or, the low-speed transmission bus includes a CAN bus or a serial communication bus.

12. An information processing method, wherein, applied to a slave node in a data communication system, the data communication system further includes a master node, and a file system is deployed in the master node. The method includes: sending a file operation request to the master node; receiving a feedback message sent by the master node, the feedback message being determined according to the busy or idle status of the master node; determining whether to operate on the file system in the master node according to the feedback message.

13. The method according to claim 12, wherein, the determining whether to operate on the file system in the master node according to the feedback message includes: if the feedback message is a feedback message indicating permission to operate, sending an operation message for the file system to the master node; if the feedback message is a feedback message indicating rejection of operation, prohibiting sending an operation message for the file system to the master node.

14. The method according to claim 13, wherein, after prohibiting sending an operation message for the file system to the master node, further including: monitoring the next idle message broadcast by the master node, the idle message being sent by the master node in the idle state.

15. The method according to claim 13, wherein, after sending an operation message for the file system to the master node, further including: if receiving a termination operation instruction message sent by the master node, terminating sending an operation message to the master node and recording the current operation situation of the file system, wherein the termination operation instruction message is sent by the master node when the slave node fails to complete the operation on the file system within a set time period.

16. The method according to any one of claims 12-15, wherein, the master node communicates with each slave node through a low-speed transmission bus; and / or, the low-speed transmission bus includes a CAN bus or a serial communication bus.

17. A data communication system, wherein, the data communication system includes: a master node and multiple slave nodes, and a file system is deployed in the master node; a slave node, configured to send a file operation request to the master node; the master node, configured to, in response to the file operation request, obtain its own busy or idle status and send a feedback message to the slave node according to the busy or idle status; the slave node, configured to determine whether to operate on the file system in the master node according to the received feedback message.

18. An information processing device, wherein, A master node operating in a data communication system, the data communication system further including a plurality of slave nodes, a file system being deployed in the master node, the apparatus comprising: A request receiving module, configured to receive file operation requests from slave nodes; A request processing module, configured to obtain its own busy or idle state in response to the file operation request; A feedback module, configured to send a feedback message to the slave node according to the busy or idle state, the feedback message being used to indicate whether to allow the slave node to operate on the file system.

19. An information processing apparatus, characterized in that, A slave node operating in a data communication system, the data communication system further including a master node, a file system being deployed in the master node, the apparatus comprising: A request sending module, configured to send file operation requests to the master node; A feedback receiving module, configured to receive the feedback message sent by the master node, the feedback message being determined according to the busy or idle state of the master node; A feedback judging module, configured to determine whether to operate on the file system in the master node according to the feedback message.

20. An electronic device, characterized in that, comprising a processor and a memory, the memory storing computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method according to any one of claims 1-16 is run.

21. A computer-readable storage medium, having stored thereon a computer program, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1-16 is run.