A communication method and system based on star flash technology
By analyzing the configuration information sent by the Star Flash server and realizing time synchronization, the problem of poor data transmission delay in the Star Flash communication system is solved, the accuracy and real-timeness of data transmission are improved, and the power consumption of non-real-time control nodes is saved.
Patent Information
- Application Number
- CN202411944292.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-04
AI Technical Summary
In the star flash communication system, the data transmission delay between the star flash server and the star flash node is poor, resulting in low accuracy and real-time data transmission, and high power consumption of non-real-time control nodes.
By receiving the configuration information sent by the Star Flash server, the time stamp is analyzed and obtained, the data upload time window, the data transmission cycle, the server reception ID and the server instruction reception ID are realized, and the time synchronization with the Star Flash server is realized, and the communication connection ID is switched according to the configuration information to improve the accuracy and real-timeness of data transmission. For nodes that require real-time control, real-time control instructions issued by the star flash server are received and executed in real time; for non-real-time control nodes, they enter a sleep state to save power consumption.
It improves the accuracy and real-time nature of data transmission, realizes real-time control of nodes that require real-time control, saves power consumption of non-real-time control nodes, and extends the service life of star flash nodes.
Smart Images

Figure CN119767399A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a communication method and system based on star flash technology. Background Art
[0002] The development of 5G technology has spawned a large number of smart terminals. With the launch of a large number of smart terminals with wireless short-range connections on the market, more and newer application scenarios have emerged. NearLink is a new type of wireless short-range communication technology, mainly used for data interaction in the fields of smart cars, smart terminals, smart homes and smart manufacturing.
[0003] The Starflash communication system generally includes a Starflash server and a Starflash node. Currently, the data transmission delay between the Starflash server and the Starflash node is poor, and real-time data interaction cannot be performed, resulting in a decrease in data accuracy during the transmission process. Summary of the invention
[0004] The present invention provides a communication method and system based on star flash technology, which can improve the accuracy of data transmission, realize real-time control of nodes that need real-time control, improve the real-time performance of data transmission, and save power consumption of non-real-time control nodes.
[0005] In order to solve the above technical problems, the present invention provides a communication method based on star flash technology, which is applied to nodes that need real-time control, including:
[0006] Receive the configuration information sent by the Xingshan server;
[0007] Obtaining a timestamp, a data upload time window, a data transmission cycle, a server receiving ID, and a server command receiving ID by parsing the configuration information;
[0008] Based on the timestamp, synchronize time with the Star Flash server;
[0009] Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the first data collected in real time is uploaded to the Xingshan server;
[0010] When it is determined that the first data is successfully uploaded to the Star Flash server, the communication connection ID is switched to the server instruction receiving ID to receive the real-time control instructions issued by the Star Flash server in real time.
[0011] The present invention receives configuration information sent by the Star Flash server, obtains a timestamp, a data upload time window, a data transmission cycle, a server receiving ID and a server instruction receiving ID by parsing the configuration information, synchronizes time with the Star Flash server according to the timestamp, and ensures time consistency with the Star Flash server; determines the time for data upload according to the data upload time window and the data transmission cycle, switches the communication connection ID to the server receiving ID at this time, and uploads the first data collected in real time to the Star Flash server, thereby improving the accuracy of data transmission; when the first data is successfully uploaded to the Star Flash server, switches the communication connection ID to the server instruction receiving ID, so as to receive the real-time control instructions sent by the Star Flash server in real time, thereby improving the real-time interaction with the Star Flash server and facilitating network expansion.
[0012] Furthermore, after uploading the first data collected in real time to the Xingshan server, the method further includes:
[0013] If a data reception success signal sent by the Xingshan server is received, it is determined that the first data is successfully uploaded to the Xingshan server;
[0014] If the data reception success signal sent by the Star Flash server is not received, the first data is uploaded to the Star Flash server in a loop until the data reception success signal sent by the Star Flash server is received or the preset number of cycles is reached.
[0015] Furthermore, if the data reception success signal sent by the Star Flash server is not received, the first data is cyclically uploaded to the Star Flash server until the data reception success signal sent by the Star Flash server is received or the preset number of cycles is reached, including:
[0016] When the preset number of cycles is reached and no data reception success signal is received, a login request is sent to the Xingshan server to re-acquire the configuration information sent by the Xingshan server;
[0017] Re-upload the first data to the Star Flash server based on the configuration information.
[0018] Furthermore, after uploading the first data collected in real time to the Xingshan server, the method further includes:
[0019] Receiving node transmission power data sent by the Star Flash server; the node transmission power data is determined based on the signal strength and signal-to-noise ratio of the first data;
[0020] The node transmit power is adjusted based on the node transmit power data.
[0021] Further, the real-time receiving of the real-time control instruction issued by the Star Flash server includes:
[0022] Receive the real-time control instructions sent by the Xingshan server in real time, and execute the real-time control instructions;
[0023] When the real-time control instruction is executed, an instruction completion signal is generated;
[0024] The command completion signal is sent to the Star Flash server.
[0025] Further, the real-time receiving of the real-time control instruction issued by the Star Flash server includes:
[0026] Receive the time synchronization instruction sent by the Xingshan server in real time;
[0027] Based on the time synchronization instruction, the timestamp of the Xingshan server is obtained in real time.
[0028] Based on the timestamp, synchronize time with the Star Flash server.
[0029] The present invention also provides a communication method based on the star flash technology, which is applied to a non-real-time control node, comprising:
[0030] Receive the configuration information sent by the Xingshan server;
[0031] Obtaining a timestamp, a data upload time window, a data transmission cycle, a server receiving ID, and a server command receiving ID by parsing the configuration information;
[0032] Based on the timestamp, synchronize time with the Star Flash server;
[0033] Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the second data collected in real time is uploaded to the Xingshan server;
[0034] When it is determined that the second data is successfully uploaded to the Xingshan server, the device enters a sleep state.
[0035] The present invention receives configuration information sent by the Star Flash server, obtains the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information, synchronizes time with the Star Flash server according to the timestamp, and ensures the time consistency with the Star Flash server; determines the time of data upload according to the data upload time window and the data transmission cycle, switches the communication connection ID to the server receiving ID at this time, and uploads the second data collected in real time to the Star Flash server, thereby improving the accuracy of data transmission; when the second data is successfully uploaded to the Star Flash server, enters a sleep state, effectively saves power consumption, and increases the service life of the Star Flash node.
[0036] Further, after the communication connection ID is switched to the server receiving ID based on the data upload time window and the data transmission period, the method further includes:
[0037] A time window for receiving control instructions;
[0038] Within the control instruction time window, receive and execute the preset control instructions issued by the Star Flash server.
[0039] The present invention also provides a communication method based on the Star Flash technology, which is applied to the Star Flash server, comprising:
[0040] Sending configuration information to a number of Star Flash nodes; the Star Flash nodes include nodes that need real-time control and nodes that do not need real-time control;
[0041] Receiving the first data uploaded by the real-time control node or the second data uploaded by the non-real-time control node;
[0042] Sending a real-time control instruction to the node requiring real-time control, so that the node requiring real-time control responds to the real-time control instruction in real time;
[0043] The preset control instruction is sent to the non-real-time control node, so that the non-real-time control node responds to the preset control instruction within a control instruction time window of the preset control instruction.
[0044] The present invention sends configuration information to a real-time control node and a non-real-time control node respectively; receives first data uploaded by a node that needs real-time control and second data uploaded by a non-real-time control node; sends a real-time control instruction to a node that needs real-time control, so that the node that needs real-time control responds to the real-time control instruction in real time; sends a preset control instruction to a non-real-time control node, so that the non-real-time control node responds to the preset control instruction within the control instruction time window of the preset control instruction. The present invention receives data uploaded by a node that needs real-time control and a non-real-time control node, thereby improving the accuracy of data transmission; by sending a real-time control instruction to a node that needs real-time control, real-time control of the node that needs real-time control is achieved, thereby improving the real-time performance of data transmission; by sending a preset control instruction to a non-real-time control node, power consumption of the non-real-time control node is saved.
[0045] Accordingly, the present invention provides a communication system based on the Star Flash technology, comprising: a Star Flash server and a plurality of Star Flash nodes;
[0046] The star flash nodes include nodes that need real-time control and non-real-time control nodes;
[0047] The Star Flash server is used to send configuration information to each of the Star Flash nodes; receive the first data uploaded by the node requiring real-time control or the second data uploaded by the non-real-time control node; send a real-time control instruction to the node requiring real-time control so that the node requiring real-time control responds to the real-time control instruction in real time; send the preset control instruction to the non-real-time control node so that the non-real-time control node responds to the preset control instruction within the control instruction time window of the preset control instruction;
[0048] The node requiring real-time control is used to receive the configuration information issued by the Star Flash server; obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information; synchronize the time with the Star Flash server based on the timestamp; based on the data upload time window and the data transmission cycle, switch the communication connection ID to the server receiving ID, and upload the first data collected in real time to the Star Flash server; when it is determined that the first data has been successfully uploaded to the Star Flash server, switch the communication connection ID to the server instruction receiving ID to receive the real-time control instructions issued by the Star Flash server in real time;
[0049] The non-real-time control node is used to receive the configuration information sent by the Star Flash server; obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information; synchronize the time with the Star Flash server based on the timestamp; switch the communication connection ID to the server receiving ID based on the data upload time window and the data transmission cycle, and upload the second data collected in real time to the Star Flash server; when it is determined that the second data has been successfully uploaded to the Star Flash server, enter the sleep state. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flow chart of an embodiment of a communication method based on star flash technology provided by the present invention;
[0051] Figure 2 A flow chart of another embodiment of a communication method based on the star flash technology provided by the present invention;
[0052] Figure 3 A flow chart of another embodiment of a communication method based on the star flash technology provided by the present invention;
[0053] Figure 4 A schematic structural diagram of an embodiment of a communication system based on star flash technology provided by the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0056] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0057] Example 1
[0058] like Figure 1 FIG. 1 is a flow chart of an embodiment of a communication method based on the star flash technology provided by the present invention. The method is applied to nodes that need to be controlled in real time, including steps 101 to 105, and each step is specifically as follows:
[0059] Step 101: Receive configuration information sent by the Star Flash server.
[0060] Step 102: Obtain a timestamp, a data upload time window, a data transmission period, a server receiving ID, and a server instruction receiving ID by parsing the configuration information.
[0061] Step 103: Based on the timestamp, synchronize time with the Star Flash server.
[0062] Step 104: Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the first data collected in real time is uploaded to the Star Flash server.
[0063] Step 105: When it is determined that the first data is successfully uploaded to the Xingshan server, the communication connection ID is switched to the server instruction receiving ID to receive the real-time control instructions issued by the Xingshan server in real time.
[0064] In an embodiment of the present invention, the node that needs to be controlled in real time is the Star Flash node that the Star Flash server needs to control in real time. The Star Flash node that needs to be controlled in real time obtains the configuration information issued by the Star Flash server, and can obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information. Among them, the timestamp is the timestamp of the Star Flash server, and according to the timestamp, the node that needs to be controlled in real time can synchronize time with the Star Flash server. The data upload time window records the time point when the node that needs to be controlled in real time uploads data to the Star Flash server. The data transmission cycle records the cycle when the node that needs to be controlled in real time uploads data to the Star Flash server, and according to the cycle, the subsequent time point when the node that needs to be controlled in real time uploads data to the Star Flash server can be determined. Therefore, based on the data upload time window and the data transmission cycle, the node that needs to be controlled in real time uploads the collected first data to the Star Flash server at the corresponding time point.
[0065] In an embodiment of the present invention, the server receiving ID in the configuration information is the ID of the Star Flash server for receiving data. Therefore, when the real-time control node needs to upload the collected first data to the Star Flash server, the server receiving ID is first obtained in the configuration information, and its own communication connection ID is switched to the server receiving ID, thereby establishing a data transmission channel, and the first data collected in real time by the real-time control node is uploaded to the Star Flash server.
[0066] In the embodiment of the present invention, the server instruction receiving ID in the configuration information is the ID for receiving the control instruction of the Star Flash server. Therefore, when it is determined that the node to be controlled in real time successfully uploads the first data to the Star Flash server, the communication connection ID of the node to be controlled in real time is switched to the server instruction receiving ID, so that the real-time control instruction issued by the Star Flash server can be received in real time, and the real-time control between the node to be controlled in real time and the Star Flash server can be realized.
[0067] In summary, the real-time control node in the embodiment of the present invention receives the configuration information sent by the Star Flash server, and obtains the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information, and synchronizes the time with the Star Flash server according to the timestamp to ensure the time consistency with the Star Flash server; determines the data upload time according to the data upload time window and the data transmission cycle, switches the communication connection ID to the server receiving ID at this time, and uploads the first data collected in real time to the Star Flash server to improve the accuracy of data transmission; when the first data is successfully uploaded to the Star Flash server, switches the communication connection ID to the server instruction receiving ID, so as to receive the real-time control instructions sent by the Star Flash server in real time, improve the real-time interaction with the Star Flash server, and facilitate network expansion.
[0068] Example 2
[0069] like Figure 1 FIG. 1 is a flow chart of an embodiment of a communication method based on the star flash technology provided by the present invention. The method is applied to nodes that need to be controlled in real time, including steps 101 to 105, and each step is specifically as follows:
[0070] Step 101: Receive configuration information sent by the Star Flash server.
[0071] Step 102: Obtain a timestamp, a data upload time window, a data transmission period, a server receiving ID, and a server instruction receiving ID by parsing the configuration information.
[0072] Step 103: Based on the timestamp, synchronize time with the Star Flash server.
[0073] Step 104: Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the first data collected in real time is uploaded to the Star Flash server.
[0074] In an embodiment of the present invention, the node that needs to be controlled in real time is the Star Flash node that the Star Flash server needs to control in real time. The Star Flash node that needs to be controlled in real time obtains the configuration information issued by the Star Flash server, and can obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information. Among them, the timestamp is the timestamp of the Star Flash server, and according to the timestamp, the node that needs to be controlled in real time can synchronize time with the Star Flash server. The data upload time window records the time point when the node that needs to be controlled in real time uploads data to the Star Flash server. The data transmission cycle records the cycle when the node that needs to be controlled in real time uploads data to the Star Flash server, and according to the cycle, the subsequent time point when the node that needs to be controlled in real time uploads data to the Star Flash server can be determined. Therefore, based on the data upload time window and the data transmission cycle, the node that needs to be controlled in real time uploads the collected first data to the Star Flash server at the corresponding time point.
[0075] In an embodiment of the present invention, the server receiving ID in the configuration information is the ID of the Star Flash server for receiving data. Therefore, when the real-time control node needs to upload the collected first data to the Star Flash server, the server receiving ID is first obtained in the configuration information, and its own communication connection ID is switched to the server receiving ID, thereby establishing a data transmission channel, and the first data collected in real time by the real-time control node is uploaded to the Star Flash server.
[0076] Furthermore, in an embodiment of the present invention, after uploading the first data collected in real time to the Star Flash server, the method further includes:
[0077] If a data reception success signal sent by the Xingshan server is received, it is determined that the first data is successfully uploaded to the Xingshan server;
[0078] If the data reception success signal sent by the Star Flash server is not received, the first data is uploaded to the Star Flash server in a loop until the data reception success signal sent by the Star Flash server is received or the preset number of cycles is reached.
[0079] In an embodiment of the present invention, after uploading the first data to the Xingshan server, the real-time control node needs to receive a data reception success signal sent by the Xingshan server to determine that the data has been successfully uploaded. If the real-time control node does not receive a data reception success signal after uploading the first data, the first data is retransmitted to the Xingshan server. If the data reception success signal is still not received after the preset number of data uploads, the data upload is stopped.
[0080] Further, in an embodiment of the present invention, if a data reception success signal sent by the Star Flash server is not received, the first data is cyclically uploaded to the Star Flash server until a data reception success signal sent by the Star Flash server is received or a preset number of cycles is reached, including:
[0081] When the preset number of cycles is reached and no data reception success signal is received, a login request is sent to the Xingshan server to re-acquire the configuration information sent by the Xingshan server;
[0082] Re-upload the first data to the Star Flash server based on the configuration information.
[0083] In an embodiment of the present invention, if no data reception success signal is received after the preset number of data uploads is reached, data uploading is stopped, and a login request is sent to the Star Flash server to re-acquire the configuration information sent by the Star Flash server, and upload the first data to the Star Flash server based on the newly acquired configuration information.
[0084] Furthermore, in an embodiment of the present invention, after uploading the first data collected in real time to the Star Flash server, the method further includes:
[0085] Receiving node transmission power data sent by the Star Flash server; the node transmission power data is determined based on the signal strength and signal-to-noise ratio of the first data;
[0086] The node transmit power is adjusted based on the node transmit power data.
[0087] In an embodiment of the present invention, the node that needs real-time control will upload data to the Star Flash server multiple times according to the data upload time window and the data transmission cycle. After each data upload, the Star Flash server will detect the signal strength and signal-to-noise ratio sent by the node that needs real-time control, generate node transmission power data based on the signal strength and signal-to-noise ratio, and send the node transmission power data to the node that needs real-time control, so that the node that needs real-time control adjusts its own transmission power to avoid the Star Flash server receiving abnormal data.
[0088] Step 105: When it is determined that the first data is successfully uploaded to the Xingshan server, the communication connection ID is switched to the server instruction receiving ID to receive the real-time control instructions issued by the Xingshan server in real time.
[0089] In the embodiment of the present invention, the server instruction receiving ID in the configuration information is the ID for receiving the control instruction of the Star Flash server. Therefore, when it is determined that the node to be controlled in real time successfully uploads the first data to the Star Flash server, the communication connection ID of the node to be controlled in real time is switched to the server instruction receiving ID, so that the real-time control instruction issued by the Star Flash server can be received in real time, and the real-time control between the node to be controlled in real time and the Star Flash server can be realized.
[0090] Further, in an embodiment of the present invention, receiving the real-time control instruction issued by the Star Flash server in real time includes:
[0091] Receive the real-time control instructions sent by the Xingshan server in real time, and execute the real-time control instructions;
[0092] When the real-time control instruction is executed, an instruction completion signal is generated;
[0093] The command completion signal is sent to the Star Flash server.
[0094] In an embodiment of the present invention, when the node requiring real-time control completes the execution of the real-time control instruction issued by the Star Flash server, it generates an instruction completion signal and sends the instruction completion signal to the Star Flash server to notify the Star Flash server to delete the executed control instruction.
[0095] Further, in an embodiment of the present invention, receiving the real-time control instruction issued by the Star Flash server in real time includes:
[0096] Receive the time synchronization instruction sent by the Xingshan server in real time;
[0097] Based on the time synchronization instruction, the timestamp of the Xingshan server is obtained in real time.
[0098] Based on the timestamp, synchronize time with the Star Flash server.
[0099] In an embodiment of the present invention, the Star Flash server will record the time corresponding to the time synchronization between each node requiring real-time control and set a synchronization period. From this moment on, after the synchronization period is reached, the clock synchronization instruction will be re-issued to each node requiring real-time control to notify each node requiring real-time control to synchronize time with the Star Flash server again.
[0100] In summary, the real-time control node in the embodiment of the present invention receives the configuration information sent by the Star Flash server, and obtains the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information, and synchronizes the time with the Star Flash server according to the timestamp to ensure the time consistency with the Star Flash server; determines the data upload time according to the data upload time window and the data transmission cycle, switches the communication connection ID to the server receiving ID at this time, and uploads the first data collected in real time to the Star Flash server to improve the accuracy of data transmission; when the first data is successfully uploaded to the Star Flash server, switches the communication connection ID to the server instruction receiving ID, so as to receive the real-time control instructions sent by the Star Flash server in real time, improve the real-time interaction with the Star Flash server, and facilitate network expansion.
[0101] Example 3
[0102] like Figure 2 FIG. 2 is a flow chart of another embodiment of a communication method based on the star flash technology provided by the present invention. The method is applied to a non-real-time control node and includes steps 201 to 205. The specific steps are as follows:
[0103] Step 201: Receive configuration information sent by the Star Flash server.
[0104] Step 202: Obtain a timestamp, a data upload time window, a data transmission period, a server receiving ID, and a server instruction receiving ID by parsing the configuration information.
[0105] Step 203: Based on the timestamp, synchronize time with the Star Flash server.
[0106] Step 204: Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the second data collected in real time is uploaded to the Star Flash server.
[0107] Step 205: When it is determined that the second data is successfully uploaded to the Xingshan server, enter the sleep state.
[0108] In an embodiment of the present invention, a non-real-time control node is a Star Flash node that does not require real-time control by the Star Flash server. The non-real-time controlled Star Flash node obtains the configuration information sent by the Star Flash server, and can obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information. Among them, the timestamp is the timestamp of the Star Flash server, and according to the timestamp, the non-real-time control node can synchronize time with the Star Flash server. The data upload time window records the time point when the non-real-time control node uploads data to the Star Flash server. The data transmission cycle records the period for the non-real-time control node to upload data to the Star Flash server, and the subsequent time point when the non-real-time control node uploads data to the Star Flash server can be determined based on the period. Therefore, based on the data upload time window and the data transmission cycle, the non-real-time control node uploads the collected second data to the Star Flash server at the corresponding time point.
[0109] In an embodiment of the present invention, the server receiving ID in the configuration information is the ID of the Star Flash server for receiving data. Therefore, when the non-real-time control node uploads the collected second data to the Star Flash server, it first obtains the server receiving ID in the configuration information, switches its own communication connection ID to the server receiving ID, thereby establishing a data transmission channel, and uploads the second data collected in real time by the non-real-time control node to the Star Flash server.
[0110] In the embodiment of the present invention, after determining that the non-real-time control node successfully uploads the second data to the Star Flash server, the non-real-time control node enters a sleep mode to save power consumption.
[0111] In summary, the non-real-time control node of the embodiment of the present invention receives the configuration information sent by the Star Flash server, obtains the timestamp, data upload time window, data transmission cycle, server reception ID and server instruction reception ID by parsing the configuration information, and synchronizes the time with the Star Flash server according to the timestamp to ensure the time consistency with the Star Flash server; determines the time of data upload according to the data upload time window and the data transmission cycle, switches the communication connection ID to the server reception ID at this time, and uploads the second data collected in real time to the Star Flash server to improve the accuracy of data transmission; when the second data is successfully uploaded to the Star Flash server, it enters the sleep state, which effectively saves power consumption and increases the service life of the Star Flash node.
[0112] Example 4
[0113] like Figure 2 FIG. 2 is a flow chart of an embodiment of a communication method based on the star flash technology provided by the present invention. The method is applied to a non-real-time control node, including steps 201 to 205, and each step is specifically as follows:
[0114] Step 201: Receive configuration information sent by the Star Flash server.
[0115] Step 202: Obtain a timestamp, a data upload time window, a data transmission period, a server receiving ID, and a server instruction receiving ID by parsing the configuration information.
[0116] Step 203: Based on the timestamp, synchronize time with the Star Flash server.
[0117] Step 204: Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the second data collected in real time is uploaded to the Star Flash server.
[0118] In an embodiment of the present invention, a non-real-time control node is a Star Flash node that does not require real-time control by the Star Flash server. The non-real-time controlled Star Flash node obtains the configuration information sent by the Star Flash server, and can obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information. Among them, the timestamp is the timestamp of the Star Flash server, and according to the timestamp, the non-real-time control node can synchronize time with the Star Flash server. The data upload time window records the time point when the non-real-time control node uploads data to the Star Flash server. The data transmission cycle records the period for the non-real-time control node to upload data to the Star Flash server, and the subsequent time point when the non-real-time control node uploads data to the Star Flash server can be determined based on the period. Therefore, based on the data upload time window and the data transmission cycle, the non-real-time control node uploads the collected second data to the Star Flash server at the corresponding time point.
[0119] In an embodiment of the present invention, the server receiving ID in the configuration information is the ID of the Star Flash server for receiving data. Therefore, when the non-real-time control node uploads the collected second data to the Star Flash server, it first obtains the server receiving ID in the configuration information, switches its own communication connection ID to the server receiving ID, thereby establishing a data transmission channel, and uploads the second data collected in real time by the non-real-time control node to the Star Flash server.
[0120] In an embodiment of the present invention, after uploading the second data to the Star Flash server, the non-real-time control node needs to receive a data reception success signal sent by the Star Flash server to determine that the data has been successfully uploaded. If the non-real-time control node does not receive a data reception success signal after uploading the second data, the second data is retransmitted to the Star Flash server. If the data reception success signal is still not received after reaching the preset number of data uploads, the data upload is stopped.
[0121] In an embodiment of the present invention, if no data reception success signal is received after the preset number of data uploads is reached, data uploading is stopped, and a login request is sent to the Star Flash server to re-acquire the configuration information sent by the Star Flash server, and upload the second data to the Star Flash server based on the newly acquired configuration information.
[0122] In an embodiment of the present invention, the non-real-time control node will upload data to the Star Flash server multiple times according to the data upload time window and the data transmission cycle. After each data upload, the Star Flash server will detect the signal strength and signal-to-noise ratio sent by the non-real-time control node, generate node transmission power data based on the signal strength and signal-to-noise ratio, and send the node transmission power data to the non-real-time control node, so that the non-real-time control node can adjust its own transmission power to prevent the Star Flash server from receiving abnormal data.
[0123] Step 205: When it is determined that the second data is successfully uploaded to the Xingshan server, enter the sleep state.
[0124] In the embodiment of the present invention, after determining that the non-real-time control node successfully uploads the second data to the Star Flash server, the non-real-time control node enters a sleep mode to save power consumption.
[0125] Further, in an embodiment of the present invention, after the communication connection ID is switched to the server receiving ID based on the data upload time window and the data transmission period, the method further includes:
[0126] A time window for receiving control instructions;
[0127] Within the control instruction time window, receive and execute the preset control instructions issued by the Star Flash server.
[0128] In an embodiment of the present invention, when the Star Flash server caches a preset control instruction from a host computer or the cloud for controlling a non-real-time control node, the Star Flash server sends a control instruction time window corresponding to the control instruction to the non-real-time control node, so that the non-real-time control node receives the preset control instruction in the control instruction time window.
[0129] In an embodiment of the present invention, after the non-real-time control node completes the execution of the real-time control instruction issued by the Star Flash server, it generates an instruction completion signal and sends the instruction completion signal to the Star Flash server to notify the Star Flash server to delete the executed control instruction.
[0130] In an embodiment of the present invention, the Star Flash server will record the time corresponding to the time synchronization between each non-real-time control node and set a synchronization period. From this moment on, after the synchronization period is reached, the clock synchronization instruction will be re-issued to each non-real-time control node to notify each non-real-time control node to synchronize time with the Star Flash server again.
[0131] In summary, the non-real-time control node of the embodiment of the present invention receives the configuration information sent by the Star Flash server, obtains the timestamp, data upload time window, data transmission cycle, server reception ID and server instruction reception ID by parsing the configuration information, and synchronizes the time with the Star Flash server according to the timestamp to ensure the time consistency with the Star Flash server; determines the time of data upload according to the data upload time window and the data transmission cycle, switches the communication connection ID to the server reception ID at this time, and uploads the second data collected in real time to the Star Flash server to improve the accuracy of data transmission; when the second data is successfully uploaded to the Star Flash server, it enters the sleep state, which effectively saves power consumption and increases the service life of the Star Flash node.
[0132] Example 5
[0133] like Figure 3 FIG. 1 is a flow chart of another embodiment of a communication method based on the Star Flash technology provided by the present invention. The method is applied to the Star Flash server and includes steps 301 to 304. The specific steps are as follows:
[0134] Step 301: Send configuration information to a number of Star Flash nodes; the Star Flash nodes include nodes that require real-time control and non-real-time control nodes.
[0135] Step 302: Receive the first data to be uploaded by the real-time control node or the second data uploaded by the non-real-time control node.
[0136] Step 303: Send a real-time control instruction to the node requiring real-time control, so that the node requiring real-time control responds to the real-time control instruction in real time.
[0137] Step 304: Send the preset control instruction to the non-real-time control node, so that the non-real-time control node responds to the preset control instruction within the control instruction time window of the preset control instruction.
[0138] In the embodiment of the present invention, the Star Flash server is used to control the Star Flash nodes, which include nodes that need real-time control and non-real-time control nodes. The nodes that need real-time control are the Star Flash nodes that the Star Flash server needs to control in real time, and the non-real-time control nodes are the Star Flash nodes that the Star Flash server does not need to control in real time.
[0139] In an embodiment of the present invention, the Star Flash server sends configuration information to the node requiring real-time control and the non-real-time control node, so that the node requiring real-time control sends the first data to the Star Flash server according to the configuration information, and the non-real-time control node sends the second data to the Star Flash server according to the configuration information. Therefore, when the Star Flash server needs to receive the first data or the second data, it sends the configuration information to the corresponding node requiring real-time control or the non-real-time control node, and the corresponding data can be received.
[0140] In the embodiment of the present invention, the node requiring real-time control will switch its own communication connection ID to the server receiving ID of the Star Flash server according to the configuration information. Therefore, when the Star Flash server generates a real-time control instruction in response to the user operation, the node requiring real-time control can respond to the real-time control instruction in real time, realizing real-time control between the node requiring real-time control and the Star Flash server.
[0141] In an embodiment of the present invention, when the Star Flash server caches preset control instructions from the host computer or the cloud for controlling the non-real-time controlled Star Flash nodes, the non-real-time control nodes will be in a sleep state outside the control instruction time window of the preset control instructions to save power consumption, and the non-real-time control nodes will receive and respond to the corresponding preset control instructions within the control instruction time window of the preset control instructions.
[0142] In summary, the Star Flash server of the embodiment of the present invention sends configuration information to the real-time control node and the non-real-time control node respectively; receives the first data uploaded by the node that needs real-time control and the second data uploaded by the non-real-time control node; sends a real-time control instruction to the node that needs real-time control, so that the node that needs real-time control responds to the real-time control instruction in real time; sends a preset control instruction to the non-real-time control node, so that the non-real-time control node responds to the preset control instruction within the control instruction time window of the preset control instruction. The present invention receives data uploaded by the node that needs real-time control and the non-real-time control node, thereby improving the accuracy of data transmission; by sending real-time control instructions to the node that needs real-time control, real-time control of the node that needs real-time control is achieved, and the real-time performance of data transmission is improved; by sending preset control instructions to the non-real-time control node, the power consumption of the non-real-time control node is saved.
[0143] Example 6
[0144] like Figure 4 FIG. 1 is a schematic diagram of a structure of an embodiment of a communication system based on the Star Flash technology provided by the present invention, wherein the system includes a Star Flash server and a plurality of Star Flash nodes;
[0145] Star flash nodes include nodes that need real-time control and nodes that do not need real-time control;
[0146] The Star Flash server is used to send configuration information to each of the Star Flash nodes; receive the first data uploaded by the node requiring real-time control or the second data uploaded by the non-real-time control node; send a real-time control instruction to the node requiring real-time control so that the node requiring real-time control responds to the real-time control instruction in real time; send the preset control instruction to the non-real-time control node so that the non-real-time control node responds to the preset control instruction within the control instruction time window of the preset control instruction;
[0147] The real-time control node is used to receive the configuration information issued by the Star Flash server; obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information; synchronize the time with the Star Flash server based on the timestamp; based on the data upload time window and the data transmission cycle, switch the communication connection ID to the server receiving ID, and upload the first data collected in real time to the Star Flash server; when it is determined that the first data has been successfully uploaded to the Star Flash server, switch the communication connection ID to the server instruction receiving ID to receive the real-time control instructions issued by the Star Flash server in real time;
[0148] The non-real-time control node is used to receive the configuration information sent by the Star Flash server; obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information; synchronize the time with the Star Flash server based on the timestamp; based on the data upload time window and the data transmission cycle, switch the communication connection ID to the server receiving ID, and upload the second data collected in real time to the Star Flash server; when it is determined that the second data has been successfully uploaded to the Star Flash server, enter the sleep state.
[0149] In summary, the embodiment of the present invention controls the Star Flash server to send configuration information to the real-time control node and the non-real-time control node respectively, so that the node requiring real-time control uploads the first data to the Star Flash server, and the non-real-time control node uploads the second data to the Star Flash server; the Star Flash server can send real-time control instructions to the node requiring real-time control, so that the node requiring real-time control responds to the real-time control instruction in real time, and send preset control instructions to the non-real-time control node, so that the non-real-time control node responds to the preset control instruction within the control instruction time window of the preset control instruction. The present invention can improve the accuracy of data transmission, realize real-time control of the node requiring real-time control, improve the real-time performance of data transmission, and save the power consumption of the non-real-time control node.
[0150] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A communication method based on star flash technology, characterized in that: Applicable to nodes that require real-time control, including: Receive configuration information sent by the Xingshan server; Obtaining a timestamp, a data upload time window, a data transmission cycle, a server receiving ID, and a server command receiving ID by parsing the configuration information; Based on the timestamp, synchronize time with the Star Flash server; Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the first data collected in real time is uploaded to the Xingshan server; When it is determined that the first data has been successfully uploaded to the Star Flash server, the communication connection ID is switched to the server instruction receiving ID to receive the real-time control instructions issued by the Star Flash server in real time.
2. The communication method based on star flash technology according to claim 1, characterized in that: After uploading the first data collected in real time to the Xingshan server, the method further includes: If a data reception success signal sent by the Xingshan server is received, it is determined that the first data is successfully uploaded to the Xingshan server; If the data reception success signal sent by the Star Flash server is not received, the first data is uploaded to the Star Flash server in a loop until the data reception success signal sent by the Star Flash server is received or the preset number of cycles is reached.
3. The communication method based on star flash technology according to claim 2, characterized in that: If the data reception success signal sent by the Xingshan server is not received, the first data is cyclically uploaded to the Xingshan server until the data reception success signal sent by the Xingshan server is received or the preset number of cycles is reached, including: When the preset number of cycles is reached and no data reception success signal is received, a login request is sent to the Xingshan server to re-acquire the configuration information sent by the Xingshan server; Re-upload the first data to the Star Flash server based on the configuration information.
4. The communication method based on star flash technology according to claim 1, characterized in that: After uploading the first data collected in real time to the Xingshan server, the method further includes: Receiving node transmission power data sent by the Star Flash server; the node transmission power data is determined based on the signal strength and signal-to-noise ratio of the first data; The node transmit power is adjusted based on the node transmit power data.
5. The communication method based on star flash technology according to claim 1, characterized in that: The real-time receiving of the real-time control instruction sent by the Star Flash server includes: Receive the real-time control instructions sent by the Xingshan server in real time, and execute the real-time control instructions; When the real-time control instruction is executed, an instruction completion signal is generated; The command completion signal is sent to the Star Flash server.
6. The communication method based on star flash technology according to claim 5, characterized in that: The real-time receiving of the real-time control instruction sent by the Star Flash server includes: Receive the time synchronization instruction issued by the Xingshan server in real time; Based on the time synchronization instruction, the timestamp of the Xingshan server is obtained in real time. Based on the timestamp, synchronize time with the Star Flash server.
7. A communication method based on star flash technology, characterized in that: Applicable to non-real-time control nodes, including: Receive configuration information sent by the Xingshan server; Obtaining a timestamp, a data upload time window, a data transmission cycle, a server receiving ID, and a server command receiving ID by parsing the configuration information; Based on the timestamp, synchronize time with the Star Flash server; Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the second data collected in real time is uploaded to the Xingshan server; When it is determined that the second data is successfully uploaded to the Xingshan server, the device enters a sleep state.
8. The communication method based on star flash technology according to claim 7, characterized in that: After the communication connection ID is switched to the server receiving ID based on the data upload time window and the data transmission period, the method further includes: A time window for receiving control instructions; Within the control instruction time window, receive and execute the preset control instructions issued by the Star Flash server.
9. A communication method based on star flash technology, characterized in that: Applied to Star Flash Server, including: Sending configuration information to a number of Star Flash nodes; the Star Flash nodes include nodes that need real-time control and nodes that do not need real-time control; Receiving the first data uploaded by the real-time control node or the second data uploaded by the non-real-time control node; Sending a real-time control instruction to the node requiring real-time control, so that the node requiring real-time control responds to the real-time control instruction in real time; The preset control instruction is sent to the non-real-time control node, so that the non-real-time control node responds to the preset control instruction within a control instruction time window of the preset control instruction.
10. A communication system based on star flash technology, characterized in that: include: Xingshan server and several Xingshan nodes; The star flash nodes include nodes that need real-time control and non-real-time control nodes; The Star Flash server is used to send configuration information to each of the Star Flash nodes; receive the first data uploaded by the node requiring real-time control or the second data uploaded by the non-real-time control node; send a real-time control instruction to the node requiring real-time control so that the node requiring real-time control responds to the real-time control instruction in real time; send the preset control instruction to the non-real-time control node so that the non-real-time control node responds to the preset control instruction within the control instruction time window of the preset control instruction; The node requiring real-time control is used to receive the configuration information sent by the Xingshan server; obtain the timestamp, data upload time window, data transmission cycle, server receiving ID and server instruction receiving ID by parsing the configuration information; Based on the timestamp, synchronize time with the Star Flash server; Based on the data upload time window and the data transmission period, the communication connection ID is switched to the server receiving ID, and the first data collected in real time is uploaded to the Xingshan server; When it is determined that the first data is successfully uploaded to the Xingshan server, the communication connection ID is switched to the server instruction receiving ID to receive the real-time control instructions issued by the Xingshan server in real time; The non-real-time control node is used to receive the configuration information sent by the Xingshan server; Obtaining a timestamp, a data upload time window, a data transmission cycle, a server receiving ID, and a server command receiving ID by parsing the configuration information; Based on the timestamp, synchronize time with the Star Flash server; Based on the data upload time window and the data transmission cycle, the communication connection ID is switched to the server receiving ID, and the second data collected in real time is uploaded to the Star Flash server; when it is determined that the second data is successfully uploaded to the Star Flash server, the sleep state is entered.